:root {
  --navy: #0e1a2a;
  --ivory: #f6f1e8;
  --paper: #fbf7f1;
  --band: #efe6d6;
  --ink: #1a1714;
  --muted: #4a453d;
  --gold: #e7d3a4;
  --gold-ink: #6e5020;
  --line: rgba(110, 80, 32, 0.35);
  --serif: "Bodoni Moda", "Iowan Old Style", Palatino, "Palatino Linotype", "Songti SC", "STSong", "Noto Serif SC", serif;
  --sans: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --wrap: min(1080px, calc(100% - 2.5rem));
  color-scheme: light;
}

[hidden] { display: none !important; }

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/BodoniModa-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/BodoniModa-500-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

button, input { font: inherit; }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.section :focus-visible,
.band :focus-visible,
.doc :focus-visible {
  outline-color: var(--ink);
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0;
  transform: translateY(-140%);
  background: #fff;
  color: var(--ink);
  padding: 0.55rem 0.85rem;
  z-index: 80;
  text-decoration: none;
}

.skip:focus { transform: none; top: 0.75rem; }

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--navy);
  color: var(--ivory);
  border-top: 2px solid var(--gold);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name,
.footer-lockup .name,
.hero h1 .name {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand-name {
  font-size: 1.55rem;
  color: var(--ivory);
}

.brand-tag,
.footer-lockup .tag {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.brand-tag {
  margin-top: 0.18rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(231, 211, 164, 0.45);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}

.nav-toggle .when-open { display: none; }

.nav-toggle[aria-expanded="true"] .when-closed { display: none; }

.nav-toggle[aria-expanded="true"] .when-open { display: inline; }

#site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
}

#site-nav a {
  color: #f3eee6;
  text-decoration: none;
}

#site-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.22em; }

#site-nav a[aria-current="page"] { color: var(--gold); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
}

.lang-switch button {
  min-width: 2.4rem;
  min-height: 44px;
  padding: 0.2rem 0.35rem;
  border: 0;
  background: transparent;
  color: #cfc6b8;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  color: var(--gold);
  box-shadow: inset 0 -1px 0 var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.55rem 1.05rem;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: #f3e6c8;
  color: var(--navy);
}

.btn-primary:hover { background: #fff8ec; }

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(231, 211, 164, 0.5);
}

.btn-ghost:hover { background: rgba(243, 230, 200, 0.08); }

.hero {
  background: var(--navy);
  color: var(--ivory);
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 0 3.25rem;
  align-items: center;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 0;
  color: var(--ivory);
  font-weight: 500;
}

.hero h1 .name {
  display: block;
  font-size: clamp(3.4rem, 15vw, 7.15rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
}

.hero h1 .tagline {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.15;
  color: var(--gold);
}

.lead {
  max-width: 36rem;
  margin: 1.15rem 0 0;
  font-size: 1.12rem;
  line-height: 1.75;
  color: #f3eee6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.fine {
  max-width: 36rem;
  margin: 1.15rem 0 0;
  color: #cfc6b8;
  font-size: 0.95rem;
}

.hero-mark {
  position: relative;
  justify-self: center;
  width: min(300px, 78vw);
}

.hero-mark::before {
  content: "";
  position: absolute;
  inset: 8% 0 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(243, 230, 200, 0.22), rgba(186, 214, 224, 0.06) 42%, transparent 68%);
  pointer-events: none;
}

.hero-mark img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.section { padding: 4.25rem 0; }

.section h2,
.doc h1,
.pillar h3,
.caps li {
  font-family: var(--serif);
  font-weight: 500;
}

.section-kicker {
  margin: 0 0 0.35rem;
  color: var(--gold-ink);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.section h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.85rem, 4.6vw, 2.9rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.intro {
  max-width: 38rem;
  margin: 0 0 1.75rem;
  color: var(--muted);
}

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

.pillar { padding: 1.25rem 0 1.3rem; border-bottom: 1px solid rgba(14, 26, 42, 0.08); }

.num {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--gold-ink);
}

.pillar h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.pillar p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
}

.split {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

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

.caps li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(14, 26, 42, 0.1);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.note {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.2rem 1.25rem 1.3rem;
}

.note h3 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
}

.note p { margin: 0.55rem 0 0; }

.note p:first-of-type { margin-top: 0; }

