@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --paper-3: #e2d9c7;
  --sheet: #fbf8f2;
  --ink: #1c1f26;
  --ink-2: #4a4f5a;
  --red: #a3221b;
  --red-soft: rgba(163, 34, 27, 0.1);
  --line: rgba(28, 31, 38, 0.16);
  --line-strong: rgba(28, 31, 38, 0.38);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Plex", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: clamp(1.06rem, 0.98rem + 0.3vw, 1.2rem); line-height: 1.6; font-optical-sizing: auto; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--red); color: var(--paper); }
button { font: inherit; color: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: 0.7rem 1rem; font-family: var(--sans); font-size: 0.95rem; text-decoration: none; }
.skip:focus { top: 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.label { font-family: var(--sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }

.site-head { position: sticky; top: 0; z-index: 50; background: rgba(244, 239, 230, 0.94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(6px)) { .site-head { background: rgba(244, 239, 230, 0.86); backdrop-filter: blur(6px); } }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand { font-size: 1.25rem; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand span { color: var(--red); }
.head-nav ul { display: flex; gap: clamp(0.9rem, 2.4vw, 2rem); list-style: none; margin: 0; padding: 0; align-items: center; }
.head-nav a { font-family: var(--sans); font-size: 0.9rem; text-decoration: none; padding: 0.5rem 0; display: inline-block; }
.head-nav a:hover { text-decoration: underline; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 48px; padding: 0.75rem 1.35rem; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 0.95rem; font-weight: 500; text-decoration: none; border: 1px solid var(--ink); border-radius: 2px; transition: background 0.2s, color 0.2s, border-color 0.2s; cursor: pointer; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-small { min-height: 40px; padding: 0.5rem 0.95rem; font-size: 0.85rem; }
.btn-line { display: inline-flex; align-items: center; min-height: 48px; padding: 0.75rem 0.2rem; font-family: var(--sans); font-size: 0.95rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); }
.btn-line:hover { text-decoration-color: var(--red); }

.site-foot { border-top: 1px solid var(--line); padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom)); font-family: var(--sans); font-size: 0.85rem; color: var(--ink-2); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-foot p { margin: 0; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-foot a { display: inline-block; padding: 0.3rem 0; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.menu-btn { display: none; align-items: center; gap: 0.5rem; min-height: 44px; min-width: 44px; padding: 0.4rem 0.2rem 0.4rem 0.6rem; background: transparent; border: 0; cursor: pointer; font-family: var(--sans); font-size: 0.85rem; font-weight: 500; color: var(--ink); }
.menu-btn .bars { position: relative; width: 22px; height: 2px; background: currentColor; transition: background 0.2s; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease); }
.menu-btn .bars::before { top: -7px; }
.menu-btn .bars::after { top: 7px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
.head-end { display: flex; align-items: center; gap: 0.6rem; }
@media (max-width: 760px) { .menu-btn { display: inline-flex; } }

.menu { position: fixed; inset: 3.75rem 0 0 0; z-index: 49; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom)); }
.menu[hidden] { display: none; }
.menu ol, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu > nav > ol > li { border-bottom: 1px solid var(--line); }
.menu > nav > ol > li > a { display: flex; align-items: baseline; gap: 0.8rem; padding: 0.95rem 0; font-size: 1.6rem; line-height: 1.15; text-decoration: none; letter-spacing: -0.01em; }
.menu .mn { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--red); min-width: 1.8rem; }
.menu .sub { padding: 0 0 0.9rem 2.6rem; display: grid; gap: 0.1rem; }
.menu .sub a { display: flex; gap: 0.7rem; padding: 0.4rem 0; font-size: 1.05rem; text-decoration: none; color: var(--ink-2); }
.menu .sub a span { font-style: italic; color: var(--red); min-width: 1.8rem; }
.menu .menu-foot { display: flex; flex-wrap: wrap; gap: 0.3rem 1.3rem; margin-top: 1.6rem; font-family: var(--sans); font-size: 0.85rem; color: var(--ink-2); }
.menu .menu-foot a { display: inline-block; padding: 0.4rem 0; }
.js .menu:not([hidden]) > nav > ol > li { animation: menuIn 0.45s var(--ease) both; }
.js .menu:not([hidden]) > nav > ol > li:nth-child(2) { animation-delay: 0.04s; }
.js .menu:not([hidden]) > nav > ol > li:nth-child(3) { animation-delay: 0.08s; }
.js .menu:not([hidden]) > nav > ol > li:nth-child(4) { animation-delay: 0.12s; }
.js .menu:not([hidden]) > nav > ol > li:nth-child(5) { animation-delay: 0.16s; }
.js .menu:not([hidden]) > nav > ol > li:nth-child(6) { animation-delay: 0.2s; }
.js .menu:not([hidden]) > nav > ol > li:nth-child(7) { animation-delay: 0.24s; }
@keyframes menuIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (min-width: 761px) { .menu { display: none !important; } }

.dots { display: none; justify-content: center; gap: 0.45rem; margin-top: 0.2rem; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background 0.25s, transform 0.25s; }
.dots i.on { background: var(--red); transform: scale(1.35); }
@media (max-width: 760px) { .dots { display: flex; } }

.legal-dlg { width: min(46rem, calc(100vw - 2rem)); height: min(82svh, 52rem); max-height: calc(100svh - 2rem); padding: 0; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55); display: none; flex-direction: column; }
.legal-dlg[open] { display: flex; animation: dlgIn 0.3s var(--ease); }
.legal-dlg::backdrop { background: rgba(28, 31, 38, 0.55); }
.legal-dlg header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0.6rem 0.5rem 1.2rem; border-bottom: 1px solid var(--line); }
.legal-dlg h2 { margin: 0; font-size: 1.15rem; font-weight: 600; }
.legal-dlg .close { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.4rem 0.7rem; background: transparent; border: 0; cursor: pointer; font-family: var(--sans); font-size: 0.85rem; color: var(--ink); }
.legal-dlg .close span { font-size: 1.4rem; line-height: 1; }
.legal-dlg iframe { flex: 1; width: 100%; border: 0; background: var(--paper); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .legal-dlg { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; border: 0; } }
@media (prefers-reduced-motion: reduce) { .legal-dlg[open] { animation: none; } }
