/* ============================================================
   AllieAllie — Hugo Theme
   Palette: "Rosebud" (warm pastel, Catppuccin Latte-adjacent)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  /* Base surfaces */
  --bg:         #fdf6ee;
  --surface0:   #f5ead9;
  --surface1:   #ecdcc6;
  --surface2:   #e0ccb3;
  --overlay:    #d4bda0;

  /* Text */
  --text:       #4a3728;
  --subtext1:   #7a5f4d;
  --subtext0:   #9e8070;

  /* Accents */
  --rose:       #e8a0b0;
  --flamingo:   #edb49a;
  --peach:      #f0c98a;
  --yellow:     #e8de9a;
  --green:      #a8d8b0;
  --teal:       #96cfc8;
  --sky:        #a8c8e8;
  --lavender:   #c0b0e0;
  --mauve:      #d0a8d0;
  --pink:       #e8b0c8;

  /* Semantic */
  --accent:     var(--mauve);
  --accent-text: #7a4a8a;
  --link:       var(--teal);
  --link-hover: #5aada3;
  --tag-bg:     var(--surface0);

  /* Typography */
  --font-display: 'Pacifico', cursive;
  --font-body:    'Nunito', sans-serif;

  /* Sizing */
  --content-width: 720px;
  --wide-width:    1100px;
  --radius:        12px;
  --radius-sm:     6px;
  --radius-lg:     20px;
  --px:            clamp(1rem, 4vw, 2rem);

  /* Pixel size unit (for plant sprites) */
  --px1: 4px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--link-hover); }

/* ── Pixel Plant Sprites (pure CSS box-shadow art) ──────── */

.plant {
  display: block;
  position: relative;
  image-rendering: pixelated;
}

/* Fern — 8×10 pixel art */
.plant-fern {
  width:  calc(var(--px1) * 8);
  height: calc(var(--px1) * 10);
  background-color: transparent;
}
.plant-fern::before,
.plant-fern::after {
  content: '';
  position: absolute;
  width: var(--px1);
  height: var(--px1);
  top: 0; left: 0;
  background: var(--green);
}
/* Stem + fronds via box-shadow — each entry: x y 0 0 color */
.plant-fern::before {
  /* stem */
  box-shadow:
    calc(var(--px1)*3) calc(var(--px1)*9) 0 0 #6aaa78,
    calc(var(--px1)*3) calc(var(--px1)*8) 0 0 #6aaa78,
    calc(var(--px1)*3) calc(var(--px1)*7) 0 0 #7aba88,
    calc(var(--px1)*3) calc(var(--px1)*6) 0 0 #7aba88,
    calc(var(--px1)*3) calc(var(--px1)*5) 0 0 #8aca98,
    calc(var(--px1)*3) calc(var(--px1)*4) 0 0 #8aca98,
    calc(var(--px1)*3) calc(var(--px1)*3) 0 0 #9ada9a,
    calc(var(--px1)*3) calc(var(--px1)*2) 0 0 #aae8aa;
}
.plant-fern::after {
  /* left fronds */
  box-shadow:
    calc(var(--px1)*2) calc(var(--px1)*7) 0 0 #8aca98,
    calc(var(--px1)*1) calc(var(--px1)*7) 0 0 #a0d8a8,
    calc(var(--px1)*0) calc(var(--px1)*6) 0 0 #b0e0b8,
    calc(var(--px1)*2) calc(var(--px1)*5) 0 0 #8aca98,
    calc(var(--px1)*1) calc(var(--px1)*4) 0 0 #a0d8a8,
    calc(var(--px1)*4) calc(var(--px1)*7) 0 0 #8aca98,
    calc(var(--px1)*5) calc(var(--px1)*7) 0 0 #a0d8a8,
    calc(var(--px1)*6) calc(var(--px1)*6) 0 0 #b0e0b8,
    calc(var(--px1)*4) calc(var(--px1)*5) 0 0 #8aca98,
    calc(var(--px1)*5) calc(var(--px1)*4) 0 0 #a0d8a8,
    /* top tuft */
    calc(var(--px1)*2) calc(var(--px1)*1) 0 0 #b8eebc,
    calc(var(--px1)*4) calc(var(--px1)*1) 0 0 #b8eebc,
    calc(var(--px1)*3) calc(var(--px1)*0) 0 0 #c8f4c8;
}

