/* Texas Toy Lab — shared site chrome (header + footer)
   Owned by tools/site-chrome.py. Every class is prefixed ttl- so it never
   collides with a page's inline styles. Brand tokens: brand-book.html. */

/* Lilita One ships one weight. Headings asked for bold made the browser smear a fake bold (holes in e/a/o filled in,
   letters touching) on 60+ pages (audit 2026-09-29). Never synthesize weight; style (italic) synthesis stays. */
html{font-synthesis:style}
/* form controls take the page's font instead of the browser's Arial ('Flip the card', 'Clear ticks'; audit T48).
   :where() keeps this at zero specificity, so every page's own button and input styles still win. */
:where(button,input,select,textarea){font-family:inherit}
/* no one-word last lines: headings balance, paragraphs avoid orphans (audit T53: 32 of 60 wrapped headings ended on one word
   at 390px). Zero specificity, so a page that sets its own text-wrap keeps it; older browsers just wrap as before. */
:where(h1,h2,h3,h4,figcaption){text-wrap:balance}
:where(p,li,dd,blockquote){text-wrap:pretty}
/* browser details (audit T89): auto-dark browsers must not repaint the cream paper brown; selection in the tape's yellow;
   hover lifts only for a real mouse (a tapped card used to stay lifted), and taps get a press-in like a toy button */
