/*
 * site.css -- placeholder stylesheet for the scaffold.
 *
 * The colour values below are PLACEHOLDERS. The final palette is decided in
 * the build phase, following the rules in DESIGN.md (one committed accent that
 * is not purple, neutrals with a deliberately chosen temperature, WCAG AA
 * contrast). Everything that needs a colour must read it from a custom
 * property so the palette can be changed in exactly one place.
 *
 * Temperature of this placeholder palette: cool neutrals (a faintly green-grey
 * off-white and a blue-black ink) with one deep green accent.
 */

/* ---------- Tokens ---------- */

:root {
  --color-bg: #f4f5f3;      /* cool off-white */
  --color-ink: #161a1d;     /* near-black with a slight blue cast */
  --color-accent: #1f5c3f;  /* deep green; used for meaning (links, focus), not decoration */
  --color-focus: var(--color-accent);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121614;      /* cool near-black, slightly green */
    --color-ink: #e8ebe7;     /* off-white, not pure white */
    --color-accent: #6fc79a;  /* lightened green so it keeps AA contrast on the dark ground */
    --color-focus: var(--color-accent);
  }
}

/* ---------- Small reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
p {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: Georgia, "Times New Roman", serif; /* placeholder; real pairing chosen in the build phase */
  line-height: 1.5;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* ---------- Placeholder layout ---------- */

main {
  max-width: 40rem;
  padding: 4rem 1.5rem;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}

a {
  color: var(--color-accent);
}

/* ---------- Focus ---------- */

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