/* Flower — 9×10 */
.plant-flower {
  width:  calc(var(--px1) * 9);
  height: calc(var(--px1) * 10);
}
.plant-flower::before {
  content: '';
  position: absolute;
  width: var(--px1); height: var(--px1);
  top: 0; left: 0;
  /* stem + leaves */
  box-shadow:
    calc(var(--px1)*4) calc(var(--px1)*9) 0 0 #6aaa78,
    calc(var(--px1)*4) calc(var(--px1)*8) 0 0 #6aaa78,
    calc(var(--px1)*4) calc(var(--px1)*7) 0 0 #7aba88,
    calc(var(--px1)*3) calc(var(--px1)*7) 0 0 #8aca98,
    calc(var(--px1)*2) calc(var(--px1)*7) 0 0 #a0d8a8,
    calc(var(--px1)*5) calc(var(--px1)*6) 0 0 #8aca98,
    calc(var(--px1)*6) calc(var(--px1)*6) 0 0 #a0d8a8,
    calc(var(--px1)*4) calc(var(--px1)*6) 0 0 #7aba88,
    calc(var(--px1)*4) calc(var(--px1)*5) 0 0 #8aca98;
}
.plant-flower::after {
  content: '';
  position: absolute;
  width: var(--px1); height: var(--px1);
  top: 0; left: 0;
  /* petals + center */
  box-shadow:
    /* top */
    calc(var(--px1)*3) calc(var(--px1)*1) 0 0 #e8b0c8,
    calc(var(--px1)*4) calc(var(--px1)*1) 0 0 #e8b0c8,
    calc(var(--px1)*5) calc(var(--px1)*1) 0 0 #e8b0c8,
    /* left */
    calc(var(--px1)*1) calc(var(--px1)*2) 0 0 #e8b0c8,
    calc(var(--px1)*2) calc(var(--px1)*2) 0 0 #f0c0d0,
    /* right */
    calc(var(--px1)*6) calc(var(--px1)*2) 0 0 #e8b0c8,
    calc(var(--px1)*7) calc(var(--px1)*2) 0 0 #f0c0d0,
    /* mid row */
    calc(var(--px1)*1) calc(var(--px1)*3) 0 0 #f0c0d0,
    calc(var(--px1)*7) calc(var(--px1)*3) 0 0 #f0c0d0,
    /* center */
    calc(var(--px1)*2) calc(var(--px1)*2) 0 0 #f4d0dc,
    calc(var(--px1)*3) calc(var(--px1)*2) 0 0 #f8d8e0,
    calc(var(--px1)*4) calc(var(--px1)*2) 0 0 #f8d8e0,
    calc(var(--px1)*5) calc(var(--px1)*2) 0 0 #f8d8e0,
    calc(var(--px1)*2) calc(var(--px1)*3) 0 0 #f8d8e0,
    calc(var(--px1)*3) calc(var(--px1)*3) 0 0 #f4e090,
    calc(var(--px1)*4) calc(var(--px1)*3) 0 0 #f8e898,
    calc(var(--px1)*5) calc(var(--px1)*3) 0 0 #f4e090,
    calc(var(--px1)*6) calc(var(--px1)*3) 0 0 #f8d8e0,
    calc(var(--px1)*2) calc(var(--px1)*4) 0 0 #f8d8e0,
    calc(var(--px1)*3) calc(var(--px1)*4) 0 0 #f4e090,
    calc(var(--px1)*4) calc(var(--px1)*4) 0 0 #f8e898,
    calc(var(--px1)*5) calc(var(--px1)*4) 0 0 #f4e090,
    calc(var(--px1)*6) calc(var(--px1)*4) 0 0 #f8d8e0,
    /* bottom petal */
    calc(var(--px1)*3) calc(var(--px1)*5) 0 0 #e8b0c8,
    calc(var(--px1)*4) calc(var(--px1)*5) 0 0 #e8b0c8,
    calc(var(--px1)*5) calc(var(--px1)*5) 0 0 #e8b0c8;
}

