/* Tshwarisano Youth Development Skills Center: the shadow board.
   The page is perforated hardboard. --p is the hole pitch; every layout measure is a whole number of pitches,
   so tools and pegs land on real holes. Three paints only: shadow white, ink navy, sponsor rust. */

@font-face {
  font-family: "Saira Stencil One";
  src: url("../fonts/saira-stencil-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* materials */
  --board: #7b5233;
  --board-d: #5c3b22;
  --hole: #1f1208;
  --pine: #d6b47e;
  --pine-d: #b8915a;
  /* the three paints */
  --paint: #f2f3ef;
  --ink: #00175f;
  --ink-2: #2b3b74;
  --rust: #942700;
  --rust-d: #761f00;

  --stencil: "Saira Stencil One", "Arial Narrow", sans-serif;
  --sans: "Overpass", "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* pitch and column count: phone 17, tablet 35, desktop 59 (odd, so a centred grid starts on a hole) */
  --n: 17;
  --p: 21px;
}
@media (min-width: 700px) { :root { --n: 35; --p: 20px; } }
@media (min-width: 1100px) { :root { --n: 59; --p: 18px; } }
@media (min-width: 1440px) { :root { --p: 24px; } }

@supports (width: round(down, 100px, 1px)) {
  :root { --p: max(17px, round(down, calc(100vw / 18), 1px)); }
  @media (min-width: 700px) { :root { --p: round(down, calc(100vw / 36), 1px); } }
  @media (min-width: 1100px) { :root { --p: min(24px, round(down, calc(100vw / 60), 1px)); } }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--p) * 3);
  scrollbar-color: var(--board-d) var(--pine);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--paint);
  background: var(--board);
  caret-color: var(--rust);
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--paint); }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--p);
  top: -4rem;
  z-index: 50;
  padding: 0.6em 1em;
  background: var(--paint);
  color: var(--ink);
  font-weight: 700;
  border-radius: 3px;
}
.skip-link:focus { top: var(--p); }

:focus-visible { outline: 3px solid var(--paint); outline-offset: 3px; }

.nums { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }

/* ---------- the wall: hardboard with a hole every pitch ---------- */

.wall {
  background-color: var(--board);
  background-image:
    radial-gradient(circle at 50% 50%, var(--hole) 0 calc(var(--p) * 0.115), rgb(31 18 8 / 0) calc(var(--p) * 0.115 + 0.9px)),
    radial-gradient(circle at 50% 60%, rgb(255 226 190 / 0.09) 0 calc(var(--p) * 0.16), rgb(255 226 190 / 0) calc(var(--p) * 0.16 + 1px)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .1 0 0 0 0 .04 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  background-size: var(--p) var(--p), var(--p) var(--p), 220px 220px;
  background-position: 50% 0, 50% 0, 0 0;
}

.grid {
  width: calc(var(--n) * var(--p));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(var(--n), var(--p));
  align-items: start;
}

/* ---------- battens: the pine strips that carry the navigation ---------- */

.batten {
  position: sticky;
  top: 0;
  z-index: 20;
  height: calc(var(--p) * 3);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0) 30%, rgb(0 0 0 / 0) 70%, rgb(70 40 10 / 0.25)),
    linear-gradient(92deg, rgb(150 100 40 / 0) 0 18%, rgb(150 100 40 / 0.12) 19% 20%, rgb(150 100 40 / 0) 21% 57%, rgb(150 100 40 / 0.1) 58% 59.5%, rgb(150 100 40 / 0) 60%),
    var(--pine);
  box-shadow: 0 3px 3px rgb(40 20 5 / 0.35), 0 8px 18px -4px rgb(40 20 5 / 0.4);
}

.batten__inner {
  width: calc(var(--n) * var(--p));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--p);
  padding-inline: var(--p);
}

.brand { flex: none; display: block; }
.brand img { height: calc(var(--p) * 2); width: auto; box-shadow: 0 1px 2px rgb(40 20 5 / 0.35); }

.batten__nav { display: none; gap: var(--p); margin-inline-start: auto; }
@media (min-width: 1100px) { .batten__nav { gap: calc(var(--p) * 1.25); } }
.batten__nav a {
  font-family: var(--stencil);
  font-size: max(15px, calc(var(--p) * 0.75));
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.3em;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.25s var(--ease-out);
}
.batten__nav a:hover { background-size: 100% 2px; }
.batten__nav a:focus-visible { outline-color: var(--ink); }

