/* Full pages: the kostic.design look (Google Sites theme, measured 19 Oct 2026).
   Helvetica Neue throughout: titles 57.33px bold, nav 18.67px, body 18.67px
   light at 1.38, section headings 30.67px bold and 24px light. */

:root {
  --ink: #1c1c1c;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --soft: #f5f5f3;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 56px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 300 18.67px/1.38 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: 1040px; }

/* ---------- banner ---------- */
.banner { padding: 72px 0 40px; }
.banner-inner { display: flex; align-items: center; gap: 32px; }
.banner-hex { width: 112px; height: 112px; flex: none; }
.crumb { margin: 0 0 6px; font-size: 16px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.banner h1 {
  margin: 0;
  font: 700 57.33px/1.2 var(--font);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.subtitle { margin: 6px 0 0; font-size: 24px; line-height: 1.38; }
.map-link { margin: 14px 0 0; font-size: 16px; }
.map-link a { text-underline-offset: 3px; }
@media (max-width: 599px) {
  .banner { padding: 40px 0 24px; }
  .banner-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .banner-hex { width: 80px; height: 80px; }
  .banner h1 { font-size: 40px; }
}

/* ---------- article ---------- */
.body { overflow-wrap: break-word; }
.body p { margin: 8px 0 22px; }
.body h1, .body h2, .body h3, .body h4 { line-height: 1.2; margin: 40px 0 10px; }
.body h1 { font-size: 30.67px; font-weight: 700; }
.body h2 { font-size: 24px; font-weight: 700; }
.body h3 { font-size: 24px; font-weight: 300; }
.body h4 { font-size: 18.67px; font-weight: 700; }
.body > :first-child { margin-top: 0; }
.body img { display: block; margin: 12px 0; cursor: zoom-in; }
.body ul, .body ol { margin: 8px 0 22px; padding-left: 26px; }
.body li { margin-bottom: 8px; }
.body a { text-underline-offset: 3px; }
.body strong { font-weight: 700; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 12px 0 28px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.facts { margin: 48px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); font-size: 16px; }
.facts dl { margin: 0; }
.facts dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 8px 0; }
.facts dt { font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
.facts dd { margin: 0; }
.facts a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.tags a { display: block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 3px; font-size: 14.67px; text-decoration: none; }
.tags a:hover { border-color: #bbb; }

/* ---------- cards ---------- */
.related { margin-top: 72px; padding: 48px 0 24px; background: var(--soft); }
.related h2 { margin: 0 0 24px; font-size: 30.67px; font-weight: 700; line-height: 1.2; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 24px; margin: 0 0 48px; padding: 0; list-style: none; }
.card { display: block; text-decoration: none; }
.card-media { display: flex; align-items: center; justify-content: center; aspect-ratio: 297 / 156; background: var(--soft); }
.related .card-media { background: #fff; }
.card-media .hex { width: 34%; height: auto; aspect-ratio: 1; transition: transform .2s; }
.card:hover .hex { transform: scale(1.06); }
.card-title { display: block; margin-top: 12px; font-size: 24px; font-weight: 700; line-height: 1.2; }
.card-tag { display: block; margin-top: 4px; font-size: 18.67px; color: var(--ink); }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- footer ---------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); font-size: 14.67px; }
.related + .site-footer, main:has(> .related:last-child) + .site-footer { border-top: 0; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.footer-col h2 { margin: 0 0 10px; font-size: 14.67px; font-weight: 700; }
.footer-col h2 a { text-decoration: none; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin: 0 0 6px; }
.footer-col a, .social a { text-decoration: none; }
.footer-col a:hover, .social a:hover { text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 36px 0 0; padding: 0; list-style: none; }
.copyright { margin: 20px 0 0; color: var(--muted); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.6); cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 92vh; background: #fff; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); }

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