@font-face { font-family: 'Gloock'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/gloock-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f8f1f2;
  --fg-light-base-body: #2d1823;
  --fg-light-base-heading: #8a2250;
  --fg-light-base-muted: #664856;
  --fg-light-base-link: #8a2250;
  --fg-light-base-inverse: #2d1823;
  --bg-light-card: #f7dde3;
  --fg-light-card-body: #2d1823;
  --fg-light-card-heading: #8a2250;
  --fg-light-card-muted: #664856;
  --fg-light-card-link: #68173c;
  --fg-light-card-inverse: #2d1823;
  --bg-light-elevated: #f0c9d4;
  --fg-light-elevated-body: #2d1823;
  --fg-light-elevated-heading: #8a2250;
  --fg-light-elevated-muted: #664856;
  --fg-light-elevated-link: #8a2250;
  --fg-light-elevated-inverse: #2d1823;
  --brand-light-accent: #8a2250;
  --brand-light-accent-hover: #68173c;
  --brand-light-on-accent: #fff3f6;
  --focus-light-ring: #8a2250;
  --border-light-default: #94677b;
  --border-light-subtle: #ebcfd7;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

/* Soft-contour Q&A studio: pearl ground, blush answer bubbles, berry questions. */
:root {
  --font-display: 'Gloock', Georgia, 'Times New Roman', serif;
  --font-text: 'Hanken Grotesk', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --pearl: var(--bg-light-base);
  --blush: var(--bg-light-card);
  --berry-ground: var(--bg-light-elevated);
  --berry: var(--brand-light-accent);
  --berry-deep: var(--brand-light-accent-hover);
  --on-berry: var(--brand-light-on-accent);
  --line: var(--border-light-default);
  --line-soft: var(--border-light-subtle);
  --gutter: clamp(1rem, 4vw, 3rem);
  --frame: 72rem;
  --measure: 38rem;
  --bubble-radius: 1.6rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: 0.5rem 1rem; background: var(--pearl); border-radius: 999px; }
.skip-link:focus { top: 1rem; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--fg-heading);
  line-height: 1.12;
  text-wrap: balance;
}

h1 { margin: 0; font-size: clamp(2.2rem, 5.4vw, 3.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin: 2.6rem 0 0.9rem; }
h3 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }

a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* ---------- Header: static bar, brand left, berry question pill right ---------- */

.site-header { position: static; border-bottom: 1px solid var(--line-soft); }

.header-inner {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: block; line-height: 0; text-decoration: none; }
.brand .site-logo { width: clamp(13rem, 30vw, 18.75rem); height: auto; }

.menu-dock { border-radius: 999px; flex: 0 0 auto; }

.site-menu > summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.9rem;
  padding: 0.55rem 1.15rem 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
}
.site-menu > summary:hover .menu-label { text-decoration: underline; text-underline-offset: 0.2em; }

.menu-icon {
  position: relative;
  width: 1.35rem;
  height: 1.05rem;
  border: 2px solid currentColor;
  border-radius: 0.55rem 0.55rem 0.55rem 0.15rem;
}
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  top: 0.32rem;
  border-top: 2px solid currentColor;
  border-radius: 1px;
}

.site-menu > ul {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  width: min(23rem, 88vw);
  margin: 0;
  padding: 5.5rem 1.75rem 2rem;
  list-style: none;
  overflow-y: auto;
  background: var(--berry-ground);
  border-radius: 2rem 0 0 2rem;
  box-shadow: -1.5rem 0 3rem rgba(104, 23, 60, 0.18);
  animation: index-in 260ms ease-out;
}
.site-menu[open] > summary { position: relative; z-index: 41; }
.site-menu > ul li { border-bottom: 1px solid var(--line-soft); }
.site-menu > ul a {
  display: block;
  padding: 0.95rem 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
  text-decoration: none;
}
.site-menu > ul a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.site-menu > ul ul { list-style: none; margin: 0 0 0.8rem; padding: 0 0 0 1rem; }
.site-menu > ul ul li { border-bottom: 0; }
.site-menu > ul ul a { padding: 0.35rem 0; font-family: var(--font-text); font-size: 1rem; }
.site-menu > summary { color: var(--berry); }

@keyframes index-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ---------- Page frame and breadcrumbs ---------- */

.page-frame { flex: 1 0 auto; width: 100%; max-width: var(--frame); margin: 0 auto; padding: 0 var(--gutter) 4rem; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; margin: 1.4rem 0 0; padding: 0; list-style: none; font-size: 0.92rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--fg-muted); }

/* ---------- Prose shared by every body ---------- */