.batten .tag { margin-inline-start: auto; }
@media (min-width: 700px) {
  .batten__nav { display: flex; }
  .batten .tag { margin-inline-start: calc(var(--p) * 0.5); }
}

.batten--rail {
  position: relative;
  height: var(--p);
  z-index: 2;
}
.batten--rail::before,
.batten--rail::after {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e7e9ea, #8b9196 60%, #5e6469);
}
.batten--rail::before { left: calc(50% - var(--n) * var(--p) / 2 + var(--p) * 0.5 - 3px); }
.batten--rail::after { right: calc(50% - var(--n) * var(--p) / 2 + var(--p) * 0.5 - 3px); }

/* ---------- tags: the sponsor action, rust, with a punched eyelet ---------- */

.tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.85em 1.25em 0.8em 0.95em;
  border: 0;
  border-radius: 4px 4px 4px 4px;
  background: var(--rust);
  color: var(--paint);
  font: 800 1.0625rem/1.1 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 2px rgb(40 20 5 / 0.35), 0 6px 14px -4px rgb(40 20 5 / 0.45);
  transition: transform 0.2s var(--ease-out), background-color 0.2s, box-shadow 0.2s;
}
.tag:hover { background: var(--rust-d); transform: translateY(-2px); box-shadow: 0 4px 4px rgb(40 20 5 / 0.3), 0 12px 20px -6px rgb(40 20 5 / 0.5); }
.tag:active { transform: translateY(0); }
.tag:focus-visible { outline: 3px solid var(--paint); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }
.tag__eye {
  flex: none;
  width: 0.62em; height: 0.62em;
  border-radius: 50%;
  background: var(--board);
  box-shadow: 0 0 0 0.16em var(--paint), inset 0 1px 1px rgb(0 0 0 / 0.5);
}
.sheet .tag__eye { background: var(--paint); box-shadow: 0 0 0 0.16em #d9dcdf, inset 0 1px 1px rgb(0 0 0 / 0.35); }
.tag--sm { font-size: 0.9375rem; padding: 0.65em 1em 0.6em 0.8em; white-space: nowrap; }
@media (max-width: 1099px) { .tag__more { display: none; } }

.textlink {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgb(0 23 95 / 0.35);
  transition: text-decoration-color 0.2s;
}
.textlink:hover { text-decoration-color: var(--ink); }
.textlink:focus-visible { outline-color: var(--ink); }
.textlink--btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- sheets: white-painted panels screwed to the board ---------- */

.sheet {
  position: relative;
  background: var(--paint);
  color: var(--ink);
  padding: var(--p);
  border-radius: 2px;
  box-shadow: 0 2px 2px rgb(40 20 5 / 0.35), 0 12px 26px -8px rgb(40 20 5 / 0.55);
}
@media (min-width: 700px) { .sheet { padding: calc(var(--p) * 1.5); } }
.sheet::before,
.sheet::after {
  content: "";
  position: absolute;
  top: calc(var(--p) * 0.5 - 3px);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f4f5f5, #9ca2a7 60%, #6a7075);
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.2);
}
.sheet::before { left: calc(var(--p) * 0.5 - 3px); }
.sheet::after { right: calc(var(--p) * 0.5 - 3px); }
.sheet p { margin: 0 0 1em; max-width: 68ch; }
.sheet p:last-child { margin-bottom: 0; }

.display {
  font-family: var(--stencil);
  font-weight: 400;
  font-size: max(2.5rem, calc(var(--p) * 2.1));
  line-height: 0.98;
  letter-spacing: -0.005em;
  margin: 0 0 calc(var(--p) * 0.9);
  text-wrap: balance;
}

.h2 {
  font-family: var(--stencil);
  font-weight: 400;
  font-size: clamp(1.9rem, calc(var(--p) * 1.75), 2.75rem);
  line-height: 1.02;
  margin: 0 0 calc(var(--p) * 0.75);
  text-wrap: balance;
}
.h2--paint { color: var(--paint); }
@media (min-width: 700px) { .display { font-size: clamp(2.75rem, calc(var(--p) * 3.1), 4.75rem); } }