.note a {
  color: inherit;
  text-underline-offset: 0.18em;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.band { background: var(--band); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 44rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 1rem;
  padding: 1.05rem 0;
  border-top: 1px solid rgba(14, 26, 42, 0.1);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--gold-ink);
}

.steps { counter-reset: step; }

.steps p { margin: 0; }

.steps h3 {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
  font-weight: 600;
}

.later {
  margin-top: 2rem;
  max-width: 44rem;
}

.later-head {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
}

.later-grid {
  display: grid;
  gap: 0.75rem;
}

.later-item {
  margin: 0;
  padding: 0.95rem 1rem 1rem;
  border: 1px dashed rgba(110, 80, 32, 0.65);
  background: transparent;
}

.later-item p { margin: 0.15rem 0 0; }

.later-item .later-label {
  margin: 0;
  color: var(--gold-ink);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.later-item .later-title {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 600;
}

.later-item p:last-child { color: var(--muted); }

.later-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.faq { max-width: 44rem; }

details {
  border-bottom: 1px solid rgba(14, 26, 42, 0.12);
}

summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.95rem 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  text-align: left;
}

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

summary::after {
  content: "";
  flex: none;
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.35rem;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 0.8rem 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 0.8rem no-repeat;
}

details[open] summary::after {
  background: linear-gradient(var(--ink), var(--ink)) center / 0.8rem 1.5px no-repeat;
}

details p {
  margin: 0;
  padding: 0 0 1rem;
  max-width: 40rem;
  color: var(--muted);
}

.site-footer {
  background: var(--navy);
  color: #d9d0c3;
  padding: 2.4rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.footer-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-lockup img { width: 48px; height: auto; display: block; }

.footer-lockup p { margin: 0; line-height: 1.05; }

.footer-lockup .name {
  display: block;
  color: var(--ivory);
  font-size: 1.7rem;
}

.footer-lockup .tag { display: block; margin-top: 0.18rem; font-size: 0.92rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  align-items: center;
}

.footer-nav a {
  color: var(--gold);
  text-underline-offset: 0.18em;
}

.footer-note {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(231, 211, 164, 0.22);
  max-width: 46rem;
}

.footer-note p { margin: 0; color: #cfc6b8; }

.doc { padding: 3rem 0 4.5rem; }

.prose { max-width: 40rem; }

.prose h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.dek {
  margin: 0.55rem 0 0;
  color: var(--gold-ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
}

.prose h2 {
  margin: 2.1rem 0 0.45rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.3;
}

.prose p { margin: 0.55rem 0 0; }

.prose ul { margin: 0.55rem 0 0; padding-left: 1.15rem; }

.prose li + li { margin-top: 0.3rem; }

.prose a {
  color: inherit;
  text-underline-offset: 0.18em;
}

.prose .endnote {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.8fr);
    gap: 3rem;
    padding: 2.5rem 0 5rem;
  }

  .hero-mark { justify-self: end; width: min(340px, 100%); }

  .section { padding: 5.5rem 0; }

  .split { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }

  .later-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1020px) {
  .pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid rgba(14, 26, 42, 0.08);
  }

  .pillar {
    border-bottom: 0;
    padding: 1.45rem 1.35rem 1.6rem 0;
  }

  .pillar + .pillar {
    padding-left: 1.35rem;
    box-shadow: inset 1px 0 0 rgba(14, 26, 42, 0.1);
  }
}

@media (max-width: 800px) {
  html:not(.no-js) .nav-toggle { display: inline-flex; }

  html:not(.no-js) .header-bar { flex-wrap: wrap; }

  html:not(.no-js) #site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    padding: 0.15rem 0 0.85rem;
  }

  html:not(.no-js) #site-nav.is-open { display: flex; }

  html:not(.no-js) #site-nav > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .header-bar { min-height: 4.2rem; }

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

@media (max-width: 380px) {
  :root { --wrap: min(1080px, calc(100% - 1.5rem)); }
  .brand-tag { font-size: 0.72rem; }
}

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

@media print {
  .site-header, .skip, .nav-toggle, .lang-switch, .actions { display: none !important; }
  body, .hero, .site-footer, .band { background: #fff; color: #000; }
  .hero h1, .hero h1 .tagline, .fine, .kicker, .site-footer, .footer-lockup .name { color: #000; }
  a { text-decoration: underline; }
}
