/* ============================================================
   Clinic Sermorelin — Memphis Design Aesthetic
   Pure-white ground, clashing brights, hard sticker shadows
   ============================================================ */

:root {
  --primary:          #E0359E;
  --primary-50:       #FDEAF6;
  --primary-900:      #7A0E54;
  --secondary:        #2BB6B0;
  --secondary-50:     #E3F6F5;
  --secondary-900:    #0E5450;
  --accent:           #FFC93C;
  --accent-blue:      #5566C7;
  --accent-blue-900:  #2A347A;
  --neutral-50:       #FFFFFF;
  --neutral-100:      #F6F6FB;
  --neutral-200:      #E7E7F0;
  --neutral-500:      #5C5C72;
  --neutral-900:      #1A1A3C;
  --ink-black:        #16161E;
  --background:       #FFFFFF;
  --surface:          #FFFFFF;
  --surface-tint:     #F6F6FB;
  --text:             #1A1A3C;
  --text-muted:       #4E4E66;
  --rule:             #16161E;
  --rule-muted:       #E7E7F0;
  --success:          #1F7A4D;
  --warning:          #9A6A00;
  --danger:           #C02B5E;

  --max-width:        70rem;
  --reading-width:    44rem;
  --container-px:     clamp(1rem, 4vw, 2.5rem);

  --font-heading:     'Poppins', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --font-body:        'DM Sans', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-mono:        'Space Mono', 'JetBrains Mono', 'Courier New', monospace;

  --h1-size:          clamp(2.25rem, 5vw, 3.5rem);
  --h2-size:          clamp(1.5rem, 3vw, 2.25rem);
  --h3-size:          1.3125rem;
  --eyebrow-size:     0.8125rem;
  --lede-size:        1.1875rem;
  --body-size:        1.0625rem;
  --small-size:       0.875rem;
  --micro-size:       0.8125rem;

  --radius-card:      1rem;
  --radius-button:    9999px;
  --radius-chip:      0.5rem;

  --sticker-shadow-pink: 5px 5px 0 0 var(--primary);
  --sticker-shadow-teal: 5px 5px 0 0 var(--secondary);
  --sticker-shadow-blue: 5px 5px 0 0 var(--accent-blue);
  --sticker-shadow-btn:  4px 4px 0 0 var(--ink-black);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-blue); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--primary); }
ul, ol { padding-left: 1.5rem; }

/* === Container === */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* === Reading column === */
.reading-col {
  max-width: var(--reading-width);
  margin-inline: 0;
}

/* === Typography === */
h1 { font-family: var(--font-heading); font-size: var(--h1-size); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; color: var(--text); }
h2 { font-family: var(--font-heading); font-size: var(--h2-size); font-weight: 700; line-height: 1.18; letter-spacing: -0.005em; color: var(--text); }
h3 { font-family: var(--font-heading); font-size: var(--h3-size); font-weight: 600; line-height: 1.25; color: var(--text); }
h4 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; color: var(--text); }
p { margin-block: 0.75rem; }
p:first-child { margin-top: 0; }
strong { font-weight: 700; }
em { font-style: italic; }
small { font-size: var(--small-size); }
code, .mono {
  font-family: var(--font-mono);
  font-size: 0.9375em;
  background: var(--surface-tint);
  border: 1px solid var(--ink-black);
  border-radius: 0.375rem;
  padding: 0.0625rem 0.375rem;
}

/* === Eyebrow chip === */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--eyebrow-size);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--primary);
  border: 2px solid var(--ink-black);
  border-radius: 0.375rem;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}
.eyebrow-teal  { background: var(--secondary); }
.eyebrow-yellow { background: var(--accent); color: var(--ink-black); }
.eyebrow-blue  { background: var(--accent-blue); }

/* === Lede paragraph === */
.lede {
  font-size: var(--lede-size);
  line-height: 1.55;
  color: var(--text);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  max-width: var(--reading-width);
}