:root{color-scheme:only light}
::selection{background:var(--sun);color:var(--ink)}
/* printing a page (audit T91): ink on white, no buttons, cart, dialogs, chat or videos; keep the logo and the page */
@media print{html,body{background:#fff!important}.ttl-actions,.ttl-links,.ttl-menu,.ttl-skip,.ttl-foot-social,.ttl-foot-col,.chat-fab,dialog,video,.ts-drawer,.ts-qv{display:none!important}.ttl-header{position:static!important;box-shadow:none!important;border:0!important}.ttl-foot{background:#fff!important;color:var(--ink)!important}}
a,button,[role=button]{-webkit-tap-highlight-color:transparent}
.ttl-btn:active,.ts-btn:active,.ts-buy:active,.ts-make:active,.ts-hold:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ttl-ink,#2b2344)}
.ttl-cart:active,.ttl-burger:active,.ts-toy:active{transform:translateY(1px)}

.ttl-header,.ttl-foot,.ttl-menu,.ttl-burger{
  --ttl-ink:#2b2344;--ttl-cream:#fff6e9;--ttl-coral:#ff5d5d;--ttl-yellow:#ffc933;
  --ttl-teal:#2bc6b0;--ttl-blue:#5ec8f2;--ttl-green:#7ed957;--ttl-pink:#ff8fd8;--ttl-purple:#8b5cf6;
  --ttl-display:'Lilita One',system-ui,sans-serif;
  --ttl-body:'Nunito',system-ui,sans-serif;
  --ttl-mono:'Space Mono',ui-monospace,Menlo,monospace;
  box-sizing:border-box;font-family:var(--ttl-body);font-size:16px;line-height:1.4;font-weight:800;
  color:var(--ttl-ink);text-align:left;letter-spacing:0;
}
.ttl-header *,.ttl-foot *,.ttl-menu *{box-sizing:border-box}
.ttl-header a,.ttl-foot a,.ttl-menu a{color:inherit;text-decoration:none}
.ttl-header svg,.ttl-foot svg,.ttl-menu svg{display:block;max-width:100%;margin:0}   /* margin: a page's bare svg{} rule lifted the icons 5px (404, audit T52) */
.ttl-header ul,.ttl-foot ul{list-style:none;margin:0;padding:0}
.ttl-header a,.ttl-foot a,.ttl-menu a{margin:0}
.ttl-foot p{margin:0;font-size:inherit;line-height:inherit;max-width:none;opacity:1}   /* a page's bare p{} rule squeezed the legal lines (404, audit T52) */
.ttl-foot li{margin:0;padding:0;list-style:none;font-size:inherit;line-height:inherit}
.ttl-foot li::before,.ttl-foot li::after{content:none}
/* pages style their old <footer> with element selectors (opacity, letter-spacing...) */
.ttl-header,.ttl-foot{opacity:1;visibility:visible;text-transform:none;transform:none}

/* Full-bleed even when <body> has padding/margin: chrome.js measures the
   html/body box and sets --ttl-bleed-*. With no JS the chrome simply sits
   inside the page's padding. */
.ttl-header,.ttl-foot{
  width:calc(100% + var(--ttl-bleed-l,0px) + var(--ttl-bleed-r,0px));
  margin-left:calc(-1 * var(--ttl-bleed-l,0px));
  margin-right:calc(-1 * var(--ttl-bleed-r,0px));
  flex:none;justify-self:stretch;
}
.ttl-header{margin-top:calc(-1 * var(--ttl-bleed-t,0px));margin-bottom:0;align-self:start}
.ttl-foot{margin-top:56px;margin-bottom:calc(-1 * var(--ttl-bleed-b,0px));align-self:end}
:where([id]){scroll-margin-top:76px}

/* ---------- header ---------- */
.ttl-header{
  position:sticky;top:0;z-index:50;
  background:var(--ttl-cream);border-bottom:3px solid var(--ttl-ink);
}
.ttl-nav{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  max-width:1120px;margin:0 auto;padding:9px 24px;min-height:64px;
}
.ttl-logo{display:flex;align-items:center;gap:9px;flex:none;border-radius:8px;min-height:44px;min-width:44px}
.ttl-logo-bot{display:grid;place-items:center;flex:none}
.ttl-logo-bot svg{width:36px;height:39px}
.ttl-logo-text{font-family:var(--ttl-display);font-size:1.15rem;line-height:1;white-space:nowrap}
.ttl-logo-text small{display:block;font-family:var(--ttl-mono);font-weight:700;font-size:.55rem;letter-spacing:.1em;color:#d63232;margin-top:2px}
.ttl-cursor{animation:ttl-blink 1.2s steps(1) infinite}
@keyframes ttl-blink{50%{opacity:0}}
.ttl-rainbow i{font-style:normal}
.ttl-rainbow i:nth-child(6n+1){color:#E8791E}
.ttl-rainbow i:nth-child(6n+2){color:#D99E06}
.ttl-rainbow i:nth-child(6n+3){color:#1FA08A}
.ttl-rainbow i:nth-child(6n+4){color:#E04848}
.ttl-rainbow i:nth-child(6n+5){color:#4E82E0}
.ttl-rainbow i:nth-child(6n){color:#5FAE3C}

.ttl-links{display:flex;align-items:center;gap:22px;font-size:.98rem;margin-left:auto}
.ttl-links a{position:relative;white-space:nowrap;padding:4px 0;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px}   /* 44 px to a thumb (a11y 2026-09-23: 24 px tall) */
.ttl-links a:hover{color:var(--coral-ink,#c0392b)}
.ttl-links a[aria-current="page"]::after{
  content:"";position:absolute;left:0;right:0;bottom:6px;height:4px;border-radius:2px;background:var(--ttl-yellow);
}
.ttl-actions{display:flex;align-items:center;gap:12px;flex:none}

.ttl-cart,.ttl-burger{
  position:relative;width:44px;height:44px;flex:none;border-radius:999px;display:grid;place-items:center;
  background:#fff;color:var(--ttl-ink);border:3px solid var(--ttl-ink);box-shadow:3px 3px 0 var(--ttl-ink);
  cursor:pointer;padding:0;margin:0;font:inherit;transition:transform .12s ease,box-shadow .12s ease;
}
@media (hover:hover) and (pointer:fine){.ttl-cart:hover,.ttl-burger:hover{transform:translateY(-2px)}}
.ttl-cart:active,.ttl-burger:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ttl-ink)}
.ttl-cart svg{width:20px;height:20px}

.ttl-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  font-family:var(--ttl-display);font-weight:400;font-size:1rem;letter-spacing:.02em;line-height:1;
  padding:.75em 1.35em;border-radius:999px;border:3px solid var(--ttl-ink);box-shadow:4px 4px 0 var(--ttl-ink);
  background:#fff;color:var(--ttl-ink);white-space:nowrap;cursor:pointer;min-height:44px;   /* B-11: 44px touch target */
  transition:transform .12s ease,box-shadow .12s ease;
}
@media (hover:hover) and (pointer:fine){.ttl-btn:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 var(--ttl-ink)}}
.ttl-btn:active{transform:translate(2px,2px);box-shadow:2px 2px 0 var(--ttl-ink)}
.ttl-btn-coral{background:var(--ttl-coral)}

/* hamburger: three bars that fold into an X */
.ttl-burger{display:none;background:var(--ttl-yellow)}
.ttl-burger span{
  position:absolute;left:12px;width:17px;height:3px;border-radius:2px;background:var(--ttl-ink);
  transition:transform .18s ease,opacity .18s ease,top .18s ease;
}
.ttl-burger span:nth-child(1){top:13px}
.ttl-burger span:nth-child(2){top:19px}
.ttl-burger span:nth-child(3){top:25px}
.ttl-burger[aria-expanded="true"] span:nth-child(1){top:19px;transform:rotate(45deg)}
.ttl-burger[aria-expanded="true"] span:nth-child(2){opacity:0;transform:scaleX(0)}
.ttl-burger[aria-expanded="true"] span:nth-child(3){top:19px;transform:rotate(-45deg)}

/* phone menu (full width, drops out of the sticky header) */
.ttl-menu{
  display:none;border-top:3px solid var(--ttl-ink);background:var(--ttl-cream);
  max-height:calc(100vh - 70px);max-height:calc(100dvh - 70px);overflow-y:auto;
  padding:8px 24px 22px;
}
.ttl-menu[hidden]{display:none}
.ttl-menu a:not(.ttl-btn){
  display:flex;align-items:center;gap:14px;padding:13px 4px;
  font-family:var(--ttl-display);font-weight:400;font-size:1.35rem;letter-spacing:.01em;
  border-bottom:2px dashed rgba(43,35,68,.22);
}
.ttl-menu a:not(.ttl-btn)::before{
  content:"";width:12px;height:12px;flex:none;border-radius:50%;border:2.5px solid var(--ttl-ink);
  background:var(--ttl-dot,var(--ttl-yellow));box-shadow:2px 2px 0 var(--ttl-ink);
}
.ttl-menu a:nth-child(6n+1){--ttl-dot:var(--ttl-coral)}
.ttl-menu a:nth-child(6n+2){--ttl-dot:var(--ttl-yellow)}
.ttl-menu a:nth-child(6n+3){--ttl-dot:var(--ttl-teal)}
.ttl-menu a:nth-child(6n+4){--ttl-dot:var(--ttl-blue)}
.ttl-menu a:nth-child(6n+5){--ttl-dot:var(--ttl-green)}
.ttl-menu a:nth-child(6n){--ttl-dot:var(--ttl-pink)}
.ttl-menu a:not(.ttl-btn):hover{color:var(--coral-ink,#c0392b)}
.ttl-menu .ttl-btn{margin-top:18px;width:100%;font-size:1.15rem;padding:.85em 1.4em}

@media (max-width:760px){
  .ttl-links{display:none}
  .ttl-burger{display:grid}
  .ttl-menu:not([hidden]){display:block}
  .ttl-nav{gap:10px;padding:9px 16px}
  .ttl-actions{gap:10px}
  /* index.html's hero header shares the burger + menu */
  header > .nav{gap:10px;padding:12px 16px}
  header > .nav .nav-links{gap:12px}
}
/* The full desktop row (logo, four links, cart, Imaginator pill) needs ~880px; on tablets
   (761-900px) it overflowed by up to 90px, so the shared header folds into the burger
   there too. index.html's own hero header keeps its 760px breakpoint. */
@media (max-width:900px){
  .ttl-nav .ttl-links{display:none}
  .ttl-nav .ttl-burger{display:grid}
  .ttl-header .ttl-menu:not([hidden]){display:block}
}
/* Below ~540px the full logo + cart + menu + pill cannot share one row. Since 2026-09-26 the
   pill is the shop (Joseph: shop at the top right), so it stays on phones as a compact "Shop"
   pill and the wordmark shrinks instead of the pill hiding in the menu. */
@media (max-width:539px){
  .ttl-actions > .ttl-btn,header > .nav .nav-links > .btn-coral{display:inline-flex;align-items:center;padding:.55em 1em;font-size:.95rem;white-space:nowrap;min-height:44px}
  .pill-more{display:none}
  .ttl-logo .ttl-brand-logo,header > .nav .logo .ttl-brand-logo{width:136px}
}
@media (max-width:399px){
  .ttl-logo-text,header > .nav .logo-text{display:none}
  .ttl-btn{padding:.75em 1.05em}
}

/* ---------- footer ---------- */
.ttl-foot{
  background:var(--night);color:var(--ttl-cream);padding:0 0 36px;
  border-top:3px solid var(--ttl-ink);
  font-weight:700;
}
.ttl-foot-wrap{max-width:1120px;margin:0 auto;padding:44px 24px 0}
.ttl-foot-grid{display:grid;grid-template-columns:1.45fr 1fr 1fr 1.25fr;gap:34px 28px}
.ttl-foot .ttl-foot-brand p{font-size:.9rem;opacity:.8;margin:12px 0 18px;max-width:28em;line-height:1.55}
.ttl-foot-logo{display:inline-flex;align-items:center;gap:10px;border-radius:8px}
.ttl-foot-logo svg{width:44px;height:48px}
.ttl-foot-logo .ttl-logo-text{font-size:1.5rem}
.ttl-foot-logo .ttl-logo-text small{color:var(--ttl-yellow)}
.ttl-foot .ttl-rainbow i:nth-child(6n+1){color:#FF9C4A}
.ttl-foot .ttl-rainbow i:nth-child(6n+2){color:var(--sun)}
.ttl-foot .ttl-rainbow i:nth-child(6n+3){color:var(--teal)}
.ttl-foot .ttl-rainbow i:nth-child(6n+4){color:#FF7A7A}
.ttl-foot .ttl-rainbow i:nth-child(6n+5){color:#7FB2E0}
.ttl-foot .ttl-rainbow i:nth-child(6n){color:#8FE06A}
.ttl-foot .ttl-btn{box-shadow:4px 4px 0 #0e0a1c;border-color:var(--ttl-ink)}
.ttl-foot .ttl-btn{color:var(--ttl-ink)}  /* cream text on coral was 2.8:1; ink is 5:1, same as the header pill */
.ttl-foot .ttl-btn:hover{box-shadow:6px 6px 0 #0e0a1c}

.ttl-foot-col b{
  display:block;font-family:var(--ttl-display);font-weight:400;font-size:.95rem;letter-spacing:.06em;
  text-transform:uppercase;color:var(--ttl-yellow);margin-bottom:12px;
}
.ttl-foot-col li{margin:0 0 1px;break-inside:avoid}
/* taller tap area (was a 17px line); padding replaces most of the old li gap, so spacing looks the same */
.ttl-foot-col a{display:inline-block;padding:4px 0;font-size:.92rem;opacity:.85;border-radius:3px}
.ttl-foot-col a:hover{opacity:1;color:var(--ttl-yellow)}
.ttl-foot-col--lab ul{columns:2;column-gap:22px}

.ttl-foot-legal{
  margin-top:36px;padding-top:22px;border-top:2px solid rgba(255,246,233,.14);
  text-align:center;font-size:.82rem;line-height:1.8;opacity:.85;
}
.ttl-foot-legal a{color:inherit;border-radius:3px}
.ttl-foot-legal a:hover{color:var(--ttl-yellow)}
.ttl-foot .ttl-foot-social{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 12px;margin:12px 0 4px}
.ttl-foot-social .ttl-handle{font-family:var(--ttl-mono);font-weight:700;font-size:.8rem;letter-spacing:.08em;color:var(--ttl-yellow);margin-right:4px}
.ttl-foot-social a{
  width:40px;height:40px;border-radius:50%;display:grid;place-items:center;
  background:var(--ttl-cream);color:var(--ttl-ink);border:3px solid var(--ttl-cream);
  transition:transform .12s ease,background .12s ease;
}
@media (hover:hover) and (pointer:fine){.ttl-foot-social a:hover{transform:translateY(-3px) rotate(-4deg);background:var(--ttl-yellow)}}
.ttl-foot-social svg{width:19px;height:19px;fill:currentColor}
.ttl-foot .ttl-foot-fine{font-size:.75rem;opacity:.65;margin-top:8px}
.ttl-foot .calm-btn{font:inherit;font-size:inherit;color:inherit;background:none;border:none;cursor:pointer;text-decoration:underline;padding:10px 2px;margin:-10px 0}  /* B-11: 44px tall hit area, same line height */
.ttl-foot .foot-sub{margin-bottom:34px}

@media (max-width:900px){
  .ttl-foot-grid{grid-template-columns:1fr 1fr 1fr}
  .ttl-foot-brand{grid-column:1 / -1}
  .ttl-foot-col--lab ul{columns:1}
}
@media (max-width:560px){
  .ttl-foot-grid{grid-template-columns:1fr 1fr;gap:28px 20px}
  .ttl-foot-col--lab{grid-column:1 / -1}
  .ttl-foot-col--lab ul{columns:2}
  .ttl-foot-wrap{padding:36px 18px 0}
}

/* ---------- focus + motion ---------- */
.ttl-skip{
  position:absolute;left:12px;top:-80px;z-index:200;
  font-family:var(--ttl-body,'Nunito',system-ui,sans-serif);font-weight:900;font-size:1rem;line-height:1;
  background:var(--sun);color:var(--ink);border:3px solid var(--ink);border-radius:999px;box-shadow:3px 3px 0 var(--ink);
  padding:12px 18px;text-decoration:none;
}
.ttl-skip:focus{top:10px;outline:3px dashed var(--ink);outline-offset:3px}
.ttl-skip-target:focus{outline:none}
/* every page: a keyboard focus ring you can see on cream and on dark panels alike.
   :where() keeps it at zero specificity, so a page's own focus style still wins. */
:where(a[href],button,input,select,textarea,summary,[tabindex]:not([tabindex="-1"])):focus-visible{
  outline:3px dashed currentColor;outline-offset:3px;
}
.ttl-header a:focus-visible,.ttl-menu a:focus-visible,.ttl-burger:focus-visible,.ttl-cart:focus-visible{
  outline:3px dashed var(--ttl-ink);outline-offset:3px;
}
.ttl-foot a:focus-visible,.ttl-foot button:focus-visible{outline:3px dashed var(--ttl-yellow);outline-offset:3px}
@media (prefers-reduced-motion:reduce){
  .ttl-cursor{animation:none}
  .ttl-header *,.ttl-foot *,.ttl-menu *{transition:none!important}
  .ttl-btn:hover,.ttl-cart:hover,.ttl-burger:hover,.ttl-foot-social a:hover{transform:none}
}

/* ---------- happy robot brand kit (2026-09-09) ---------- */
.ttl-brand-logo{display:block;width:232px;max-width:100%;height:auto;flex:none}
header > .nav .logo{flex:none}
.ttl-brand-head{display:none;width:40px;height:40px;flex:none}
.ttl-foot-logo .ttl-brand-logo{width:260px}
header > .nav .logo .ttl-brand-logo{width:250px}
@media (max-width:760px){.ttl-brand-logo{width:190px}.ttl-foot-logo .ttl-brand-logo{width:220px}header > .nav .logo .ttl-brand-logo{width:200px}}
@media (max-width:399px){.ttl-logo .ttl-brand-logo,header > .nav .logo .ttl-brand-logo{display:none}.ttl-brand-head{display:block}}
/* bug crawl B-07: nothing floats over the open phone menu (the homepage's Ask Reachy bubble covered Press and Wholesale) */
html.ttl-menu-open .chat-fab,html.ttl-menu-open .chat-panel{display:none!important}

/* ======================================================================================================
   FRAME v2 (the 10/10 plan, 2026-09-29, ported from the audit frame mockup): header, grouped phone menu with
   the six places, place-sign crumbs, footer with the skyline cap, next-market ticket, folding groups and Calm.
   Tokens come from assets/tokens.css. The cart sheet/drawer lives in assets/shop.css.
   ====================================================================================================== */
:where([id]){scroll-margin-top:calc(var(--ttl-head) + 12px)}
/* ======================= HEADER ======================= */
.ttl-header{
  --ttl-ink:var(--ink);
  background:var(--paper);border-bottom:3px solid var(--ink);
}
/* one frame on every page: the printed look stays on the page, not on the chrome */
.look-printed .ttl-header{background-image:none}
.look-printed .ttl-header .ttl-btn,.look-printed .ttl-header .ttl-cart,.look-printed .ttl-header .ttl-burger,
.look-printed .ttl-menu .ttl-btn,.look-printed .ts-dlg .ts-btn{background-image:none}
.look-printed .ttl-foot{background-image:none}
.look-printed .ttl-header .ttl-btn{box-shadow:var(--sh-2)}

.ttl-nav{min-height:calc(var(--ttl-head) - 3px);padding:0 16px;gap:12px;max-width:1120px}
@media (min-width:768px){.ttl-nav{padding:0 24px}}
.ttl-logo{min-height:44px}
.ttl-logo .ttl-brand-logo{display:block;width:clamp(118px,35vw,140px);height:auto}
.ttl-logo .ttl-brand-head{display:none}
@media (min-width:901px){.ttl-logo .ttl-brand-logo{width:212px}}
@media (max-width:339px){.ttl-logo .ttl-brand-logo{display:none}.ttl-logo .ttl-brand-head{display:block;width:40px;height:40px}}

.ttl-actions{gap:8px}
.ttl-header .ttl-cart,.ttl-header .ttl-burger{
  width:44px;height:44px;border:3px solid var(--ink);background:#fff;color:var(--ink);
  box-shadow:var(--sh-1);transition:transform var(--t-quick) var(--ease-pop),box-shadow var(--t-quick) var(--ease-pop);
  -webkit-tap-highlight-color:transparent;
}
.ttl-cart svg{width:22px;height:22px}
.ttl-burger span{height:3px;left:11px;right:11px;border-radius:2px;background:var(--ink)}
.ttl-burger[aria-expanded="true"]{background:var(--sun)}
.ttl-cart:hover,.ttl-burger:hover{transform:none}
@media (hover:hover) and (pointer:fine){
  .ttl-cart:hover,.ttl-burger:hover{transform:translate(-1px,-1px);box-shadow:3px 3px 0 var(--ink)}
}
.ttl-cart:active,.ttl-burger:active{transform:translate(2px,2px);box-shadow:0 0 0 var(--ink);transition-duration:var(--t-tap)}
.ts-badge{top:-7px;right:-7px;min-width:22px;height:22px;font:700 12px/1 'Space Mono',ui-monospace,monospace;border-width:2px;background:var(--coral);color:var(--ink)}

/* the one button (header pill) */
.ttl-btn{
  gap:6px;font-family:'Lilita One',system-ui,sans-serif;letter-spacing:.01em;
  box-shadow:var(--sh-2);transition:transform var(--t-quick) var(--ease-pop),box-shadow var(--t-quick) var(--ease-pop);
  -webkit-tap-highlight-color:transparent;
}
.ttl-btn:hover{transform:none;box-shadow:var(--sh-2)}
@media (hover:hover) and (pointer:fine){.ttl-btn:hover{transform:translate(-2px,-2px);box-shadow:var(--sh-3)}}
.ttl-btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink);transition-duration:var(--t-tap)}
.ttl-arr{width:1em;height:1em;flex:none;display:inline-block}
.ttl-shop{font-size:1.0625rem;padding:0 14px 0 16px;min-height:44px}
.ttl-shop .ttl-arr{width:16px;height:16px}
@media (max-width:539px){.ttl-actions > .ttl-btn.ttl-shop{padding:0 12px 0 15px;font-size:1.0625rem;gap:5px}}
@media (min-width:540px){.pill-more{display:inline}}

/* desktop links: ink, highlighter on hover, a yellow swash under the current page */
.ttl-links{gap:6px;font-size:1rem}
.ttl-links a{padding:0 12px;border-radius:var(--r-pill);font-weight:800;color:var(--ink)}
.ttl-links a:hover{color:var(--ink);background:linear-gradient(transparent 58%,rgba(255,201,51,.8) 58%,rgba(255,201,51,.8) 88%,transparent 88%)}
.ttl-links a[aria-current="page"]::after{left:12px;right:12px;bottom:8px;height:6px;border-radius:3px;background:var(--sun)}
@media (min-width:901px){.ttl-actions{margin-left:14px;gap:12px}}

/* ======================= PHONE MENU ======================= */
.ttl-menu{
  position:absolute;left:0;right:0;top:100%;
  height:calc(100vh - var(--ttl-head));height:calc(100dvh - var(--ttl-head));max-height:none;
  border-top:0;padding:0;overflow-y:auto;overscroll-behavior:contain;
  background:var(--paper) radial-gradient(rgba(43,35,68,.08) 1.6px,transparent 1.6px) 0 0/26px 26px;
}
html.ttl-menu-open{overflow:hidden}
html.ttl-menu-open .ttl-header{z-index:1000}
.ttl-menu-in{max-width:560px;margin:0 auto;padding:12px 16px 16px}
.ttl-menu a:not(.ttl-btn){display:flex;padding:0;font-size:inherit;border-bottom:0}
.ttl-menu a:not(.ttl-btn)::before{content:none}
.ttl-mg{margin:0 0 10px}
.ttl-mg-h{
  display:flex;align-items:center;gap:10px;margin:0 0 4px;
  font:700 .8125rem/1 'Space Mono',ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);
}
.ttl-mg-h::after{content:"";flex:1;border-top:2px dashed rgba(43,35,68,.22)}
.ttl-menu .ttl-mrow{
  display:flex;align-items:center;gap:12px;min-height:48px;padding:4px 6px 4px 2px;
  font:400 1.375rem/1.1 'Lilita One',system-ui,sans-serif;letter-spacing:.005em;color:var(--ink);border-radius:var(--r-tag);
}
.ttl-ic{width:32px;height:32px;flex:none}
.ttl-mrow i{margin-left:auto;font:italic 700 .875rem/1.2 'Nunito',system-ui,sans-serif;font-style:normal;color:var(--muted);text-align:right}
.ttl-mrow--visit i{color:var(--teal-ink)}
.ttl-menu .ttl-mrow:hover span,.ttl-menu .ttl-mrow[aria-current="page"] span{background:linear-gradient(transparent 60%,var(--sun) 60%,var(--sun) 90%,transparent 90%)}

/* Crew Country: the six places, the one you are standing in is lit */
.ttl-places{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:2px 0 8px}
.ttl-menu .ttl-place{
  position:relative;display:flex;flex-direction:column;background:#fff;border:2px solid var(--ink);border-radius:var(--r-tag);
  overflow:hidden;box-shadow:var(--sh-1);color:var(--ink);transition:transform var(--t-quick) var(--ease-pop);
}
.ttl-place img{display:block;width:100%;height:auto;aspect-ratio:640/272;object-fit:cover;border-bottom:2px solid var(--ink)}
.ttl-place span{display:block;padding:5px 6px 6px;font:800 .8125rem/1.15 'Nunito',system-ui,sans-serif;min-height:2.9em}
.ttl-place em{font:700 .8125rem/1 'Space Mono',ui-monospace,monospace;font-style:normal;display:inline-grid;place-items:center;width:19px;height:19px;border-radius:50%;background:var(--ink);color:var(--paper);margin-right:2px;vertical-align:1px}
.ttl-menu .ttl-place.is-here{background:var(--sun);border-width:3px;box-shadow:var(--sh-2);transform:rotate(-2deg)}
.ttl-place.is-here em{background:var(--coral);color:var(--ink)}
.ttl-place.is-here::after{
  content:"You are here";position:absolute;top:5px;left:5px;
  font:400 .8125rem/1 'Lilita One',system-ui,sans-serif;background:var(--sun);border:2px solid var(--ink);border-radius:6px;padding:3px 6px;
}
.ttl-menu .ttl-place:active{transform:translate(1px,1px)}

/* The Lab: four quiet chips + the kraft grown-ups door */
.ttl-mini{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;margin:0 0 8px}
.ttl-menu .ttl-mini a{
  display:flex;align-items:center;gap:10px;min-height:46px;padding:0 2px;border-radius:var(--r-tag);
  font:800 1.0625rem/1.1 'Nunito',system-ui,sans-serif;color:var(--ink);
}
.ttl-mini .ttl-ic{width:28px;height:28px}
.ttl-menu .ttl-mini a:hover span{background:linear-gradient(transparent 60%,var(--sun) 60%,var(--sun) 90%,transparent 90%)}
.ttl-menu a.ttl-grown{
  display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;
  background:var(--kraft);border:3px solid var(--ink);border-radius:var(--r-tag);box-shadow:var(--sh-1);
  font:400 1rem/1 'Lilita One',system-ui,sans-serif;letter-spacing:.04em;text-transform:uppercase;color:var(--ink);transform:rotate(-1deg);
}
.ttl-grown .ttl-arr{width:15px;height:15px}

/* ======================= FOOTER + SKYLINE CAP ======================= */
.ttl-foot{
  margin-top:48px;padding:0 0 calc(24px + env(safe-area-inset-bottom));border-top:0;
  background:var(--night);color:var(--on-night);font-weight:600;
}
/* the toy shelf (Joseph Sr 2026-09-29, replacing the night skyline): the crew in toy-box cubbies on a wooden shelf,
   under the page's torn paper edge; each cubby opens that toy's card. Phones show four, wider screens all eight. */
.ttl-cap{position:relative;background-color:#c99a5f;line-height:0;
  background-image:repeating-linear-gradient(90deg,rgba(110,62,20,.08) 0 2px,transparent 2px 46px),linear-gradient(#d8ad72,#c28d51)}
.ttl-tear{position:absolute;left:0;right:0;top:-1px;width:100%;height:14px;display:block;z-index:1}
.ttl-shelf{max-width:1120px;margin:0 auto;padding:26px 16px 0}
.ttl-cubbies{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.ttl-cubbies li:nth-child(n+5){display:none}
.ttl-cubbies a{display:block;position:relative;border:3px solid var(--ink,#2b2344);border-radius:12px;overflow:hidden;background:#fff1da;
  box-shadow:inset 0 -8px 12px -6px rgba(90,50,15,.25),0 4px 0 rgba(43,35,68,.35)}
.ttl-cubbies img{display:block;width:100%;height:auto;transition:transform var(--t-base,220ms) var(--ease-pop,ease)}
.ttl-cubbies a:hover img,.ttl-cubbies a:focus-visible img{transform:translateY(-4px) rotate(-3deg) scale(1.04)}
.ttl-cubbies a:focus-visible{outline:3px dashed var(--ink,#2b2344);outline-offset:3px}
.ttl-plank{height:16px;margin-top:12px;background:linear-gradient(#b07a3f,#8f5d2b);border-top:3px solid var(--ink,#2b2344);
  border-bottom:3px solid var(--ink,#2b2344);box-shadow:0 5px 0 rgba(0,0,0,.28)}
@media (min-width:768px){.ttl-tear{height:18px}.ttl-shelf{padding-top:34px}.ttl-cubbies{grid-template-columns:repeat(8,minmax(0,1fr));gap:14px}
  .ttl-cubbies li:nth-child(n+5){display:block}.ttl-plank{height:20px;margin-top:14px}}
html.calm .ttl-cubbies img,body.calm .ttl-cubbies img{transition:none;transform:none!important}
@media (prefers-reduced-motion:reduce){.ttl-cubbies img{transition:none;transform:none!important}}

.ttl-foot-wrap{padding:28px 16px 0}
@media (min-width:768px){.ttl-foot-wrap{padding:44px 24px 0}}
.ttl-foot-grid{display:block}
.ttl-foot-brand{padding-bottom:24px}
.ttl-foot-logo .ttl-brand-logo{width:208px}
.ttl-foot .ttl-foot-brand p{margin:14px 0 18px;font:600 .9375rem/1.55 'Nunito',system-ui,sans-serif;color:var(--on-night-muted);opacity:1;max-width:30em}

/* next market: the markets ticket stub */
.ttl-ticket{
  display:flex;align-items:stretch;min-height:64px;max-width:380px;background:var(--teal);color:var(--ink);text-decoration:none;
  border:3px solid #0e0a1c;border-radius:var(--r-tag);box-shadow:4px 4px 0 #0e0a1c;overflow:hidden;
  transition:transform var(--t-quick) var(--ease-pop),box-shadow var(--t-quick) var(--ease-pop);
  -webkit-mask:radial-gradient(circle 7px at 104px 0,#0000 98%,#000) top/100% 51% no-repeat,radial-gradient(circle 7px at 104px 100%,#0000 98%,#000) bottom/100% 51% no-repeat;
          mask:radial-gradient(circle 7px at 104px 0,#0000 98%,#000) top/100% 51% no-repeat,radial-gradient(circle 7px at 104px 100%,#0000 98%,#000) bottom/100% 51% no-repeat;
}
.ttl-ticket-l{width:104px;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:var(--sun);border-right:3px dashed var(--ink);padding:6px 4px}
.ttl-ticket-l .ttl-ic{width:26px;height:26px}
.ttl-ticket-l b{font:700 .8125rem/1.1 'Space Mono',ui-monospace,monospace;letter-spacing:.06em;text-transform:uppercase;text-align:center}
.ttl-ticket-r{display:flex;flex-direction:column;justify-content:center;padding:8px 12px}
.ttl-ticket-r strong{font:400 1.25rem/1.1 'Lilita One',system-ui,sans-serif;letter-spacing:.01em}
.ttl-ticket-r small{font:800 .875rem/1.3 'Nunito',system-ui,sans-serif;margin-top:2px}
@media (hover:hover) and (pointer:fine){.ttl-ticket:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 #0e0a1c}}
.ttl-ticket:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #0e0a1c}
.ttl-foot a.ttl-ticket:focus-visible{outline:3px dashed var(--sun);outline-offset:4px}

/* link groups: <details> accordions on phones, open columns from 761px */
.ttl-fg{border-top:2px solid rgba(243,236,223,.14)}
.ttl-fg:last-of-type{border-bottom:2px solid rgba(243,236,223,.14)}
.ttl-fg summary{
  list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:56px;cursor:pointer;
  -webkit-tap-highlight-color:transparent;border-radius:6px;
}
.ttl-fg summary::-webkit-details-marker{display:none}
.ttl-fg summary b{font:400 1.125rem/1 'Lilita One',system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--sun)}
.ttl-chev{width:22px;height:22px;color:var(--on-night);transition:transform var(--t-base) var(--ease-out)}
.ttl-fg[open] .ttl-chev{transform:rotate(180deg)}
.ttl-fg ul{list-style:none;margin:0;padding:0 0 14px;display:grid;grid-template-columns:1fr 1fr;column-gap:16px}
.ttl-foot .ttl-fg li{margin:0}
.ttl-foot .ttl-fg a{display:flex;align-items:center;min-height:44px;font:700 1rem/1.25 'Nunito',system-ui,sans-serif;color:var(--on-night);opacity:1;text-decoration:none}
.ttl-foot .ttl-fg a:hover{color:var(--sun);text-decoration:underline 3px var(--coral);text-underline-offset:4px}
.ttl-foot summary:focus-visible{outline:3px dashed var(--sun);outline-offset:3px}

@media (min-width:761px){
  .ttl-foot-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr 1.6fr;gap:32px}
  .ttl-foot-brand{padding:0}
  .ttl-fg,.ttl-fg:last-of-type{border:0}
  .ttl-fg summary{min-height:0;margin:4px 0 12px;pointer-events:none;cursor:default}
  .ttl-foot .ttl-chev{display:none}
  .ttl-fg ul{display:block;padding:0}
  #ttl-fg-lab ul{columns:2;column-gap:20px}
  .ttl-foot .ttl-fg a{min-height:32px;font-size:.9375rem;padding:2px 0}
  .ttl-foot .ttl-fg li{break-inside:avoid}
}

/* social + Calm */
.ttl-foot-row{display:flex;flex-direction:column;align-items:center;gap:18px;padding:24px 0 22px;border-bottom:2px solid rgba(243,236,223,.14)}
.ttl-foot .ttl-foot-social{display:flex;flex-direction:column;align-items:center;gap:10px;margin:0}
.ttl-foot-social .ttl-handle{font:700 .875rem/1 'Space Mono',ui-monospace,monospace;letter-spacing:.08em;color:var(--sun);margin:0}
.ttl-soc{display:flex;gap:12px}
.ttl-foot .ttl-soc a{
  width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--paper);color:var(--ink);
  border:3px solid #0e0a1c;box-shadow:2px 2px 0 #0e0a1c;transition:transform var(--t-quick) var(--ease-pop);
}
.ttl-foot .ttl-soc a:hover{transform:none;background:var(--sun)}
@media (hover:hover) and (pointer:fine){.ttl-foot .ttl-soc a:hover{transform:translate(-1px,-2px) rotate(-4deg)}}
.ttl-foot .ttl-soc a:active{transform:translate(2px,2px);box-shadow:none}
.ttl-soc svg{width:20px;height:20px;fill:currentColor}

.ttl-calm{
  display:inline-flex;align-items:center;gap:12px;min-height:48px;padding:0 18px 0 8px;cursor:pointer;
  background:rgba(243,236,223,.08);border:2px solid rgba(243,236,223,.28);border-radius:var(--r-pill);color:var(--on-night);
  font:800 .9375rem/1.1 'Nunito',system-ui,sans-serif;text-align:left;
}
.ttl-calm small{display:block;font:600 .8125rem/1.2 'Nunito',system-ui,sans-serif;color:var(--on-night-muted)}
.ttl-calm-t{position:relative;width:48px;height:30px;flex:none;border-radius:var(--r-pill);background:#3b3257;border:2px solid var(--on-night-muted);transition:background var(--t-base)}
.ttl-calm-t i{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--on-night);transition:transform var(--t-base) var(--ease-pop)}
.ttl-calm[aria-checked="true"] .ttl-calm-t{background:var(--teal);border-color:var(--teal)}
.ttl-calm[aria-checked="true"] .ttl-calm-t i{transform:translateX(18px);background:var(--ink)}
.ttl-foot .ttl-calm:focus-visible{outline:3px dashed var(--sun);outline-offset:3px}

@media (min-width:761px){
  .ttl-foot-row{flex-direction:row;justify-content:space-between;margin-top:36px;padding:20px 0;border-top:2px solid rgba(243,236,223,.14)}
  .ttl-foot .ttl-foot-social{flex-direction:row;gap:16px}
}

/* legal: solid colours, nothing under 13px, links 44px tall */
.ttl-foot .ttl-foot-legal{margin:0;padding:18px 0 0;border:0;text-align:center;font:600 .875rem/1.55 'Nunito',system-ui,sans-serif;color:var(--on-night-muted);opacity:1}
.ttl-foot .ttl-foot-legal p{margin:0 auto 6px;text-wrap:balance}
.ttl-foot .ttl-foot-previews{font:700 .9375rem/1.45 'Nunito',system-ui,sans-serif;color:var(--on-night);max-width:46em;margin:0 auto 10px}
.ttl-foot-contact,.ttl-foot-links{display:block;text-wrap:balance;word-spacing:14px}
.ttl-foot-contact a,.ttl-foot-links a{word-spacing:normal}
.ttl-foot .ttl-foot-legal a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;color:var(--on-night);text-decoration:underline 2px rgba(255,93,93,.8);text-underline-offset:4px}
.ttl-foot .ttl-foot-legal a:hover{color:var(--sun)}
.ttl-foot .ttl-foot-fine{font:600 .8125rem/1.5 'Nunito',system-ui,sans-serif;color:var(--on-night-muted);opacity:1;max-width:46em;margin:8px auto 0}

/* print: ink on white, no chrome */
@media print{
  .ttl-foot{background:#fff;color:#000}
}
@media (prefers-reduced-motion:reduce){
  .ttl-btn,.ttl-cart,.ttl-burger,.ttl-ticket,.ttl-soc a,.ttl-calm-t,.ttl-calm-t i,.ttl-chev{transition:none!important}
}

/* the place sign under the header on second-level pages */
.ttl-crumb-bar{max-width:1120px;margin:0 auto;padding:14px 16px 0}
@media (min-width:768px){.ttl-crumb-bar{padding:18px 24px 0}}
.ttl-crumb{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;max-width:100%;min-height:36px;padding:4px 14px 4px 10px;
  font:700 12.5px/1.3 'Space Mono',ui-monospace,Menlo,monospace;letter-spacing:.02em;text-transform:uppercase;color:var(--ink,#2b2344);
  background:var(--sun,#ffc933);border:3px solid var(--ink,#2b2344);border-radius:10px;transform:rotate(-1deg)}
.ttl-crumb--grown{background:var(--kraft,#e8d3a9)}
.ttl-crumb svg{width:16px;height:16px;flex:none}
.ttl-crumb a{color:var(--ink,#2b2344);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;display:inline-flex;align-items:center;min-height:28px}
/* 44px tap target without growing the bar */
.ttl-crumb a,:where(.kit) .crumb a{position:relative}
.ttl-crumb a::after,:where(.kit) .crumb a::after{content:"";position:absolute;inset:-8px -4px}
.ttl-crumb a:hover{background:linear-gradient(transparent 55%,#fff 55%)}
.ttl-crumb .sep{font-weight:700}
@media print{.ttl-crumb-bar{display:none}}
.ttl-foot a.ttl-ticket,.ttl-foot a.ttl-ticket:hover{color:var(--ink,#2b2344);text-decoration:none}   /* ink on teal, not the footer link cream */
body.kit .ttl-foot{margin-top:0}   /* kit pages end their main with 48px; the toy shelf follows directly */
/* a long page title in the place sign stays on one line (a note title made a four-line sign on phones) */
.ttl-crumb [aria-current="page"]{min-width:0;max-width:min(46ch,100%);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:560px){.ttl-crumb{flex-wrap:nowrap}.ttl-crumb [aria-current="page"]{max-width:18ch}}
