:root {
  --bg: #faf7f2;
  --bg-alt: #f1ece3;
  --ink: #14263d;
  --muted: #4a5a6e;
  --accent: #c2452a;
  --accent-ink: #ffffff;
  --line: #ddd5c8;
  --card: #ffffff;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1b2b;
    --bg-alt: #14253a;
    --ink: #eee9e0;
    --muted: #b3bdc9;
    --accent: #ff8f70;
    --accent-ink: #0f1b2b;
    --line: #2a3b52;
    --card: #162a41;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: .8rem; letter-spacing: .04em; border-radius: .5rem;
}
.brand-text { display: flex; flex-direction: column; font-weight: 700; line-height: 1.2; }
.brand-text small { font-weight: 400; color: var(--muted); font-size: .75rem; }
nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 3.5rem 0 4rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--muted); margin: 0 0 1rem; font-weight: 600; }
h1 { font-family: var(--serif); font-size: clamp(2.25rem, 7vw, 4rem); line-height: 1.08; margin: 0 0 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; margin: 0 0 1.75rem; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none;
  padding: .8rem 1.5rem; border-radius: .5rem; font-weight: 700;
}
.btn:hover { filter: brightness(1.08); }

.motif { width: 100%; max-width: 22rem; justify-self: center; }
.motif .lines { stroke: var(--line); }
.motif .dots circle { fill: var(--ink); }
.motif .dots circle.accent { fill: var(--accent); }

/* Sections */
.section { padding: 4rem 0; }
.section.alt { background: var(--bg-alt); }
h2 { font-family: var(--serif); font-size: clamp(1.75rem, 4vw, 2.25rem); margin: 0 0 1.5rem; line-height: 1.2; }
h3 { font-size: 1.1rem; margin: 0 0 .5rem; line-height: 1.3; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.cards li { background: var(--card); border: 1px solid var(--line); border-radius: .75rem; padding: 1.5rem; border-top: 4px solid var(--accent); }
.cards p { margin: 0; color: var(--muted); }

.big { font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; }
.link, .mail { font-weight: 600; }
.mail { font-size: 1.35rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; font-size: .95rem; color: var(--muted); }
.site-footer p { margin: 0 0 1rem; }
.site-footer p { margin: 0; }

/* Legal page: deliberately small, plain text */
.legal-page { font-size: .75rem; line-height: 1.55; }
.legal { max-width: 46rem; padding-top: 1.5rem; padding-bottom: 3rem; }
.legal h1 { font-family: var(--font); font-size: .95rem; font-weight: 700; margin: 1rem 0 .25rem; letter-spacing: 0; }
.legal h2 { font-family: var(--font); font-size: .8rem; font-weight: 700; margin: 1.25rem 0 .35rem; }
.legal p { margin: 0 0 .6rem; color: var(--muted); }
.legal .updated { font-size: .7rem; margin-bottom: 1rem; }
.legal strong { color: var(--ink); }
.legal .mail { font-size: inherit; font-weight: 400; }

@media (min-width: 48rem) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .section, .hero { padding-top: 5rem; padding-bottom: 5rem; }
}
@media (min-width: 64rem) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 30rem) {
  .brand-text small { display: none; }
}