/* === Site Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background);
  border-bottom: 3px solid var(--ink-black);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.875rem;
  position: relative;
}

/* Memphis squiggle decoration in header top-right — aria-hidden via HTML */
.site-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='20' viewBox='0 0 60 20'%3E%3Cpath d='M2 14 Q8 2 14 14 Q20 26 26 14 Q32 2 38 14 Q44 26 50 14 Q56 2 62 14' stroke='%23FFC93C' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}

/* Brand wordmark */
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.site-brand:hover { color: var(--primary); text-decoration: none; }
.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-right: 0.25rem;
}
.brand-dot {
  width: 10px; height: 10px;
  background: var(--primary);
  border: 1.5px solid var(--ink-black);
  border-radius: 50%;
  display: inline-block;
}
.brand-tri {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid var(--secondary);
  display: inline-block;
}

/* Nav */
.site-nav { display: none; }
.site-nav ul { display: flex; align-items: center; gap: 0.125rem; list-style: none; padding: 0; margin: 0; }
.site-nav a {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 0.375rem 0.625rem;
  border-radius: 0.25rem;
  position: relative;
  transition: color 160ms ease-out;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0.625rem; right: 0.625rem;
  height: 3px;
  background: transparent;
  transition: background 160ms ease-out;
}
/* Rotating underline colors per nav item */
.site-nav li:nth-child(1) a::after { background: transparent; }
.site-nav li:nth-child(1) a:hover::after,
.site-nav li:nth-child(1) a.active::after { background: var(--primary); }
.site-nav li:nth-child(2) a:hover::after,
.site-nav li:nth-child(2) a.active::after { background: var(--secondary); }
.site-nav li:nth-child(3) a:hover::after,
.site-nav li:nth-child(3) a.active::after { background: var(--accent-blue); }
.site-nav li:nth-child(4) a:hover::after,
.site-nav li:nth-child(4) a.active::after { background: var(--primary); }
.site-nav li:nth-child(5) a:hover::after,
.site-nav li:nth-child(5) a.active::after { background: var(--secondary); }
.site-nav li:nth-child(6) a:hover::after,
.site-nav li:nth-child(6) a.active::after { background: var(--accent-blue); }
.site-nav li:nth-child(7) a:hover::after,
.site-nav li:nth-child(7) a.active::after { background: var(--primary); }

.site-nav a:hover, .site-nav a.active { color: var(--text); }

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: 2px solid var(--ink-black);
  border-radius: 0.375rem;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink-black);
  border-radius: 1px;
  transition: 160ms ease-out;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--background);
  border-bottom: 3px solid var(--ink-black);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 0.75rem var(--container-px); margin: 0; }
.mobile-nav a {
  display: block;
  padding: 0.625rem 0;
  font-size: var(--body-size);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-muted);
}
.mobile-nav a:hover { color: var(--primary); }

/* === Main === */
main { padding-block: 3rem 4rem; }

