/* ZELKOA.com — design system (from the AI Studio export, self-hosted fonts) */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-italic.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/dm-sans.woff2) format('woff2'); }
:root {
  --ground: #F3F0E8;
  --surface: #FBFAF6;
  --footer: #E9E5DA;
  --ink: #17191A;
  --text: #3A3D38;
  --muted: #4A4E47;
  --line: #D9D4C7;
  --line-strong: #C9C3B3;
  --accent: #2E5842;
  --accent-soft: #A9C7B4;
  --on-dark: #D6D2C6;
  --ph-1: #DCD6C6;
  --ph-2: #CFD6CC;
  --ph-3: #E3DED1;
  --todo-bg: #FBF3E2;
  --todo-line: #E2C68A;
  --todo-ink: #6B4A0E;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 64px;
  --band: 128px;
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 900px; }
.center { text-align: center; align-items: center; }
.center-row { justify-content: center; }

/* Typography */
.display-xxl { font-family: var(--serif); font-size: clamp(56px, 9vw, 128px); line-height: 0.95; }
.display-xl { font-family: var(--serif); font-size: clamp(52px, 8vw, 116px); line-height: 0.97; letter-spacing: -0.01em; }
.display-l { font-family: var(--serif); font-size: clamp(40px, 5.2vw, 76px); line-height: 1.02; }
.display-m { font-family: var(--serif); font-size: clamp(36px, 4vw, 56px); line-height: 1.05; }
.serif-l { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.15; }
.serif-m { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.25; }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; color: var(--accent); }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--text); max-width: 640px; }
.eyebrow { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.ink { color: var(--ink); }
.accent { color: var(--accent); }
.prose { color: var(--text); font-size: 19px; line-height: 1.75; max-width: 780px; }
.prose.tight { line-height: 1.6; }
.prose a, .faq a, .muted a, .facts a { text-decoration: underline; text-underline-offset: 4px; }
.text-link { font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 6px; align-self: flex-start; }

/* Layout helpers */
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-l { display: flex; flex-direction: column; gap: 48px; }
.band { padding-top: var(--band); padding-bottom: var(--band); }
.band-bottom { padding-bottom: var(--band); }
.band-light { background: var(--surface); }
.band-dark { background: var(--ink); color: var(--ground); }
.band-dark p { color: var(--on-dark); }
.on-dark { color: var(--accent-soft) !important; }
.band-dark .lead.on-dark { color: var(--ground) !important; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; }
.cols-5-7 { display: grid; grid-template-columns: 5fr 7fr; gap: 96px; }
.cols-7-5 { display: grid; grid-template-columns: 7fr 5fr; gap: 96px; align-items: start; }
.cols-4-8 { display: grid; grid-template-columns: 4fr 8fr; gap: 96px; }
.cols-6-6 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
.cols-3-9 { display: grid; grid-template-columns: 3fr 9fr; gap: 72px; }
.align-end { align-items: end; }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; margin-bottom: 56px; }
.split-head p { max-width: 560px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border-radius: 28px; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; border: 1px solid transparent; align-self: flex-start; }
.btn-primary { background: var(--accent); color: var(--surface); }
.btn-primary:hover { background: #244A37; color: var(--surface); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--ground); color: var(--ink); }
.btn-light:hover { color: var(--accent); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo { font-family: var(--serif); font-size: 34px; letter-spacing: 0.08em; line-height: 1; }
.logo-l { font-size: 44px; }
.primary-nav { display: flex; gap: 36px; font-size: 16px; font-weight: 500; }
.primary-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }

/* Breadcrumb */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; }

