@import url('https://fonts.googleapis.com/css2?family=Caprasimo&family=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,700;6..12,800&display=swap');

:root {
  --ink: #1e4651;
  --ink-soft: #507078;
  --paper: #f6ecd9;
  --paper-soft: #fffaf0;
  --butter: #f3d875;
  --avocado: #8aa854;
  --avocado-deep: #617d32;
  --tomato: #c75847;
  --sky: #cfe7ec;
  --line: rgba(30, 70, 81, 0.2);
  --shadow: 0 7px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.7 'Nunito Sans', sans-serif;
}
a { color: inherit; }
img { max-width: 100%; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 236, 217, 0.96);
  border-bottom: 1.5px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav { min-height: 76px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 24px/1 'Caprasimo', serif; margin-right: auto; }
.brand-mark { width: 38px; height: 46px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 8px; background: var(--paper-soft); transform: rotate(-3deg); }
.brand-mark::before { content: ''; width: 20px; height: 20px; border: 3px solid var(--ink); border-radius: 50%; background: var(--avocado); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; font-weight: 800; font-size: 14px; }
.nav-links a:hover, .nav-links a[aria-current='page'] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--ink); border-radius: 999px; padding: 10px 18px; background: var(--butter); text-decoration: none; font-weight: 900; box-shadow: 0 3px 0 var(--ink); }
.nav-cta:hover, .button:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }

.page-hero { padding: 88px 0 58px; border-bottom: 1.5px solid var(--line); overflow: hidden; }
.page-hero .wrap { position: relative; }
.page-hero .wrap::after { content: '✦'; position: absolute; right: 4%; top: -30px; font-size: 110px; color: var(--butter); line-height: 1; transform: rotate(12deg); z-index: -1; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--avocado-deep); font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 30px; height: 3px; border-radius: 3px; background: var(--avocado); }
h1, h2, h3 { font-family: 'Caprasimo', Georgia, serif; font-weight: 400; line-height: 1.1; }
h1 { max-width: 850px; margin: 16px 0 18px; font-size: clamp(45px, 8vw, 84px); letter-spacing: -.035em; }
.hero-lead { max-width: 720px; margin: 0; color: var(--ink-soft); font-size: clamp(18px, 2vw, 22px); font-weight: 600; }
.updated { display: inline-block; margin-top: 24px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper-soft); padding: 6px 12px; font-size: 12px; font-weight: 800; }