/* Mushroom — 8×8 */
.plant-mushroom {
  width:  calc(var(--px1) * 8);
  height: calc(var(--px1) * 8);
}
.plant-mushroom::before {
  content: '';
  position: absolute;
  width: var(--px1); height: var(--px1);
  top: 0; left: 0;
  /* stem */
  box-shadow:
    calc(var(--px1)*3) calc(var(--px1)*6) 0 0 #e8dcc8,
    calc(var(--px1)*4) calc(var(--px1)*6) 0 0 #e8dcc8,
    calc(var(--px1)*2) calc(var(--px1)*7) 0 0 #e0d0b8,
    calc(var(--px1)*3) calc(var(--px1)*7) 0 0 #f0e4d0,
    calc(var(--px1)*4) calc(var(--px1)*7) 0 0 #f0e4d0,
    calc(var(--px1)*5) calc(var(--px1)*7) 0 0 #e0d0b8;
}
.plant-mushroom::after {
  content: '';
  position: absolute;
  width: var(--px1); height: var(--px1);
  top: 0; left: 0;
  /* cap */
  box-shadow:
    calc(var(--px1)*2) calc(var(--px1)*2) 0 0 #d4607a,
    calc(var(--px1)*3) calc(var(--px1)*1) 0 0 #d4607a,
    calc(var(--px1)*4) calc(var(--px1)*1) 0 0 #d4607a,
    calc(var(--px1)*5) calc(var(--px1)*2) 0 0 #d4607a,
    calc(var(--px1)*1) calc(var(--px1)*3) 0 0 #d4607a,
    calc(var(--px1)*2) calc(var(--px1)*3) 0 0 #e87090,
    calc(var(--px1)*3) calc(var(--px1)*2) 0 0 #e87090,
    calc(var(--px1)*4) calc(var(--px1)*2) 0 0 #e87090,
    calc(var(--px1)*5) calc(var(--px1)*3) 0 0 #e87090,
    calc(var(--px1)*6) calc(var(--px1)*3) 0 0 #d4607a,
    calc(var(--px1)*1) calc(var(--px1)*4) 0 0 #e87090,
    calc(var(--px1)*2) calc(var(--px1)*4) 0 0 #f09090,
    calc(var(--px1)*3) calc(var(--px1)*3) 0 0 #f09090,
    calc(var(--px1)*4) calc(var(--px1)*3) 0 0 #f09090,
    calc(var(--px1)*5) calc(var(--px1)*4) 0 0 #e87090,
    calc(var(--px1)*6) calc(var(--px1)*4) 0 0 #e87090,
    calc(var(--px1)*3) calc(var(--px1)*4) 0 0 #e87090,
    calc(var(--px1)*4) calc(var(--px1)*4) 0 0 #e87090,
    calc(var(--px1)*1) calc(var(--px1)*5) 0 0 #e87090,
    calc(var(--px1)*2) calc(var(--px1)*5) 0 0 #d4607a,
    calc(var(--px1)*3) calc(var(--px1)*5) 0 0 #d4607a,
    calc(var(--px1)*4) calc(var(--px1)*5) 0 0 #d4607a,
    calc(var(--px1)*5) calc(var(--px1)*5) 0 0 #d4607a,
    calc(var(--px1)*6) calc(var(--px1)*5) 0 0 #d4607a,
    /* white dots */
    calc(var(--px1)*2) calc(var(--px1)*3) 0 0 #fff8f8,
    calc(var(--px1)*5) calc(var(--px1)*2) 0 0 #fff8f8,
    calc(var(--px1)*4) calc(var(--px1)*4) 0 0 #fff8f8;
}

