/* Shared styles for every page: tokens, graph paper, fading nav, links, the Upcoming log,
   the pointer trail canvas, footer, inner-page headings, windows, the green "ask" line and the
   button. Page-specific layout stays in each page's own <style>. Never hard-code a colour in a
   page; add a token here. Light only: there is no dark theme. */
/* Fonts, hosted with the site (no requests to Google): Latin subsets of the variable fonts,
   SIL Open Font License (see assets/fonts/README.md). */
@font-face{font-family:"Inter";src:url(fonts/inter-latin.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Inter Tight";src:url(fonts/inter-tight-latin.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url(fonts/jetbrains-mono-latin.woff2) format("woff2");font-weight:100 800;font-style:normal;font-display:swap}
:root{
  --bg:#fafafa; --surface:#ffffff; --ink:#111312; --muted:#5b5f5d; --faint:#6f7471;  /* darkened 25 Oct 2026 to pass contrast for small text */ --line:#e2e4e3;
  --green:#0a6b47;            /* bottle green: links and details on the light page */
  --tint:10,107,71;           /* bottle green as r,g,b, for the nav tint */
  --grid:rgba(11,79,54,.028); --grid-major:rgba(11,79,54,.05);
  --f-display:"Inter Tight","Inter",system-ui,sans-serif;
  --f-sans:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
  --gutter:clamp(16px,4vw,40px);
  --h-section:clamp(28px,3.2vw,40px);   /* page and section headings */
  --space-section:clamp(56px,7vw,88px); /* below each section */
  color-scheme:light;
}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);font-family:var(--f-sans);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;
  background-color:var(--bg);
  background-image:
    linear-gradient(var(--grid-major) 1px,transparent 1px),linear-gradient(90deg,var(--grid-major) 1px,transparent 1px),
    linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);
  background-size:96px 96px,96px 96px,24px 24px,24px 24px;
  background-position:-1px -1px}