.page-main { padding: 64px 0 92px; }
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 70px; align-items: start; }
.toc { position: sticky; top: 108px; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper-soft); padding: 18px; box-shadow: 0 4px 0 var(--ink); }
.toc strong { display: block; font-family: 'Caprasimo', serif; margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0; color: var(--ink-soft); font-size: 14px; font-weight: 700; text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.prose { min-width: 0; }
.prose section { scroll-margin-top: 110px; margin-bottom: 52px; }
.prose h2 { margin: 0 0 16px; font-size: clamp(28px, 4vw, 42px); }
.prose h3 { margin: 26px 0 10px; font-size: 22px; }
.prose p, .prose li { color: #365a63; }
.prose a { font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.callout { margin: 28px 0; border: 2px solid var(--ink); border-radius: 15px; background: var(--sky); padding: 20px 22px; box-shadow: 0 4px 0 var(--ink); }
.callout strong { display: block; margin-bottom: 4px; font-family: 'Caprasimo', serif; font-weight: 400; font-size: 19px; }
.legal-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper-soft); font-size: 14px; }
.legal-table th, .legal-table td { padding: 13px 14px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.legal-table th { background: var(--butter); font-weight: 900; }
.legal-table tr:last-child td { border-bottom: 0; }
.model-form { white-space: pre-line; border: 1.5px dashed var(--ink); border-radius: 12px; background: var(--paper-soft); padding: 20px; color: #365a63; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0 60px; }
.card { border: 2px solid var(--ink); border-radius: 18px; background: var(--paper-soft); padding: 24px; box-shadow: 0 5px 0 var(--ink); }
.card:nth-child(2) { background: var(--sky); }
.card:nth-child(3) { background: #eef2d9; }
.card .number { color: var(--tomato); font: 18px 'Caprasimo', serif; }
.card h2, .card h3 { margin: 12px 0 8px; font-size: 25px; }
.card p { margin: 0; color: var(--ink-soft); }
.story-band { margin: 60px 0; display: grid; grid-template-columns: 1.1fr .9fr; border: 2px solid var(--ink); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.story-copy { padding: clamp(28px, 6vw, 64px); background: var(--paper-soft); }
.story-copy h2 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 56px); }
.story-art { min-height: 390px; display: grid; place-items: center; background: var(--butter); padding: 30px; }
.poster { width: min(250px, 80%); aspect-ratio: .72; display: grid; place-items: center; border: 8px solid var(--ink); border-radius: 14px; background: var(--paper-soft); transform: rotate(4deg); box-shadow: 13px 15px 0 rgba(30,70,81,.22); }
.poster-face { width: 46%; aspect-ratio: 1; border: 7px solid var(--ink); border-radius: 50%; background: var(--avocado); position: relative; }
.poster-face::before { content: '••'; position: absolute; inset: 18% 0 auto; text-align: center; font-size: 28px; letter-spacing: 13px; }
.poster-face::after { content: '⌣'; position: absolute; inset: 39% 0 auto; text-align: center; font: 48px/1 sans-serif; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr); gap: 40px; align-items: start; }
.form-card { border: 2px solid var(--ink); border-radius: 22px; background: var(--paper-soft); padding: clamp(24px, 5vw, 42px); box-shadow: var(--shadow); }
.form-card h2 { margin: 0 0 8px; font-size: 38px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-top: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 900; }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 11px; background: white; padding: 12px 14px; color: var(--ink); font: inherit; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(243,216,117,.6); border-color: var(--ink); }
.hidden-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit { margin-top: 22px; cursor: pointer; font: 900 16px 'Nunito Sans', sans-serif; }
.contact-aside { display: grid; gap: 18px; }
.contact-box { border: 1.5px solid var(--ink); border-radius: 16px; padding: 20px; background: var(--sky); }
.contact-box:nth-child(2) { background: #eef2d9; }
.contact-box h3 { margin: 0 0 7px; font-size: 20px; }
.contact-box p { margin: 0; color: var(--ink-soft); }

.site-foot { background: var(--ink); color: var(--paper); padding: 48px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); gap: 42px; }
.site-foot .brand { color: white; }
.site-foot .brand-mark { border-color: var(--paper); background: transparent; }
.site-foot .brand-mark::before { border-color: var(--paper); }
.site-foot p { color: #c8d7d9; max-width: 450px; }
.site-foot h2 { margin: 0 0 12px; font-size: 17px; color: var(--butter); }
.site-foot nav a { display: block; width: fit-content; margin: 7px 0; color: white; text-decoration: none; }
.site-foot nav a:hover { text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); color: #c8d7d9; font-size: 13px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 850px) {
  .nav { flex-wrap: wrap; padding-block: 15px; }
  .nav-links { width: 100%; order: 3; overflow-x: auto; padding-bottom: 4px; }
  .nav-links a { white-space: nowrap; }
  .nav-cta { padding: 8px 14px; }
  .article-layout, .contact-grid, .story-band { grid-template-columns: 1fr; }
  .toc { position: static; }
  .cards { grid-template-columns: 1fr; }
  .story-art { min-height: 330px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 26px, 1120px); }
  .page-hero { padding: 58px 0 40px; }
  .page-main { padding: 42px 0 70px; }
  .nav-links { gap: 15px; }
  .field-row, .foot-grid { grid-template-columns: 1fr; }
  .foot-grid > :first-child { grid-column: auto; }
  .foot-bottom { flex-direction: column; }
  .legal-table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