.lede { font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 700px) { .lede { font-size: 1.1875rem; line-height: 1.55; } }

/* ---------- first viewport ---------- */

.hero { padding-block: var(--p); }
.hero__sheet { grid-column: 1 / -1; margin-top: var(--p); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(var(--p) * 0.75) calc(var(--p) * 1.25);
  margin-top: calc(var(--p) * 1.25);
}
.reg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15em 1.1em;
  margin-top: calc(var(--p) * 0.9) !important;
  padding-top: calc(var(--p) * 0.6);
  border-top: 1px solid rgb(0 23 95 / 0.22);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.reg > span { white-space: nowrap; }

/* ---------- the board ---------- */

.board {
  grid-column: 1 / -1;
  margin-top: var(--p);
  display: grid;
  grid-template-columns: repeat(17, var(--p));
  grid-template-rows: repeat(73, var(--p));
}

.board__title {
  grid-area: 1 / 1 / 4 / 18;
  align-self: center;
  margin: 0;
  font-family: var(--stencil);
  font-weight: 400;
  font-size: max(1.3rem, calc(var(--p) * 1.05));
  line-height: 1.05;
  color: var(--paint);
  text-wrap: balance;
}
.board__title span { display: block; }

.hook {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--paint);
  text-decoration: none;
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
}
.hook:focus-visible { outline: 3px solid var(--paint); outline-offset: 2px; }

.hook--spade  { grid-area: 5 / 2 / 23 / 7; }
.hook--broom  { grid-area: 5 / 9 / 23 / 16; }
.hook--hammer { grid-area: 24 / 2 / 35 / 8; }
.hook--trowel { grid-area: 24 / 10 / 35 / 15; }
.hook--mouse  { grid-area: 36 / 2 / 47 / 7; }
.hook--clamp  { grid-area: 36 / 10 / 45 / 16; }
.hook--calc   { grid-area: 48 / 2 / 57 / 7; }
.hook--clip   { grid-area: 48 / 10 / 57 / 15; }
.hook--gloves { grid-area: 58 / 2 / 66 / 9; }
.hook--ball   { grid-area: 58 / 11 / 66 / 16; }
.hook--level  { grid-area: 67 / 3 / 73 / 15; }

.hook__label {
  height: calc(var(--p) * 2);
  width: 100%;
  padding: calc(var(--p) * 0.22) 2px 0;
  font-family: var(--stencil);
  font-size: max(12px, calc(var(--p) * 0.52));
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  overflow-wrap: anywhere;
  hyphens: manual;
}
.hook__out {
  display: block;
  margin-top: 0.25em;
  color: var(--paint);
}
.hook__out span {
  display: inline-block;
  padding: 0.15em 0.45em 0.05em;
  background: var(--rust);
  border-radius: 2px;
}

.tool {
  display: block;
  width: calc(var(--w) * var(--p));
  height: calc(var(--h) * var(--p));
  overflow: visible;
  /* part colours of the real objects */
  --sh: var(--paint);
  --wood: #c99458;
  --wood-d: #a8763f;
  --steel: #aab1b7;
  --steel-d: #737b83;
  --steel-l: #dde1e4;
  --dark: #2a2e35;
  --dark-l: #4a515c;
  --iron: #3a4048;
  --iron-l: #5b636d;
  --alu: #c6cbcf;
  --alu-d: #959ca2;
  --paper: #ffffff;
  --paperline: #a3abc2;
  --lcd: #b6c0a4;
  --key: #d2d6da;
  --key2: #8e98a2;
  --vial: #d4df79;
  --glove: #9fa4a9;
  --glove-d: #6c7278;
  --glove-s: #858b91;
  --holec: #2a180b;
  --cut: var(--board);
  --cord: #24272c;
  --cw: 1.6;
  --net: #2f3339;
}