/* === Hero — index page === */
.hero-index {
  padding-block: 3.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-index .container { position: relative; }
.hero-text { max-width: var(--reading-width); }
.hero-index h1 { margin-bottom: 1rem; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* Hero Memphis decorations — positioned absolutely, aria-hidden in HTML */
.hero-deco {
  position: absolute;
  pointer-events: none;
}
.hero-deco-tr {
  top: -0.5rem;
  right: -1rem;
  width: 220px; height: 220px;
  display: none;
}
.hero-deco-bl {
  bottom: -1rem;
  left: -2rem;
  width: 140px; height: 140px;
  display: none;
}

/* Hero figure */
.hero-figure {
  margin-top: 2.5rem;
  max-width: 640px;
}
.hero-figure img {
  border: 2px solid var(--ink-black);
  border-radius: 1rem;
  box-shadow: 6px 6px 0 0 var(--primary);
  width: 100%;
}
.hero-figure figcaption {
  font-family: var(--font-mono);
  font-size: var(--small-size);
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* === Sub-page hero === */
.hero-sub {
  padding-block: 2.5rem 3rem;
  position: relative;
}
.hero-sub .reading-col h1 { margin-bottom: 0.75rem; }

/* === Page content sections === */
.page-content { padding-top: 2rem; }
.page-section {
  margin-bottom: 2.75rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px dashed var(--rule-muted);
  position: relative;
}
.page-section:last-of-type { border-bottom: none; }

/* Section heading with Memphis color bar */
.page-section h2 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  position: relative;
}
.page-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 4px;
  border-radius: 2px;
}
/* Rotate colors per section */
.page-section:nth-child(1) h2::after { background: var(--primary); }
.page-section:nth-child(2) h2::after { background: var(--secondary); }
.page-section:nth-child(3) h2::after { background: var(--accent-blue); }
.page-section:nth-child(4) h2::after { background: var(--primary); }
.page-section:nth-child(5) h2::after { background: var(--secondary); }
.page-section:nth-child(6) h2::after { background: var(--accent-blue); }
.page-section:nth-child(7) h2::after { background: var(--primary); }
.page-section:nth-child(8) h2::after { background: var(--secondary); }
.page-section:nth-child(9) h2::after { background: var(--accent-blue); }
.page-section:nth-child(10) h2::after { background: var(--primary); }
.page-section:nth-child(11) h2::after { background: var(--secondary); }
.page-section:nth-child(12) h2::after { background: var(--accent-blue); }
.page-section:nth-child(13) h2::after { background: var(--primary); }

/* Section index numeral — Space Mono sticker */
.section-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--micro-size);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  padding: 0.1875rem 0.4rem;
  border: 1.5px solid var(--ink-black);
  border-radius: 0.25rem;
  margin-right: 0.625rem;
  vertical-align: middle;
  line-height: 1;
}
.section-num-pink  { background: var(--primary); }
.section-num-teal  { background: var(--secondary); }
.section-num-blue  { background: var(--accent-blue); }

/* Section divider — hairline with confetti dots */
.section-divider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-block: 2.5rem;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: var(--ink-black);
}
.divider-dots { display: flex; gap: 0.375rem; }
.divider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-black);
}
.dd-pink  { background: var(--primary); }
.dd-teal  { background: var(--secondary); }
.dd-yellow { background: var(--accent); }
.dd-blue  { background: var(--accent-blue); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-button);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--ink-black);
  box-shadow: var(--sticker-shadow-btn);
  cursor: pointer;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
  line-height: 1;
}
.btn:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}
.btn-primary:hover {
  color: #FFFFFF;
  text-decoration: none;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--ink-black);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--accent-blue);
}
.btn-secondary:hover {
  color: var(--text);
  text-decoration: none;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--ink-black);
}

/* === Cards === */
.card {
  background: var(--surface);
  border: 2px solid var(--ink-black);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  position: relative;
}
.card-pink { box-shadow: var(--sticker-shadow-pink); }
.card-teal { box-shadow: var(--sticker-shadow-teal); }
.card-blue { box-shadow: var(--sticker-shadow-blue); }

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}
.card-body { font-size: var(--body-size); line-height: 1.65; }

/* FAQ cards grid */
.faq-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}
.faq-card { margin-bottom: 0; }
.faq-q {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.625rem;
}
.faq-a { font-size: var(--body-size); line-height: 1.65; color: var(--text); }

/* FAQ section heading */
.faq-section-heading {
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  font-weight: 700;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 4px solid var(--primary);
}

/* === Callout blocks === */
.callout {
  border: 2px solid var(--ink-black);
  border-radius: 1rem;
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem;
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
}
.callout-note::before   { background: var(--secondary); }
.callout-caveat::before { background: var(--accent); }
.callout-method::before { background: var(--accent-blue); }
.callout-regulatory::before { background: var(--accent-blue); }
.callout-research::before   { background: var(--primary); }
.callout-wada::before       { background: var(--accent-blue); }

.callout-label {
  font-family: var(--font-body);
  font-size: var(--micro-size);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: block;
}
.callout-body { font-size: var(--body-size); line-height: 1.65; }
.callout-body p:first-child { margin-top: 0; }

