@font-face { font-family: 'Inter'; src: url(fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url(fonts/inter-tight.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(fonts/instrument-serif-italic.woff2) format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --teal: #0F766E; --teal-d: #0B5C56; --mint: #E2F3EF; --coral: #E2725B;
  --dark: #0F1F1D; --white: #FFFFFF; --paper: #F7F8F7;
  --ink: #121A19; --mute: #5F6B68; --rule: rgba(18,26,25,.16);
  --max: 1160px; --gut: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.h { font-family: 'Inter Tight', sans-serif; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.it { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.lab { font-family: 'Inter Tight'; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.lab::before { content: '↓ '; }
.mute { color: var(--mute); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Inter Tight'; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.logo svg { width: 34px; height: 20px; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.top nav a:not(.btn) { text-decoration: none; color: var(--mute); }
.top nav a:not(.btn):hover { color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: 'Inter Tight'; font-weight: 600; font-size: 16px; text-decoration: none; border-radius: 999px; padding: 14px 26px; border: 1.5px solid var(--teal); background: var(--teal); color: #fff; transition: background .2s, transform .2s; }
.btn:hover { background: var(--teal-d); transform: translateY(-1px); }
.btn::after { content: '→'; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.ghost::after { content: '↓'; }
.btn.sm { padding: 9px 18px; font-size: 14px; }
.btn.light { background: #fff; color: var(--dark); border-color: #fff; }
.btn.light:hover { background: var(--mint); }

/* legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 12px; }
.legal h2 { font-family: 'Inter Tight'; font-size: 22px; font-weight: 600; margin: 40px 0 10px; }
.legal p, .legal li { color: #2C3533; margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.todo { background: #FFF3CD; padding: 0 4px; border-radius: 3px; }

/* footer */
footer { background: var(--dark); color: #B8C2BF; font-size: 14px; padding: 40px 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { text-decoration: none; color: #DDE4E2; }
footer a:hover { color: #fff; }
footer .logo { color: #fff; }

.top nav a, .btn { white-space: nowrap; }
@media (max-width: 900px) {
  .top nav a.hide-sm { display: none; }
  .top nav { gap: 14px; }
}

/* ===== Legal pages & 404: same system as the PDF / home ===== */
.lp { --mute: #8C9592; --rule: rgba(18,26,25,.22); --left: 330px; }
.lp .wrap { max-width: 1440px; }
.lp-meta { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1.5px solid var(--rule); }
.lp-meta .wrap { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.lp-meta .id { font-family: 'Inter Tight'; font-size: 13px; font-weight: 500; line-height: 1.25; text-decoration: none; }
.lp-pill { display: inline-flex; align-items: center; gap: 12px; border: 1.5px solid currentColor; border-radius: 999px; padding: 10px 18px; font-family: 'Inter Tight'; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; min-height: 40px; transition-property: background-color, color; transition-duration: .2s; }
.lp-pill::after { content: '→'; }
.lp-pill:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.lp-main { padding: 72px 0 112px; }
.lp-sec { display: grid; grid-template-columns: var(--left) 1fr; border-top: 1.5px solid var(--rule); padding-top: 22px; }
.lp-sec .n { font-family: 'Inter Tight'; font-size: clamp(34px, 4vw, 58px); color: var(--mute); letter-spacing: -0.03em; line-height: 1; }
.lp-sec h1 { font-family: 'Inter Tight'; font-size: clamp(32px, 4.2vw, 58px); font-weight: 500; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
.lp-sec h1 .it { text-transform: none; color: var(--teal); }
.lp-body { margin-left: var(--left); max-width: 760px; margin-top: 48px; }
.lp-body .upd { font-family: 'Inter Tight'; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); }
.lp-body h2 { font-family: 'Inter Tight'; font-size: 22px; font-weight: 600; margin: 40px 0 10px; padding-top: 14px; border-top: 1.5px solid var(--rule); }
.lp-body p, .lp-body li { color: #4C5654; margin-bottom: 10px; text-wrap: pretty; }
.lp-body ul { padding-left: 20px; }
.lp-body a { color: var(--teal); }
.lp-foot { background: var(--dark); color: #B9C1BF; padding: 40px 0; font-family: 'Inter Tight'; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.lp-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.lp-foot a { color: #F1EFEA; text-decoration: none; opacity: .7; } .lp-foot a:hover { opacity: 1; }
a:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
@media (max-width: 760px) { .lp { --left: 0px; } .lp-sec { grid-template-columns: 1fr; gap: 10px; } }