/* Succulent — 8×7 */
.plant-succulent {
  width:  calc(var(--px1) * 8);
  height: calc(var(--px1) * 7);
}
.plant-succulent::before {
  content: '';
  position: absolute;
  width: var(--px1); height: var(--px1);
  top: 0; left: 0;
  /* pot */
  box-shadow:
    calc(var(--px1)*2) calc(var(--px1)*5) 0 0 #c09878,
    calc(var(--px1)*3) calc(var(--px1)*5) 0 0 #d0a888,
    calc(var(--px1)*4) calc(var(--px1)*5) 0 0 #d0a888,
    calc(var(--px1)*5) calc(var(--px1)*5) 0 0 #c09878,
    calc(var(--px1)*1) calc(var(--px1)*6) 0 0 #b08868,
    calc(var(--px1)*2) calc(var(--px1)*6) 0 0 #c09878,
    calc(var(--px1)*3) calc(var(--px1)*6) 0 0 #d0a888,
    calc(var(--px1)*4) calc(var(--px1)*6) 0 0 #d0a888,
    calc(var(--px1)*5) calc(var(--px1)*6) 0 0 #c09878,
    calc(var(--px1)*6) calc(var(--px1)*6) 0 0 #b08868;
}
.plant-succulent::after {
  content: '';
  position: absolute;
  width: var(--px1); height: var(--px1);
  top: 0; left: 0;
  /* leaves */
  box-shadow:
    /* center rosette */
    calc(var(--px1)*3) calc(var(--px1)*3) 0 0 #70b870,
    calc(var(--px1)*4) calc(var(--px1)*3) 0 0 #70b870,
    calc(var(--px1)*3) calc(var(--px1)*4) 0 0 #88c888,
    calc(var(--px1)*4) calc(var(--px1)*4) 0 0 #88c888,
    /* outer leaves */
    calc(var(--px1)*2) calc(var(--px1)*3) 0 0 #58a858,
    calc(var(--px1)*5) calc(var(--px1)*3) 0 0 #58a858,
    calc(var(--px1)*1) calc(var(--px1)*4) 0 0 #60b060,
    calc(var(--px1)*6) calc(var(--px1)*4) 0 0 #60b060,
    calc(var(--px1)*2) calc(var(--px1)*4) 0 0 #78c078,
    calc(var(--px1)*5) calc(var(--px1)*4) 0 0 #78c078,
    /* top leaves */
    calc(var(--px1)*3) calc(var(--px1)*2) 0 0 #58a858,
    calc(var(--px1)*4) calc(var(--px1)*2) 0 0 #58a858,
    calc(var(--px1)*3) calc(var(--px1)*1) 0 0 #48984a,
    calc(var(--px1)*4) calc(var(--px1)*1) 0 0 #48984a,
    calc(var(--px1)*3) calc(var(--px1)*0) 0 0 #388838,
    calc(var(--px1)*4) calc(var(--px1)*0) 0 0 #388838,
    /* highlight tips */
    calc(var(--px1)*3) calc(var(--px1)*4) 0 0 #a8e0a8,
    calc(var(--px1)*4) calc(var(--px1)*4) 0 0 #a8e0a8;
}

/* ── Plant decoration bar ─────────────────────────────────── */

.plant-bar {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.plant-bar .plant {
  flex-shrink: 0;
}

/* ── Layout ───────────────────────────────────────────────── */

.gh-viewport {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.gh-main {
  flex: 1;
  padding: calc(var(--px) * 1.5) var(--px);
}

.gh-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
}

.gh-content-area {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ── Site Header ──────────────────────────────────────────── */

.gh-head {
  background: var(--surface0);
  border-bottom: 2px solid var(--surface1);
  padding: 0 var(--px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.gh-head-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

.gh-head-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.gh-head-logo {
  max-height: 40px;
  width: auto;
}

.gh-head-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-text);
  text-decoration: none;
}

.gh-head-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.gh-head-nav a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--subtext1);
  text-decoration: none;
  padding: .35rem .7rem;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}

.gh-head-nav a:hover {
  background: var(--surface1);
  color: var(--text);
}

.gh-head-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

/* ── Hero / Homepage ──────────────────────────────────────── */

.gh-hero {
  text-align: center;
  padding: 3rem var(--px) 2rem;
  position: relative;
}

.gh-hero-plants {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.gh-site-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--accent-text);
  line-height: 1.15;
  margin-bottom: .75rem;
}

.gh-site-description {
  font-size: 1.1rem;
  color: var(--subtext1);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Post Grid ────────────────────────────────────────────── */

.gh-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

/* ── Post Card ────────────────────────────────────────────── */

.gh-card {
  background: var(--surface0);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--surface1);
  transition: transform .18s, box-shadow .18s;
  text-decoration: none;
  color: inherit;
}

.gh-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px -4px rgba(74,55,40,.12);
  text-decoration: none;
}

.gh-card-image-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface1);
  position: relative;
}

.gh-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.gh-card:hover .gh-card-image {
  transform: scale(1.04);
}

.gh-card-no-image {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface0), var(--surface1));
}

.gh-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.gh-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.gh-card-tag {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--lavender);
  color: #5a3a8a;
  padding: .15rem .5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s;
}

.gh-card-tag:hover { background: var(--mauve); color: #3a1a6a; }

.gh-card-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
}

.gh-card-excerpt {
  font-size: .88rem;
  color: var(--subtext1);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.gh-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: .78rem;
  color: var(--subtext0);
  padding-top: .5rem;
  border-top: 1px solid var(--surface1);
}

.gh-card-author {
  display: flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
  color: var(--subtext1);
}