/* the painted shadow: the same drawing, every part in shadow paint, grown by a stroke */
.tool__shadow {
  --wood: var(--sh); --wood-d: var(--sh); --steel: var(--sh); --steel-d: var(--sh); --steel-l: var(--sh);
  --dark: var(--sh); --dark-l: var(--sh); --iron: var(--sh); --iron-l: var(--sh); --alu: var(--sh); --alu-d: var(--sh);
  --paper: var(--sh); --paperline: var(--sh); --lcd: var(--sh); --key: var(--sh); --key2: var(--sh); --vial: var(--sh);
  --glove: var(--sh); --glove-d: var(--sh); --glove-s: var(--sh); --holec: var(--sh); --cut: var(--sh);
  --cord: var(--sh); --cw: 6.6; --net: var(--sh);
  stroke: var(--sh);
  stroke-width: 5;
  stroke-linejoin: round;
  transition: color 0.3s;
}

.w { fill: var(--wood); } .wd { fill: var(--wood-d); }
.s { fill: var(--steel); } .sd { fill: var(--steel-d); } .sl { fill: var(--steel-l); }
.d { fill: var(--dark); } .dl { fill: var(--dark-l); }
.k { fill: var(--iron); } .kl { fill: var(--iron-l); }
.a { fill: var(--alu); } .ad { fill: var(--alu-d); }
.p { fill: var(--paper); } .pl { fill: var(--paperline); }
.lcd { fill: var(--lcd); } .key { fill: var(--key); } .key2 { fill: var(--key2); }
.vial { fill: var(--vial); }
.g { fill: var(--glove); } .gd { fill: var(--glove-d); } .gs { fill: var(--glove-s); }
.hole { fill: var(--holec); } .cut { fill: var(--cut); }
.c { fill: none; stroke: var(--cord); stroke-width: var(--cw); stroke-linecap: round; stroke-linejoin: round; }
.n { fill: none; stroke: var(--net); stroke-width: 0.7; }

