/* Elie — shared stylesheet */

:root {
  color-scheme: light dark;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1a1917;
  --muted: #6b665e;
  --rule: #e4e0d8;
  --accent: #1f5f4f;
  --accent-soft: #eef4f1;
  --maxw: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14150f;
    --surface: #1c1d17;
    --text: #eceade;
    --muted: #9b968a;
    --rule: #2e2f27;
    --accent: #7fc4ac;
    --accent-soft: #1d2a24;
  }
}

:root[data-theme="dark"] {
  --bg: #14150f;
  --surface: #1c1d17;
  --text: #eceade;
  --muted: #9b968a;
  --rule: #2e2f27;
  --accent: #7fc4ac;
  --accent-soft: #1d2a24;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- header ---- */

header.site {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  margin-bottom: 48px;
}

header.site .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 620;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--text);
  text-decoration: none;
}

.brand span { color: var(--accent); }

nav.site {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.83rem;
  display: flex;
  gap: 18px;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
}

nav.site a:hover { color: var(--accent); }

/* ---- type ---- */

main { padding-bottom: 72px; }

h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 600;
}

h2 {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.79rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 640;
  margin: 44px 0 12px;
}

h3 {
  font-size: 1.04rem;
  font-weight: 640;
  margin: 30px 0 6px;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

ul { padding-left: 1.15rem; margin: 0 0 16px; }
li { margin-bottom: 7px; }

.updated {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 40px;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ---- components ---- */

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 22px 24px;
  margin: 28px 0;
}

.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.note {
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
  font-size: 0.95rem;
}

.note p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 560;
  background: var(--accent);
  color: var(--bg);
  padding: 11px 22px;
  border-radius: 7px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn:hover { opacity: 0.9; }

dl.meta { margin: 0; }
dl.meta dt {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 16px;
}
dl.meta dd { margin: 2px 0 0; }

/* ---- footer ---- */

footer.site {
  border-top: 1px solid var(--rule);
  padding: 26px 0 60px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--accent); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  header.site { margin-bottom: 34px; }
}