/* === Figure blocks === */
.fig-block {
  margin-block: 2rem;
}
.fig-block img {
  border: 2px solid var(--ink-black);
  border-radius: 1rem;
  width: 100%;
}
.fig-block-pink  { box-shadow: var(--sticker-shadow-pink); }
.fig-block-teal  { box-shadow: var(--sticker-shadow-teal); }
.fig-block-blue  { box-shadow: var(--sticker-shadow-blue); }
.fig-caption {
  font-size: var(--small-size);
  color: var(--text-muted);
  margin-top: 0.625rem;
  line-height: 1.5;
}
.fig-prefix {
  font-family: var(--font-mono);
  font-size: var(--micro-size);
  font-weight: 700;
  display: inline-block;
  background: var(--secondary);
  color: #FFFFFF;
  border: 1.5px solid var(--ink-black);
  border-radius: 0.25rem;
  padding: 0.125rem 0.375rem;
  margin-right: 0.375rem;
}

/* === Citation chips === */
sup.cite a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--neutral-900);
  border: 1px solid var(--ink-black);
  border-radius: 0.375rem;
  padding: 0 0.3125rem;
  min-width: 1.25rem;
  height: 1.25rem;
  text-decoration: none;
  line-height: 1;
  vertical-align: super;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}
sup.cite a:hover {
  background: var(--primary);
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 0 var(--ink-black);
}
sup.cite a:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 1px;
}

/* === Tables === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid var(--ink-black);
  border-radius: 1rem;
  overflow: hidden;
  font-size: var(--small-size);
  margin-block: 1.5rem;
}
.data-table thead tr {
  background: var(--surface-tint);
  border-bottom: 3px solid var(--ink-black);
}
.data-table th {
  font-family: var(--font-heading);
  font-size: var(--small-size);
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--text);
}
.data-table td {
  padding: 0.6875rem 1rem;
  border-bottom: 1px solid var(--rule-muted);
  vertical-align: top;
  line-height: 1.5;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* === References list === */
.references-intro {
  font-size: var(--body-size);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: var(--reading-width);
}
.references-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.references-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 2px solid var(--ink-black);
  border-radius: 0.75rem;
  line-height: 1.6;
}
.references-list li:nth-child(3n+1) { box-shadow: 4px 4px 0 0 var(--primary); }
.references-list li:nth-child(3n+2) { box-shadow: 4px 4px 0 0 var(--secondary); }
.references-list li:nth-child(3n)   { box-shadow: 4px 4px 0 0 var(--accent-blue); }

