/* Sticky Guardian Digital Literacy Association
   ------------------------------------------------------------------
   PALETTE NOTE, not decoration: this site runs on the BLUE-AMBER axis
   only. Red-green colour deficiency affects roughly one man in twelve,
   including the director, and the blue-yellow channel stays intact
   under it. No red/green pairings anywhere, and nothing on this site
   encodes meaning in colour alone -- every coloured thing also has a
   word, a border, or a position saying the same.

   TYPE NOTE: the body face is Atkinson Hyperlegible, drawn by the
   Braille Institute for low vision, with letterforms deliberately made
   unconfusable with each other. Base size is 21px, not 16.
   ------------------------------------------------------------------ */

:root {
  --ink:    #10243B;
  --paper:  #FDFBF7;
  --blue:   #1C4E80;
  --amber:  #E0A21B;
  --rule:   #DCD4C6;
  --quiet:  #4A5A6B;

  --base: 21px;
  --measure: 34rem;
}

html[data-size="large"]  { --base: 25px; }
html[data-size="larger"] { --base: 30px; }

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

html { font-size: var(--base); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  line-height: 1.65;
}

h1, h2, h3, .num {
  font-family: "Zilla Slab", Georgia, serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.4rem; margin: 0 0 .6em; }
h2 { font-size: 1.6rem; margin: 2.2em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 .3em; }

p, li { max-width: var(--measure); }
p { margin: 0 0 1.1em; }

a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.wrap { width: min(62rem, 92vw); margin: 0 auto; }

/* ---- text size control: first thing on the page, on purpose ---- */
.sizebar {
  border-bottom: 2px solid var(--rule);
  background: #fff;
  padding: .5rem 0;
  font-size: .85rem;
}
.sizebar .wrap { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.sizebar span { color: var(--quiet); }
.sizebar button {
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: .35em .9em;
  cursor: pointer;
  min-height: 44px;
}
.sizebar button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.sizebar button:nth-of-type(2) { font-size: 1.15em; }
.sizebar button:nth-of-type(3) { font-size: 1.35em; }

/* ---- nav: always visible, never a hamburger ---- */
nav { border-bottom: 2px solid var(--rule); padding: 1rem 0; }
nav .wrap { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: baseline; }
nav .name {
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: auto;
  text-decoration: none;
  color: var(--ink);
}
nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 4px;
}

main { padding: 2.5rem 0 4rem; }

.lede { font-size: 1.25rem; max-width: 38rem; }

.stack { border-top: 2px solid var(--rule); margin-top: 2.5rem; padding-top: 1.5rem; }

/* ---- the signature: the eight weeks, readable across a room ---- */
.weeks { list-style: none; padding: 0; margin: 2rem 0 0; max-width: none; }
.week {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0 1.5rem;
  align-items: start;
  border-top: 2px solid var(--rule);
  padding: 1.4rem 0;
  max-width: none;
}
.week:last-child { border-bottom: 2px solid var(--rule); }
.num {
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--amber);
  -webkit-text-stroke: 1px var(--ink);
  line-height: .9;
}
.week h3 { margin: 0 0 .2em; font-size: 1.3rem; }
.week p { margin: 0; color: var(--quiet); }
.week .flag {
  display: inline-block;
  margin-top: .5rem;
  border: 2px solid var(--ink);
  padding: .1em .6em;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.callout {
  border-left: 8px solid var(--amber);
  background: #fff;
  padding: 1.2rem 1.4rem;
  margin: 2rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { display: block; font-family: "Zilla Slab", Georgia, serif; font-size: 1.15rem; }

.rule-line { border: 0; border-top: 2px solid var(--rule); margin: 3rem 0; }

footer {
  border-top: 2px solid var(--ink);
  padding: 2rem 0 3rem;
  font-size: .9rem;
  color: var(--quiet);
}
footer p { max-width: 40rem; }
footer .contact { font-size: 1.1rem; color: var(--ink); }

@media (max-width: 34rem) {
  .week { grid-template-columns: 1fr; gap: .3rem; }
  .num { font-size: 2.6rem; }
  h1 { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