.gh-card-author-image {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

/* ── Featured badge ───────────────────────────────────────── */

.gh-card-featured-badge {
  position: absolute;
  top: .6rem;
  right: .6rem;
  background: var(--peach);
  color: #7a4a10;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .55rem;
  border-radius: 999px;
}

/* ── Post ─────────────────────────────────────────────────── */

.gh-article {
  padding: 2rem 0 4rem;
}

.gh-article-header {
  text-align: center;
  max-width: var(--content-width);
  margin: 0 auto 2.5rem;
  padding: 0 var(--px);
}

.gh-article-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1rem;
}

.gh-article-tag {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--lavender);
  color: #5a3a8a;
  padding: .2rem .6rem;
  border-radius: 999px;
  text-decoration: none;
}

.gh-article-tag:hover { background: var(--mauve); }

.gh-article-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.gh-article-excerpt {
  font-size: 1.15rem;
  color: var(--subtext1);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.gh-article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: .85rem;
  color: var(--subtext0);
  flex-wrap: wrap;
}

.gh-article-author-image {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.gh-article-feature-image {
  max-width: var(--wide-width);
  margin: 0 auto 2.5rem;
  padding: 0 var(--px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gh-article-feature-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* ── Post Content ─────────────────────────────────────────── */

.gh-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--px);
}

.gh-content > * + * { margin-top: 1.4em; }

.gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-top: 2em;
  margin-bottom: .5em;
}

.gh-content h2 { font-size: 1.55rem; }
.gh-content h3 { font-size: 1.25rem; }
.gh-content h4 { font-size: 1.05rem; }

.gh-content p { line-height: 1.8; }

.gh-content a {
  color: var(--accent-text);
  font-weight: 600;
}

.gh-content blockquote {
  border-left: 4px solid var(--rose);
  background: var(--surface0);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--subtext1);
  font-style: italic;
}

.gh-content code {
  background: var(--surface0);
  border: 1px solid var(--surface1);
  padding: .1em .35em;
  border-radius: 4px;
  font-size: .87em;
  font-family: 'Courier New', monospace;
  color: var(--accent-text);
}

.gh-content pre {
  background: var(--surface0);
  border: 1px solid var(--surface1);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  line-height: 1.6;
}

.gh-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
}

.gh-content img {
  border-radius: var(--radius);
  margin: 0 auto;
}

.gh-content ul,
.gh-content ol {
  padding-left: 1.5rem;
  line-height: 1.8;
}

.gh-content li + li { margin-top: .3em; }

.gh-content hr {
  border: none;
  border-top: 2px dashed var(--surface2);
  margin: 2.5em auto;
  width: 50%;
}

.gh-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.gh-content th,
.gh-content td {
  padding: .6rem .9rem;
  border: 1px solid var(--surface1);
  text-align: left;
}

.gh-content th {
  background: var(--surface0);
  font-weight: 700;
}

.gh-content tr:nth-child(even) td { background: var(--surface0); }

/* ── Buttons ──────────────────────────────────────────────── */

.gh-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}

.gh-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px -2px rgba(74,55,40,.18); }
.gh-btn:active { transform: translateY(0); }

.gh-btn-primary {
  background: var(--mauve);
  color: #3a1a6a;
}

.gh-btn-secondary {
  background: var(--surface0);
  color: var(--text);
  border: 2px solid var(--surface2);
}

.gh-btn-accent {
  background: var(--rose);
  color: #6a1a3a;
}

/* ── Subscribe / CTA ─────────────────────────────────────────*/

.gh-subscribe {
  background: linear-gradient(135deg, var(--surface0), var(--surface1));
  border: 2px solid var(--surface2);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 520px;
  margin: 3rem auto;
}

.gh-subscribe-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent-text);
  margin-bottom: .5rem;
}

.gh-subscribe-desc {
  color: var(--subtext1);
  margin-bottom: 1.25rem;
  font-size: .95rem;
}

.gh-subscribe-form {
  display: flex;
  gap: .5rem;
  max-width: 380px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.gh-subscribe-input {
  flex: 1;
  min-width: 180px;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--surface2);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  outline: none;
}

.gh-subscribe-input:focus { border-color: var(--mauve); }

/* ── Pagination ───────────────────────────────────────────── */

.gh-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  font-size: .9rem;
  color: var(--subtext0);
}

/* ── Author card ─────────────────────────────────────────────*/

