/* menzel.com — brand blue #017cc9 comes from the original menzel.css. */

:root {
  /* The site commits to a single light look on purpose: the logo is a
     transparent GIF with black ink, so any dark ground would need a white chip
     behind it, and the chip reads as a patch stuck onto the page. White page,
     no chip, logo sits flush. */
  color-scheme: light;

  --bg: #ffffff;
  --bg-raised: #ffffff;     /* cards read via their border, not a fill */
  --bg-sunken: #f4f2ef;     /* wells: map placeholder, badge */
  --ink: #1c1a17;
  --ink-soft: #56514a;
  --ink-faint: #7a7369;     /* 4.68:1 on white — small print still passes AA */
  --rule: #ddd8d0;          /* cards read by their border now, so it carries weight */
  --accent: #017cc9;        /* brand blue: surfaces, buttons, focus rings */
  --accent-text: #0169a8;   /* same hue, darkened for small text on white */
  --accent-ink: #ffffff;
  --measure: 68ch;
  --radius: 10px;
}

* { 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(--bg);
  color: var(--ink);
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "kern", "liga";
}

.wrap { width: min(100% - 2.5rem, 62rem); margin-inline: auto; }

a { color: var(--accent-text); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--accent-ink);
  padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0; z-index: 10;
}
.skip:focus { left: 0; top: 0; }

/* --- header ------------------------------------------------------------- */
header.site { border-bottom: 1px solid var(--rule); background: var(--bg); }
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 0; flex-wrap: wrap;
}
.logo { display: inline-flex; line-height: 0; }
.logo img { width: 188px; max-width: 60vw; height: auto; }
nav.site { display: flex; gap: 1.35rem; font-size: .94rem; flex-wrap: wrap; }
nav.site a { color: var(--ink-soft); text-decoration: none; }
nav.site a:hover { color: var(--accent-text); }

/* --- type --------------------------------------------------------------- */
.hero { padding: clamp(2.75rem, 8vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.eyebrow {
  font-size: .8rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; margin: 0 0 1rem;
}
h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem); line-height: 1.08;
  letter-spacing: -.025em; margin: 0 0 1.1rem; font-weight: 660;
  max-width: 20ch;
}
.lede { font-size: clamp(1.06rem, 2.2vw, 1.26rem); color: var(--ink-soft); max-width: var(--measure); margin: 0 0 1.75rem; }
.lede strong { color: var(--ink); font-weight: 600; }

section { padding: clamp(2.25rem, 5.5vw, 3.75rem) 0; border-top: 1px solid var(--rule); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); letter-spacing: -.02em; margin: 0 0 .65rem; font-weight: 650; }
.section-lede { color: var(--ink-soft); max-width: var(--measure); margin: 0 0 2rem; }
p { max-width: var(--measure); }

/* the wordmark as text, matching the logo's blue dot */
.mark { font-weight: 600; color: var(--ink); white-space: nowrap; }
.mark i { font-style: normal; color: var(--accent); }

/* --- components --------------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.25rem; border-radius: var(--radius);
  font-weight: 580; font-size: .97rem; text-decoration: none;
  border: 1px solid transparent; transition: transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { border-color: var(--rule); color: var(--ink); background: var(--bg-raised); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-text); }

.grid { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: var(--bg-raised); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.35rem; }
.card h3 { margin: 0 0 .5rem; font-size: 1.04rem; letter-spacing: -.01em; font-weight: 620; }
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem;
  padding: .9rem 0; border-top: 1px solid var(--rule);
}
.timeline li:first-child { border-top: 0; }
.timeline dt, .timeline .year { color: var(--accent-text); font-weight: 620; font-variant-numeric: tabular-nums; }
.timeline .what { color: var(--ink-soft); margin: 0; }
@media (max-width: 34rem) { .timeline li { grid-template-columns: 1fr; gap: .2rem; } }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--bg-sunken); border: 1px solid var(--rule);
  padding: .45rem .9rem; border-radius: 999px; font-size: .92rem;
  color: var(--ink); text-decoration: none;
}
.badge:hover { border-color: var(--accent); }

/* --- map (click-to-load, so nothing is requested until asked) ----------- */
.map { margin-top: 1.5rem; }
.map-frame {
  position: relative; border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-sunken); aspect-ratio: 425 / 350; max-width: 34rem;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .85rem; text-align: center;
  padding: 1.5rem; background: var(--bg-sunken); color: var(--ink-soft); font-size: .93rem;
}
.map-note { font-size: .87rem; color: var(--ink-faint); margin-top: .6rem; max-width: 34rem; }

/* --- legal pages -------------------------------------------------------- */
.doc { padding: clamp(2.25rem, 5.5vw, 3.5rem) 0 clamp(3rem, 7vw, 4rem); }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); margin-bottom: 1.75rem; max-width: none; }
.doc h2 { font-size: 1.18rem; margin: 2.25rem 0 .6rem; }
.doc p, .doc li { color: var(--ink-soft); }
.doc address { font-style: normal; color: var(--ink); line-height: 1.8; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin: .75rem 0 0; }
.doc dt { color: var(--ink-faint); }
.doc dd { margin: 0; color: var(--ink); }
@media (max-width: 32rem) { .doc dl { grid-template-columns: 1fr; gap: 0; } .doc dd { margin-bottom: .6rem; } }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: .3rem 0; }
.back { display: inline-block; margin-bottom: 1.5rem; font-size: .93rem; }
.updated { font-size: .87rem; color: var(--ink-faint); margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

/* --- footer ------------------------------------------------------------- */
footer.site { border-top: 1px solid var(--rule); padding: 2.5rem 0 3.25rem; color: var(--ink-faint); font-size: .89rem; }
footer.site .cols { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-bottom: 2rem; }
footer.site h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin: 0 0 .6rem; font-weight: 640; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: .3rem 0; }
footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--accent-text); text-decoration: underline; }
footer.site address { font-style: normal; line-height: 1.7; }
.legal { border-top: 1px solid var(--rule); padding-top: 1.5rem; max-width: var(--measure); }
.legal p { margin: .5rem 0; }

/* small utilities, so no inline style attributes are needed (a strict CSP
   with style-src 'self' blocks those silently) */
.mt-lg { margin-top: 1.75rem; }
.m-0 { margin: 0; }
.fine { margin: 0; font-size: .85rem; }