.pegs circle { fill: var(--hole); }
.pegs rect { fill: #b9bfc4; stroke: rgb(30 20 10 / 0.45); stroke-width: 0.35; }

.tool__body {
  transform-box: view-box;
  transform-origin: var(--hx) var(--hy);
  filter: drop-shadow(0 1.2px 1px rgb(30 15 5 / 0.55));
  transition: transform 0.25s var(--ease-out), filter 0.25s var(--ease-out), opacity 0.3s;
}
.hook:hover .tool__body,
.hook:focus-visible .tool__body {
  transform: translateY(-2.5px);
  filter: drop-shadow(0 5px 4px rgb(30 15 5 / 0.45));
}

/* signed out: the tool leaves its hook, the shadow turns sponsor rust */
.hook.is-out .tool { --sh: var(--rust); }
.hook.is-out .tool__body {
  transform: translateY(-14px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.3s 0.12s;
}

/* when the board first comes into view, each tool is hung on its hook, one after another, with a short swing */
@media (prefers-reduced-motion: no-preference) {
  .board.is-hanging .tool__body {
    animation: hang 0.9s var(--ease-out) backwards;
    animation-delay: calc(150ms + var(--i) * 75ms);
  }
}
@keyframes hang {
  0% { translate: 0 -9px; rotate: -7deg; }
  45% { translate: 0 0; rotate: 3.5deg; }
  72% { rotate: -1.5deg; }
  100% { translate: 0 0; rotate: 0deg; }
}

/* ---------- sections ---------- */

.section { padding-block: calc(var(--p) * 2) calc(var(--p) * 2.5); }

.sheet--wide { grid-column: 1 / -1; }
.why__cols { display: grid; gap: var(--p); }
.why strong { font-weight: 800; color: var(--ink); }

.quote { margin: 0; }
.quote p {
  font-size: 1.25rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
  max-width: 44ch;
}
.quote footer {
  margin-top: 0.75em;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-2);
}
.quote--small { margin-top: calc(var(--p) * 1.25); padding-top: calc(var(--p) * 0.8); border-top: 1px solid rgb(0 23 95 / 0.22); }
.quote--small p { font-size: 1.0625rem; font-weight: 500; color: var(--ink-2); }

.worklist {
  list-style: none;
  margin: calc(var(--p) * 1) 0 0;
  padding: 0;
  display: grid;
  gap: calc(var(--p) * 0.35);
}
.worklist li { font-size: 1.0625rem; color: var(--ink-2); }
.worklist__name {
  font-family: var(--stencil);
  font-size: 1.375rem;
  color: var(--ink);
  margin-right: 0.2em;
}

/* prints: duotone photos clipped to the board */
.print {
  position: relative;
  margin: 0;
  padding: calc(var(--p) * 0.4) calc(var(--p) * 0.4) calc(var(--p) * 0.3);
  background: var(--paint);
  color: var(--ink-2);
  box-shadow: 0 2px 2px rgb(40 20 5 / 0.35), 0 14px 24px -8px rgb(40 20 5 / 0.55);
  rotate: var(--tilt, 0deg);
}
.print img { width: 100%; }
.print figcaption {
  padding-top: calc(var(--p) * 0.3);
  font-size: 0.8125rem;
  line-height: 1.35;
}
.clip {
  position: absolute;
  top: calc(var(--p) * -0.55);
  left: calc(50% - var(--p) * 1);
  width: calc(var(--p) * 2);
  height: calc(var(--p) * 1.1);
  border-radius: 3px 3px 2px 2px;
  background: linear-gradient(180deg, #4b5159, #2a2e35 70%, #1c1f24);
  box-shadow: 0 2px 2px rgb(0 0 0 / 0.35);
}
.clip::before {
  content: "";
  position: absolute;
  left: 18%; right: 18%;
  top: calc(var(--p) * -0.45);
  height: calc(var(--p) * 0.6);
  border: 2px solid #b9bfc4;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.projects,
.aftercare,
.signout,
.foot__grid { row-gap: calc(var(--p) * 2); }

.projects__sheet,
.aftercare__sheet { grid-column: 1 / -1; }
.print--a { grid-column: 1 / -1; --tilt: -1.2deg; margin-top: var(--p); }
.print--b { grid-column: 1 / -1; --tilt: 1.4deg; }
.print--c { grid-column: 1 / -1; --tilt: 1deg; margin-top: var(--p); }
.print--d { grid-column: 2 / -2; --tilt: -1.6deg; }

/* the support card: twenty-four months, all punched */
.card {
  grid-column: 1 / -1;
  background: var(--paint);
  color: var(--ink);
  padding: calc(var(--p) * 0.8);
  border-radius: 2px;
  box-shadow: 0 2px 2px rgb(40 20 5 / 0.35), 0 12px 26px -8px rgb(40 20 5 / 0.55);
}
.card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25em 1em;
  padding-bottom: calc(var(--p) * 0.4);
  border-bottom: 2px solid var(--ink);
}
.card__title { font-family: var(--stencil); font-size: 1.5rem; line-height: 1; }
.card__sub { font-size: 0.875rem; font-weight: 700; color: var(--ink-2); }
.card__months {
  list-style: none;
  margin: calc(var(--p) * 0.5) 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  counter-reset: none;
}
.card__months li {
  position: relative;
  aspect-ratio: 1 / 0.82;
  display: grid;
  place-items: end start;
  padding: 3px 5px;
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 1px;
}
.card__foot {
  padding-top: calc(var(--p) * 0.4);
  border-top: 1px solid rgb(0 23 95 / 0.22);
  font-size: 0.9375rem;
  font-weight: 700;
}
.card__foot span { font-family: var(--stencil); font-weight: 400; margin-right: 0.4em; }

/* ---------- the sign-out register (the email composer) ---------- */

.signout__intro { grid-column: 1 / -1; }
.signout__sheet p { max-width: 46ch; }
.signout__sheet a { font-weight: 700; }
.signout__note { font-size: 0.9375rem; color: var(--ink-2); }

.register {
  grid-column: 1 / -1;
  position: relative;
  background: var(--paint);
  color: var(--ink);
  padding: calc(var(--p) * 1) calc(var(--p) * 0.8) calc(var(--p) * 1.1);
  border-radius: 2px;
  box-shadow: 0 2px 2px rgb(40 20 5 / 0.35), 0 12px 26px -8px rgb(40 20 5 / 0.55);
}
.register__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5em 1em;
  padding-bottom: calc(var(--p) * 0.45);
  border-bottom: 2px solid var(--ink);
  font-family: var(--stencil);
  font-size: 1.25rem;
  line-height: 1.1;
}
.register__out { display: inline-flex; align-items: center; gap: 0.5em; }
.register__glyph { width: 3em; height: 3em; --sh: var(--rust); }
.register__glyph[hidden] { display: none; }
.register__glyph .tool__shadow { stroke-width: 4; }
.register__tool {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 800;
  padding: 0.35em 0.7em 0.25em;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
}
.register__tool.is-set { background: var(--rust); border-color: var(--rust); color: var(--paint); }

.row {
  display: grid;
  gap: 0.4em;
  margin: 0;
  padding: calc(var(--p) * 0.6) 0;
  border: 0;
  border-bottom: 1px solid rgb(0 23 95 / 0.2);
  min-width: 0;
}
.row[hidden] { display: none; }
.row__label {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ink);
  padding: 0;
  margin: 0;
}
.opt { font-weight: 500; color: var(--ink-2); }
fieldset.row { padding-top: calc(var(--p) * 0.6); }
fieldset.row legend { float: left; width: 100%; margin-bottom: 0.4em; }
fieldset.row .choices { clear: both; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-block;
  padding: 0.55em 0.85em 0.45em;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  background: transparent;
  transition: background-color 0.15s, color 0.15s;
}
.choice:hover span { background: rgb(0 23 95 / 0.07); }
.choice input:checked + span { background: var(--ink); color: var(--paint); }
.choice input[value="sponsor"]:checked + span { background: var(--rust); border-color: var(--rust); }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.register input[type="text"],
.register select,
.register textarea {
  width: 100%;
  font: 500 1.0625rem/1.4 var(--sans);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  padding: 0.55em 0.2em 0.4em;
}
.register textarea {
  resize: vertical;
  min-height: 4.4em;
  border: 1.5px solid rgb(0 23 95 / 0.35);
  border-bottom: 2px solid var(--ink);
  padding: 0.45em 0.55em;
}
.register ::placeholder { color: #4f5b88; opacity: 1; }
.register select {
  appearance: none;
  padding-right: 2.2em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2300175f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75em center;
  background-size: 0.75em auto;
}
.register input:focus-visible,
.register select:focus-visible,
.register textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.register__preview { padding: calc(var(--p) * 0.6) 0 0; }
.preview {
  margin: 0.4em 0 0;
  padding: calc(var(--p) * 0.6);
  min-height: 6em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 500 0.9375rem/1.5 var(--sans);
  color: var(--ink);
  background: rgb(0 23 95 / 0.045);
  border: 1.5px dashed rgb(0 23 95 / 0.45);
  border-radius: 2px;
}

.register__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(var(--p) * 0.5) calc(var(--p) * 1);
  margin-top: calc(var(--p) * 0.8);
}
.status { flex-basis: 100%; margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.status:empty { display: none; }

/* ---------- footer: the registration plate ---------- */

.foot { padding-block: calc(var(--p) * 2) calc(var(--p) * 3); }

.plate { grid-column: 1 / -1; }
.plate__title {
  margin: 0 0 calc(var(--p) * 0.5);
  font-family: var(--stencil);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
}
.plate__rows { margin: 0; display: grid; gap: 0; }
.plate__rows div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 0.75em;
  padding: 0.45em 0;
  border-top: 1px solid rgb(0 23 95 / 0.25);
}
.plate__rows dt { font-size: 0.8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 0.15em; }
.plate__rows dd { margin: 0; font-weight: 700; }

