@font-face { font-family: "Cormorant"; src: url("assets/fonts/CormorantGaramond.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("assets/fonts/CormorantGaramond-Italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --paper: #F5F1E8;
  --panel: #FBF8F2;
  --ink: #141B2E;
  --muted: #5F6373;
  --gold: #A8854A;
  --gold-soft: #C9A96B;
  --hair: rgba(20, 27, 46, .14);
  --night: #141B2E;
  --night-2: #1C2540;
  --on-night: #F2EDE2;
  --on-night-muted: #AEB2C0;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10141F;
    --panel: #161C2B;
    --ink: #EEE8DC;
    --muted: #A3A8B6;
    --gold: #C9A96B;
    --hair: rgba(238, 232, 220, .14);
    --night: #0B0F18;
    --night-2: #141B2E;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16.5px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.9rem, 8vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h3 { font-size: 1.6rem; line-height: 1.15; }
em { font-style: italic; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
section { padding: clamp(72px, 11vw, 136px) 0; }
.center { text-align: center; }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.18rem); color: var(--muted); max-width: 600px; font-weight: 400; }
.center .lede { margin-inline: auto; }
.stack > * + * { margin-top: 22px; }

/* Small caps label with a gold rule */
.label { display: inline-flex; align-items: center; gap: 14px; font: 600 .72rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.label::before, .center .label::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .7; }
.rule { width: 48px; height: 1px; background: var(--gold); border: 0; margin: 0; }
.center .rule { margin-inline: auto; }

/* Header */
header { position: absolute; inset: 0 0 auto; z-index: 5; color: var(--on-night); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; min-height: 84px; padding: 14px 0; }
.wordmark { font: 500 1.55rem/1 var(--serif); letter-spacing: .02em; text-decoration: none; }
.wordmark span { color: var(--gold-soft); font-style: italic; }
header nav { display: flex; gap: clamp(16px, 3.4vw, 36px); }
header nav a { font: 500 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--on-night-muted); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
header nav a:hover, header nav a[aria-current="page"] { color: var(--on-night); border-bottom-color: var(--gold-soft); }

/* Dark hero */
.hero { position: relative; background: var(--night); color: var(--on-night); padding: clamp(160px, 22vw, 230px) 0 clamp(96px, 13vw, 160px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 120%; background: radial-gradient(closest-side, rgba(201,169,107,.16), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,169,107,.55), transparent); }
.hero .wrap { position: relative; }
.hero h1 { max-width: 900px; }
.hero.center h1 { margin-inline: auto; }
.hero h1 em { color: var(--gold-soft); }
.hero .lede { color: var(--on-night-muted); }
.hero .label { color: var(--gold-soft); }

/* Buttons */
.buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
.center .buttons { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px; font: 600 .76rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; border-radius: 2px; transition: background .2s, color .2s, border-color .2s; }
.btn.gold { background: var(--gold-soft); color: #141B2E; }
.btn.gold:hover { background: #D6BA80; }
.btn.line { border-color: rgba(242,237,226,.35); color: var(--on-night); }
.btn.line:hover { border-color: var(--gold-soft); }
.btn.ink { background: var(--ink); color: var(--paper); }
.btn.ink:hover { background: var(--gold); color: #141B2E; }

/* Apps */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(20px, 3vw, 32px); margin-top: clamp(40px, 6vw, 64px); }
.app { position: relative; background: var(--panel); border: 1px solid var(--hair); padding: clamp(28px, 4.5vw, 52px); display: flex; flex-direction: column; gap: 18px; }
.app::before { content: ""; position: absolute; top: -1px; left: clamp(28px, 4.5vw, 52px); width: 48px; height: 2px; background: var(--gold); }
.app img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 1px 2px rgba(20,27,46,.08), 0 14px 30px -14px rgba(20,27,46,.45); }
.app h3 { font-size: 2.2rem; margin-top: 6px; }
.app .tag { font: italic 500 1.4rem/1.3 var(--serif); color: var(--gold); }
.app p { color: var(--muted); }
.app ul { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--hair); }
.app li { padding: 14px 0; border-bottom: 1px solid var(--hair); color: var(--muted); }
.app li strong { color: var(--ink); font-weight: 600; }
.app .more { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.note { font-size: .86rem; color: var(--muted); letter-spacing: .01em; }

/* Principles */
.principles { background: var(--panel); border-block: 1px solid var(--hair); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(36px, 5vw, 56px) clamp(32px, 5vw, 64px); margin-top: clamp(48px, 7vw, 80px); counter-reset: p; }
.grid > div { counter-increment: p; border-top: 1px solid var(--hair); padding-top: 22px; }
.grid > div::before { content: counter(p, decimal-leading-zero); display: block; font: italic 500 1.25rem/1 var(--serif); color: var(--gold); margin-bottom: 14px; }
.grid h3 { margin-bottom: 10px; }
.grid p { color: var(--muted); }

/* Closing */
.closing h2 { font-size: clamp(3rem, 8vw, 5.4rem); font-style: italic; }

/* Prose pages */
.prose { max-width: 700px; }
.page { padding-top: clamp(48px, 7vw, 88px); }
.prose h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); margin: 64px 0 18px; display: flex; align-items: center; gap: 18px; }
.prose h2::before { content: ""; width: 32px; height: 1px; background: var(--gold); flex: none; }
.prose p + p { margin-top: 16px; }
.prose ul { list-style: none; padding: 0; margin: 0; }
.prose li { padding: 14px 0; border-bottom: 1px solid var(--hair); }
.prose li:first-child { border-top: 1px solid var(--hair); }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .big { font: 500 clamp(1.5rem, 3vw, 2rem)/1.35 var(--serif); color: var(--ink); }
.prose .big em { color: var(--gold); }

/* Footer */
footer { background: var(--night); color: var(--on-night-muted); padding: clamp(64px, 9vw, 96px) 0 40px; font-size: .92rem; }
footer .top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px; }
footer .wordmark { color: var(--on-night); display: inline-block; margin-bottom: 18px; }
footer h3 { font: 600 .7rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; }
footer .say { font: italic 500 1.9rem/1.1 var(--serif); color: var(--on-night); margin-bottom: 12px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li + li { margin-top: 8px; }
footer a { color: var(--on-night); text-decoration-color: rgba(201,169,107,.6); }
footer a:hover { color: var(--gold-soft); }
footer .legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(242,237,226,.12); font-size: .8rem; line-height: 1.6; }
footer .legal p + p { margin-top: 6px; }

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