.prose { max-width: var(--measure); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.55rem; }
.prose li::marker { color: var(--berry); }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 1.4rem 0; padding: 1rem 1.3rem; border-radius: var(--bubble-radius); background: var(--blush); }
.prose figure { margin: 0 0 2rem; }
.prose figure img { display: block; width: 100%; border-radius: 2.4rem 2.4rem 2.4rem 0.6rem; }
.prose figcaption { margin-top: 0.5rem; font-size: 0.9rem; color: var(--fg-muted); }
.prose section[data-section][style] { border-radius: 2rem; margin: 2rem 0; }

/* ---------- Home: cover question, then a stepped trail ---------- */

.home-cover {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-areas: "question contour" "bubble contour";
  gap: 1.6rem 2.5rem;
  align-items: end;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}
.cover-question { grid-area: question; }
.cover-question h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 15ch; }
.cover-bubble {
  grid-area: bubble;
  position: relative;
  max-width: 32rem;
  padding: 1.3rem 1.6rem;
  border-radius: var(--bubble-radius) var(--bubble-radius) var(--bubble-radius) 0.3rem;
  font-size: 1.12rem;
}
.cover-bubble .display-line { margin: 0; }
.cover-bubble .display-line + .display-line { margin-top: 0.6rem; color: var(--fg-muted); }
.cover-contour { grid-area: contour; justify-self: center; width: min(100%, 14rem); height: auto; color: var(--berry); }

.trail { max-width: 52rem; position: relative; padding-left: 2.6rem; }
.trail::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0.4rem;
  bottom: 0.4rem;
  border-left: 2px dashed var(--line-soft);
}
.trail > * { max-width: var(--measure); }
.trail > h2 { position: relative; color: var(--berry); }
.trail > h2::before {
  content: "";
  position: absolute;
  left: -2.55rem;
  top: 0.15em;
  width: 1.3rem;
  height: 1.3rem;
  border: 2px solid var(--berry);
  border-color: var(--berry) var(--berry) transparent transparent;
  border-radius: 50%;
  background: var(--pearl);
  transform: rotate(-20deg);
}
.trail > h2 + p {
  padding: 1.05rem 1.35rem;
  border-radius: 0.3rem var(--bubble-radius) var(--bubble-radius) var(--bubble-radius);
  background: var(--blush);
}
.trail > h2:nth-of-type(2), .trail > h2:nth-of-type(2) ~ * { margin-left: clamp(0.75rem, 5vw, 4rem); }
.trail > h2:nth-of-type(3), .trail > h2:nth-of-type(3) ~ * { margin-left: clamp(1.5rem, 10vw, 8rem); }
.trail > h2:nth-of-type(4), .trail > h2:nth-of-type(4) ~ * { margin-left: clamp(2.25rem, 15vw, 12rem); }
.trail > ul { list-style: none; padding-left: 0; }
.trail > ul > li { padding: 0.75rem 0 0.75rem 1rem; border-left: 3px solid var(--line-soft); margin-bottom: 0.4rem; }

/* ---------- Question detail: one answer column ---------- */

.answer-column { max-width: 44rem; margin: 0 auto; padding-top: clamp(2rem, 6vw, 4rem); }
.answer-question h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.answer-body { margin-top: 1.8rem; max-width: none; }
.answer-body > p:first-of-type {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.3rem 1.6rem;
  border-radius: 0.3rem var(--bubble-radius) var(--bubble-radius) var(--bubble-radius);
  background: var(--blush);
  font-size: 1.15rem;
  line-height: 1.55;
}
.answer-body > h2 { padding-top: 1.4rem; border-top: 1px solid var(--line-soft); }
.answer-body > ol { counter-reset: ask; list-style: none; padding-left: 0; }
.answer-body > ol > li {
  counter-increment: ask;
  position: relative;
  padding: 0.2rem 0 0.2rem 2.6rem;
}
.answer-body > ol > li::before {
  content: counter(ask);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50% 50% 50% 0.2rem;
  background: var(--blush);
  color: var(--berry);
  font-family: var(--font-display);
  text-align: center;
  line-height: 1.8rem;
}

/* ---------- Topic cluster: grid of question cards ---------- */

.cluster { padding-top: clamp(2rem, 6vw, 4rem); }
.cluster-head { display: flex; align-items: flex-end; gap: 1.2rem; }
.cluster-glyph { flex: 0 0 auto; width: 3.6rem; height: auto; color: var(--berry); }
.cluster-intro { margin-top: 1.6rem; }
.cluster-cards ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.1rem;
  margin: 2.6rem 0 0;
  padding: 0;
  list-style: none;
}
.cluster-cards ul:empty { display: none; }
.cluster-cards li {
  position: relative;
  padding: 1.25rem 1.3rem 1.25rem 3.3rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--bubble-radius) var(--bubble-radius) var(--bubble-radius) 0.3rem;
  background: var(--pearl);
}
.cluster-cards li::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 1.35rem;
  width: 1.2rem;
  height: 1.5rem;
  border: 2px solid var(--berry);
  border-color: var(--berry) transparent var(--berry) var(--berry);
  border-radius: 60% 40% 50% 50%;
}
.cluster-cards li:hover { border-color: var(--line); }
.cluster-cards a { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.25; text-decoration: none; }
.cluster-cards a:hover { text-decoration: underline; }

