/* Holidays: the church-basement potluck (docs/look.md). Light = the hall; dark = the chalkboard.
   The room changes in the dark; paper, tape and pins keep their colours, dimmed a little.
   palette:start — t/contrast.t checks the room pairs in this block against WCAG AA; the paper, tape and oven
   pairs are listed with their ratios in docs/look.md.
   --bg, --surface         the wall, and a panel on the wall (inputs, fieldsets)
   --ink, --muted          wall text
   --link                  links on the wall (teal; yellow chalk in the dark)
   --act, --act-ink        "red means you can act": button fill and its text
   --accent                the gathering's Pyrex colour as a fill (badges, timeline bars); --accent-ink on it
   --accent-text           that colour as text/rules on --bg and --surface; --accent-edge its 3:1 edge
   --paper*, --tomato      the flyer, the sign-up sheet, the cooks' card (ink stays dark in both modes)
   --tape*, --pin, --oven* masking tape, the push pin, the note taped to the oven */
:root {
  --bg: #f6efdd;
  --surface: #fffdf6;
  --ink: #2b2521;
  --muted: #5f5349;
  --line: #d9ccae;
  --line-strong: #8a7964;
  --warn: #a8361f;
  --warn-ink: #8a2b18;
  --warn-bg: #fbe4da;
  --accent: #1c6665;
  --accent-ink: #fff8ee;
  --accent-text: #1c6665;
  --accent-edge: #1c6665;
  --link: #1c6665;
  --act: #b23c28;
  --act-ink: #fff8ee;
  --paper: #fffdf6;
  --paper-ink: #2b2521;
  --paper-muted: #5f5349;
  --paper-edge: #e3d7bc;
  --paper-ruled: #cfe0ea;
  --paper-margin: #e2a49a;
  --tomato: #b23c28;
  --on-tomato: #fff8ee;
  --paper-teal: #1c6665;
  --paper-accent: #1c6665;
  --dawn: #e0a526;
  --tape: #ead9a6;
  --tape-ink: #2b2521;
  --pin: #b23c28;
  --oven: #2f3a3a;
  --oven-ink: #f3ebdd;
  --oven-edge: #2f3a3a;
}
.accent-cranberry { --accent: #a3243b; --accent-ink: #fff8ee; --accent-text: #a3243b; --accent-edge: #a3243b; --paper-accent: #a3243b; }
.accent-evergreen { --accent: #2f6b3a; --accent-ink: #fff8ee; --accent-text: #2f6b3a; --accent-edge: #2f6b3a; --paper-accent: #2f6b3a; }
.accent-cobalt { --accent: #2a5c9a; --accent-ink: #fff8ee; --accent-text: #2a5c9a; --accent-edge: #2a5c9a; --paper-accent: #2a5c9a; }
.accent-marigold { --accent: #e0a526; --accent-ink: #2b2521; --accent-text: #7a5200; --accent-edge: #7a5200; --paper-accent: #7a5200; }
.accent-plum { --accent: #6e3a7a; --accent-ink: #fff8ee; --accent-text: #6e3a7a; --accent-edge: #6e3a7a; --paper-accent: #6e3a7a; }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e2a24;
    --surface: #26352d;
    --ink: #eef0e8;
    --muted: #b9c4ba;
    --line: #3f4e46;
    --line-strong: #7e9085;
    --warn: #f4a48f;
    --warn-ink: #f8bfae;
    --warn-bg: #3b2722;
    --accent: #f0d98c;
    --accent-ink: #1e2a24;
    --accent-text: #f0d98c;
    --accent-edge: #f0d98c;
    --link: #f0d98c;
    --act: #f4a48f;
    --act-ink: #1e2a24;
    --paper: #e2d7bf;
    --paper-ink: #2b2521;
    --paper-muted: #4f443b;
    --paper-edge: #cdbf9f;
    --paper-ruled: #b9c8cf;
    --paper-margin: #c98679;
    --tomato: #9e3322;
    --on-tomato: #fff4e6;
    --paper-teal: #155453;
    --paper-accent: #155453;
    --dawn: #e8ad2e;
    --tape: #cdbb88;
    --tape-ink: #2b2521;
    --pin: #c8452f;
    --oven: #2e3b35;
    --oven-ink: #eef0e8;
    --oven-edge: #55665c;
  }
  .accent-cranberry { --accent: #f4a48f; --accent-ink: #1e2a24; --accent-text: #f7b3a4; --accent-edge: #f4a48f; --paper-accent: #a3243b; }
  .accent-evergreen { --accent: #9fd6a6; --accent-ink: #1e2a24; --accent-text: #a8dbae; --accent-edge: #9fd6a6; --paper-accent: #285c32; }
  .accent-cobalt { --accent: #a9c8f0; --accent-ink: #1e2a24; --accent-text: #b4cff2; --accent-edge: #a9c8f0; --paper-accent: #24507f; }
  .accent-marigold { --accent: #f0d98c; --accent-ink: #1e2a24; --accent-text: #f0d98c; --accent-edge: #f0d98c; --paper-accent: #6a4700; }
  .accent-plum { --accent: #d9b3e3; --accent-ink: #1e2a24; --accent-text: #ddbbe6; --accent-edge: #d9b3e3; --paper-accent: #6e3a7a; }
}
/* palette:end */

@font-face {
  font-family: "Permanent Marker";
  src: url("/static/fonts/permanent-marker-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/static/fonts/courier-prime-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/static/fonts/courier-prime-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/static/fonts/public-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/static/fonts/public-sans-semibold.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Layout and components: colours only as var(--...) ---- */
* { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@supports (font: -apple-system-body) {
  html { font: -apple-system-body; }
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}
/* Headings are the marker face in both modes (docs/look.md). */
h1, h2, h3, legend, .site-name {
  font-family: "Permanent Marker", "Comic Sans MS", "Chalkboard SE", cursive;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
/* Dates, times, lists and labels: the typewriter face. */
.type, time, .facts, .when, .eyebrow, .muted.count, .stuck, ul.people, ul.ontable .who, ul.requests,
ul.mail-counts, .tagline, .where {
  font-family: "Courier Prime", "Courier New", ui-monospace, monospace;
}
.eyebrow { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0; }
h1 { font-size: 2.25rem; margin: 0 0 1rem; overflow-wrap: anywhere; }
h2 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; border-left: 4px solid var(--accent-edge); padding-left: 0.5rem; }
h3 { font-size: 1.2rem; margin: 1.25rem 0 0.25rem; }
h4 { font-size: 1.05rem; margin: 1rem 0 0.25rem; font-weight: 700; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 0.15em; }
p { margin: 0.5rem 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent-edge); outline-offset: 2px; }

/* Icons (public/icons.svg) */
.icon {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* The wall, the header and the page frame */
.site-header { border-bottom: 2px dashed var(--line); }
.site-header-in {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
}
.site-name {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.4rem;
  color: var(--act);
  text-decoration: none;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: center; }
.site-nav a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; }
.site-header form.signout { margin: 0; }
main { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
section { border-top: 2px dashed var(--line); margin-top: 1.75rem; padding-top: 1.25rem; }

/* Paper on the wall. Inside paper the room's colours are rebound so text, links, inputs and buttons
   keep their contrast in the chalkboard mode (paper keeps its colours, dimmed). */
.paper, .flyer, .sheet, .card-pinned, .host-note, .card {
  --ink: var(--paper-ink);
  --muted: var(--paper-muted);
  --link: var(--paper-teal);
  --act: var(--tomato);
  --act-ink: var(--on-tomato);
  --surface: var(--paper);
  --line: var(--paper-edge);
  --line-strong: var(--paper-muted);
  --accent-text: var(--paper-accent);
  --accent-edge: var(--paper-accent);
  color-scheme: light;
  background: var(--paper);
  color: var(--paper-ink);
  border: 1px solid var(--paper-edge);
}
.panel { padding: 1.25rem 1.25rem 1.5rem; margin: 0 0 1.5rem; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

/* The flyer: taped to the wall, slightly crooked, two strips of tape */
.flyer { position: relative; transform: rotate(-1deg); }
.flyer::before, .flyer::after {
  content: "";
  position: absolute;
  top: -0.75rem;
  height: 1.6rem;
  background: var(--tape);
  pointer-events: none;
}
.flyer::before { left: 1.5rem; width: 5.4rem; transform: rotate(-1.5deg); }
.flyer::after { right: 1.4rem; width: 4.4rem; transform: rotate(1deg); }

/* The sign-up sheet: ruled lines and a margin line */
.sheet {
  position: relative;
  margin-top: 1.75rem;
  padding: 0.75rem 1.1rem 1.25rem 3rem;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 33px, var(--paper-ruled) 33px, var(--paper-ruled) 34px);
}
.sheet::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.9rem;
  width: 2px;
  background: var(--paper-margin);
  pointer-events: none;
}
.sheet h2 { margin: 0.25rem 0 0.75rem; padding: 0; border: 0; font-size: 1.7rem; }
.sheet .eyebrow { margin-top: 0.25rem; }

/* Masking tape: a dish, written in marker */
.tape-label, .tape-gap, li > .dish-name {
  display: inline-block;
  max-width: 100%;
  padding: 0.4rem 0.9rem;
  font-family: "Permanent Marker", "Comic Sans MS", "Chalkboard SE", cursive;
  font-size: 1.1rem;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.tape-label, li:not(.gap) > .dish-name { background: var(--tape); color: var(--tape-ink); transform: rotate(-1.2deg); }
li:nth-child(even) > .tape-label, li:nth-child(even):not(.gap) > .dish-name, .tape-label:nth-child(even) { transform: rotate(0.8deg); }
li:nth-child(3n) > .tape-label, li:nth-child(3n):not(.gap) > .dish-name { transform: rotate(-0.5deg); }
/* A dish slot nobody has taken: a dashed outline you can act on */
.tape-gap, li.gap > .dish-name { border: 2px dashed var(--act); color: var(--act); }

/* The cooks' card, pinned to the board */
.card-pinned, .host-note { position: relative; transform: rotate(0.6deg); margin: 1.75rem 0 1rem; padding: 1.25rem 1.1rem 1rem; }
.card-pinned::before, .host-note::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 50%;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: -0.55rem;
  border-radius: 50%;
  background: var(--pin);
}

/* The note taped to the oven */
.oven-note {
  --ink: var(--oven-ink);
  --muted: var(--oven-ink);
  --link: var(--oven-ink);
  --line: var(--oven-edge);
  position: relative;
  margin: 1.75rem 0 1rem;
  padding: 1.25rem 1.1rem 1rem;
  background: var(--oven);
  color: var(--oven-ink);
  border: 1px solid var(--oven-edge);
  border-radius: 6px;
  transform: rotate(-0.6deg);
  font-family: "Courier Prime", "Courier New", ui-monospace, monospace;
}
.oven-note::before {
  content: "";
  position: absolute;
  top: -0.7rem;
  left: 50%;
  width: 5rem;
  height: 1.4rem;
  margin-left: -2.5rem;
  background: var(--tape);
  pointer-events: none;
}
.oven-note .eyebrow { color: var(--oven-ink); }
.oven-note h2, .oven-note h3 { margin-top: 0.5rem; border: 0; padding: 0; }
.oven-note ul { margin: 0.5rem 0; padding-left: 1.25rem; }

/* Buttons: tomato means you can act */
.button, button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 1.1rem;
  background: var(--act);
  color: var(--act-ink);
  border: 2px solid var(--act);
  border-radius: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary, button.secondary { background: transparent; color: var(--link); border-color: var(--link); }
.button.danger, button.danger { background: var(--act); color: var(--act-ink); border-color: var(--act); }
.link-button {
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: 400;
}
form > button, form > .button { margin-top: 1rem; }
/* One-button forms that sit in a row (header sign-out, roster/list actions) line up with their neighbours. */
.actions form > button, form.inline > button, form.signout > button { margin-top: 0; }
/* A heading that opens its section, or follows the page title, needs no gap above it. */
section > h2:first-child, main > h2:first-child, h1 + h2 { margin-top: 0; }
form.inline button { min-height: 44px; }
form.inline { margin: 0.5rem 0; }

/* Forms */
input[type="text"], input[type="email"], input[type="date"], input[type="time"], input[type="number"],
input:not([type]), textarea, select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--line-strong);
  border-radius: 0;
  font: inherit;
}
input[type="checkbox"], input[type="radio"] { width: 1.5rem; height: 1.5rem; accent-color: var(--act); }
label { display: block; margin: 1.1rem 0 0.3rem; font-weight: 600; }
label.check { display: flex; align-items: center; gap: 0.75rem; min-height: 44px; font-weight: 400; }
label.check input { flex: none; margin: 0; }
fieldset { border: 1px solid var(--line); background: var(--surface); margin: 1.25rem 0; padding: 0.5rem 1rem 0.75rem; }
legend { font-size: 1.1rem; padding: 0 0.35rem; }
.choice { display: flex; align-items: center; min-height: 44px; }
.choice input[type="checkbox"], .choice input[type="radio"] { margin: 0 0.75rem 0 0; flex: none; }
.choice label { margin: 0; font-weight: 400; flex: 1; min-height: 44px; display: flex; align-items: center; }

/* Big tap targets: RSVP buttons, category choices, the one next step */
.choice.big { min-height: 56px; border: 2px solid var(--line-strong); background: var(--surface); margin: 0.5rem 0; padding: 0 0.75rem; }
.choice.big label { min-height: 56px; font-size: 1.1rem; font-weight: 600; }
.button.big, .rsvp-buttons button { min-height: 56px; font-size: 1.15rem; }
.rsvp-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.75rem 0; }
.rsvp-buttons form { flex: 1 1 8rem; margin: 0; }
.rsvp-buttons form > button { width: 100%; margin-top: 0; justify-content: flex-start; text-align: left; }
.rsvp-buttons button.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
details { margin: 1rem 0; }
summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--link); cursor: pointer; }

/* Messages */
.error, ul.warnings {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 0;
  border-left: 8px solid var(--warn);
  font-weight: 600;
  list-style: none;
}
ul.warnings li + li { margin-top: 0.35rem; }
.warn-text { font-weight: 700; color: var(--warn-ink); overflow-wrap: anywhere; }
.hints {
  margin: 0.75rem 0;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 8px solid var(--accent-edge);
}
.hints ul { margin: 0.25rem 0; padding-left: 1.25rem; }
.notice { border: 2px solid var(--line-strong); background: var(--surface); padding: 0.5rem 0.75rem; font-weight: 700; }
.nudge { font-weight: 700; color: var(--accent-text); }
.muted { color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.notes { white-space: pre-line; overflow-wrap: anywhere; padding: 0.5rem 0; }
.badge {
  display: inline-block;
  padding: 0 0.5rem;
  border: 2px solid currentColor;
  font-family: "Courier Prime", "Courier New", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.15em;
}
pre { overflow-x: auto; padding: 1rem; background: var(--surface); border: 1px solid var(--line); font-size: 0.85rem; }
.mail-counts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }

/* The gathering flyer. The wrapper stays level and holds the seasonal canvas; the flyer inside is crooked. */
.g-head { position: relative; overflow: hidden; max-width: 44rem; margin: 0 auto; padding: 1.75rem 1rem 0.5rem; }
.g-head-in { position: relative; z-index: 1; padding: 1.75rem 1.4rem 1.4rem; }
.g-head h1 { margin: 0.25rem 0 0.5rem; font-size: 2.5rem; color: var(--accent-text); overflow-wrap: anywhere; }
.g-head p { margin: 0; }
.g-head .eyebrow { font-size: 0.9rem; }
.g-head .tagline { font-weight: 700; font-size: 1.15rem; line-height: 1.3; margin: 0 0 0.5rem; }
.g-head .where { font-size: 1rem; }
.g-head .facts { margin-top: 0.75rem; font-size: 1.05rem; }
main > section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }

/* The host's note is the cooks' card */
blockquote.host-note { margin: 1.75rem 0 1rem; }
blockquote.host-note .eyebrow { margin-bottom: 0.25rem; }
blockquote.host-note .notes { padding: 0; font-family: "Permanent Marker", "Comic Sans MS", "Chalkboard SE", cursive; font-size: 1.2rem; line-height: 1.35; }
blockquote.host-note footer { margin-top: 0.5rem; font-family: "Courier Prime", "Courier New", ui-monospace, monospace; font-weight: 700; color: var(--muted); }

/* On the table: dish ... who, joined by a dotted leader */
ul.ontable { list-style: none; margin: 0.5rem 0; padding: 0; }
ul.ontable li { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0; }
ul.ontable li.covered { font-family: "Courier Prime", "Courier New", ui-monospace, monospace; font-weight: 700; color: var(--accent-text); }
ul.ontable .fill { flex: 1 1 1rem; min-width: 1rem; border-bottom: 2px dotted var(--line-strong); transform: translateY(0.35em); }
ul.ontable .who { text-align: right; overflow-wrap: anywhere; max-width: 50%; }
ul.ontable li.gap .who { color: var(--muted); }
ul.ontable .dish-name { overflow-wrap: anywhere; max-width: 55%; }

/* Home rows: each gathering is a small flyer, taped on crooked */
ul.cards { list-style: none; margin: 0; padding: 0.5rem 0 0; }
.card {
  position: relative;
  margin: 1.5rem 0.25rem 1.25rem;
  padding: 1.1rem 1.1rem 0.75rem;
  transform: rotate(-1deg);
}
.card { border-top: 6px solid var(--accent-edge); }   /* the gathering's Pyrex colour */
.card:nth-child(even) { transform: rotate(0.8deg); }
.card::before {
  content: "";
  position: absolute;
  top: -0.7rem;
  left: 1.25rem;
  width: 4.5rem;
  height: 1.3rem;
  background: var(--tape);
  pointer-events: none;
}
.card h3 { margin: 0.1rem 0 0.25rem; font-size: 1.4rem; overflow-wrap: anywhere; }
.card h3 a { display: inline-block; min-height: 44px; padding: 0.4rem 0; color: var(--accent-text); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0.25rem 0; }
.card .when { font-size: 1rem; }

/* Lists */
ul.roster { list-style: none; margin: 0; padding: 0; }
.person { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.person-name { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-top: 0.75rem; }
.actions form { margin: 0; }
.actions a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
ul.dishes, ul.people, ul.requests { list-style: none; margin: 0.5rem 0; padding: 0; }
ul.dishes li, ul.people li, ul.requests li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.dish-name { font-weight: 700; overflow-wrap: anywhere; }
ul.dishes .muted, ul.requests .muted, ul.requests .warn-text { flex-basis: 100%; }
/* Who's coming: names left, time or "host" muted on the right */
ul.people .dish-name { flex: 1 1 auto; font-weight: 400; }
ul.people .muted { flex: 0 1 auto; margin-left: auto; text-align: right; }
ul.people .muted + .muted { flex-basis: 100%; margin-left: 0; text-align: left; }
ul.dishes .actions, ul.people .actions, ul.requests .actions { margin-top: 0; }
ul.dishes a, ul.people a, ul.requests a { display: inline-flex; align-items: center; min-height: 44px; }
ul.dishes .dish-name { font-weight: 400; }
.lane-head { margin: 1.25rem 0 0.25rem; font-size: 1.05rem; }
dl.summary { margin: 1rem 0; }
dl.summary dt { font-weight: 700; margin-top: 0.5rem; }
dl.summary dd { margin: 0; overflow-wrap: anywhere; }

/* Kitchen timeline. Phones get the stacked list instead. */
.timeline-wrap { display: none; margin: 0.5rem 0 1rem; }
@media (min-width: 640px) {
  .timeline-wrap { display: block; }
}
.timeline { display: block; width: 100%; height: auto; font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 13px; }
.timeline .lane { fill: none; stroke: var(--line); stroke-width: 1; }
.timeline .lane-label { fill: var(--ink); font-weight: 700; font-size: 14px; }
.timeline .lane-sub, .timeline .tick-label { fill: var(--muted); }
.timeline .tick { stroke: var(--line); stroke-width: 1; }
.timeline .bar { fill: var(--accent); stroke: var(--accent-edge); stroke-width: 2; }
/* The diagram is the playful corner (SPEC §16): typewriter labels, big temperatures, margin notes. */
.timeline .lane-label, .timeline .lane-sub, .timeline .tick-label, .timeline .bar-sub, .timeline .meal-label {
  font-family: "Courier Prime", "Courier New", ui-monospace, monospace;
}
.timeline .bar-temp {
  fill: var(--accent-ink);
  font-family: "Courier Prime", "Courier New", ui-monospace, monospace;
  font-size: 22px;
  font-weight: 700;
}
.timeline .bar-warn ~ .bar-temp { fill: var(--warn-ink); }
.timeline .bar-label, .timeline .bar-sub { fill: var(--accent-ink); }
.timeline .bar-label { font-weight: 700; }
.timeline .bar-warn { fill: var(--warn-bg); stroke: var(--warn); stroke-width: 4; stroke-dasharray: 8 4; }
.timeline .bar-warn ~ .bar-label, .timeline .bar-warn ~ .bar-sub { fill: var(--warn-ink); }
.timeline .meal { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 4; }
.timeline .meal-label { fill: var(--ink); font-weight: 700; }
.timeline .bar-drag { cursor: grab; touch-action: none; }
.timeline .bar-drag.dragging { cursor: grabbing; opacity: 0.85; }
.margin-note {
  flex-basis: 100%;
  margin: 0.15rem 0 0.15rem 0.25rem;
  padding-left: 0.6rem;
  border-left: 4px solid var(--warn);
  font-family: "Courier Prime", "Courier New", ui-monospace, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--warn-ink);
  overflow-wrap: anywhere;
}
ul.warnings .margin-note { flex-basis: auto; border-left: 0; padding-left: 0; margin: 0; color: var(--warn-ink); }
#tl-assign { margin: 0.75rem 0; padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--line); border-left: 8px solid var(--accent-edge); }
#tl-assign button { margin: 0.25rem 0.5rem 0 0; }
#tl-confirm-text { font-weight: 700; margin: 0 0 0.5rem; }

/* Seasonal touches on the flyer: decorative, colours from the palette. Silhouettes are CSS masks; motion is
   drawn by small scripts in public/js/ that draw one still frame (or nothing) for people who ask for reduced motion. */

/* Christmas snow (public/js/snow.js) and birthday confetti (public/js/confetti.js) are drawn onto this canvas */
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.fx-canvas.fx-behind { z-index: 0; }
.theme-easter .flyer > :not(.fx-canvas) { position: relative; z-index: 1; }

/* Christmas: the stable, bottom right of the flyer (shape from public/img/nativity.svg, used as a mask) */
.theme-christmas .g-head::after {
  content: ""; position: absolute; right: 2.25rem; bottom: 1rem; width: 9rem; aspect-ratio: 7 / 5; pointer-events: none; z-index: 2;
  background: var(--paper-ink); opacity: 0.2;
  -webkit-mask: url("/static/img/nativity.svg") no-repeat center bottom / contain;
  mask: url("/static/img/nativity.svg") no-repeat center bottom / contain;
}

/* Easter: the cross, bottom right of the flyer (public/img/cross.svg). The dawn behind it is drawn
   by public/js/sunrise.js onto a canvas at the back of the flyer; the flyer's words sit above it. */
.theme-easter .g-head::after {
  content: ""; position: absolute; right: 2.25rem; bottom: 1rem; width: 4.5rem; aspect-ratio: 2 / 3; pointer-events: none; z-index: 2;
  background: var(--paper-ink); opacity: 0.6;
  -webkit-mask: url("/static/img/cross.svg") no-repeat center bottom / contain;
  mask: url("/static/img/cross.svg") no-repeat center bottom / contain;
}

/* Rotations are fixed; nothing moves on its own except the holiday dressing, and that stops here. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Draft banner and footer */
.draft-banner { padding: 0.75rem 1rem; background: var(--surface); color: var(--ink); border: 2px dashed var(--line-strong); font-weight: 700; }
.stuck { color: var(--muted); margin: 0; }
.site-footer { max-width: 44rem; margin: 0 auto; padding: 0 1rem 2rem; }
