/* Thinkers at Home, the shared look. 15 November 2026.
   Lifted out of the home page (concept 2c, Mark's choice) so the law, privacy and
   founding group pages wear the same header, buttons, colours and footer. Change
   the header or footer here, never in one page, or the pages drift apart. */
/* Animatable theme tokens, so the whole page colour glides between sections */
@property --bg { syntax: '<color>'; inherits: true; initial-value: #FBEEE2; }
@property --fg { syntax: '<color>'; inherits: true; initial-value: #2C2C2C; }
@property --muted { syntax: '<color>'; inherits: true; initial-value: #5F5A54; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #1D5C53; }
@property --mark { syntax: '<color>'; inherits: true; initial-value: #E8944A; }
@property --focus { syntax: '<color>'; inherits: true; initial-value: #1D5C53; }

:root {
  --teal: #1D5C53; --teal2: #2A7E72; --softteal: #E6F1EF;
  --amber: #E8944A; --gold: #E8A33D; --softamber: #FBEEE2;
  --cream: #FDFAF6; --ink: #2C2C2C; --line: #E4DCD0;
  --deep: #143F39; --sage: #D5E4D8; --paper: #FFFDF9;
  --display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --soft-spring: cubic-bezier(.3, 1.3, .5, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gut: 16px;
}
@media (min-width: 700px) { :root { --gut: 32px; } }
@media (min-width: 1200px) { :root { --gut: 48px; } }

/* Palettes. Used by the page (body when shifting, sections when not) and by colour blocks. */
html.shift body[data-theme="cream"], html:not(.shift) [data-theme="cream"], .c-cream {
  --bg: #FDFAF6; --fg: #2C2C2C; --muted: #5F5A54; --accent: #1D5C53; --mark: #E8944A; --focus: #1D5C53;
}
html.shift body[data-theme="softamber"], html:not(.shift) [data-theme="softamber"], .c-softamber {
  --bg: #FBEEE2; --fg: #2C2C2C; --muted: #5F5A54; --accent: #1D5C53; --mark: #E8944A; --focus: #1D5C53;
}
html.shift body[data-theme="softteal"], html:not(.shift) [data-theme="softteal"], .c-softteal {
  --bg: #E6F1EF; --fg: #2C2C2C; --muted: #4F5A57; --accent: #1D5C53; --mark: #E8944A; --focus: #1D5C53;
}
html.shift body[data-theme="teal"], html:not(.shift) [data-theme="teal"], .c-teal {
  --bg: #1D5C53; --fg: #FDFAF6; --muted: #CFE3DF; --accent: #E8A33D; --mark: #E8944A; --focus: #F6C58E;
}
html.shift body[data-theme="amber"], html:not(.shift) [data-theme="amber"], .c-amber {
  --bg: #E8944A; --fg: #2C2C2C; --muted: #3A2A1E; --accent: #12403A; --mark: #FDFAF6; --focus: #12403A;
}
html.shift body[data-theme="deep"], html:not(.shift) [data-theme="deep"], .c-deep {
  --bg: #143F39; --fg: #FDFAF6; --muted: #C6DAD6; --accent: #E8A33D; --mark: #E8944A; --focus: #F6C58E;
}
.c-sage { --bg: #D5E4D8; --fg: #2C2C2C; --muted: #3F4A44; --accent: #1D5C53; --mark: #E8944A; --focus: #1D5C53; }
.c-paper { --bg: #FFFDF9; --fg: #2C2C2C; --muted: #5F5A54; --accent: #1D5C53; --mark: #E8944A; --focus: #1D5C53; }

html:not(.shift) [data-theme], .blk { background: var(--bg); color: var(--fg); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6;
  background: var(--bg); color: var(--fg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html.shift body {
  transition: --bg .9s var(--ease), --fg .9s var(--ease), --muted .9s var(--ease),
              --accent .9s var(--ease), --mark .9s var(--ease), --focus .9s var(--ease);
}
main, footer { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: .98; }
p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
strong { font-weight: 800; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gut); }
section { position: relative; scroll-margin-top: 90px; }
.pad { padding-block: clamp(60px, 8vw, 116px); }

.h2 { font-size: clamp(40px, 7.2vw, 96px); color: var(--fg); max-width: 15ch; text-wrap: balance; }
.h2.ac { color: var(--accent); }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; max-width: 38ch; }
.source { font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 60ch; }
/* Mark, 15 November 2026: a small line under each Join button saying it is free to them.
   Never a bare "free", because the community takes effort to run. */
.btn-note { margin-top: 10px; font-size: 14px; line-height: 1.4; font-weight: 700; color: var(--muted); }
.cta-row + .btn-note { margin-top: 4px; padding-left: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: real links, springy */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.01em;
  text-decoration: none; padding: 17px 30px; border-radius: 999px; min-height: 56px;
  background: var(--teal); color: var(--cream);
  box-shadow: 0 10px 0 -4px rgba(20, 63, 57, .25);
  transition: transform .5s var(--spring), box-shadow .5s var(--spring), background-color .3s;
}
.btn:hover { transform: translateY(-4px) rotate(-1.5deg); box-shadow: 0 16px 0 -6px rgba(20, 63, 57, .25); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--amber { background: var(--amber); color: var(--ink); box-shadow: 0 10px 0 -4px rgba(0, 0, 0, .22); }
.btn--sm { font-size: 15px; padding: 11px 18px; min-height: 44px; box-shadow: none; }

/* Reveal: rise and settle with a little overshoot */
.motion .rise { opacity: 0; translate: 0 42px; scale: .97; }
.motion .rise.in {
  opacity: 1; translate: 0 0; scale: 1;
  transition: opacity .7s var(--ease) var(--d, 0s), translate 1s var(--spring) var(--d, 0s), scale 1s var(--spring) var(--d, 0s);
}
.motion .pop { opacity: 0; scale: .6; rotate: -6deg; }
.motion .pop.in { opacity: 1; scale: 1; rotate: 0deg; transition: opacity .5s var(--ease) var(--d, 0s), scale 1s var(--spring) var(--d, 0s), rotate 1s var(--spring) var(--d, 0s); }

/* Hand drawn annotations draw themselves */
.draw path { fill: none; stroke: var(--mark); stroke-linecap: round; stroke-linejoin: round; }
.motion .draw path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion .draw.in path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease) var(--pd, .35s); }

/* ---------- Header ---------- */
.site-head {
  position: relative; z-index: 60; margin: 12px var(--gut) 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px;
  background: var(--cream); color: var(--ink); border-radius: 28px; padding: 10px 10px 12px 16px;
  box-shadow: 0 10px 30px -18px rgba(20, 63, 57, .5);
  --focus: #1D5C53;
}
.site-head .logo { display: block; border-radius: 4px; }
.site-head .logo img { height: 18px; width: auto; }
.site-head .btn--sm { font-size: 14px; padding: 10px 15px; }
.site-head nav { order: 3; width: 100%; }
.site-head nav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-head nav a { font-size: 14px; font-weight: 600; text-decoration: none; padding: 4px 0; display: inline-block; position: relative; }
.site-head nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--spring);
}
.site-head nav a:hover::after { transform: scaleX(1); }
@media (min-width: 1280px) {
  .site-head {
    position: fixed; top: 14px; left: 50%; transform: translateX(-50%); margin: 0;
    width: min(1220px, calc(100% - 2 * var(--gut))); flex-wrap: nowrap;
    border-radius: 999px; padding: 10px 10px 10px 26px; gap: 28px;
  }
  .site-head .logo img { height: 28px; }
  .site-head .btn--sm { font-size: 15px; padding: 11px 18px; }
  .site-head nav { order: 0; width: auto; margin-left: auto; }
  .site-head nav ul { gap: 28px; flex-wrap: nowrap; }
  .site-head nav a { font-size: 15px; }
}


.hl { position: relative; white-space: nowrap; display: inline-block; }
.hl svg { position: absolute; left: -2%; width: 104%; bottom: -.2em; height: .32em; overflow: visible; }
.hl svg path { stroke-width: 6; }

/* ---------- Footer ---------- */
.foot { padding: 72px 0 40px; }
.foot-grid { display: grid; gap: 34px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.foot .logo img { height: 34px; width: auto; }
.foot .tag { margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -.02em; color: var(--accent); }
.foot ul { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.foot ul a { font-size: 15px; font-weight: 600; text-decoration: none; }
.foot ul a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot .copy { margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(253, 250, 246, .2); font-size: 14px; color: var(--muted); }


.btn--lg { font-size: 21px; padding: 20px 40px; min-height: 64px; }

/* ---------- Live site additions, 15 November 2026 ---------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--teal); color: var(--cream); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Menu button and panel below 1280px. site.js opens and closes it and resets it at 1280px. */
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-toggle {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
  background: #E6F1EF; display: inline-grid; place-items: center; padding: 0;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--teal); position: relative; content: "";
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle-bars::after { position: absolute; top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1279px) {
  .site-head .site-nav { display: none; }
  .site-head .site-nav.is-open { display: block; padding: 6px 4px 4px; }
  .site-head .site-nav.is-open ul { flex-direction: column; gap: 2px; }
  .site-head .site-nav.is-open a { font-size: 17px; padding: 8px 0; }
}
@media (max-width: 420px) { .btn-tail { display: none; } }
@media (min-width: 1280px) { .nav-toggle { display: none; } .header-actions { margin-left: 0; } }


/* Footer */
.foot-call { margin-top: 18px; }
.foot-call a { font-weight: 800; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-legal a, .footer-link-button { color: inherit; }
.footer-link-button { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; margin-left: 18px; }

/* Cookie choice. Both buttons share one style on purpose: refusing is exactly as easy as accepting. */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 640px; margin: 0 auto;
  background: #FDFAF6; color: #2C2C2C; border: 1px solid #E4DCD0; border-radius: 22px;
  box-shadow: 0 10px 30px -10px rgba(20, 63, 57, .45); padding: 16px 18px; font-size: 15px; line-height: 1.45;
}
.cookie-banner p { margin: 0 0 12px; }
.cookie-banner a { color: #1D5C53; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .cookie-choice {
  flex: 1 1 140px; min-height: 44px; font-size: 15px; padding: 10px 16px; box-shadow: none;
  background: #FDFAF6; color: #1D5C53; border: 2px solid #1D5C53;
}
.cookie-banner .cookie-choice:hover { background: #E6F1EF; transform: none; }

/* ---------- Inner pages, 15 November 2026 ----------
   Mark asked for the law, privacy and founding group pages to match the home page.
   The words on those pages did not change, only how they look. */
.measure { max-width: 760px; }
.btn--ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px currentColor; }

.kicker {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0;
  line-height: 1.2; padding: 8px 15px; border-radius: 999px; background: var(--accent); color: var(--bg);
}

.page-hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(52px, 7vw, 96px); }
@media (min-width: 1280px) { .page-hero { padding-top: 156px; } }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
  margin-top: 22px; font-size: clamp(40px, 6.2vw, 86px); line-height: .96; color: var(--accent);
  max-width: 17ch; text-wrap: balance;
}
.page-hero .lede { margin-top: 26px; max-width: 46ch; }
/* Decoration only, kept to the right so it never sits under the words */
.page-hero .disc, .page-hero .pill { position: absolute; z-index: 0; pointer-events: none; }
.page-hero .disc { width: clamp(150px, 30vw, 420px); aspect-ratio: 1; border-radius: 50%; background: var(--teal); right: clamp(-150px, -9vw, -40px); top: clamp(-120px, -8vw, -40px); }
.page-hero .pill { width: clamp(110px, 18vw, 260px); height: clamp(36px, 5vw, 70px); border-radius: 999px; background: var(--amber); right: clamp(18px, 10vw, 170px); bottom: clamp(18px, 4vw, 56px); transform: rotate(-18deg); }
@media (max-width: 699px) { .page-hero .disc { opacity: .9; } .page-hero .pill { display: none; } }

.stamp {
  margin-top: 24px; display: inline-flex; align-items: flex-start; gap: 12px;
  background: var(--cream); color: var(--ink); border-radius: 22px; padding: 12px 18px;
  font-size: 15px; line-height: 1.45; max-width: 60ch; box-shadow: 0 10px 24px -16px rgba(20, 63, 57, .6);
}
.stamp::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--amber); }

.page-body { padding-block: clamp(52px, 7vw, 100px); }
.prose { max-width: 68ch; margin-inline: auto; font-size: 18px; line-height: 1.68; }
.prose h2 {
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.04; color: var(--accent); text-wrap: balance;
  margin: 1.8em 0 .6em; scroll-margin-top: 110px;
}
.prose h2::before { content: ""; display: block; width: 46px; height: 6px; border-radius: 6px; background: var(--amber); margin-bottom: 18px; }
.prose > h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 1em; }
.prose a { color: var(--accent); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--amber); }
.prose a:hover { text-decoration-color: currentColor; }

/* The close of an article: who wrote it, and the way to a call */
.page-end { padding-bottom: clamp(56px, 8vw, 110px); }
.end-card {
  max-width: 980px; margin-inline: auto; border-radius: 44px; padding: clamp(28px, 5vw, 56px);
  display: grid; gap: 26px; align-items: center; box-shadow: 0 30px 50px -30px rgba(20, 63, 57, .7);
}
@media (min-width: 760px) { .end-card { grid-template-columns: auto 1fr; gap: 40px; } }
.end-card img { width: clamp(96px, 14vw, 150px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 6px var(--amber); }
.end-sign { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
.end-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.end-actions .btn-note { margin-top: 0; color: var(--muted); }
.end-back { font-weight: 700; color: var(--fg); text-underline-offset: 4px; }

/* "Updated" tag beside the law link in the header. Mark, 16 November 2026, after the
   draft Children Not in School guidance went out for consultation. Take it off once
   the page has been stable for a few weeks, or move it with the next update. */
.nav-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; line-height: 1.4; }

/* Articles by Mark (17 November 2026). Each card links out to where it was published. */
/* minmax(0, 1fr), or the column sizes to the card's content and runs off a phone screen */
.article-list { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.article-card { border-radius: 36px; padding: clamp(26px, 4.5vw, 48px); box-shadow: 0 24px 44px -30px rgba(20, 63, 57, .6); }
.article-meta { font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.article-card h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; margin: 12px 0 14px; text-wrap: balance; }
.article-card h2 a { color: inherit; text-decoration: none; }
.article-card h2 a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.article-card p { font-size: 18px; line-height: 1.6; max-width: 60ch; }
.article-card .article-sub { margin: -6px 0 14px; font-weight: 700; color: var(--accent); }
.article-read { margin-top: 18px; }
.article-read a, .published a { font-weight: 700; color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--amber); }
.published { margin-top: 22px; font-size: 16px; line-height: 1.5; }
.published-all { display: inline-block; margin-top: 6px; }

/* Guides, 23 November 2026 */
.guide-meta { font-size: 15px; color: var(--muted, #6b6b6b); margin-bottom: 1.4em; }
.prose .guide-sums { font-weight: 700; font-size: 20px; line-height: 1.7; padding: 14px 22px; border-radius: 18px; background: var(--paper, #fff); box-shadow: inset 0 0 0 2px var(--line); display: inline-block; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 1em 0; }
.prose li + li { margin-top: .45em; }
.prose .guide-end { margin-top: 2em; padding: 20px 24px; border-radius: 22px; background: var(--paper, #fff); box-shadow: inset 0 0 0 2px var(--line); font-weight: 600; }
.prose .guide-more { list-style: none; padding: 0; }
.page-hero .kicker a { color: inherit; text-decoration: none; }
.guides-faq-grid { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) { .guides-faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.guides-faq-grid li { border-radius: 28px; padding: 26px 26px 24px; }
.guides-faq-grid h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; margin: 0 0 12px; }
.guides-faq-grid p { font-size: 17px; line-height: 1.55; }
.guides-faq-grid .guide-link { margin-top: 14px; font-weight: 700; }
.guides-faq-grid .guide-link a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.page-hero h1.guide-title { font-size: clamp(28px, 5vw, 64px); line-height: 1.04; max-width: 22ch; }
@media (max-width: 399px) { .page-hero h1.guide-title { font-size: 26px; max-width: none; } .article-list .article-card h2 { font-size: 21px; } }
