@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/eb-garamond-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Khula'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/khula-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Khula'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/khula-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Khula'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/khula-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Khula'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/khula-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Khula'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/khula-latin-800-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f6f0e6;
  --fg-light-base-body: #2b1d1a;
  --fg-light-base-heading: #2b1d1a;
  --fg-light-base-muted: #65524b;
  --fg-light-base-link: #9c2f45;
  --fg-light-base-inverse: #3b1f24;
  --bg-light-card: #fcf9f3;
  --fg-light-card-body: #2b1d1a;
  --fg-light-card-heading: #2b1d1a;
  --fg-light-card-muted: #65524b;
  --fg-light-card-link: #9c2f45;
  --fg-light-card-inverse: #3b1f24;
  --bg-light-elevated: #e7dccd;
  --fg-light-elevated-body: #2b1d1a;
  --fg-light-elevated-heading: #2b1d1a;
  --fg-light-elevated-muted: #4b3934;
  --fg-light-elevated-link: #7d2236;
  --fg-light-elevated-inverse: #3b1f24;
  --brand-light-accent: #9c2f45;
  --brand-light-accent-hover: #7d2236;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #9c2f45;
  --border-light-default: #8a6f66;
  --border-light-subtle: #d8c9b8;
}
.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; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
: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); }

:root {
  --serif: 'EB Garamond', Garamond, Georgia, 'Times New Roman', serif;
  --sans: 'Khula', 'Gill Sans', 'Segoe UI', sans-serif;
  --rose: var(--brand-light-accent);
  --rose-deep: var(--brand-light-accent-hover);
  --cream: var(--bg-light-base);
  --paper: var(--bg-light-card);
  --stone: var(--bg-light-elevated);
  --ink: var(--fg-light-base-heading);
  --edge: var(--border-light-default);
  --hair: var(--border-light-subtle);
  --gutter: clamp(1rem, 4vw, 3rem);
  --rail: 17.5rem;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  line-height: 1.15;
  margin: 2.4em 0 0.55em;
}

h2::before {
  content: "";
  display: block;
  width: 3.25rem;
  margin-bottom: 0.85rem;
  border-top: 3px double var(--rose);
}

h3 { font-size: 1.25rem; line-height: 1.25; margin: 1.5em 0 0.35em; }

p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
li::marker { color: var(--rose); }
strong { font-weight: 700; }

a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--paper);
  border: 1px solid var(--rose);
}

.skip-link:focus { top: 0.75rem; }

/* framed panel: a hairline rose frame with an inner moulding line */
.welcome, .chapter-head, .chapter-entries, .leaf-side, .quarter-head,
.letter-portrait, .parlour-form, .stoop-panel, .vestibule-panel {
  border: 1px solid var(--rose);
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--hair);
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

/* ---------- chrome: header bar on phones, side rail on desktop ---------- */

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem var(--gutter);
  border-bottom: 3px double var(--rose);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.brand .site-logo { display: block; width: clamp(11rem, 52vw, 14rem); height: auto; }

.rail { display: none; }

details.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.35rem 0.95rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--rose);
  border-radius: 999px;
}

details.site-menu > summary::-webkit-details-marker { display: none; }

details.site-menu[open] > summary { background: var(--paper); }

.menu-icon {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

details.site-menu[open] > ul {
  position: absolute;
  inset: 100% 0 auto 0;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  margin: 0;
  padding: 0.4rem var(--gutter) 1.4rem;
  list-style: none;
  background: var(--stone);
  border-bottom: 3px double var(--rose);
}

details.site-menu li { margin: 0; border-bottom: 1px solid var(--hair); }

details.site-menu li a {
  display: block;
  padding: 0.8rem 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  text-decoration: none;
}

details.site-menu ul ul { list-style: none; margin: 0 0 0.5rem; padding-left: 1rem; }
details.site-menu ul ul li { border-bottom: 0; }
details.site-menu ul ul a { padding: 0.45rem 0; font-family: var(--sans); font-size: 1rem; }

.rooms { min-width: 0; }

.room {
  max-width: 54rem;
  padding: 0 var(--gutter) clamp(3rem, 8vw, 6rem);
}

main { display: block; padding-top: clamp(1.25rem, 3.5vw, 2.5rem); }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "\203A"; margin-right: 0.6rem; color: var(--rose); }

