:root {
  --bg: #faf8f4;
  --bg-2: #f2efe8;
  --surface: #ffffff;
  --ink: #1a1816;
  --muted: #5f5a53;
  --rule: #e4dfd5;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(26, 24, 22, 0.05), 0 10px 30px rgba(26, 24, 22, 0.07);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141311;
    --bg-2: #1a1916;
    --surface: #1e1c19;
    --ink: #ece6da;
    --muted: #a39b8f;
    --rule: #2c2925;
    --accent: #5eead4;
    --accent-ink: #0f1a18;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { letter-spacing: -0.015em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 1; }

header { padding: 26px 0; }
header .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.wordmark { font-weight: 700; letter-spacing: -0.01em; font-size: 21px; color: var(--ink); }
.wordmark:hover { text-decoration: none; }
nav { display: flex; gap: 22px; flex-wrap: wrap; }
nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
nav a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding: 24px 0 56px; } }
.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.08;
  font-weight: 700;
  max-width: 18ch;
}
.lead { margin: 0 0 28px; color: var(--muted); font-size: 19px; max-width: 54ch; }
.actions { margin: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 16px;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--rule); }
.button.secondary:hover { border-color: var(--ink); }
.hero-visual { display: flex; justify-content: center; }
.hero-art { width: 100%; max-width: 480px; height: auto; filter: drop-shadow(0 18px 30px rgba(26, 24, 22, 0.18)); }
@media (max-width: 860px) { .hero-art { max-width: 360px; } }

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--rule); }
section h2 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
section .lede { margin: 0 0 32px; color: var(--muted); font-size: 18px; max-width: 60ch; }

/* Site cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card {
  --site: var(--accent);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--site); }
.card .art { display: block; line-height: 0; border-bottom: 4px solid var(--site); }
.card .art svg { width: 100%; height: auto; display: block; }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 4px; font-size: 23px; font-weight: 700; }
.card h3 a { color: var(--ink); }
.card .tag { margin: 0 0 14px; color: var(--muted); font-style: italic; }
.card .what { margin: 0 0 20px; flex: 1; }
.card .visit { margin: 0; font-weight: 600; }
.card .visit a { color: var(--site); }
.card .visit a::after { content: " \\2192"; }

/* Principles */
.about { background: var(--bg-2); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 28px; }
@media (max-width: 800px) { .principles { grid-template-columns: 1fr; gap: 24px; } }
.principle svg { width: 44px; height: 44px; color: var(--accent); margin-bottom: 12px; }
.principle h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.principle p { margin: 0; color: var(--muted); }
.about-line { margin: 40px 0 0; color: var(--muted); max-width: 60ch; }

/* Contact */
.contact dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; margin: 0; }
@media (max-width: 640px) { .contact dl { grid-template-columns: 1fr; } }
.contact dl > div { padding: 18px 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; }
.contact dt { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.contact dd { margin: 0; overflow-wrap: anywhere; font-size: 18px; }

/* Legal pages */
.doc { padding: 48px 0 56px; }
.doc .wrap { max-width: 720px; }
.doc h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.doc .effective { margin: 0 0 32px; color: var(--muted); font-size: 15px; }
.doc h2 { margin: 32px 0 8px; font-size: 20px; font-weight: 700; }
.doc p { margin: 0 0 12px; }

/* Footer */
footer { padding: 40px 0 56px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--rule); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px 48px; margin-bottom: 28px; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-mark { margin: 0 0 4px; color: var(--ink); font-weight: 700; font-size: 17px; }
.foot-note { margin: 0; max-width: 42ch; }
.foot-head { margin: 0 0 6px; color: var(--ink); font-weight: 600; }
footer .foot-grid p { margin: 0 0 4px; }
footer .foot-grid a { color: var(--muted); }
footer .foot-grid a:hover { color: var(--ink); }
footer .links { margin: 0 0 6px; }
footer .links a { color: var(--muted); }
footer .links a:hover { color: var(--ink); }
footer p { margin: 6px 0; }