.foot__contact { grid-column: 1 / -1; }
.foot__contact .plate__title { margin-bottom: calc(var(--p) * 0.6); }
.contact { list-style: none; margin: 0 0 calc(var(--p) * 1); padding: 0; display: grid; gap: 0.5em; }
.contact li { display: grid; grid-template-columns: 6em 1fr; gap: 0.75em; align-items: baseline; }
.contact__k { font-family: var(--stencil); font-size: 1rem; color: var(--ink-2); }
.contact a { font-weight: 700; font-size: 1.125rem; overflow-wrap: anywhere; }
.foot__note { margin: 0 0 0.5em; font-size: 0.9375rem; }
.foot__copy { margin: 0; font-size: 0.875rem; color: var(--ink-2); }
.foot__note { color: var(--ink-2); }

/* ---------- tablet ---------- */

@media (min-width: 700px) {
  .hero__sheet { grid-column: 2 / span 33; }
  .board {
    grid-column: 1 / span 34;
    grid-template-columns: repeat(34, var(--p));
    grid-template-rows: repeat(32, var(--p));
  }
  .board__title { grid-area: 28 / 2 / 33 / 16; align-self: end; }
  .hook--spade  { grid-area: 2 / 2 / 20 / 7; }
  .hook--broom  { grid-area: 2 / 8 / 20 / 15; }
  .hook--hammer { grid-area: 2 / 16 / 13 / 22; }
  .hook--trowel { grid-area: 2 / 23 / 13 / 28; }
  .hook--mouse  { grid-area: 2 / 29 / 13 / 34; }
  .hook--clamp  { grid-area: 14 / 16 / 23 / 22; }
  .hook--calc   { grid-area: 14 / 23 / 23 / 28; }
  .hook--clip   { grid-area: 14 / 29 / 23 / 34; }
  .hook--level  { grid-area: 21 / 2 / 27 / 14; }
  .hook--gloves { grid-area: 24 / 18 / 32 / 25; }
  .hook--ball   { grid-area: 24 / 27 / 32 / 32; }

  .sheet--wide { grid-column: 2 / span 33; }
  .projects__sheet,
  .aftercare__sheet { grid-column: 2 / span 33; }
  .print--a { grid-column: 2 / span 16; }
  .print--b { grid-column: 19 / span 16; margin-top: calc(var(--p) * 3); }
  .card { grid-column: 2 / span 16; }
  .print--c { grid-column: 20 / span 15; margin-top: 0; }
  .print--d { grid-column: 20 / span 13; margin-top: calc(var(--p) * -1); }
  .signout__intro,
  .register { grid-column: 2 / span 33; }
  .register { padding: calc(var(--p) * 1.2) calc(var(--p) * 1.25) calc(var(--p) * 1.25); }
  .row:not(.register__preview) { grid-template-columns: 11em 1fr; align-items: center; column-gap: 1em; }
  fieldset.row { display: grid; grid-template-columns: 11em 1fr; }
  fieldset.row legend { float: left; width: auto; padding: 0; margin: 0.45em 0 0; }
  fieldset.row .choices { grid-column: 2; clear: none; }
  .plate { grid-column: 2 / span 16; }
  .foot__contact { grid-column: 19 / span 16; }
  .why__cols { grid-template-columns: 1.1fr 0.9fr; gap: calc(var(--p) * 2); }
}

