:root {
  --ink: #151413;
  --paper: #F5F2EC;
  --panel: #FBFAF7;
  --accent: #8A6A3B;
  --on-accent: #FFFFFF;
  --muted: #58524A;
  --muted-on-ink: #CBC3B6;
  --line: #E3DDD2;
  --line-on-ink: #34312C;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { opacity: .8; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.header { border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { font-family: var(--serif); font-size: 26px; line-height: 1; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { border-bottom: 1px solid var(--ink); }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-accent { background: var(--accent); color: var(--on-accent); min-height: 48px; padding: 14px 26px; font-size: 16px; }

.crumbs { font-size: 14px; color: var(--muted); padding-top: 40px; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; }

.article-head { padding-top: 28px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.tag { font-size: 15px; font-weight: 500; color: var(--accent); }
.article-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.01em; margin-top: 14px; }
.standfirst { margin-top: 20px; font-size: 20px; line-height: 1.55; color: var(--muted); }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-size: 15px; color: var(--muted); }
.byline img { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; object-position: 52% 38%; }
.byline strong { color: var(--ink); font-weight: 600; display: block; }

.answer { margin-top: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; }
.answer p:first-child { font-weight: 600; font-size: 15px; color: var(--accent); margin-bottom: 6px; }

.prose { padding-top: 8px; padding-bottom: 72px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 38px); line-height: 1.15; margin-top: 56px; margin-bottom: 16px; }
.prose h3 { font-size: 19px; font-weight: 600; margin-top: 32px; margin-bottom: 8px; }
.prose p { margin-bottom: 20px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 20px; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--accent); }
.prose a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose .table-box { overflow-x: auto; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--panel); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

.faq { border-top: 1px solid var(--line); margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.author-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-top: 56px; }
.author-card img { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; object-position: 52% 38%; }
.author-card p { margin: 0; font-size: 16px; color: var(--muted); }
.author-card .name { font-family: var(--serif); font-size: 24px; color: var(--ink); line-height: 1.2; margin-bottom: 6px; }

.more { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 0; }
.more h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; margin-bottom: 24px; }
.post { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 32px; padding: 24px 0; border-top: 1px solid var(--line); text-decoration: none; }
.post:last-child { border-bottom: 1px solid var(--line); }
.post .title { font-family: var(--serif); font-size: 28px; line-height: 1.2; flex: 1 1 420px; }
.post .meta { font-size: 14px; color: var(--muted); }
.post .desc { flex: 1 1 100%; font-size: 16px; color: var(--muted); }

.page-head { padding-top: 72px; padding-bottom: 40px; }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 1.02; }
.page-head p { margin-top: 16px; font-size: 20px; color: var(--muted); max-width: 52ch; }
.list { padding-bottom: 96px; }

.cta { background: var(--ink); color: var(--paper); }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; padding-top: 88px; padding-bottom: 88px; }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; max-width: 12ch; }
.cta-actions { display: grid; gap: 20px; justify-items: start; }
.email { color: var(--paper); font-size: 17px; text-decoration: none; border-bottom: 1px solid var(--line-on-ink); padding-bottom: 4px; }
.icons { display: flex; gap: 12px; }
.icon { width: 48px; height: 48px; border: 1px solid var(--line-on-ink); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--paper); }
.icon:hover { opacity: 1; background: var(--line-on-ink); }
.footer { background: var(--ink); color: var(--muted-on-ink); border-top: 1px solid var(--line-on-ink); font-size: 14px; }
.footer .wrap { padding-top: 28px; padding-bottom: 28px; }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav { order: 3; width: 100%; gap: 20px; font-size: 14px; }
  .crumbs { padding-top: 28px; }
  .answer { padding: 20px; }
  .post .title { font-size: 24px; }
  .page-head { padding-top: 48px; }
  .cta .wrap { padding-top: 64px; padding-bottom: 64px; }
}

/* Cookie banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 440px; margin-left: auto; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 44px rgba(21, 20, 19, .18); padding: 18px 20px; font-size: 14px; line-height: 1.5; font-family: var(--sans); }
.cookie[hidden] { display: none; }
.cookie p { color: var(--muted); margin: 0; }
.cookie a { color: var(--ink); font-weight: 600; }
.cookie .row { display: flex; gap: 10px; margin-top: 14px; }
.cookie button { font: inherit; font-weight: 600; min-height: 44px; padding: 8px 18px; border-radius: 999px; cursor: pointer; flex: 1 1 0; }
.cookie .accept { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.cookie .decline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.legal { display: inline-flex; flex-wrap: wrap; gap: 16px; margin-left: 16px; }
.legal button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

.footer .legal { margin-left: 16px; }