.gh-author-card {
  display: flex;
  gap: 1.5rem;
  background: var(--surface0);
  border: 2px solid var(--surface1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 3rem 0 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.gh-author-image {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.gh-author-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent-text);
  margin-bottom: .3rem;
}

.gh-author-bio {
  font-size: .9rem;
  color: var(--subtext1);
  line-height: 1.6;
}

/* ── Tags ─────────────────────────────────────────────────── */

.gh-tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  padding: 2rem 0;
}

.gh-tag-card {
  background: var(--surface0);
  border: 2px solid var(--surface1);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform .18s, box-shadow .18s;
}

.gh-tag-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px -4px rgba(74,55,40,.12);
  text-decoration: none;
}

.gh-tag-name {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--accent-text);
  font-size: 1rem;
}

.gh-tag-count {
  font-size: .8rem;
  color: var(--subtext0);
  margin-top: .25rem;
}

/* ── Footer ───────────────────────────────────────────────── */

.gh-foot {
  background: var(--surface0);
  border-top: 2px solid var(--surface1);
  padding: 2rem var(--px);
}

.gh-foot-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
}

.gh-foot-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--surface1);
}

.gh-foot-brand {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.gh-foot-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent-text);
  text-decoration: none;
}

.gh-foot-tagline {
  font-size: .85rem;
  color: var(--subtext0);
}

.gh-foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  align-items: center;
}

.gh-foot-nav a {
  font-size: .85rem;
  color: var(--subtext1);
  text-decoration: none;
}

.gh-foot-nav a:hover { color: var(--text); }

.gh-foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  font-size: .78rem;
  color: var(--subtext0);
  flex-wrap: wrap;
}

.gh-foot-plant-strip {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

/* ── Reading progress bar ─────────────────────────────────── */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--lavender), var(--teal));
  z-index: 999;
  transition: width .1s linear;
}

/* ── Page header ──────────────────────────────────────────── */

.gh-page-header {
  text-align: center;
  padding: 2.5rem var(--px) 1.5rem;
}

.gh-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  color: var(--accent-text);
  margin-bottom: .5rem;
}

.gh-page-subtitle {
  color: var(--subtext1);
  font-size: 1rem;
}

/* ── Error page ───────────────────────────────────────────── */

.gh-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  gap: 1rem;
  padding: 2rem var(--px);
}

.gh-error-code {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--surface2);
  line-height: 1;
}

.gh-error-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Pixel hamburger ──────────────────────────────────────── */

.gh-burger {
  display: none;
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--surface0);
  border: 2px solid var(--surface2);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, transform .15s;
}
.gh-burger:hover { background: var(--surface1); transform: translateY(-1px); }
.gh-burger:active { transform: translateY(0); }

/* Three pixel bars — chunky, with a 1px offset shadow for that pixel-block feel */
.gh-burger span {
  position: absolute;
  left: 7px;
  width: 18px;
  height: 4px;
  background: var(--mauve);
  box-shadow: 0 2px 0 0 var(--lavender);
  transition: transform .2s, opacity .2s, background .15s;
}
.gh-burger span:nth-child(1) { top: 8px; }
.gh-burger span:nth-child(2) { top: 16px; background: var(--rose);   box-shadow: 0 2px 0 0 var(--pink); }
.gh-burger span:nth-child(3) { top: 24px; background: var(--teal);   box-shadow: 0 2px 0 0 var(--green); }

/* When open: morph into a tidy little X */
.gh-burger[aria-expanded="true"] span:nth-child(1) {
  top: 16px; transform: rotate(45deg);
}
.gh-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.gh-burger[aria-expanded="true"] span:nth-child(3) {
  top: 16px; transform: rotate(-45deg);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 640px) {
  .gh-burger { display: inline-block; }

  .gh-head-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface0);
    border-bottom: 2px solid var(--surface1);
    padding: 0.5rem var(--px) 1rem;
    gap: 0.25rem;
  }
  .gh-head-nav.is-open { display: flex; }
  .gh-head-nav a {
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
  }
  .gh-head-nav a:hover { background: var(--surface1); }

  .gh-feed { grid-template-columns: 1fr; }
  .gh-author-card { flex-direction: column; text-align: center; }
  .gh-foot-top { flex-direction: column; }
  .gh-foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Ghost editor card overrides ─────────────────────────── */

.kg-width-wide {
  position: relative;
  width: min(100vw - 2 * var(--px), 900px);
  margin: 1.5rem calc(50% - min(50vw - var(--px), 450px));
}

.kg-width-full {
  width: 100vw;
  margin: 1.5rem calc(50% - 50vw);
}