/* ---------- Geo cluster: split side panel and body ---------- */

.geo {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  padding-top: clamp(2rem, 6vw, 4rem);
}
.geo-side { padding: 1.8rem 1.6rem; border-radius: 2rem 2rem 2rem 0.4rem; }
.geo-title h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
.geo-contour { display: block; width: 100%; height: auto; margin: 1.2rem 0 0.4rem; color: var(--berry); }
.geo-items ul { margin: 0.8rem 0 0; padding: 0; list-style: none; }
.geo-items ul:empty { display: none; }
.geo-items li { padding: 0.45rem 0; border-top: 1px solid var(--line-soft); }
.geo-body { max-width: var(--measure); }
.geo-body > ul { list-style: none; padding-left: 0; display: grid; gap: 0.8rem; }
.geo-body > ul > li {
  margin: 0;
  padding: 1rem 1.2rem;
  border-radius: 0.3rem var(--bubble-radius) var(--bubble-radius) var(--bubble-radius);
  background: var(--blush);
}
.geo-body > h2:first-child { margin-top: 0; }

/* ---------- About: split portrait and answer-style bio ---------- */

.profile {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
  padding-top: clamp(2rem, 6vw, 4rem);
}
.profile-portrait { color: var(--berry); padding: 1.5rem; border-radius: 50% 50% 46% 46% / 42% 42% 58% 58%; background: var(--blush); }
.profile-portrait svg { display: block; width: 100%; height: auto; }
.profile-body { margin-top: 1.5rem; }
.profile-body > p:first-of-type {
  padding: 1.2rem 1.5rem;
  border-radius: 0.3rem var(--bubble-radius) var(--bubble-radius) var(--bubble-radius);
  background: var(--blush);
  font-size: 1.12rem;
}

/* ---------- Contact: a speech-bubble question form ---------- */

.ask { max-width: 40rem; margin: 0 auto; padding-top: clamp(2rem, 6vw, 4rem); }
.ask-body { margin-top: 1.4rem; }
.ask-bubble {
  position: relative;
  display: grid;
  gap: 1.1rem;
  margin: 2.2rem 0 1.5rem;
  padding: 1.8rem clamp(1.2rem, 4vw, 2.2rem) 2rem;
  border-radius: var(--bubble-radius) var(--bubble-radius) var(--bubble-radius) 0.3rem;
}
.ask-bubble::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1.1rem;
  border-left: 1.4rem solid var(--blush);
  border-bottom: 1.1rem solid transparent;
}
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; }
.field input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--pearl);
  color: var(--fg-body);
  font: inherit;
}
.field input:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }
.ask-button {
  justify-self: start;
  min-height: 2.9rem;
  padding: 0.7rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--berry);
  color: var(--on-berry);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.ask-button:hover { background: var(--berry-deep); }

/* ---------- Thank you: berry bubble beside related reading ---------- */

.thanks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  padding-top: clamp(2rem, 6vw, 4rem);
}
.thanks-bubble {
  position: relative;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: 2.2rem 2.2rem 2.2rem 0.4rem;
}
.thanks-bubble::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1.2rem;
  border-left: 1.6rem solid var(--berry-ground);
  border-bottom: 1.2rem solid transparent;
}
.thanks-bubble h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.thanks-body > h2:first-child { margin-top: 0; }

/* ---------- Footer ---------- */

.site-footer { margin-top: 2rem; border-radius: 2.5rem 2.5rem 0 0; }
.footer-inner {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 2.4rem var(--gutter) 2.8rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1.4rem;
  align-items: center;
}
.footer-contour { grid-row: span 2; width: 5.5rem; height: auto; opacity: 0.8; }
.footer-name { margin: 0; font-family: var(--font-display); font-size: 1.3rem; }
.footer-name a { text-decoration: none; }
.footer-name a:hover { text-decoration: underline; }
.footer-line { margin: 0; max-width: 34rem; }
.footer-areas { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin: 0.6rem 0 0; padding: 0; list-style: none; }
.footer-contour { color: var(--berry); }

/* ---------- Narrow screens ---------- */

@media (max-width: 52rem) {
  .home-cover { grid-template-columns: minmax(0, 1fr); grid-template-areas: "question" "bubble"; }
  .cover-contour { display: none; }
  .geo, .profile, .thanks { grid-template-columns: minmax(0, 1fr); }
  .profile-portrait { max-width: 12rem; }
  .trail { padding-left: 2.2rem; }
}

@media (max-width: 30rem) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-contour { grid-row: auto; width: 4rem; }
  .footer-areas { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .site-menu > ul { animation: none; }
}
