/* Self-hosted. Both are variable fonts, so one file covers every weight used.
   Latin subset — it already includes the em dashes and curly quotes in the copy. */

@font-face {
  font-family: 'Young Serif';
  src: url('fonts/young-serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('fonts/work-sans.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* More Pie — one stylesheet, two pages. No build step. */

:root {
  --paper:  #FCFBF8;
  --card:   #FFFFFF;
  --panel:  #FBF1E1;
  --ink:    #2A2119;
  --muted:  #524740;
  --border: #E9E3D7;
  --accent: #B34317;          /* 5.4:1 on --paper, 5.0:1 on --panel, both AA */
  --accent-dark: #8E340F;
  --pen:    #2F5AA8;
  --ink-deep: #241E19;        /* footer ground — warm near-black, not pure black */
  --on-dark: #CFC7BC;

  --display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --body: 'Work Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --radius: 18px;
  --gutter: clamp(22px, 5vw, 90px);
  --measure: 42rem;
}

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

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

/* Smooth anchor scrolling, but only for people who haven't asked for less motion —
   a long animated jump is a genuine problem for vestibular disorders. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* Stops the target landing flush against the top of the viewport. */
#contact, #main { scroll-margin-top: clamp(18px, 4vw, 44px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 20px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.008em;
  line-height: 1.14;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); line-height: 1.1; }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.625rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); line-height: 1.3; }

p { margin: 0; }
img, svg { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
/* Links inside running prose get an underline — colour alone is not enough to
   distinguish them for colour-blind readers (WCAG 1.4.1). */
p a { text-decoration: underline; text-decoration-thickness: 2px;
      text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--accent) 45%, transparent); }
p a:hover { text-decoration-color: var(--accent-dark); }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: 0 0 8px 0; z-index: 10;
}
.skip:focus { left: 0; top: 0; color: var(--paper); }

/* ---------- layout ---------- */

.wrap { max-width: 1260px; margin: 0 auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; }
.section { padding-block: clamp(48px, 7vw, 84px); }
.section > * + * { margin-top: 22px; }
.lede { max-width: var(--measure); font-size: clamp(1.125rem, 2.1vw, 1.3125rem); line-height: 1.72; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 36px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 36px; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- hero band ---------- */
/* The warm tone the whole page used to carry now lives here only, so the top of
   the page reads as one block and everything below it lifts to off-white. */

.band { background: var(--panel); }
.band-end { border-bottom: 1.5px solid var(--border); }
.band .section { padding-block: clamp(30px, 4vw, 52px) clamp(56px, 8vw, 92px); }

/* ---------- header & footer ---------- */

.site-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-block: 20px;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
/* width/height on the <img> reserve the space, so the header never shifts as it loads */
.brand img { display: block; width: auto; height: clamp(34px, 5vw, 44px); }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); }
.nav a { font-size: 1.125rem; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }

