/* ==========================================================================
   Orimori Café — shared styles for the static marketing & legal pages.
   One warm, dark surface that stays legible in either OS colour scheme:
   the palette is fixed to the café's evening tokens and colour-scheme: dark
   keeps native widgets, scrollbars and overscroll from flashing white.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #21160f;
  --bg-deep: #180f09;
  --panel: #281910;
  --panel-raised: #2e1d13;
  --cream: #f6e8d6;
  --cream-soft: #e7d3bb;
  --cream-dim: #cfb69c;
  --muted: #b99e85;
  --amber: #d38d4f;
  --amber-soft: #e3a970;
  --gold: #eed9bd;
  --focus: #ffdaa5;
  --line: rgba(211, 141, 79, 0.27);
  --line-strong: rgba(211, 141, 79, 0.46);
  --line-faint: rgba(246, 232, 214, 0.11);
  --shadow: 0 32px 70px -46px #000;

  --serif: "Baskerville", "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;

  --wrap: 1120px;
  --measure: 760px;
  --pad: clamp(18px, 5vw, 40px);
  --radius: 18px;
  --header-offset: 88px;
}

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

html {
  min-height: 100%;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 560px at 82% -10%, rgba(211, 141, 79, 0.13), transparent 62%),
    radial-gradient(900px 560px at -12% 22%, rgba(101, 54, 34, 0.24), transparent 66%),
    radial-gradient(820px 560px at 50% 112%, rgba(211, 141, 79, 0.07), transparent 62%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  scroll-behavior: smooth;
  scrollbar-color: #5a3b28 var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  background: transparent;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  max-width: 100%;
}

::selection {
  background: var(--amber);
  color: var(--bg);
}

a {
  color: var(--amber-soft);
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(211, 141, 79, 0.55);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--gold);
  text-decoration-color: currentColor;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Keyboard bypass, hidden until focused. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  color: var(--bg);
  transform: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-faint);
  background: rgba(33, 22, 15, 0.87);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  backdrop-filter: blur(14px) saturate(1.05);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--bg);
  }
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: 13px var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: var(--cream);
  text-decoration: none;
}

.brand:hover {
  color: var(--cream);
}

.crane {
  width: 31px;
  height: auto;
  flex: none;
  color: var(--gold);
  transition: transform 0.4s ease;
}

.brand:hover .crane {
  transform: translateY(-1px) rotate(-3deg);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.34rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 9px;
  border-bottom: 1px solid transparent;
  border-radius: 8px;
  color: var(--cream-dim);
  font-size: 0.86rem;
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.site-nav a:hover {
  color: var(--cream);
  background: rgba(246, 232, 214, 0.05);
}

.site-nav a[aria-current="page"],
.site-nav a[aria-current="true"] {
  color: var(--gold);
  border-bottom-color: var(--amber);
}

/* --------------------------------------------------------------------------
   Page scaffold
   -------------------------------------------------------------------------- */

.page {
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: 0 var(--pad) clamp(40px, 6vw, 64px);
}

.page:focus {
  outline: none;
}

.article {
  max-width: var(--measure);
  margin: 0 auto;
}

.hero {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(46px, 8vw, 84px) 0 clamp(26px, 4vw, 40px);
}

.hero--compact {
  padding-top: clamp(36px, 6vw, 60px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--amber-soft);
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: none;
  background: var(--amber);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--cream);
}

h1 {
  max-width: 19ch;
  margin: 18px 0 0;
  font-size: clamp(2.45rem, 7vw, 4.05rem);
  line-height: 1.03;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.hero--compact h1 {
  font-size: clamp(2.25rem, 5.6vw, 3.4rem);
}

.lede {
  max-width: 58ch;
  margin: clamp(18px, 3vw, 24px) 0 0;
  color: var(--cream-soft);
  font-size: clamp(1.02rem, 2.1vw, 1.18rem);
  line-height: 1.66;
}

.lede--small {
  margin-top: 0;
  font-size: 1rem;
}

.section-note {
  margin: 0;
  color: var(--cream-soft);
  font-size: 0.98rem;
  line-height: 1.66;
}

.signature {
  margin: 22px 0 0;
  color: var(--amber-soft);
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2.4vw, 1.3rem);
  font-style: italic;
  letter-spacing: 0.005em;
}