@media (min-width: 64em) {
  .house {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    min-height: 100vh;
  }
  .site-header {
    position: static;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2rem;
    padding: 2.25rem 1.6rem;
    border-bottom: 0;
    border-right: 3px double var(--rose);
  }
  .brand .site-logo { width: 100%; }
  details.site-menu { display: none; }
  .rail { display: block; }
  .room { padding-inline: clamp(2rem, 4.5vw, 4.5rem); }
}

.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav li { margin: 0; border-top: 1px solid var(--hair); }
.site-nav > ul > li:last-child { border-bottom: 1px solid var(--hair); }

.site-nav a,
details.site-nav-group > summary {
  display: block;
  padding: 0.7rem 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.25;
  text-decoration: none;
}

.site-nav a:hover { color: var(--rose-deep); text-decoration: underline; }

details.site-nav-group > summary { cursor: pointer; list-style: none; }
details.site-nav-group > summary::-webkit-details-marker { display: none; }
details.site-nav-group > summary::after { content: "+"; float: right; color: var(--rose-deep); }
details.site-nav-group[open] > summary::after { content: "\2212"; }

details.site-nav-group[open] > ul { padding: 0 0 0.6rem 0.9rem; }
details.site-nav-group li { border: 0; }
details.site-nav-group li a { padding: 0.35rem 0; font-family: var(--sans); font-size: 0.95rem; }

/* ---------- footer ---------- */

.site-footer {
  padding: 2rem var(--gutter) 2.5rem;
  border-top: 3px double var(--rose);
}

.foot-line {
  max-width: 34rem;
  margin: 0 0 0.8rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
}

.foot-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-areas li { margin: 0; }
.foot-areas a { display: inline-block; padding: 0.55rem 0; }

@media (min-width: 64em) {
  .site-footer { padding-inline: clamp(2rem, 4.5vw, 4.5rem); }
}

/* ---------- photos ---------- */

figure { margin: 0 0 1.5rem; }
figure img { display: block; width: 100%; height: auto; }
figcaption { margin-top: 0.45rem; font-size: 0.9rem; }

.photo-hero img { aspect-ratio: 4 / 3; object-fit: cover; }

section[data-section][style] {
  margin: 2.5rem 0;
  padding: clamp(2.25rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem);
}

section[data-section][style] > .bg-surface-card {
  max-width: 34rem;
  padding: clamp(1.25rem, 3.5vw, 2rem);
  border: 1px solid var(--rose);
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--hair);
}

section[data-section][style] > .bg-surface-card h2:first-child { margin-top: 0; }

/* ---------- home: arched welcome, then a stepped flight of topics ---------- */

.welcome {
  border-radius: 14rem 14rem 2px 2px;
  padding-top: clamp(3rem, 9vw, 5.5rem);
  text-align: center;
}

.welcome h1 { max-width: 14ch; margin-inline: auto; font-size: clamp(2.5rem, 7vw, 4.4rem); }

.welcome-lines { max-width: 34rem; margin: 1.4rem auto 0; }

.display-line {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.4;
}

.display-line:last-child { margin-bottom: 0; }

.flight { margin-top: clamp(2rem, 5vw, 3rem); }

.flight > .photo-hero img { aspect-ratio: 3 / 2; border-radius: 10rem 10rem 0 0; }

.flight > p:first-of-type { font-size: 1.2rem; }

@media (min-width: 52em) {
  .flight > .photo-hero {
    float: right;
    width: 42%;
    margin: 0.3rem 0 1.5rem 2.25rem;
  }
  .flight > .photo-hero img { aspect-ratio: 4 / 5; }
  .flight > h2 { clear: both; }
  .flight > h2:nth-of-type(2), .flight > h2:nth-of-type(2) ~ * { margin-left: 2.5rem; }
  .flight > h2:nth-of-type(3), .flight > h2:nth-of-type(3) ~ * { margin-left: 5rem; }
  .flight > h2:nth-of-type(4), .flight > h2:nth-of-type(4) ~ * { margin-left: 7.5rem; }
  .flight > h2:nth-of-type(n+2) ~ :not(h2) { max-width: 38rem; }
}

/* ---------- topic cluster: chapter opening, then numbered entries ---------- */

.chapter-head h1 { max-width: 20ch; }

.chapter-body { margin-top: clamp(1.75rem, 4vw, 2.5rem); max-width: 42rem; }

.chapter-body > p:first-of-type { font-size: 1.2rem; }

.chapter-body > .photo-hero img { aspect-ratio: 16 / 9; }

.chapter-entries { margin-top: 2.5rem; }

.chapter-entries ul {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: entry;
}

