:root {
  --ink: #241f1c;
  --muted: #5c534c;
  --paper: #f4efe6;
  --paper-deep: #e7dfd2;
  --cream: #fbf7f1;
  --olive: #4d5c40;
  --olive-deep: #2f3b2a;
  --terracotta: #8d3f2e;
  --terracotta-deep: #732f22;
  --line: rgba(36, 31, 28, .16);
  --line-strong: rgba(36, 31, 28, .32);
  --white: #fbf7f1;
  --shadow: 0 24px 50px rgba(36, 31, 28, .08);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Source Serif 4", "Palatino Linotype", Palatino, serif;
  --header-offset: 0px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-synthesis: none;
  color-scheme: light;
}

html[data-theme="dark"],
html.dark,
html.theme-dark {
  --ink: #f3ece3;
  --muted: #cbbfb2;
  --paper: #1b1815;
  --paper-deep: #2a2521;
  --cream: #241f1c;
  --olive: #c5d2b4;
  --olive-deep: #d7e2c8;
  --terracotta: #e39a86;
  --terracotta-deep: #f0b5a4;
  --line: rgba(243, 236, 227, .16);
  --line-strong: rgba(243, 236, 227, .38);
  --white: #141210;
  --shadow: 0 24px 50px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 0 0, rgba(141, 63, 46, .06), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.7;
  hyphens: auto;
}
img { max-width: 100%; height: auto; }
a { color: var(--terracotta); text-underline-offset: .16em; }
a:hover { color: var(--terracotta-deep); }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(141, 63, 46, .2); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: .4rem .7rem;
  z-index: 20;
}
.skip-link:focus { top: .6rem; }

.site-header {
  position: relative;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.35rem 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand tools" "nav nav";
  align-items: center;
  column-gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 3.2rem;
}
.brand:hover { color: var(--terracotta); }
.brand-mark { width: 2.8rem; height: 2.8rem; flex: 0 0 auto; }
.mark-leaf { stroke: var(--terracotta); }
.brand-copy { display: grid; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -.02em;
}
.brand-name .of, .footer-brand .of, h1 .of { font-style: italic; font-weight: 500; }
.brand-tag {
  margin-top: .35rem;
  color: var(--terracotta);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0;
}
.header-tools { grid-area: tools; display: flex; align-items: center; gap: .5rem; }
.theme-toggle, .nickel-8828 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle { width: 2.4rem; padding: 0; }
.theme-toggle svg { width: 1.1rem; height: 1.1rem; }
.nickel-8828 {
  display: none;
  padding: .35rem .8rem;
  font-size: .95rem;
}
.site-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: .15rem 1.35rem;
  padding: .95rem 0 .9rem;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.02rem;
  padding: .2rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

.shell { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }
.timber-ab91 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12.5rem;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding: 2.6rem 0 5rem;
}
.timber-ab91:has([data-sageeb][hidden]) { grid-template-columns: minmax(0, 1fr); }
[data-sageeb][hidden] { display: none; }
.main-column { min-width: 0; }
.silver-398e {
  position: sticky;
  top: 1.25rem;
  padding: .2rem 0 .2rem 1rem;
  border-left: 1px solid var(--terracotta);
}
.silver-398e h2 {
  margin: 0 0 .8rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0;
  color: var(--terracotta);
}
.silver-398e ol { list-style: none; margin: 0; padding: 0; }
.silver-398e li + li { margin-top: .55rem; }
.silver-398e a { font-size: .95rem; text-decoration: none; }

.kicker {
  margin: 0 0 .7rem;
  color: var(--terracotta);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; line-height: 1.08; hyphens: manual; }