.lede + .cta-actions {
  margin-top: 26px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.meta-line time {
  font-variant-numeric: tabular-nums;
}

.meta-dot {
  color: var(--amber);
}

/* --------------------------------------------------------------------------
   Sections, prose and cards
   -------------------------------------------------------------------------- */

.section {
  margin-top: clamp(38px, 6vw, 58px);
}

.section > h2 {
  margin: 0 0 14px;
  font-size: clamp(1.72rem, 4vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  margin-bottom: 16px;
}

.section-head > h2 {
  margin: 0;
  font-size: clamp(1.72rem, 4vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.kicker {
  margin: 0 0 8px;
  color: var(--amber-soft);
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.prose p {
  margin: 0 0 1.05em;
  color: var(--cream-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose h2 {
  margin: clamp(34px, 6vw, 46px) 0 10px;
  font-size: clamp(1.55rem, 3.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--gold);
  scroll-margin-top: calc(var(--header-offset) + 24px);
}

.prose h3 {
  margin: 24px 0 6px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
}

.prose ul,
.prose ol {
  margin: 0 0 1.05em;
  padding-left: 1.25em;
}

.prose li {
  margin: 0 0 0.45em;
  color: var(--cream-soft);
}

.prose li::marker {
  color: var(--amber);
}

.prose strong {
  color: var(--cream);
  font-weight: 650;
}

.prose code {
  padding: 0.1em 0.36em;
  border: 1px solid var(--line-faint);
  border-radius: 5px;
  background: rgba(246, 232, 214, 0.07);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

.prose hr {
  height: 1px;
  margin: 32px 0;
  border: 0;
  background: var(--line-faint);
}

/* First paragraph of the brand story gets a paper-coloured drop cap. */
.dropcap > p:first-of-type::first-letter {
  float: left;
  margin: 0.1em 0.12em 0 0;
  color: var(--amber-soft);
  font-family: var(--serif);
  font-size: 3.35em;
  line-height: 0.78;
}

.card {
  position: relative;
  padding: clamp(20px, 3.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(158deg, rgba(246, 232, 214, 0.035), transparent 42%),
    linear-gradient(158deg, var(--panel-raised) 0%, #241610 100%);
  box-shadow: var(--shadow);
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.card h2,
.card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
}

.card p {
  color: var(--cream-soft);
}

.card p:last-child {
  margin-bottom: 0;
}

.card + .card {
  margin-top: 16px;
}

/* Short-version summary on legal pages. */
.summary {
  margin-top: clamp(24px, 4vw, 34px);
  padding: clamp(20px, 3.6vw, 28px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(211, 141, 79, 0.14), transparent 58%),
    linear-gradient(160deg, #2c1c12, #241610);
  box-shadow: var(--shadow);
}

.summary h2 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--amber-soft);
}

.summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.summary li {
  position: relative;
  padding-left: 24px;
  color: var(--cream-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}

.summary li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.summary li strong {
  color: var(--cream);
}

/* On-page contents. */
.toc {
  margin-top: 22px;
  padding: 16px 20px;
  border: 1px solid var(--line-faint);
  border-radius: 14px;
  background: rgba(246, 232, 214, 0.028);
}

.toc-title {
  margin: 0 0 7px;
  color: var(--amber-soft);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px 22px;
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 0.9rem;
}

.toc li {
  color: var(--cream-dim);
}

.toc a {
  color: var(--cream-dim);
  text-decoration-color: transparent;
}

.toc a:hover {
  color: var(--gold);
  text-decoration-color: var(--amber);
}

.toc + .prose {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Cast cards (Mimo & Kori)
   -------------------------------------------------------------------------- */

.cast {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.cast-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(20px, 3.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(130% 100% at 100% 0%, rgba(211, 141, 79, 0.1), transparent 55%),
    linear-gradient(158deg, #2b1b12, #23150f);
  box-shadow: var(--shadow);
}

.seal {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(70% 70% at 40% 28%, rgba(238, 217, 189, 0.12), transparent 70%),
    #2a1a11;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
}

.cast-role {
  margin: 0;
  color: var(--amber-soft);
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cast-card h3 {
  margin: 6px 0 8px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.8vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.cast-card > p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.62;
}

.cast-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.cast-link:hover {
  color: var(--cream);
  border-bottom-color: var(--gold);
}

.cast-link .arrow {
  transition: transform 0.18s ease;
}

.cast-link:hover .arrow {
  transform: translateX(3px);
}

/* Character sheet facts. */
.facts {
  display: grid;
  grid-template-columns: minmax(112px, 150px) minmax(0, 1fr);
  gap: 12px 22px;
  margin: 0;
  padding: clamp(20px, 3.4vw, 28px);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  background: rgba(246, 232, 214, 0.026);
}

.facts dt {
  padding-top: 3px;
  color: var(--amber-soft);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  color: var(--cream-soft);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Personality traits. */
.traits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.trait {
  padding: 16px 18px;
  border: 1px solid var(--line-faint);
  border-radius: 14px;
  background: rgba(246, 232, 214, 0.026);
}

.trait strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.3;
}

.trait span {
  display: block;
  color: var(--cream-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Numbered ritual. */
.ritual {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.ritual li {
  position: relative;
  padding: 14px 0 14px 48px;
  border-top: 1px solid var(--line-faint);
  color: var(--cream-soft);
  font-size: 0.98rem;
  line-height: 1.6;
  counter-increment: step;
}

.ritual li:first-child {
  padding-top: 2px;
  border-top: 0;
}

.ritual li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  color: var(--amber);
  font-family: var(--serif);
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.ritual li:first-child::before {
  top: 3px;
}

.ritual strong {
  color: var(--cream);
}

/* Pull quote. */
.quote {
  margin: clamp(28px, 5vw, 40px) 0 0;
  padding: 4px 0 4px clamp(18px, 3vw, 26px);
  border-left: 2px solid var(--amber);
}

.quote blockquote {
  margin: 0;
}

.quote p {
  margin: 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3.4vw, 1.95rem);
  line-height: 1.38;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.quote figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   CTA, buttons, links
   -------------------------------------------------------------------------- */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: clamp(38px, 6vw, 58px);
  padding: clamp(24px, 4.2vw, 36px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(110% 180% at 0% 0%, rgba(211, 141, 79, 0.17), transparent 56%),
    linear-gradient(158deg, #2d1d13, #23150f);
  box-shadow: var(--shadow);
}

.cta-copy {
  min-width: min(100%, 320px);
  flex: 1 1 320px;
}

.cta-title {
  margin: 6px 0 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.cta-note {
  max-width: 46ch;
  margin: 8px 0 0;
  color: var(--cream-dim);
  font-size: 0.93rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #eec79b;
  border-radius: 999px;
  background: linear-gradient(180deg, #e7b986, #d38d4f);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: filter 0.16s ease, transform 0.16s ease;
}

.button:hover {
  color: var(--bg);
  filter: brightness(1.06);
}

.button:active {
  transform: translateY(1px);
}

.button--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--cream);
}

.button--ghost:hover {
  background: rgba(246, 232, 214, 0.06);
  color: var(--gold);
}

.button .arrow {
  font-size: 1.05em;
  line-height: 1;
}

.text-link {
  color: var(--amber-soft);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}

.text-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  margin-top: 22px;
}

.link-row .text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
}

/* --------------------------------------------------------------------------
   Legal details
   -------------------------------------------------------------------------- */

.data-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.data-list li {
  margin: 0;
  padding: 14px 17px;
  border: 1px solid var(--line-faint);
  border-radius: 12px;
  background: rgba(246, 232, 214, 0.025);
}

.data-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 650;
}

.data-list span {
  display: block;
  color: var(--cream-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}

.callout {
  margin: 22px 0;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 0 12px 12px 0;
  background: rgba(211, 141, 79, 0.075);
  color: var(--cream-soft);
  font-size: 0.93rem;
  line-height: 1.6;
}

.callout p {
  margin: 0 0 0.6em;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout strong {
  color: var(--gold);
}

.faq {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
}

.faq details {
  border: 1px solid var(--line-faint);
  border-radius: 12px;
  background: rgba(246, 232, 214, 0.025);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 10px 16px;
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--amber-soft);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--cream-soft);
  font-size: 0.93rem;
  line-height: 1.62;
}

.faq details p + p {
  padding-top: 0;
  margin-top: -8px;
}

.page-end {
  margin-top: clamp(34px, 5vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line-faint);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.page-end p {
  margin: 0 0 6px;
}

.page-end p:last-child {
  margin-bottom: 0;
}

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

.site-footer {
  margin-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line-faint);
  background: rgba(24, 15, 9, 0.55);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr) minmax(0, 0.75fr);
  gap: 30px;
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: clamp(32px, 5vw, 50px) var(--pad) 28px;
}

.footer-brand .brand {
  margin-bottom: 10px;
}

.footer-note {
  max-width: 36ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

.footer-heading {
  margin: 0 0 8px;
  color: var(--amber-soft);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--cream-dim);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: 16px var(--pad) 30px;
  border-top: 1px solid var(--line-faint);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.footer-base p {
  margin: 0;
}

.footer-base .signoff {
  color: var(--amber-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 880px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 26px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --header-offset: 108px;
  }

  body {
    font-size: 16.5px;
  }

  .header-inner {
    gap: 3px 16px;
    padding-top: 11px;
    padding-bottom: 7px;
  }

  .crane {
    width: 27px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .site-nav {
    width: 100%;
    gap: 0;
    margin-top: 1px;
    padding-top: 5px;
    border-top: 1px solid var(--line-faint);
  }

  .site-nav a {
    min-height: 38px;
    padding: 0 8px;
    font-size: 0.81rem;
  }

  .cast,
  .traits {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta {
    align-items: flex-start;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .button {
    flex: 1 1 220px;
  }
}

@media (max-width: 520px) {
  :root {
    --header-offset: 106px;
  }

  .hero--compact .meta-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .hero--compact .meta-line .meta-dot {
    display: none;
  }

  h1 {
    font-size: clamp(2.15rem, 11vw, 2.65rem);
  }

  .hero--compact h1 {
    font-size: clamp(2.05rem, 10vw, 2.45rem);
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .facts dd {
    margin-bottom: 12px;
  }

  .facts dd:last-of-type {
    margin-bottom: 0;
  }

  .quote {
    padding-left: 18px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }

  .button--ghost {
    width: auto;
  }
}

@media (max-width: 400px) {
  .site-nav a {
    padding: 0 7px;
    font-size: 0.78rem;
  }

  .brand-name {
    font-size: 1.14rem;
  }

  .dropcap > p:first-of-type::first-letter {
    font-size: 2.9em;
  }
}

/* --------------------------------------------------------------------------
   Accessibility preferences & print
   -------------------------------------------------------------------------- */

@media (prefers-contrast: more) {
  :root {
    --cream-soft: #f1dfc9;
    --cream-dim: #e6d2b9;
    --muted: #d6bda4;
    --line: rgba(211, 141, 79, 0.55);
    --line-strong: rgba(211, 141, 79, 0.75);
    --line-faint: rgba(246, 232, 214, 0.28);
  }
}

@media (forced-colors: active) {
  .card,
  .cast-card,
  .summary,
  .cta,
  .facts,
  .trait,
  .toc,
  .data-list li,
  .faq details,
  .callout,
  .button {
    border: 1px solid CanvasText;
  }

  .crane {
    color: CanvasText;
  }

  .site-nav a[aria-current="page"],
  .site-nav a[aria-current="true"] {
    text-decoration: underline;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .brand:hover .crane,
  .cast-link:hover .arrow {
    transform: none;
  }
}

@media print {
  :root {
    color-scheme: light;
    --bg: #fff;
    --cream: #241710;
    --cream-soft: #2c1d15;
    --cream-dim: #3a281d;
    --muted: #4b3528;
    --amber: #8a5427;
    --amber-soft: #7a471f;
    --gold: #241710;
    --line: #c9b9a8;
    --line-strong: #a8937e;
    --line-faint: #ddd2c6;
    --shadow: none;
  }

  html {
    background: #fff;
  }

  body {
    color: #241710;
    font-size: 11.5pt;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .cta,
  .toc {
    display: none;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .hero {
    padding-top: 0;
  }

  .card,
  .summary,
  .facts,
  .trait,
  .data-list li,
  .callout,
  .faq details {
    background: #fff;
    box-shadow: none;
    break-inside: avoid;
  }

  a {
    color: #241710;
    text-decoration: underline;
  }

  .prose h2 {
    break-after: avoid;
  }
}