.chapter-entries li {
  counter-increment: entry;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: baseline;
  margin: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hair);
}

.chapter-entries li:last-child { border-bottom: 0; }

.chapter-entries li::before {
  content: counter(entry, upper-roman);
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--rose-deep);
}

.chapter-entries a {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
  text-decoration: none;
}

.chapter-entries a:hover { text-decoration: underline; }

@media (min-width: 52em) {
  .chapter-entries li:nth-child(3n+2) { margin-left: 2rem; }
  .chapter-entries li:nth-child(3n) { margin-left: 4rem; }
}

/* ---------- question detail: framed title beside the answer ---------- */

.leaf-title h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); line-height: 1.1; }

.leaf-book {
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}

.leaf-body { margin-top: 2rem; max-width: 40rem; }

.leaf-body > p:first-of-type:not(figure ~ p),
.leaf-body > .photo-hero + p {
  padding: 1.1rem 1.25rem;
  font-size: 1.15rem;
  background: var(--paper);
  border-left: 4px solid var(--rose);
}

.leaf-body > h2:first-of-type { margin-top: 1.75rem; }

@media (min-width: 75em) {
  .leaf {
    display: grid;
    grid-template-columns: minmax(17rem, 1fr) minmax(0, 1.6fr);
    column-gap: 2.75rem;
    align-items: start;
  }
  .leaf-side { padding: 1.5rem; }
  .leaf-title h1 { font-size: 1.8rem; overflow-wrap: normal; }
  .leaf-body { margin-top: 0; }
}

/* ---------- geo cluster: area notes split from local questions ---------- */

.quarter-head h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }

.quarter-split { margin-top: 2rem; }

.quarter-split > p:first-child { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; }

@media (min-width: 52em) {
  .quarter-split {
    columns: 2;
    column-gap: 3rem;
    column-rule: 1px solid var(--rose);
  }
  .quarter-split > h2:first-of-type { break-before: column; margin-top: 0; }
  .quarter-split > h2 { break-after: avoid; }
  .quarter-split li { break-inside: avoid; }
}

/* ---------- about: portrait panel beside the letter ---------- */

.letter-logo .site-logo { display: block; width: 100%; max-width: 15rem; height: auto; margin-bottom: 1.5rem; }

.letter-title h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; }

.letter-body { margin-top: 2rem; max-width: 40rem; }

.letter-body > p:first-of-type { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; }

@media (min-width: 75em) {
  .letter {
    display: grid;
    grid-template-columns: minmax(17rem, 1fr) minmax(0, 1.6fr);
    column-gap: 2.75rem;
    align-items: start;
  }
  .letter-portrait { padding: 1.5rem; }
  .letter-title h1 { font-size: 1.8rem; overflow-wrap: normal; }
  .letter-body { margin-top: 0; }
  .letter-body > h2:first-of-type { margin-top: 1.75rem; }
}

/* ---------- contact: note beside a cream framed form ---------- */

.parlour-title h1 { margin-bottom: 1.25rem; }

.parlour-note { max-width: 38rem; }

.parlour-form {
  display: grid;
  gap: 0.45rem;
  margin-top: 2rem;
}

.pf-label { font-family: var(--serif); font-size: 1.2rem; }

.pf-input {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.8rem;
  font: inherit;
  color: inherit;
  background: var(--cream);
  border: 1px solid var(--edge);
  border-radius: 2px;
}

.pf-button {
  justify-self: start;
  min-height: 48px;
  margin-top: 0.9rem;
  padding: 0.6rem 1.6rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--brand-light-on-accent);
  background: var(--rose);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.pf-button:hover { background: var(--rose-deep); }

@media (min-width: 60em) {
  .parlour {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 1fr);
    column-gap: 3rem;
    align-items: start;
  }
  .parlour-form { margin-top: 0.4rem; }
}

/* ---------- thank you: framed panel, then stepped reading ---------- */

.stoop-panel h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }

.stoop-steps { margin-top: 2rem; max-width: 42rem; }

@media (min-width: 52em) {
  .stoop-steps > p:nth-of-type(2), .stoop-steps > h2 { margin-left: 2.5rem; }
  .stoop-steps > h2 ~ p:nth-of-type(n+3) { margin-left: 5rem; }
}

/* ---------- not found ---------- */

.vestibule-panel { max-width: 40rem; }
.vestibule-panel h1 { font-size: clamp(2rem, 5vw, 3rem); }
.vestibule-body { margin-top: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