.kg-image-card img { border-radius: var(--radius); }

.kg-gallery-container { display: flex; flex-direction: column; gap: .5rem; }
.kg-gallery-row { display: flex; gap: .5rem; }
.kg-gallery-image { flex: 1; object-fit: cover; border-radius: var(--radius-sm); }

.kg-bookmark-card {
  background: var(--surface0);
  border: 2px solid var(--surface1);
  border-radius: var(--radius);
  overflow: hidden;
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
  gap: 1rem;
  padding: 1rem;
}

.kg-bookmark-content { flex: 1; }
.kg-bookmark-title { font-weight: 700; margin-bottom: .25rem; }
.kg-bookmark-description { font-size: .85rem; color: var(--subtext1); }
.kg-bookmark-thumbnail { width: 120px; object-fit: cover; border-radius: var(--radius-sm); }

.kg-callout-card {
  display: flex;
  gap: .75rem;
  background: var(--surface0);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--lavender);
}

.kg-toggle-card {
  background: var(--surface0);
  border: 1px solid var(--surface1);
  border-radius: var(--radius);
  overflow: hidden;
}

.kg-toggle-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
  cursor: pointer;
  font-weight: 700;
}

.kg-toggle-content { padding: .75rem 1rem; border-top: 1px solid var(--surface1); }

.kg-audio-card {
  background: var(--surface0);
  border: 2px solid var(--surface1);
  border-radius: var(--radius);
  padding: 1rem;
}

/* ── Scrollbar ────────────────────────────────────────────── */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--overlay); }

/* ── Profile page ─────────────────────────────────────────── */

.profile-page {
  display: block;
  padding: 2rem var(--px) 4rem;
}

.profile-plants {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  padding: 0.5rem 0;
}

.profile-plants-bottom {
  max-width: 320px;
  margin: 1.5rem auto 0;
  opacity: 0.7;
}

.profile-card {
  background: var(--surface0);
  border: 2px solid var(--surface1);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  box-shadow: 0 4px 24px -4px rgba(74,55,40,.08);
}

.profile-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface2);
  margin-bottom: 0.5rem;
}

.profile-avatar-placeholder {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--surface1);
  border: 3px solid var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent-text);
  line-height: 1.15;
  margin: 0;
}

.profile-photo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  image-rendering: auto;
}

.profile-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--subtext1);
  margin: 0;
}

.profile-location {
  font-size: 0.85rem;
  color: var(--subtext0);
  margin: 0;
}

.profile-bio {
  font-size: 0.97rem;
  color: var(--subtext1);
  line-height: 1.75;
  max-width: 360px;
  margin: 0.5rem 0 0.75rem;
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  margin-top: 0.5rem;
}

.profile-link {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, filter .15s;
  letter-spacing: 0.01em;
}

.profile-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(74,55,40,.18);
  filter: brightness(0.96);
  text-decoration: none;
}

.profile-link:active { transform: translateY(0); }