::selection{background:var(--green);color:#fff}
.in{max-width:1200px;margin:0 auto;padding-left:max(var(--gutter),env(safe-area-inset-left,0px));padding-right:max(var(--gutter),env(safe-area-inset-right,0px))}
a{color:inherit;text-decoration-thickness:1px;text-underline-offset:4px}
p{margin:0;max-width:60ch}
h1,h2{margin:0;font-family:var(--f-display);font-weight:600;text-wrap:balance}
.label{margin:0;font-family:var(--f-mono);font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
a:focus-visible{outline:2px solid var(--green);outline-offset:4px}

/* nav bar: a light green tint that fades to nothing. Dark text, so the green can stay light:
   the tint and the background blur both run from the top edge down to fully transparent,
   so the bar has no bottom edge. */
.site-head{position:sticky;top:0;z-index:10;color:var(--ink)}
.site-head::before{content:"";position:absolute;inset:0 0 -28px 0;pointer-events:none;
  background:linear-gradient(180deg,rgba(var(--tint),.30) 0%,rgba(var(--tint),.13) 50%,rgba(var(--tint),0) 100%);
  -webkit-backdrop-filter:blur(12px) saturate(1.3);backdrop-filter:blur(12px) saturate(1.3);
  -webkit-mask-image:linear-gradient(180deg,#000 45%,transparent);mask-image:linear-gradient(180deg,#000 45%,transparent)}
.site-head .in{position:relative;display:flex;align-items:baseline;flex-wrap:wrap;gap:12px 40px;padding-block:20px}
.wordmark{font-family:var(--f-mono);font-weight:500;font-size:14px;letter-spacing:.04em;text-decoration:none}
.wordmark::before{content:"> ";color:var(--green)}
nav{display:flex;flex-wrap:wrap;gap:8px 28px;margin-left:auto}
nav a{font-size:14px;color:rgba(17,19,18,.62);text-decoration:none;transition:color .15s}
nav a:hover,nav a[aria-current="page"]{color:var(--ink)}
nav a.home{font-family:var(--f-mono);font-size:14px} /* the Home tab is ~/ ("home" in a terminal) */
nav a[aria-current="page"]{text-decoration:underline;text-decoration-color:var(--green);text-underline-offset:7px} /* current page: a thin green underline */
@media (max-width:640px){nav{margin-left:0;width:100%;gap:8px 22px}}

.links{display:flex;flex-wrap:wrap;gap:12px 32px;margin-top:8px}
.links a{font-size:15px;color:var(--green);text-decoration:none;border-bottom:1px solid var(--green);padding-bottom:2px}
.links a:hover{color:var(--ink);border-color:var(--ink)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* upcoming: a heading, then a log of dated entries directly on the graph paper, date first */
.upcoming .in{display:grid;gap:18px;padding-bottom:var(--space-section)}
.upcoming h2{scroll-margin-top:96px;font-size:var(--h-section);line-height:1.1;letter-spacing:-.03em}  /* same size as the other section headings */
.log{list-style:none;margin:0;padding:0;border-top:1px solid var(--ink)}
.log li{border-bottom:1px solid var(--line)}
.entry,.facts{font-variant-numeric:tabular-nums}  /* figures line up in columns */
.entry{display:grid;grid-template-columns:150px minmax(0,1fr) auto auto;gap:6px 24px;align-items:baseline;padding-block:20px}
.entry .date{font-family:var(--f-mono);font-size:13px;letter-spacing:.06em;color:var(--green)}
.entry .title{font-family:var(--f-display);font-size:clamp(20px,2.2vw,26px);font-weight:500;letter-spacing:-.02em;line-height:1.2}  /* lighter than the section headings */
a.title{text-decoration:none;transition:color .15s}  /* the title links to the workshop's page, when it has one */
a.title:hover{color:var(--green)}
.entry .meta{font-family:var(--f-mono);font-size:13px;color:var(--muted)}
/* each row's action: "Register interest →" (opens Keep me posted with that workshop noted) until
   the workshop's booking link is set in site.js, then "Sign up →" to the booking page */
.entry .reg{font-family:var(--f-mono);font-size:13.5px;font-weight:600;color:var(--green);text-decoration:none;white-space:nowrap;border-bottom:1px solid var(--green);padding-bottom:2px;transition:color .15s,border-color .15s}
.entry .reg:hover{color:var(--ink);border-color:var(--ink)}
@media (max-width:760px){.entry{grid-template-columns:minmax(0,1fr) auto}.entry .date,.entry .title{grid-column:1/-1}}

/* graph paper reacts to the pointer: the square under it tints faint green and fades.
   Desktop mice only, and off under reduced motion (see mock.js). */
.trail{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
main,.site-foot{position:relative;z-index:1}

/* footer: an ink rule, then the wordmark and a line, the pages and the contact links in columns,
   and a base line with the copyright and (once registered) the company details. Same width as
   the Upcoming log. */
.site-foot .in{display:grid;gap:28px;padding-block:8px 48px;font-size:14px;color:var(--muted)}
.foot-grid,.foot-base{width:100%;max-width:900px;margin-inline:auto}
.foot-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr);gap:28px 40px;border-top:1px solid var(--ink);padding-top:32px}
.foot-brand{display:grid;gap:10px;align-content:start}
.foot-col .label{margin-bottom:12px;color:var(--green)}
.foot-col ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.site-foot a{color:var(--muted);text-decoration:none;transition:color .15s}
.site-foot a:hover{color:var(--green)}
.site-foot .wordmark{color:var(--ink)}
.foot-base{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 24px;padding-top:16px;border-top:1px solid var(--line);font-family:var(--f-mono);font-size:12px;color:var(--faint)}
@media (max-width:640px){.foot-grid{grid-template-columns:1fr 1fr}.foot-brand{grid-column:1/-1}.site-foot .in{padding-bottom:88px}}  /* room for the section arrows */

/* inner pages: heading, mono subheading, sections. Same size for the page heading and section
   headings (What we do, How we work, Why we exist), smaller than the home headline. */
.page-head .in{display:grid;gap:20px;padding-block:clamp(72px,10vw,128px) clamp(32px,4vw,44px)}
.page-head h1,.section-title{font-size:var(--h-section);line-height:1.1;letter-spacing:-.03em}
.lede{font-family:var(--f-mono);font-size:16px;line-height:1.7;color:var(--muted);max-width:62ch}
.lede a{color:var(--green);text-decoration-color:var(--green)}
section.block .in{display:grid;gap:18px;padding-bottom:var(--space-section)}
section.block .in>*{min-width:0}  /* let wide children (tables, windows) shrink and scroll instead of widening the page */
section.block .lede{margin-bottom:14px}
section.block .section-title{margin-top:16px}

/* windows: square ink border, title bar with a close box, a title and stripes. Windows you can
   act on (the home questions, an open What we do window, the enquiry form) get a hard green
   offset shadow; static windows (the people on Who we are) stay flat. */
.win{background:var(--surface);border:1px solid var(--ink)}
.win-bar{display:grid;grid-template-columns:13px auto minmax(0,1fr);align-items:center;gap:10px;height:30px;padding:0 9px;border-bottom:1px solid var(--ink)}
.win-close{width:13px;height:13px;border:1px solid var(--ink);background:var(--surface)}
.win-stripes{height:9px;background:repeating-linear-gradient(180deg,var(--ink) 0 1px,transparent 1px 4px)}  /* three lines (Mark, 27 Oct 2026; was five) */
.win-title{margin:0;padding:0 2px;font-family:var(--f-display);font-size:16px;font-weight:600;letter-spacing:-.01em;line-height:1;color:var(--green);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.win-body p{font-size:15px;color:var(--muted);max-width:none}

/* green mono line under a group of windows, e.g. "Want something else not here? Ask us!" */
.ask{margin-top:24px;font-family:var(--f-mono);font-size:16px;color:var(--green);max-width:none}
.ask a{text-decoration-color:var(--green)}

/* the one button per page (Book a place, Send enquiry): solid ink, green on hover */
.btn{display:inline-block;justify-self:start;font-family:var(--f-mono);font-size:15px;color:var(--surface);background:var(--ink);border:1px solid var(--ink);border-radius:0;padding:11px 20px;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s}
.btn:hover{background:var(--green);border-color:var(--green)}
.btn:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.btn[aria-disabled="true"]{background:var(--surface);color:var(--muted);border-color:var(--line);cursor:default}

/* form fields (the enquiry form, Keep me posted): mono labels, square ink-bordered fields, green
   focus; checkboxes drawn like the window close box, filled green when ticked */
.field>label,fieldset legend{font-family:var(--f-mono);font-size:13px;color:var(--muted);padding:0}
.opt{color:var(--faint)}
input[type=text],input[type=email],select,textarea{width:100%;font:inherit;font-size:15px;color:var(--ink);background:var(--surface);border:1px solid var(--ink);border-radius:0;padding:10px 12px;appearance:none}
::placeholder{color:var(--faint)}
input:focus,select:focus,textarea:focus{outline:2px solid var(--green);outline-offset:2px}
fieldset{border:0;margin:0;padding:0;display:grid;gap:10px;min-width:0}
.checks{display:flex;flex-wrap:wrap;gap:10px 26px}
.check{display:inline-flex;align-items:center;gap:10px;font-size:15px;cursor:pointer}
.check input{appearance:none;width:15px;height:15px;margin:0;border:1px solid var(--ink);background:var(--surface);flex:none;cursor:pointer}
.check input:checked{background:var(--green);box-shadow:inset 0 0 0 2px var(--surface)}
.check input:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.tried input:invalid{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
/* green > before a line of text inside a window, with a hanging indent */
.say{font-family:var(--f-mono);font-size:15px;line-height:1.6;color:var(--ink);padding-left:calc(1ch + .7em);text-indent:calc(-1ch - .7em);max-width:none}
.say::before{content:">";color:var(--green);margin-right:.7em}

/* Keep me posted: a small window docked at the bottom left of Home, What we do and Who we are.
   Collapsed, only its title bar shows; clicking the bar (or a "Register interest" link) opens
   it, growing up and to the right from the corner, and clicking the bar again closes it. Email
   is required; the interests are optional. Behaviour is in site.js. */
.keep-dock{position:fixed;left:max(20px,env(safe-area-inset-left,0px));bottom:24px;z-index:9;width:200px;box-shadow:3px 3px 0 var(--green);transition:width .32s cubic-bezier(.2,.8,.2,1),box-shadow .2s}
.keep-dock.open{width:min(420px,calc(100vw - 40px));box-shadow:6px 6px 0 var(--green)}
.keep-toggle{width:100%;font:inherit;color:inherit;background:var(--surface);border:0;border-bottom:1px solid transparent;cursor:pointer;text-align:left;transition:border-color .2s}
.keep-dock.open .keep-toggle{border-bottom-color:var(--ink)}
.keep-toggle:hover .win-close,.keep-dock.open .win-close{background:var(--green)}
.keep-toggle:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.keep-body{display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows .32s cubic-bezier(.2,.8,.2,1)}
.keep-dock.open .keep-body{grid-template-rows:1fr}
.keep-body>*{min-height:0}
.keep-dock .checks{display:grid;grid-template-columns:120px auto;gap:10px 20px}  /* two rows: how (workshops, consulting), then what (AI, data) */
.keep-inner{width:min(420px,calc(100vw - 40px))}  /* fixed width, so the contents don't reflow while the window grows */
@media (prefers-reduced-motion:reduce){.keep-dock,.keep-body{transition:none}}
@media (max-width:640px){.keep-dock{left:16px;bottom:16px}.keep-dock.open{width:calc(100vw - 32px)}.keep-inner{width:calc(100vw - 32px)}}
@media (max-width:640px){.keep-dock{width:178px}.keep-dock:not(.open) .win-stripes{visibility:hidden}}  /* phones: a narrower bar, no stripes, so it covers less text */
/* hidden while the footer is on screen, so it never covers the email or privacy links (site.js) */
.keep-dock{transition:width .32s cubic-bezier(.2,.8,.2,1),box-shadow .2s,opacity .2s,transform .2s}
.keep-dock.tucked{opacity:0;transform:translateY(10px);pointer-events:none}
.keep-form,.keep-thanks{display:grid;gap:18px;padding:22px 22px 24px}
.keep-form[hidden],.keep-thanks[hidden]{display:none}
.keep-thanks:focus{outline:none}
.keep-for{color:var(--green)}
.keep-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.keep-row .btn{padding-block:10px}
@media (max-width:480px){.keep-row{grid-template-columns:1fr}}
.keep-fine{font-family:var(--f-mono);font-size:12.5px;color:var(--faint);max-width:none}
.keep-fine a{color:var(--faint);text-decoration-color:var(--line)}
.keep-fine a:hover{color:var(--green);text-decoration-color:var(--green)}
.ask a.go-work{text-decoration:none;border-bottom:1px solid transparent;transition:border-color .15s}
.ask a.go-work:hover{border-color:var(--green)}

/* Centred layout (chosen 25 Oct 2026): every page has class="centred" on <html>. Headings, subheadings and
   short lines centre; windows, tables, lists and form fields keep their contents left-aligned. */
.centred .hero .in,.centred .page-head .in,.centred section.block .in,.centred .upcoming .in{justify-items:center;text-align:center}
.centred .lede,.centred .for,.centred .fine,.centred .placeholder{margin-inline:auto;text-wrap:balance}
.centred .win,.centred .log,.centred .faq,.centred .agenda,.centred form,.centred .teachers{text-align:left}
.centred .services,.centred .people,.centred .log,.centred .faq,.centred .morning,.centred section.block .in>.win{width:100%;margin-inline:auto}
.centred .upcoming .log{max-width:900px}
.centred .links,.centred .facts,.centred .book{justify-content:center}
.centred .facts{width:100%}
.centred .sub{grid-template-columns:minmax(0,1fr);justify-items:center}
.centred .intro{justify-items:center}
.centred .asks{width:100%;max-width:540px;text-align:left}
.centred .asks-body{min-height:102px;padding-top:26px;padding-bottom:28px}  /* room for the longest question on two lines (Mark, 29 Oct 2026: was 150px, which left empty space) */
@media (max-width:600px){.centred .asks-body{min-height:126px}}  /* three lines on phones */
.centred .hero .in{gap:36px;padding-block:clamp(56px,7vw,96px) clamp(72px,9vw,120px)}  /* tighter at the top, more air below */
.centred .sub{gap:40px}
.centred .after{justify-items:center;text-align:center}

/* Section arrows, on every page: two small square keys fixed at the bottom right, in the
   window style (ink border, hard green shadow) and pressed in like a key when clicked. Down goes
   to the next section, up to the previous one. At the top only down shows (with a gentle
   nudge); part-way both show; at the bottom only up. Behaviour is in site.js. */
.steps{position:fixed;right:max(20px,env(safe-area-inset-right,0px));bottom:24px;width:auto;margin:0;z-index:8;display:flex;flex-direction:column;gap:10px}  /* width and margin: so the phone rule for the main nav (full width) doesn't stretch it */
.steps button{display:grid;place-items:center;width:38px;height:38px;padding:0;font-family:var(--f-mono);font-size:17px;line-height:1;color:var(--ink);background:var(--surface);border:1px solid var(--ink);border-radius:0;box-shadow:3px 3px 0 var(--green);cursor:pointer;transition:color .15s,box-shadow .1s,transform .1s}
.steps button:hover{color:var(--green)}
.steps button:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--green)}
.steps button:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.steps button[hidden]{display:none}
.steps.at-top .step-down{animation:nudge 2.6s ease-in-out infinite}
@keyframes nudge{0%,60%,100%{transform:none}30%{transform:translateY(4px)}}
@media (prefers-reduced-motion:reduce){.steps.at-top .step-down{animation:none}}
@media (max-width:640px){.steps{bottom:16px}.steps button{width:34px;height:34px}}