.site-foot { background: var(--ink-deep); color: var(--on-dark); margin-top: clamp(48px, 7vw, 88px); }
.foot-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(24px, 4vw, 48px); flex-wrap: wrap;
  padding-block: clamp(40px, 6vw, 64px);
}
.foot-logo { display: block; width: auto; height: clamp(36px, 4.6vw, 48px); }
.foot-meta {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 1rem; line-height: 1.55; text-align: right;
}
.foot-meta .place { color: #EDE7DE; }
@media (max-width: 560px) { .foot-meta { text-align: left; } }

/* ---------- pill buttons ---------- */

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-size: 1.0625rem; font-weight: 600;
  cursor: pointer; text-align: center;
}
.pill-solid { background: var(--accent); color: #fff; }
.pill-solid:hover { background: var(--accent-dark); color: #fff; }
.pill-ghost { border-color: var(--accent); color: var(--accent); background: none; }
.pill-ghost:hover { background: var(--accent); color: #fff; }

/* ---------- cards & panels ---------- */

.card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
}
.card h3 { font-size: 1.4rem; }
.card p { font-size: 1.125rem; line-height: 1.72; color: var(--muted); }

.panel {
  background: var(--panel);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(30px, 4vw, 52px);
}
.quote { font-family: var(--display); font-size: clamp(1.35rem, 2.7vw, 1.8rem); line-height: 1.42; }

/* Centred statement — the manifesto's full stop. Deliberately not a panel. */
.statement {
  max-width: 52rem;
  margin: clamp(46px, 6.5vw, 78px) auto;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.3vw, 2.25rem);
  line-height: 1.36;
  letter-spacing: -0.008em;
  text-wrap: balance;
}

/* ---------- the marker kit ---------- */

/* Highlighter. box-decoration-break gives every LINE its own swipe, which is
   what stops a two-line phrase reading as one flat slab. */
.hl {
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 4px 13px;
  margin: 0 -9px;
}
.hl-1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 42' preserveAspectRatio='none'%3E%3Cpath d='M4 10 C 44 3, 106 13, 154 6 C 178 2, 193 5, 197 11 L 195 32 C 188 38, 166 40, 138 37 C 94 32, 46 41, 13 36 C 6 35, 3 30, 4 10 Z' fill='%23FFE68C'/%3E%3C/svg%3E"); }
.hl-2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 42' preserveAspectRatio='none'%3E%3Cpath d='M3 8 C 50 14, 110 2, 160 8 C 180 10, 194 8, 198 13 L 197 30 C 190 36, 170 33, 142 36 C 100 41, 52 33, 14 38 C 7 39, 2 34, 3 8 Z' fill='%23FFE68C'/%3E%3C/svg%3E"); }
.hl-3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 42' preserveAspectRatio='none'%3E%3Cpath d='M6 13 C 40 6, 88 16, 132 9 C 164 4, 186 9, 196 7 L 197 31 C 186 39, 150 34, 116 38 C 76 42, 40 34, 10 37 C 4 37, 2 33, 6 13 Z' fill='%23FFE68C'/%3E%3C/svg%3E"); }
.hl-4 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 42' preserveAspectRatio='none'%3E%3Cpath d='M2 11 C 36 2, 78 15, 118 7 C 152 0, 180 12, 198 8 L 196 34 C 170 39, 132 30, 96 36 C 60 42, 30 32, 10 38 C 4 39, 1 34, 2 11 Z' fill='%23FFE68C'/%3E%3C/svg%3E"); }


.mark-icon { color: var(--accent); }

/* ---------- form ---------- */

.form-intro { gap: 18px; }
.closing-note { margin-top: clamp(28px, 3.5vw, 36px); }
.form-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 1.0625rem; font-weight: 600; }
.field label .qual { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 1.125rem;
  color: var(--ink); background: var(--card);
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 13px 15px; min-height: 52px;
  width: 100%;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7D7166; }
/* Clear the hint the moment they tap in, so it never looks like text to delete. */
.field input:focus::placeholder, .field textarea:focus::placeholder { color: transparent; }
.field input:hover, .field textarea:hover { border-color: #E0CDB2; }

/* ---------- manifesto ---------- */
/* One continuous run of paragraphs, each opening with a highlighted lead-in.
   Not cards — the flow IS the device. */

.manifesto { display: flex; flex-direction: column; gap: 28px; max-width: 46rem; }
.manifesto p { font-size: clamp(1.125rem, 2.1vw, 1.3125rem); line-height: 1.78; }
.mlead { font-family: var(--display); font-size: 1.06em; }


/* Placeholder marker — deliberately looks like a note, not copy. Delete when filled. */
.todo {
  display: inline-block; align-self: flex-start;
  font-style: italic; font-weight: 500; font-size: 1.125rem; line-height: 1.45;
  color: var(--pen); border: 2px dashed var(--pen); border-radius: 12px;
  padding: 10px 18px;
}

/* ---------- shifts (What's changing?) ---------- */
/* Each shift reads like "The great unlock" does: a serif title with its body
   underneath. No panel — the heading carries it. */

.shifts { display: flex; flex-direction: column; gap: clamp(32px, 4.2vw, 44px); max-width: 46rem; margin-top: 36px; }
.shift { display: flex; flex-direction: column; gap: 12px; }
.shift h3 { font-size: clamp(1.375rem, 2.9vw, 1.75rem); }
.shift p { font-size: clamp(1.125rem, 2.1vw, 1.25rem); line-height: 1.76; }
.shifts-aside { max-width: 46rem; font-size: clamp(1.125rem, 2.1vw, 1.3125rem); line-height: 1.78; }

/* ---------- form states ---------- */

[hidden] { display: none !important; }

.form-success { display: flex; flex-direction: column; gap: 10px; grid-column: 1 / -1; }
.form-success h3 { font-size: clamp(1.375rem, 2.8vw, 1.625rem); }
.form-success p { font-size: 1.0625rem; line-height: 1.7; color: var(--muted); }
.form-error {
  font-size: 1rem; line-height: 1.6; color: var(--accent-dark);
  border: 1.5px solid var(--accent); border-radius: 12px; padding: 12px 16px;
}