/* Home */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; padding-top: 104px; padding-bottom: 112px; }
.hero-text { display: flex; flex-direction: column; gap: 32px; }
.hero-mosaic { height: 620px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hero-mosaic .m1 { grid-row: span 2; }
.hero-mosaic .m3 { grid-row: span 2; }

.world-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.world-card { display: flex; flex-direction: column; gap: 14px; padding: 14px 14px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground); }
.world-card h3 { font-family: var(--serif); font-size: 38px; padding: 6px 10px 0; }
.world-card p, .world-card .more { padding: 0 10px; }
.world-card p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.world-card .more { font-size: 16px; font-weight: 600; color: var(--accent); margin-top: auto; }
.world-more { justify-content: flex-end; padding: 28px 24px; border-style: dashed; border-color: #B9B2A0; background: transparent; }

.quote { color: inherit; }
.band-dark .quote { color: var(--ground); }

.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.value-grid li { padding: 32px 28px; border-top: 2px solid var(--accent); background: var(--surface); border-radius: 0 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.value-grid span { font-size: 14px; color: var(--muted); }
.value-grid strong { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; }

.example-list li { display: flex; gap: 28px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.example-list p { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; }

.closing { padding-top: 144px; }
.closing .stack { gap: 28px; }
.closing p { font-size: 20px; line-height: 1.7; color: var(--text); }
.lockup { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 16px; font-size: 17px; color: var(--muted); }
.lockup .logo { color: var(--ink); }

/* Inner pages */
.page-head { padding-top: 48px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 28px; }
.page-head.cols-6-6 { display: grid; }
.facts { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 24px; }
.facts dl { margin: 0; display: grid; grid-template-columns: 150px 1fr; row-gap: 16px; column-gap: 20px; font-size: 16px; line-height: 1.5; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }

.reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: r; }
.reasons li { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--ink); counter-increment: r; }
.reasons li::before { content: "0" counter(r); font-size: 14px; color: var(--muted); }
.reasons h3 { font-family: var(--sans); font-size: 22px; font-weight: 600; line-height: 1.3; }
.reasons p { font-size: 17px; color: var(--text); }

.panel-dark { padding: 96px; border-radius: 32px; background: var(--ink); color: var(--ground); }
.panel-dark p { color: var(--on-dark); font-size: 19px; line-height: 1.7; }
.panel-dark .tagline { color: var(--accent-soft); }
.panel { padding: 72px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); gap: 72px; }

.chips-l { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.chips-l li { padding: 28px 16px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); text-align: center; font-family: var(--serif); font-size: 28px; line-height: 1.15; }

.closing-about { padding-top: 96px; padding-bottom: var(--band); border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 28px; }

.sub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sub-grid a { display: flex; flex-direction: column; gap: 16px; }
.sub-grid h3 { font-family: var(--sans); font-size: 22px; font-weight: 600; display: flex; justify-content: space-between; }
.sub-grid h3 span { color: var(--accent); }

.other-worlds { padding-bottom: var(--band); display: flex; flex-direction: column; gap: 32px; }
.other-worlds .cols-2 { gap: 24px; }
.other-world { padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; font-family: var(--serif); font-size: 44px; }
.other-world span:last-child { color: var(--accent); font-size: 28px; }

