@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&family=Unbounded:wght@600;700;800&display=swap");

:root {
  --paper: #fbf6ec;
  --ink: #5b2b05;
  --muted: #776f67;
  --rule: #ead8b8;
  --accent: #ff5f05;
  --blue: #bcd9ff;
  --panel: #fffaf1;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: Inter, system-ui, sans-serif; overflow-x: hidden; }
body { margin: 0; background: var(--paper); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.site-shell { width: min(100%, 1265px); margin: 0 auto; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); min-height: 100vh; }
.nav { height: 92px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 5vw, 64px); border-bottom: 1px solid var(--rule); background: rgba(251, 246, 236, .94); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.brand img { width: 76px; height: auto; display: block; }
.links { display: flex; gap: clamp(18px, 3vw, 36px); align-items: center; color: var(--muted); font-size: 16px; }
.links a:last-child { color: var(--ink); background: #f1eadf; border-radius: 8px; padding: 16px 26px; }
.article { padding: clamp(42px, 7vw, 88px) clamp(22px, 6vw, 76px) 0; }
.eyebrow { margin: 0 0 28px; color: var(--accent); font: 800 14px/1 Unbounded, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
h1 { font-family: "EB Garamond", Georgia, serif; font-weight: 600; font-size: clamp(52px, 8.4vw, 108px); line-height: .9; letter-spacing: 0; max-width: 980px; margin: 0 0 28px; overflow-wrap: anywhere; }
.dek { max-width: 780px; color: var(--muted); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.34; margin: 0 0 44px; }
.cover { width: 100%; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--panel); margin-bottom: 64px; }
.cover img { display: block; width: 100%; height: auto; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: clamp(34px, 6vw, 72px); align-items: start; }
.body { max-width: 760px; }
.body h2 { font-family: "EB Garamond", Georgia, serif; font-size: clamp(38px, 5vw, 58px); line-height: .98; font-weight: 600; margin: 0 0 18px; }
.body p { color: var(--muted); font-size: 20px; line-height: 1.58; margin: 0 0 28px; }
.body strong { color: #1f1d1a; font-weight: 700; }
.section { padding: 0 0 48px; margin: 0 0 48px; border-bottom: 1px solid var(--rule); }
.side { position: sticky; top: 120px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); overflow: hidden; }
.side-row { padding: 22px 24px; border-bottom: 1px solid var(--rule); }
.side-row:last-child { border-bottom: 0; }
.side-label { color: var(--muted); font: 700 12px/1.2 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.side-value { color: var(--ink); font-size: 18px; line-height: 1.35; font-weight: 650; }
.cta-band { margin-top: 30px; padding: clamp(44px, 7vw, 76px); border-top: 1px solid var(--rule); background: linear-gradient(120deg, rgba(188,217,255,.38), transparent 52%); text-align: center; }
.cta-band h2 { font-family: "EB Garamond", Georgia, serif; font-size: clamp(44px, 6vw, 82px); line-height: .95; font-weight: 600; margin: 0 auto 28px; max-width: 820px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 8px; background: var(--ink); color: var(--paper); font-weight: 700; }
.footer { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; padding: 54px clamp(22px, 6vw, 76px); border-top: 1px solid var(--rule); color: var(--muted); }
.footer h3 { margin: 0 0 18px; color: var(--ink); font: 800 13px/1 Unbounded, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.footer p, .footer a { display: block; margin: 0 0 12px; color: var(--muted); line-height: 1.45; }

@media (max-width: 760px) {
  .nav { height: auto; min-height: 74px; align-items: flex-start; flex-direction: column; gap: 18px; padding: 18px 20px; position: relative; }
  .brand img { width: 58px; }
  .links { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 12px 18px; font-size: 14px; }
  .links a:last-child { padding: 10px 16px; }
  .article { padding-top: 40px; }
  h1 { font-size: clamp(48px, 15vw, 70px); }
  .content-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .footer { grid-template-columns: 1fr; }
}
