@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/assets/fonts/courier-prime-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --desk: #09090B;
  --surface: #141417;
  --surface-high: #1C1C20;
  --paper: #EFE7D3;
  --paper-fold: #D9D0B9;
  --ink: #18181B;
  --ink-soft: #4A4740;
  --text: #ECE9E2;
  --text-soft: #A3A09A;
  --amber: #F2B24A;
  --serif: "Literata", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "tnum" 1;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--text-soft); }
a:active { color: var(--amber); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.nav { padding: 18px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.nav-logo img { border-radius: 9px; }
.nav-link { font-size: 15px; color: var(--text-soft); text-decoration: none; }
.nav-link:active { color: var(--text); }

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 12px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }

/* Home */
.hero { padding: 48px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); letter-spacing: -0.01em; }
.hero h1 .mark { background: linear-gradient(transparent 62%, var(--amber) 62%, var(--amber) 90%, transparent 90%); color: var(--text); }
.lede { font-size: 19px; color: var(--text-soft); margin: 20px 0 32px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper); color: var(--ink);
  font-weight: 600; font-size: 16px; text-decoration: none;
  padding: 14px 24px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { background: var(--paper-fold); color: var(--ink); }
.cta-note { margin: 0; font-size: 15px; color: var(--text-soft); }

.sheet {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  padding: 28px 28px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
  transform: rotate(-1.2deg);
}
.sheet::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 34px; height: 34px;
  background: linear-gradient(225deg, var(--desk) 50%, var(--paper-fold) 50%);
  border-top-right-radius: 6px;
}
.sheet .kind { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 6px; }
.sheet .title { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.25; margin: 0 0 22px; }
.sheet .days { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.sheet .days-num { font-family: var(--serif); font-size: 84px; font-weight: 700; line-height: 1; }
.sheet .days-unit { font-size: 16px; font-weight: 600; color: var(--ink-soft); }
.sheet .due { margin: 4px 0 18px; font-size: 15px; }
.sheet .due strong { background: var(--amber); padding: 1px 6px; border-radius: 4px; }
.quote {
  margin: 0 0 22px;
  padding-left: 14px;
  box-shadow: inset 2px 0 0 var(--ink-soft);
  font-family: "Courier Prime", ui-monospace, Menlo, monospace;
  font-size: 14px;
  color: var(--ink-soft);
}
.sheet ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.sheet li { counter-increment: step; display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 15px; margin-bottom: 8px; }
.sheet li::before { content: counter(step); font-family: var(--serif); font-weight: 700; }

.section { padding: 64px 0; }
.section h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 14px; }
.section .intro { color: var(--text-soft); max-width: 38em; margin: 0 0 36px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border-radius: 18px; padding: 24px; }
.card .num { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--amber); margin: 0 0 10px; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-soft); font-size: 16px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 12px 0; box-shadow: inset 0 -1px 0 var(--surface-high); color: var(--text-soft); }
.list li:last-child { box-shadow: none; }
.list strong { color: var(--text); font-weight: 600; }

.boundary { font-family: var(--serif); font-size: 21px; line-height: 1.45; max-width: 30em; margin: 0; }

/* Legal pages */
.legal { padding: 32px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--text-soft); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 22px; }
.meta { font-size: 15px; color: var(--text-soft); margin: 0 0 28px; }
.summary { background: var(--surface); border-radius: 18px; padding: 20px 22px; color: var(--text) !important; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; box-shadow: inset 0 -1px 0 var(--surface-high); }
th { color: var(--text); font-weight: 600; }
td { color: var(--text-soft); }
.table-scroll { overflow-x: auto; }

footer { padding: 40px 0 56px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--text-soft); box-shadow: inset 0 1px 0 var(--surface-high); padding-top: 28px; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--text-soft); text-decoration: none; }
.foot a:active { color: var(--text); }

@media (max-width: 820px) {
  .hero { padding: 24px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .sheet { transform: rotate(-0.8deg); }
  .steps, .two { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .sheet { padding: 22px 20px 26px; }
  .sheet .days-num { font-size: 68px; }
}