/* Contact */
.topic-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 96px; }
.topic { padding: 28px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.topic h3 { font-family: var(--sans); font-size: 20px; font-weight: 600; }
.topic p { font-size: 15px; line-height: 1.55; color: var(--muted); flex-grow: 1; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; min-height: 52px; padding: 12px 14px; border: 1px solid #B9B2A0; border-radius: 12px; background: #fff; color: var(--ink); }
.field textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.details-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; margin-top: 24px; }
.details-grid h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; margin-bottom: 8px; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { padding: 32px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq h2 { font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); line-height: 1.15; }
.faq p { margin-top: 16px; font-size: 19px; line-height: 1.7; color: var(--text); max-width: 820px; }

/* Policies */
.policy-layout { display: grid; grid-template-columns: 3fr 9fr; gap: 72px; align-items: start; }
.toc { position: sticky; top: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.toc ol { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.4; }
.policy-section { padding: 36px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 24px; }
.policy-section h2 { font-family: var(--serif); font-size: 40px; line-height: 1.1; }

/* Footer */
.site-footer { background: var(--footer); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 400px; }
.footer-h { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-strong); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.footer-line { font-family: var(--serif); font-size: 18px; color: var(--ink); }

/* Responsive */
@media (max-width: 1100px) {
  :root { --gutter: 40px; --band: 96px; }
  .cols-2, .cols-5-7, .cols-7-5, .cols-4-8, .cols-3-9, .policy-layout { gap: 56px; }
  .world-grid, .value-grid, .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips-l { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .details-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .panel-dark { padding: 64px; }
  .panel { padding: 48px; }
}
@media (max-width: 800px) {
  :root { --gutter: 16px; --band: 72px; }
  body { font-size: 17px; }
  .header-inner { flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; padding-bottom: 8px; }
  .primary-nav { order: 3; width: 100%; overflow-x: auto; gap: 24px; padding: 8px 0; white-space: nowrap; }
      .hero, .cols-2, .cols-5-7, .cols-7-5, .cols-4-8, .cols-6-6, .cols-3-9, .policy-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 56px; padding-bottom: 72px; }
  .hero-mosaic { height: 380px; }
  .split-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .world-grid, .value-grid, .reasons, .sub-grid, .topic-grid, .details-grid { grid-template-columns: 1fr; }
  .chips-l { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips-l li { font-size: 22px; padding: 20px 12px; }
  .example-list li { gap: 16px; }
  .panel-dark, .panel { padding: 32px 20px; border-radius: 20px; }
  .form { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .facts { padding: 24px; }
  .facts dl { grid-template-columns: 1fr; row-gap: 4px; }
  .facts dd { margin-bottom: 12px; }
  .other-world { padding: 24px; font-size: 32px; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .page-head { padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* specificity fixes */
.world-card.world-more p.serif-m { font-size: 28px; line-height: 1.2; color: var(--ink); padding: 0; }
.closing p.serif-m { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.3; color: var(--ink); }

/* ---- Images ---- */
picture { display: block; overflow: hidden; background: var(--ph-1); }
picture img { width: 100%; height: 100%; object-fit: cover; }
.hero-mosaic picture { border-radius: 20px; }
.card-img { height: 280px; border-radius: 18px; }
.hero-img { height: 460px; border-radius: var(--radius); }
.thumb { width: 120px; height: 88px; flex-shrink: 0; border-radius: 14px; }
.world-grid > li { display: flex; }
.world-grid .world-card { width: 100%; }
.world-card:hover h3 { color: var(--accent); }

/* ---- Vertical pages ---- */
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.area-grid li { padding: 32px 28px; background: var(--ground); border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; gap: 12px; }
.area-grid h3 { font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.area-grid p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.split-head .muted p + p { margin-top: 12px; }

/* ---- Contact ---- */
.topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
.topic-mail { font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; word-break: break-all; }
.mail-big { color: var(--accent); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; word-break: break-all; }
.panel.cols-4-8 { display: grid; }

/* ---- FAQ ---- */
.faq-item { padding: 32px 0; border-bottom: 1px solid var(--line); }
.faq-item h2 { font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); line-height: 1.15; }
.faq-item p { margin-top: 16px; font-size: 19px; line-height: 1.7; color: var(--text); max-width: 820px; }
.faq-item a { text-decoration: underline; text-underline-offset: 4px; }

/* ---- Policies ---- */
.policy-section p, .policy-section li { color: var(--text); font-size: 18px; line-height: 1.7; max-width: 820px; }
.policy-section a { text-decoration: underline; text-underline-offset: 4px; }
.policy-section a.btn { text-decoration: none; }
.bullets { list-style: disc; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; }
.model-form { padding: 28px 32px; border: 1px dashed var(--line-strong); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.model-form p { font-size: 17px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 16px; background: var(--surface); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: var(--footer); }

/* ---- 404 ---- */
.link-list { display: flex; flex-wrap: wrap; gap: 12px; }
.link-list a { display: inline-flex; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface); }

/* ---- Utilities ---- */
.mt-40 { margin-top: 40px; }
.center-self { align-self: center; }

/* ---- Cookie banner ---- */
.cc { position: fixed; inset: auto 16px 16px 16px; z-index: 50; display: flex; justify-content: center; }
.cc[hidden] { display: none; }
.cc-box { width: 100%; max-width: 760px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: 0 18px 50px rgba(23, 25, 26, .18); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.cc-title { font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.cc-box p { font-size: 15px; line-height: 1.6; color: var(--text); }
.cc-box p a { text-decoration: underline; text-underline-offset: 3px; }
.cc-settings ul { display: flex; flex-direction: column; gap: 10px; }
.cc-cat { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.cc-cat input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.cc-cat > span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.cc-cat > span span { color: var(--muted); font-size: 14px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cc-actions .btn { min-height: 46px; padding: 0 22px; font-size: 15px; align-self: auto; }
.cc-actions .btn[hidden] { display: none; }

@media (max-width: 1100px) {
  .area-grid, .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .area-grid, .topic-grid { grid-template-columns: 1fr; }
  .card-img { height: 200px; }
  .hero-img { height: 280px; }
  .thumb { width: 80px; height: 64px; }
  .cc { inset: auto 8px 8px 8px; }
  .cc-box { padding: 20px; }
  .cc-actions .btn { flex: 1 1 40%; }
  .model-form { padding: 20px; }
}
