/* Shared by the static pages (no JavaScript): same palette as the application (src/style.css).
   Dark is the default; light follows the browser preference. */
/* Same self-hosted latin subsets as the application (@fontsource-variable), copied to public/fonts. */
@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Instrument Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  color-scheme: dark;
  --bg: #14131d;
  --surface: #1e1c2a;
  --ink: #eceaf4;
  --muted: #bdb9ce;
  --line: #34304a;
  --a: #63c3d6;
  --b: #f2869f;
  --both: #cfa4e6;
  --on-fill: #14131d;
  --warn-bg: #47202c;
  --font-display: "Bricolage Grotesque Variable", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Instrument Sans Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f2f4f8;
    --surface: #ffffff;
    --ink: #1c1a2b;
    --muted: #5d5a72;
    --line: #d9dce6;
    --a: #17697a;
    --b: #c2325a;
    --both: #5a2a70;
    --on-fill: #ffffff;
    --warn-bg: #f9e1e8;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem / 1.6 var(--font-body);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
}

.page {
  width: min(100% - 32px, 40rem);
  margin-inline: auto;
  padding-block: 24px 64px;
}

.page-header {
  display: flex;
  align-items: center;
  padding-block: 8px 24px;
}

.page-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  font: 700 1.5rem / 1 var(--font-display);
  text-decoration: none;
}

.page-brand svg {
  width: 36px;
  height: 36px;
}

.mark-a,
.mark-b {
  fill: none;
  stroke-width: 24;
}

.mark-a {
  stroke: var(--a);
}

.mark-b {
  stroke: var(--b);
}

.mark-both {
  fill: var(--both);
}

h1,
h2 {
  font-family: var(--font-display);
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem);
}

h2 {
  margin: 40px 0 12px;
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
}

p,
ul,
ol,
dl {
  margin: 0 0 16px;
}

.lead {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.5;
}

ul,
ol {
  padding-inline-start: 1.4em;
}

li {
  margin-bottom: 8px;
}

a {
  color: var(--a);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--both);
  outline-offset: 3px;
  border-radius: 4px;
}

.note {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.updated {
  color: var(--muted);
  font-size: 0.875rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding-inline: 24px;
  border-radius: 12px;
  background: var(--a);
  color: var(--on-fill);
  font-weight: 600;
  text-decoration: none;
}

.cta:hover {
  filter: brightness(1.08);
}

.card {
  margin-block: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.card > :last-child {
  margin-bottom: 0;
}

.todo {
  border-color: var(--b);
  background: var(--warn-bg);
}

.todo strong {
  font-weight: 700;
}

dt {
  margin-top: 12px;
  font-weight: 600;
}

dd {
  margin: 0;
  color: var(--muted);
}

.page-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.page-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (prefers-reduced-motion: no-preference) {
  .cta {
    transition: filter 150ms ease-out;
  }
}
