/* Teach Vibe Coding — chalkboard brand base, shared by every page */
:root {
  --board: #173F31; --board-2: #1E4A3A; --board-3: #255A47; --board-deep: #10291F; --line: rgb(var(--chalk-rgb) / .18);
  --chalk: #F4EFE3; --chalk-2: #C3D3C8; --sun: #FFD25E; --coral: #FF8466; --tomato: #E8492F; --mint: #A8D5BA;
  --card: #FBF7EF; --ink: #1F1B16; --ink-2: #4A4339; --paper: #F3EEE4; --forest: #1E5A43;
  --text-2: #E1E8E0; --text-3: #9FB5A7; --chalk-rgb: 244 239 227;
  --sans: 'DM Sans', system-ui, sans-serif; --mono: 'DM Mono', ui-monospace, monospace; --hand: 'Caveat', cursive;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; color: var(--chalk); font: 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-color: var(--board);
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, .05), transparent 50%),
    radial-gradient(ellipse at 85% 60%, rgba(255, 255, 255, .04), transparent 45%),
    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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 .45em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.hand { font-family: var(--hand); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(23, 63, 49, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 74px; display: flex; align-items: center; gap: 24px; }
.top .logo img { height: 28px; width: auto; }
.top nav { margin-left: auto; display: flex; gap: 4px; }
.top nav a { text-decoration: none; font: 500 15px/1 var(--sans); color: var(--chalk-2); padding: 10px 12px; border-radius: 10px; white-space: nowrap; }
.top nav a:hover { color: var(--chalk); background: rgb(var(--chalk-rgb) / .08); }
.top nav a[aria-current="page"] { color: var(--chalk); }
.top nav a[aria-current="page"]::before { content: "> "; font-family: var(--mono); color: var(--sun); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 16px/1 var(--sans); text-decoration: none; padding: 15px 22px; border-radius: 14px; border: 2px solid var(--sun); background: var(--sun); color: var(--ink); cursor: pointer; transition: transform .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--chalk); border-color: var(--chalk); }
.btn.ghost:hover { background: rgb(var(--chalk-rgb) / .08); }
.btn.sm { padding: 11px 16px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* chalk details */
.note { font: 700 28px/1.05 var(--hand); color: var(--sun); transform: rotate(-4deg); display: inline-block; }
.note.coral { color: var(--coral); } .note.mint { color: var(--mint); }
.chalky { filter: url(#rough); }
.cur { display: inline-block; width: .48em; height: .1em; background: var(--sun); margin-left: .06em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.squig { position: relative; white-space: nowrap; }
.squig svg { position: absolute; left: -2%; bottom: -.22em; width: 104%; height: .32em; overflow: visible; }
.eyebrow { font: 500 13px/1 var(--mono); color: var(--chalk-2); display: inline-flex; gap: 8px; align-items: center; margin-bottom: 20px; }
.eyebrow::before { content: ">"; color: var(--sun); }
h1.eyebrow { letter-spacing: 0; line-height: 1.45; margin-top: 0; align-items: baseline; }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 36px 24px 48px; text-align: center; font-size: 14.5px; color: var(--chalk-2); }
footer.site img { height: 26px; width: auto; margin: 0 auto 14px; }
footer.site nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
footer.site a { text-decoration: none; } footer.site a:hover { color: var(--sun); }

@media (max-width: 1100px) { .top nav { display: none; } }
@media (max-width: 560px) { body { font-size: 16.5px; } .top .in { padding: 0 16px; gap: 12px; } .top .logo img { height: 22px; } .top .btn { padding: 10px 14px; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* mobile menu */
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; padding: 0; place-items: center; flex: none; }
.menu-btn span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--chalk); position: relative; transition: background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2.5px; border-radius: 2px; background: var(--chalk); transition: transform .2s; }
.menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; width: 14px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { width: 20px; transform: translateY(-7px) rotate(-45deg); }
.mnav { position: fixed; left: 0; right: 0; top: calc(74px + env(safe-area-inset-top, 0px)); bottom: 0; z-index: 29; background: var(--board); background-image: inherit; padding: 28px 20px calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 6px; overflow-y: auto; animation: drop .25s ease both; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }
.mnav a.link { display: flex; align-items: baseline; gap: 12px; text-decoration: none; font: 600 30px/1.2 var(--sans); letter-spacing: -.02em; color: var(--chalk); padding: 14px 4px; border-bottom: 1px dashed var(--line); }
.mnav a.link::before { content: ">"; font: 500 20px/1 var(--mono); color: var(--sun); }
.mnav a.link[aria-current="page"] { color: var(--sun); }
.mnav .btn { margin-top: 22px; padding: 17px 22px; font-size: 17px; }
.mnav .note { margin: 26px 0 0 4px; font-size: 26px; }
.mnav .mail { font: 500 15px var(--mono); color: var(--chalk-2); margin-top: 8px; }
body.menu-open { overflow: hidden; }

@media (max-width: 1100px) {
  .menu-btn { display: grid; }
  .top .logo { margin-right: auto; }
  .top .btn { margin-left: 0; }
}
@media (max-width: 560px) {
  .top .in { height: 64px; }
  .mnav { top: calc(64px + env(safe-area-inset-top, 0px)); }
}

/* cookie choice banner */
div.consent { position: fixed; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: min(420px, calc(100% - 40px)); padding: 20px 22px; border-radius: 18px; background: var(--board-2, #1E4A3A); color: #F4EFE3; border: 1.5px solid rgb(var(--chalk-rgb) / .3); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7); font: 15px/1.5 var(--sans); }
.consent-title { font: 700 26px/1.1 var(--hand); color: #FFD25E; margin: 0 0 8px; }
div.consent p { margin: 0 0 14px; color: var(--text-2); }
div.consent a { color: #FFD25E; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1; background: #FFD25E; border-color: #FFD25E; color: #1F1B16; }
.consent-actions .btn.ghost { background: transparent; color: #F4EFE3; border-color: #F4EFE3; }
@media (max-width: 560px) { div.consent { left: 10px; right: 10px; width: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 16px 18px; } }

/* newsletter sign-up (assets/newsletter.js sends it to the same inbox as the contact form) */
.subscribe { border-radius: 22px; background: var(--board-2); border: 1.5px solid rgb(var(--chalk-rgb) / .22); padding: 22px; }
.subscribe .sub-k { font: 700 26px/1.1 var(--hand); color: var(--sun); margin: 0 0 6px; }
.subscribe .sub-t { font: 600 18px/1.35 var(--sans); color: var(--chalk); margin: 0 0 14px; }
.subscribe .sub-row { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe input[type="email"] { flex: 1 1 210px; min-width: 0; font: 500 16px/1.2 var(--sans); color: var(--chalk); background: rgba(0, 0, 0, .18); border: 1.5px solid rgb(var(--chalk-rgb) / .25); border-radius: 12px; padding: 13px 14px; }
.subscribe input[type="email"]::placeholder { color: var(--text-3); }
.subscribe input[type="email"]:focus { outline: none; border-color: var(--sun); }
.subscribe .btn { flex: none; }
.subscribe .sub-fine { font-size: 13.5px; line-height: 1.5; color: var(--chalk-2); margin: 12px 0 0; }
.subscribe .sub-fine a { color: var(--chalk-2); }
.subscribe .sub-msg { margin: 12px 0 0; font-size: 15px; line-height: 1.45; }
.subscribe .sub-msg:empty { display: none; }
.subscribe .sub-msg.ok { font: 700 25px/1.2 var(--hand); color: var(--mint); }
.subscribe .sub-msg.err { color: var(--coral); }
.subscribe.side .sub-row { flex-direction: column; }
.subscribe.side input[type="email"] { flex-basis: auto; }
.subscribe.side .btn { width: 100%; }
.subscribe.wide { padding: clamp(26px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 440px); gap: 22px 44px; align-items: center; }
.subscribe.wide .sub-k { font-size: 32px; }
.subscribe.wide .sub-t { font: 700 clamp(24px, 2.6vw, 32px)/1.15 var(--sans); letter-spacing: -.02em; margin: 0 0 10px; }
.subscribe.wide .sub-copy p:last-child { margin-bottom: 0; color: var(--text-2); }
.subscribe.inline { max-width: 560px; }
@media (max-width: 860px) { .subscribe.wide { grid-template-columns: 1fr; } }