h1 { margin: 0; font-size: clamp(3.1rem, 7vw, 5.6rem); }
h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.3rem); }
h3 { margin: 0; font-size: 1.7rem; }
p { margin: 0; }
.lede, .section-intro p, .prose-lead p { color: var(--muted); }
.lede { max-width: 40rem; font-size: 1.18rem; line-height: 1.65; }
.tagline {
  margin: .85rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  color: var(--olive);
}
.section-intro { display: grid; gap: .7rem; max-width: 40rem; margin-bottom: 1.6rem; }
.section-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: 1.4rem 0 0; }
.section-nav a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.section-nav a:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, .9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.hero-copy { display: grid; align-content: end; gap: 0; padding-bottom: .4rem; }
.hero .lede { margin-top: 1.15rem; }
.hero-art { margin: 0; }
.hero-art img, .frame img, .portrait img, .place-card img, .gallery-item img {
  display: block;
  width: 100%;
  object-fit: cover;
  background: var(--paper-deep);
}
.hero-art img { aspect-ratio: 4 / 5; }
.hero-art figcaption, .frame figcaption, .gallery-item figcaption {
  margin-top: .55rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.1rem; margin-top: 1.7rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: .55rem 1.15rem;
  border: 1px solid var(--terracotta);
  background: var(--terracotta);
  color: #fbf7f1;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); color: #fbf7f1; }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button.ghost:hover { color: var(--terracotta); border-color: var(--terracotta); background: transparent; }
.text-link {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.home-section { margin-top: 4.5rem; }
.intro-split, .split {
  display: grid;
  grid-template-columns: minmax(14rem, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.4rem, 4vw, 3.5rem);
  align-items: start;
}
.prose-lead { display: grid; gap: 1rem; color: var(--muted); }
.quiet-list { margin: .2rem 0 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.quiet-list li { padding-left: 1rem; border-left: 1px solid var(--terracotta); color: var(--ink); }

.news-grid, .ridge-c09c {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
  gap: 1.8rem 1.4rem;
  align-items: start;
}
.meadow-74c1 {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
}
.meadow-74c1 .quiet-a692 { display: contents; }
.quiet-9d9d {
  display: block;
  position: relative;
  order: -1;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: .7rem;
  background: var(--paper-deep);
}
.quiet-9d9d img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.marble-5636 {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .8rem;
  color: var(--muted);
  font-size: .92rem;
}
.tide-7b26 { color: var(--terracotta); text-decoration: none; font-style: italic; font-family: var(--font-display); font-size: 1.08rem; }
.meadow-74c1 h3 { font-size: 1.7rem; }
.meadow-74c1 h3 a { color: var(--ink); text-decoration: none; }
.meadow-74c1 h3 a:hover { color: var(--terracotta); }
.meadow-74c1 p { color: var(--muted); font-size: 1rem; }
.amber-bcfe { display: flex; align-items: center; gap: .5rem; margin-top: .35rem; color: var(--muted); font-size: .95rem; }
.lantern-78c0 { width: 1.7rem; height: 1.7rem; border-radius: 50%; object-fit: cover; }
.atlas-d3a5 { padding: 1.1rem 0; color: var(--muted); border-top: 1px solid var(--line); }
.lantern-62b8 { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.lantern-62b8 a { color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; }
.lantern-62b8 time { display: block; color: var(--muted); font-size: .9rem; }

.portrait-grid, .place-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.portrait, .place-card, .value-card {
  display: grid;
  align-content: start;
  gap: .45rem;
}
.portrait img, .place-card img { aspect-ratio: 4 / 5; }
.place-card img { aspect-ratio: 5 / 4; }
.relation { color: var(--olive); font-family: var(--font-display); font-style: italic; font-size: 1.12rem; }
.portrait p, .place-card p, .value-card p { color: var(--muted); }

.invite {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 1.5rem 2rem;
  align-items: end;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background: #2f3b2a;
  color: #f6f1e7;
}
.invite .kicker, .invite a:not(.button) { color: #e7b2a3; }
.invite p { color: rgba(246, 241, 231, .82); max-width: 38rem; margin-top: .8rem; }
.invite .button { background: #8d3f2e; border-color: #8d3f2e; color: #fbf7f1; }
.invite .button:hover { background: #a3523e; border-color: #a3523e; color: #fbf7f1; }

.page-hero { padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.page-hero .lede { margin-top: 1rem; }
.content-block { margin-top: 3.2rem; }
.content-block .split { margin-top: 1.2rem; }
.frame img { aspect-ratio: 4 / 3; }

.lineage { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0; }
.lineage li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.lineage span { color: var(--terracotta); font-family: var(--font-display); font-style: italic; font-size: 1.2rem; }
.lineage p { color: var(--muted); margin-top: .3rem; }

.archive-head { display: grid; gap: 1.2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.archive-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem .7rem; align-items: end; max-width: 40rem; }
.archive-form label { grid-column: 1 / -1; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; }
.archive-form input, .field input, .field textarea, .field select {
  width: 100%;
  min-height: 2.8rem;
  padding: .55rem .75rem;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  border-radius: 0;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.archive-form input:focus, .field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}
.filter-list, .period-filters, .gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 1.4rem; }
.filter-list:empty { display: none; }
.bloom-d2b8, .period-filters button, .gallery-filters button {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  padding: .35rem .7rem;
  cursor: pointer;
  font-size: .98rem;
}
.bloom-d2b8:hover, .period-filters button:hover, .gallery-filters button:hover,
.bloom-d2b8.sable-82d5, .period-filters button.sable-82d5, .gallery-filters button.sable-82d5 {
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.archive-note { color: var(--muted); max-width: 42rem; margin-bottom: 1rem; }

.memory-map { margin-top: 1.2rem; display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.memory-map svg { width: 100%; height: auto; }
.memory-map ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .9rem; }
.memory-map li { color: var(--muted); }
.memory-map strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; }

.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem 1rem; }
.gallery-item { grid-column: span 4; margin: 0; }
.gallery-item:nth-child(3n + 1) { grid-column: span 5; }
.gallery-item:nth-child(3n + 2) { grid-column: span 3; }
.gallery-item button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  color: inherit;
  text-align: left;
}
.gallery-item img { aspect-ratio: 4 / 3; }
.gallery-item[hidden] { display: none; }
.lightbox {
  position: relative;
  width: min(920px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  border: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}
.lightbox::backdrop { background: rgba(20, 16, 12, .72); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: var(--paper-deep); }
.lightbox figcaption { padding: .8rem 1rem 1rem; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; }
.lightbox-close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  color: var(--ink);
  padding: .3rem .65rem;
  cursor: pointer;
}

.form-grid { display: grid; gap: 1rem; max-width: 40rem; }
.field { display: grid; gap: .3rem; }
.field label { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; }
.field .hint, .form-note { color: var(--muted); font-size: .98rem; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .7rem; color: var(--muted); }
.steps strong { color: var(--ink); font-weight: 500; }

.value-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.value-card { padding-top: .8rem; border-top: 1px solid var(--terracotta); }

.byline {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: .15rem .8rem;
  align-items: center;
  margin: 0 0 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.byline[hidden] { display: none; }
.byline img { grid-row: span 2; width: 3.2rem; height: 3.2rem; border-radius: 50%; object-fit: cover; background: var(--paper-deep); }
.byline p { color: var(--muted); font-size: .95rem; }
.article-reader { max-width: 44rem; }
main#mist-912e > header.ridge-d1c4 { display: grid !important; gap: .8rem; }
.ridge-d1c4 h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.jasper-2927 { color: var(--muted); font-size: 1.2rem; }
.solace-5d51 { margin: 1.4rem 0 1.6rem; }
.prose { max-width: 40rem; }
.prose p, .prose li { font-size: 1.08rem; line-height: 1.75; }
.prose p { margin: 0 0 1.15rem; }
.prose h2, .prose h3 { margin: 2rem 0 .7rem; }
.prose blockquote {
  margin: 1.4rem 0;
  padding-left: 1rem;
  border-left: 1px solid var(--terracotta);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.3;
  color: var(--ink);
}
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.2rem; }
.prose img, .ridge-cb25 { margin: 1.2rem 0; }

.not-found { min-height: 48vh; display: grid; align-content: center; gap: .8rem; }
.not-found p { max-width: 36rem; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.6rem; }
.footer-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(12rem, 1.1fr) minmax(0, 1.4fr) minmax(12rem, .9fr);
  gap: 1.5rem 2rem;
}
.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
}
.footer-brand p { margin-top: .25rem; color: var(--terracotta); font-family: var(--font-display); font-style: italic; font-size: 1.15rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; align-content: start; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--terracotta); }
.footer-contact { display: grid; gap: .25rem; color: var(--muted); }
.footer-contact a { color: var(--ink); }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (max-width: 900px) {
  .nickel-8828 { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    z-index: 6;
    top: calc(100% - .2rem);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: .15rem;
    padding: .7rem .9rem 1rem;
    background: var(--cream);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.amber-609e { display: flex; }
  .timber-ab91 { grid-template-columns: 1fr; padding-top: 1.8rem; }
  .silver-398e { position: static; order: 2; }
  .hero, .intro-split, .split, .invite, .portrait-grid, .place-grid, .value-list, .memory-map, .footer-inner, .lineage li {
    grid-template-columns: 1fr;
  }
  .invite { align-items: start; }
  .gallery-item, .gallery-item:nth-child(n) { grid-column: span 6; }
  .archive-form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header, .shell, .footer-inner { width: min(100% - 1.5rem, 1120px); }
  .brand-tag { display: none; }
  h1 { font-size: clamp(2.6rem, 14vw, 3.6rem); }
  .gallery-item, .gallery-item:nth-child(n) { grid-column: span 12; }
  .hero-art img { aspect-ratio: 3 / 2; }
}