/* ---------- desktop: content runs from column 3 to 57, two empty pitches each side ---------- */

@media (min-width: 1100px) {
  .batten__inner { padding-inline: calc(var(--p) * 2); }
  .hero__sheet { grid-column: 3 / span 21; }
  .board { grid-column: 25 / span 34; margin-top: 0; }

  .sheet--wide { grid-column: 3 / span 55; padding: calc(var(--p) * 2); }
  .projects { grid-template-rows: auto auto; }
  .projects__sheet { grid-column: 3 / span 24; grid-row: 1 / span 2; }
  .print--a { grid-column: 30 / span 19; grid-row: 1; margin-top: calc(var(--p) * 1.5); }
  .print--b { grid-column: 43 / span 15; grid-row: 1 / span 2; margin-top: calc(var(--p) * 16); }

  .aftercare { row-gap: var(--p); }
  .aftercare__sheet { grid-column: 3 / span 21; grid-row: 1 / span 2; }
  .card { grid-column: 26 / span 15; grid-row: 1 / span 2; margin-top: var(--p); }
  .print--c { grid-column: 43 / span 15; grid-row: 1; margin-top: calc(var(--p) * 0.5); }
  .print--d { grid-column: 45 / span 12; grid-row: 2; margin-top: calc(var(--p) * 0.5); }

  .signout__intro { grid-column: 3 / span 16; padding-top: var(--p); position: sticky; top: calc(var(--p) * 4); }
  .register { grid-column: 21 / span 37; padding: calc(var(--p) * 1.25) calc(var(--p) * 1.5) calc(var(--p) * 1.5); }

  .plate { grid-column: 3 / span 21; }
  .foot__contact { grid-column: 26 / span 32; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
