@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/Fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("fonts/Fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexMono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/IBMPlexMono-600.woff2") format("woff2"); }

:root {
  --paper: #f2ecdf;
  --paper-deep: #e7dfcc;
  --ink: #0f241c;
  --ink-soft: #3c5248;
  --green: #1d4a37;
  --accent: #d9431f;
  --line: rgba(15, 36, 28, 0.14);
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%231d4a37' stroke-opacity='0.13' stroke-width='1'%3E%3Cellipse cx='28' cy='13' rx='8' ry='12'/%3E%3Cellipse cx='28' cy='43' rx='8' ry='12'/%3E%3Cellipse cx='13' cy='28' rx='12' ry='8'/%3E%3Cellipse cx='43' cy='28' rx='12' ry='8'/%3E%3Ccircle cx='28' cy='28' r='2'/%3E%3C/g%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1813;
    --paper-deep: #11211a;
    --ink: #efe7d6;
    --ink-soft: #a9b8ad;
    --green: #8fc4a6;
    --accent: #ff6b42;
    --line: rgba(239, 231, 214, 0.14);
    --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%238fc4a6' stroke-opacity='0.10' stroke-width='1'%3E%3Cellipse cx='28' cy='13' rx='8' ry='12'/%3E%3Cellipse cx='28' cy='43' rx='8' ry='12'/%3E%3Cellipse cx='13' cy='28' rx='12' ry='8'/%3E%3Cellipse cx='43' cy='28' rx='12' ry='8'/%3E%3Ccircle cx='28' cy='28' r='2'/%3E%3C/g%3E%3C/svg%3E");
  }
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 70% 55% at 85% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, color-mix(in srgb, var(--green) 18%, transparent), transparent 70%),
    var(--motif);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  line-height: 1.5;
  min-height: 100vh;
}
.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

header.top {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark svg { width: 26px; height: 26px; }
nav { display: flex; gap: 22px; }
nav a { text-decoration: none; }
nav a[aria-current="page"] { color: var(--accent); }

/* Home */
.hero { padding: 12vh 0 10vh; display: grid; grid-template-columns: 1fr; gap: 40px; }
.hero h1 {
  font-weight: 900;
  font-size: clamp(4.5rem, 17vw, 13.5rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
}
.hero h1 .thin { display: block; font-weight: 100; font-style: italic; letter-spacing: -0.02em; color: var(--green); }
.hero h1 .dot { color: var(--accent); }
.hero .lede { max-width: 34ch; font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 300; color: var(--ink-soft); }
.hero .lede em { color: var(--ink); font-weight: 600; font-style: italic; }

section.band { border-top: 1px solid var(--line); padding: 64px 0; display: grid; gap: 28px; }
.band .label { color: var(--accent); }
.band h2 { font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 18ch; }
.band .prose { max-width: 60ch; font-size: 1.15rem; font-weight: 300; color: var(--ink-soft); display: grid; gap: 1em; margin-top: 24px; }
.band .prose strong { color: var(--ink); font-weight: 600; }

.principles { display: grid; list-style: none; padding: 0; margin-top: 28px; }
.principles li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles .n { color: var(--green); padding-top: 6px; }
.principles strong { display: block; font-size: 1.35rem; font-weight: 700; }
.principles span { color: var(--ink-soft); font-weight: 300; font-size: 1.05rem; }

.person { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.monogram {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--paper); font-weight: 800; font-size: 1.6rem; font-style: italic;
}
.person strong { display: block; font-size: 1.25rem; font-weight: 700; }
.person .mono { color: var(--ink-soft); }

.now { background: var(--paper-deep); border: 1px solid var(--line); border-left: 6px solid var(--accent); padding: 28px; max-width: 640px; }
.now p { font-size: 1.2rem; font-weight: 300; }
.now .mono { display: block; margin-bottom: 10px; color: var(--green); }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 12px 28px; }
dl.facts dt { color: var(--ink-soft); padding-top: 4px; }
dl.facts dd { font-size: 1.15rem; }

/* Document pages */
.doc { padding: 9vh 0 6vh; display: grid; gap: 40px; }
.doc header h1 { font-weight: 900; font-size: clamp(3rem, 9vw, 6.5rem); line-height: 0.9; letter-spacing: -0.035em; }
.doc header h1 .thin { font-weight: 100; font-style: italic; color: var(--green); }
.doc header p { margin-top: 18px; color: var(--ink-soft); }
.doc article { max-width: 68ch; display: grid; gap: 0.9em; font-size: 1.1rem; font-weight: 300; }
.doc article h2 { font-weight: 800; font-size: 1.6rem; letter-spacing: -0.01em; margin-top: 1.4em; color: var(--ink); }
.doc article h2 .mono { display: block; color: var(--accent); margin-bottom: 6px; font-weight: 400; }
.doc article ul { padding-left: 1.2em; display: grid; gap: 0.4em; }
.doc article strong { font-weight: 600; }
.card { background: var(--paper-deep); border: 1px solid var(--line); border-left: 6px solid var(--accent); padding: 26px 28px; display: grid; gap: 6px; }
.card .mono { color: var(--green); }
.card .big { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; word-break: break-word; }

footer { border-top: 1px solid var(--line); padding: 28px 0 48px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--ink-soft); }
footer nav { gap: 18px; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.6fr 1fr; align-items: end; }
  section.band { grid-template-columns: 1fr 2fr; }
  .doc.split { grid-template-columns: 1fr 2fr; }
}
@media (max-width: 520px) {
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 14px; }
}

/* One orchestrated page load */
.rise { opacity: 0; transform: translateY(18px); animation: rise 0.9s cubic-bezier(.2,.7,.1,1) forwards; }
.d1 { animation-delay: .05s } .d2 { animation-delay: .2s } .d3 { animation-delay: .4s }
.d4 { animation-delay: .55s } .d5 { animation-delay: .7s }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; opacity: 1; transform: none; } }