.ref-num {
  font-family: var(--font-mono);
  font-size: var(--micro-size);
  font-weight: 700;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.75rem;
  align-self: flex-start;
  margin-top: 0.125rem;
  border: 1.5px solid var(--ink-black);
  border-radius: 0.3rem;
  padding: 0 0.375rem;
}
.ref-num-pink { background: var(--primary); color: #FFFFFF; }
.ref-num-teal { background: var(--secondary); color: #FFFFFF; }
.ref-num-blue { background: var(--accent-blue); color: #FFFFFF; }

.ref-body { flex: 1; }
.ref-citation { font-size: var(--small-size); color: var(--text); line-height: 1.6; }
.ref-doi {
  font-family: var(--font-mono);
  font-size: var(--micro-size);
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: block;
}
.ref-link { font-size: var(--small-size); }

/* === Contact form === */
.contact-form {
  max-width: 36rem;
  margin-top: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-family: var(--font-body);
  font-size: var(--small-size);
  font-weight: 700;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--ink-black);
  border-radius: 0.625rem;
  padding: 0.625rem 0.875rem;
  width: 100%;
  transition: box-shadow 160ms ease-out;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 3px solid var(--accent-blue);
  outline-offset: 2px;
  box-shadow: 3px 3px 0 0 var(--accent-blue);
}
.form-group textarea { min-height: 9rem; resize: vertical; }
.form-disclaimer {
  font-size: var(--small-size);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--surface-tint);
  border: 1.5px solid var(--rule-muted);
  border-radius: 0.625rem;
}

/* === Breadcrumb === */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: var(--small-size);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  list-style: none;
  padding: 0;
}
.breadcrumb li + li::before { content: '›'; margin-right: 0.375rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-underline-offset: 2px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* === 404 page === */
.not-found {
  text-align: center;
  padding-block: 5rem;
}
.not-found .num-404 {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.not-found h1 { margin-bottom: 1rem; font-size: var(--h2-size); }
.not-found p { color: var(--text-muted); margin-bottom: 2rem; }

/* === Footer === */
.site-footer {
  border-top: 4px solid var(--ink-black);
  background: var(--surface-tint);
  outline: 2px solid var(--ink-black);
  margin-top: 4rem;
}

/* Memphis shapes row at footer top */
.footer-shapes {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem var(--container-px);
  border-bottom: 1px solid var(--rule-muted);
  flex-wrap: wrap;
}
.footer-shape {
  width: 18px; height: 18px;
  border: 2px solid var(--ink-black);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.fs-pink    { background: var(--primary); }
.fs-teal    { background: var(--secondary); }
.fs-yellow  { background: var(--accent); }
.fs-blue    { background: var(--accent-blue); border-radius: 0; }
.fs-squiggle {
  background: none;
  border: none;
  font-size: 1.125rem;
  line-height: 1;
  width: auto; height: auto;
  color: var(--accent);
}
.fs-triangle {
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 16px solid var(--secondary);
  border-radius: 0;
  background: none;
}

.footer-main { padding-block: 2rem 1.5rem; }
.footer-disclaimer {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 2rem;
  max-width: var(--reading-width);
  line-height: 1.55;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-col-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.footer-col-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-black);
  display: inline-block;
  flex-shrink: 0;
}
.fcd-pink  { background: var(--primary); }
.fcd-teal  { background: var(--secondary); }
.fcd-blue  { background: var(--accent-blue); }

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li + li { margin-top: 0.4375rem; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-col a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

.footer-bottom {
  border-top: 1px solid var(--rule-muted);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: var(--micro-size);
  color: var(--text-muted);
  flex: 1;
}
.footer-bottom-dot {
  width: 6px; height: 6px;
  background: var(--secondary);
  border: 1px solid var(--ink-black);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Custom list markers — Memphis confetti dots */
.prose ul {
  list-style: none;
  padding-left: 1.5rem;
}
.prose ul li {
  position: relative;
  padding-left: 0;
  margin-bottom: 0.375rem;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 0.55em;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink-black);
}
.prose ul > li:nth-child(3n+1)::before { background: var(--primary); }
.prose ul > li:nth-child(3n+2)::before { background: var(--secondary); }
.prose ul > li:nth-child(3n)::before   { background: var(--accent-blue); }

/* Ordered lists */
.prose ol li { margin-bottom: 0.375rem; }

/* === Responsive breakpoints === */
@media (min-width: 768px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }

  .hero-deco-tr { display: block; }
  .hero-deco-bl { display: block; }

  .footer-cols { grid-template-columns: repeat(3, 1fr); }

  .hero-index { padding-block: 5rem 5.5rem; }
  .hero-figure { margin-top: 0; }
}

@media (min-width: 1024px) {
  .hero-index .container {
    display: grid;
    grid-template-columns: var(--reading-width) 1fr;
    gap: 3rem;
    align-items: start;
  }
  .hero-text { grid-column: 1; }
  .hero-figure { grid-column: 2; margin-top: 2rem; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
  html { scroll-behavior: auto; }
}

/* === Focus management === */
:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 2px;
}

/* === Spacing utility classes (no inline styles) === */
.callout-mt    { margin-top: 1.5rem; }
.callout-mt-lg { margin-top: 2.5rem; }

/* === Prose content area === */
.prose { max-width: var(--reading-width); }
.prose h2 { margin-top: 2rem; margin-bottom: 0.875rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: 0.625rem; }
.prose p  { margin-block: 0.75rem; }
.prose p:first-child { margin-top: 0; }