.profile-link-rose     { background: var(--rose);     color: #6a1a3a; }
.profile-link-lavender { background: var(--lavender); color: #4a2a8a; }
.profile-link-sky      { background: var(--sky);      color: #1a4a8a; }
.profile-link-green    { background: var(--green);    color: #1a5a32; }
.profile-link-peach    { background: var(--peach);    color: #7a4a10; }
.profile-link-teal     { background: var(--teal);     color: #1a5a58; }
.profile-link-mauve    { background: var(--mauve);    color: #5a2a7a; }
.profile-link-yellow   { background: var(--yellow);   color: #5a5010; }

/* ── Cute table (network log analogue) ────────────────────── */

.cute-table-wrap {
  margin: 2rem 0;
  background: var(--surface0);
  border: 2px solid var(--surface1);
  border-radius: var(--radius-lg);
  padding: 1rem;
  overflow: hidden;
}
.cute-table-chrome {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.25rem 0.25rem 0.75rem;
  border-bottom: 1px dashed var(--surface2);
  margin-bottom: 0.75rem;
}
.cute-chip {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--surface1);
  color: var(--subtext1);
  border: 1px solid var(--surface2);
}
.cute-chip-on   { background: var(--mauve);    color: #5a2a7a; border-color: var(--mauve); }
.cute-chip-ai   { background: var(--lavender); color: #4a2a8a; border-color: var(--lavender); }

.cute-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text);
}
.cute-table thead th {
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--subtext0);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.6rem;
  border-bottom: 2px solid var(--surface2);
  background: transparent;
}
.cute-table tbody td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--surface1);
}
.cute-table tbody tr:nth-child(even) td { background: rgba(245, 234, 217, 0.5); }
.cute-table tbody tr:hover td           { background: var(--surface1); }

.cute-pill {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--peach);
  color: #7a4a10;
  font-size: 0.75rem;
  font-weight: 700;
}
.redacted {
  display: inline-block;
  background: var(--text);
  color: var(--text);
  border-radius: 3px;
  padding: 0 4px;
  user-select: none;
}
.cute-table-wrap figcaption,
.cute-diagram-wrap figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--subtext0);
  text-align: center;
  font-style: italic;
}

/* ── Cute SVG network diagram ─────────────────────────────── */

.cute-diagram-wrap {
  margin: 2rem 0;
  background: var(--surface0);
  border: 2px solid var(--surface1);
  border-radius: var(--radius-lg);
  padding: 1rem;
}
.cute-diagram {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* ── Links page (blogroll) ────────────────────────────────── */

.links-groups {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.links-group {
  background: var(--surface0);
  border: 2px solid var(--surface1);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem 1.5rem;
  border-left: 8px solid var(--mauve);
}
.links-group-rose     { border-left-color: var(--rose); }
.links-group-teal     { border-left-color: var(--teal); }
.links-group-lavender { border-left-color: var(--lavender); }
.links-group-peach    { border-left-color: var(--peach); }
.links-group-green    { border-left-color: var(--green); }
.links-group-sky      { border-left-color: var(--sky); }
.links-group-mauve    { border-left-color: var(--mauve); }

.links-group-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-text);
  margin: 0 0 0.5rem !important;
}
.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.links-item { line-height: 1.5; }
.links-link {
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
  border-bottom: 2px dotted var(--surface2);
}
.links-link:hover { color: var(--link-hover); border-bottom-style: solid; }
.links-note { color: var(--subtext1); font-size: 0.95rem; }
.links-empty {
  margin: 0;
  color: var(--subtext0);
  font-style: italic;
  font-size: 0.9rem;
}

/* ── Garden ───────────────────────────────────────────────── */

.garden-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}
.garden-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid var(--surface2);
}
.garden-pill-seedling  { background: var(--green);    color: #1a5a32; border-color: var(--green); }
.garden-pill-budding   { background: var(--teal);     color: #1a5a58; border-color: var(--teal); }
.garden-pill-evergreen { background: var(--lavender); color: #4a2a8a; border-color: var(--lavender); }

.garden-plot-wrap {
  margin: 1.5rem 0 2rem;
  background: var(--surface0);
  border: 2px solid var(--surface1);
  border-radius: var(--radius-lg);
  padding: 1rem;
}
.garden-plot {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.garden-plant {
  cursor: pointer;
  transition: transform .15s;
}
.garden-plant:hover { filter: brightness(1.05); }
.garden-plant:hover circle { stroke: var(--mauve); stroke-width: 3; }
.garden-plot-wrap figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--subtext0);
  text-align: center;
  font-style: italic;
}

.garden-list-heading {
  font-family: var(--font-display) !important;
  font-size: 1.4rem !important;
  color: var(--accent-text) !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0.5rem !important;
}
.garden-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.garden-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.garden-list a {
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
  border-bottom: 2px dotted var(--surface2);
}
.garden-list a:hover { color: var(--link-hover); border-bottom-style: solid; }
.garden-list-ripe { font-size: 0.9rem; }

.garden-breadcrumb {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}
.garden-breadcrumb a {
  color: var(--subtext1);
  text-decoration: none;
  border-bottom: 1px dotted var(--surface2);
}
.garden-breadcrumb a:hover { color: var(--accent-text); }

.garden-ripeness { margin: 0.5rem 0 1.5rem; }

.garden-relations {
  background: var(--surface0);
  border: 2px dashed var(--surface2);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
}
.garden-relations h3 {
  font-family: var(--font-display) !important;
  font-size: 1.1rem !important;
  color: var(--accent-text) !important;
  margin: 0 0 0.5rem !important;
}
.garden-relations ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.garden-relations a {
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
  border-bottom: 2px dotted var(--surface2);
}
.garden-relations a:hover { color: var(--link-hover); border-bottom-style: solid; }

/* ── Selection ────────────────────────────────────────────── */

::selection { background: var(--lavender); color: var(--text); }
