/* The Happy Yard — Notebook.
   Generated by build/build_notebook.py. Edit build/data.py, not this file.

   Stationery, not decoration. One book serif (Newsreader) for prose, one
   typewriter (Spline Sans Mono) for anything clerical — labels, tabs, folios,
   credits. Paper is ruled by a gradient rather than by an image, so it scales
   and costs nothing. The venue's yellow is a highlighter stripe and nothing
   else; the amber is the index tabs. */

:root{
  --paper:#EFE9D8;          /* the desk the pad sits on */
  --sheet:#FBF7E9;          /* the leaf itself */
  --sheet-2:#F4EEDC;
  --board:#2B2620;          /* the pad's back board */
  --ink:#141210;
  --ink-2:#514A3F;
  --ink-3:#8A8172;
  --rule:rgba(70,110,150,.30);   /* the printed feint rule */
  --margin-rule:rgba(184,66,55,.42);
  --line:rgba(20,18,16,.16);
  --amber:#F5A623;
  --yellow:#FFD400;
  --pad:clamp(1.15rem,4vw,3.5rem);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
/* Lenis owns the scroll position. scroll-behavior:smooth here would be a
   second smoothing system fighting it on every anchor jump. */
html,body{margin:0;padding:0}
body{background:var(--paper);color:var(--ink);
  font:400 clamp(1rem,.96rem + .2vw,1.09rem)/1.66 Newsreader,Georgia,serif;
  overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3,h4{margin:0;font-weight:400;line-height:1.02;letter-spacing:-.018em}
h1,h2{font-family:Newsreader,Georgia,serif}
p{margin:0 0 1.05em}
:focus-visible{outline:2px solid var(--ink);outline-offset:4px}

.mono{font-family:"Spline Sans Mono",ui-monospace,monospace;
  font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-3)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);
  white-space:nowrap}
.skip{position:absolute;left:-999px;top:0;z-index:99;background:var(--ink);
  color:var(--sheet);padding:.7rem 1rem}
.skip:focus{left:0}

.mark{display:block;background-image:url(../assets/img/menu-04.jpg);
background-size:229.15% 389.83%;background-position:42% 6.43%;
background-repeat:no-repeat;border-radius:50%}

/* ---------- masthead --------------------------------------------------- */
/* A clerical strip, not a hero. It scrolls away with the page: the pad is the
   thing that stays put. */
.top{border-bottom:1px solid var(--line);background:var(--paper)}
.top .bar{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;
  padding:.85rem var(--pad)}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none}
.brand .mark{width:2.1rem;height:2.1rem;flex:none;
  outline:1px solid var(--line);outline-offset:-1px}
.brand b{font-weight:400;font-size:1.02rem;letter-spacing:-.01em}
.top nav ul{display:flex;gap:1.1rem;list-style:none;margin:0 0 0 auto;padding:0;
  flex-wrap:wrap}
.top nav a{text-decoration:none;font-family:"Spline Sans Mono",monospace;
  font-size:.7rem;letter-spacing:.13em;text-transform:uppercase;
  color:var(--ink-3);padding:.3rem 0;border-bottom:1px solid transparent;
  transition:color .2s,border-color .2s}
.top nav a:hover{color:var(--ink);border-color:var(--line)}
.top nav a[aria-current=page]{color:var(--ink);border-color:var(--amber)}

/* ---------- the two columns -------------------------------------------- */
.spread{display:grid;grid-template-columns:1fr;gap:clamp(1.5rem,4vw,3rem);
  padding:clamp(1.5rem,4vw,3rem) var(--pad) 0}
@media(min-width:62rem){
  .spread{grid-template-columns:minmax(19rem,32vw) 1fr;
    gap:clamp(2rem,5vw,5rem);align-items:start}
}

/* The pad. Static by default — this is the no-JS layout and it has to be a
   complete, readable object on its own. */
.binder{position:relative}
@media(min-width:62rem){
  .js .binder{position:sticky;top:0;height:100vh;display:flex;
    flex-direction:column;justify-content:center;padding-block:2.5rem}
}

/* Below the breakpoint the pad is a strip of paper cards you swipe, not a
   stack — a stack with no turn is just five leaves hiding four of them. */
.book{position:relative;width:min(100%,25rem);margin-inline:auto;
  perspective:1700px;perspective-origin:50% 22%}
@media(max-width:61.99rem){
  .book{width:100%;display:flex;gap:.8rem;overflow-x:auto;padding-bottom:.6rem;
    scroll-snap-type:x proximity;overscroll-behavior-x:contain}
  .leaf{flex:0 0 min(78%,21rem);margin:0;scroll-snap-align:center}
}
@media(min-width:62rem){.js .book{aspect-ratio:5/7}}

/* The back board and the wire, drawn rather than shipped as images. */
.board{position:absolute;inset:1.1% -1.6% -1.4% -1.6%;background:var(--board);
  border-radius:3px 3px 5px 5px;
  box-shadow:0 26px 46px -30px rgba(20,18,16,.85)}
.board{display:none}
@media(min-width:62rem){.js .board{display:block}}
.wire{position:absolute;left:4%;right:4%;top:-12px;height:26px;z-index:60;
  pointer-events:none;
  background:repeating-linear-gradient(100deg,
    rgba(20,18,16,0) 0 12px,
    rgba(20,18,16,.62) 12px 15px,
    rgba(20,18,16,.20) 15px 17px,
    rgba(20,18,16,0) 17px 30px);
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.35))}
.wire{display:none}
@media(min-width:62rem){.js .wire{display:block}}

/* A leaf. In flow by default; absolutely stacked only once .js is on. */
/* The leaves only stack — and so only turn — at the desktop breakpoint. The
   JS reads this computed position to decide whether to build the turn, so
   this rule is the single authority on where the pad becomes a pad. */
.leaf{position:relative;margin:0 0 1.1rem;transform-style:preserve-3d}
@media(min-width:62rem){
  .js .leaf{position:absolute;inset:0;margin:0;will-change:transform}
}

.face{background:var(--sheet);border:1px solid var(--line);
  border-radius:1px 1px 4px 4px;overflow:hidden;
  display:flex;flex-direction:column;
  box-shadow:0 14px 26px -20px rgba(20,18,16,.6);
  /* the punched holes along the top edge */
  background-image:repeating-radial-gradient(circle at 22px 13px,
    var(--paper) 0 5px,rgba(0,0,0,0) 5px 6px);
  background-repeat:repeat-x;background-size:30px 26px;
  background-position:0 0}
@media(min-width:62rem){
  .js .face{position:absolute;inset:0;backface-visibility:hidden}
  .js .face.verso{transform:rotateX(180deg)}
}
.face > *{position:relative}

.plate{margin:26px 0 0;background:var(--sheet-2);overflow:hidden;flex:1 1 auto;
  min-height:0}
.plate img{width:100%;height:100%;object-fit:cover;
  aspect-ratio:4/3}
.js .plate img{aspect-ratio:auto}
.slip{padding:.85rem 1.1rem 1.05rem;border-top:1px solid var(--line);
  background:var(--sheet)}
.slip .folio{display:flex;justify-content:space-between;gap:1rem;
  margin-bottom:.35rem}
.slip h3{font-size:1.14rem;letter-spacing:-.02em}
.slip p{margin:.3rem 0 0;font-size:.87rem;line-height:1.45;color:var(--ink-2)}

/* The verso: ruled paper with the margin rule, carrying the same section's
   note. It is what you see mid-turn, and it has to be worth seeing. */
.verso{padding:30px 1.2rem 1.2rem 2.5rem;justify-content:flex-start;
  background-image:
    repeating-radial-gradient(circle at 22px 13px,
      var(--paper) 0 5px,rgba(0,0,0,0) 5px 6px),
    linear-gradient(90deg,rgba(0,0,0,0) 1.85rem,var(--margin-rule) 1.85rem,
      var(--margin-rule) calc(1.85rem + 1px),rgba(0,0,0,0) calc(1.85rem + 1px)),
    repeating-linear-gradient(180deg,rgba(0,0,0,0) 0 27px,
      var(--rule) 27px 28px);
  background-repeat:repeat-x,repeat-y,repeat;
  background-size:30px 26px,100% 100%,100% 28px;
  background-position:0 0,0 0,0 30px}
.verso h4{font-family:"Spline Sans Mono",monospace;font-size:.7rem;
  letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3);
  margin:0 0 .5rem}
.verso .hand{font-size:1.02rem;line-height:28px;color:var(--ink-2)}
.verso .hand b{font-weight:500;color:var(--ink);
  background:linear-gradient(transparent 62%,rgba(255,212,0,.55) 62%)}

/* Curl shading. Drawn on the leaf, not the face, so one element covers both
   sides of the turn. */
.shade{position:absolute;inset:0;pointer-events:none;opacity:0;
  background:linear-gradient(180deg,rgba(20,18,16,.55),rgba(20,18,16,0) 62%);
  border-radius:1px 1px 4px 4px}
.shade{display:none}
.js .shade{display:block}

/* ---------- pad furniture ---------------------------------------------- */
/* One row that scrolls sideways rather than a block that wraps: a fifteen
   section menu would otherwise push the pad off the screen. */
.tabs{display:flex;flex-wrap:nowrap;gap:.35rem;margin:1.1rem auto 0;
  width:min(100%,25rem);list-style:none;padding:0 0 .4rem;
  overflow-x:auto;overscroll-behavior-x:contain;
  scrollbar-width:thin;scroll-snap-type:x proximity}
.tabs li{flex:0 0 auto;scroll-snap-align:start}
.tabs a{display:block;white-space:nowrap;text-decoration:none;
  font-family:"Spline Sans Mono",monospace;
  font-size:.63rem;letter-spacing:.1em;text-transform:uppercase;
  padding:.3rem .55rem;border:1px solid var(--line);border-radius:2px;
  color:var(--ink-3);background:var(--sheet);transition:all .2s}
.tabs a:hover{color:var(--ink);border-color:var(--ink-3)}
.tabs a[aria-current=true]{background:var(--amber);border-color:var(--amber);
  color:var(--ink)}
.folio,.counter{font-family:"Spline Sans Mono",monospace;font-size:.68rem;
  letter-spacing:.13em;text-transform:uppercase;color:var(--ink-3)}
.counter{display:flex;align-items:center;gap:.6rem;
  width:min(100%,25rem);margin:.9rem auto 0}
.counter .thread{flex:1;height:1px;background:var(--line);position:relative}
.counter .thread i{position:absolute;inset:0 auto 0 0;width:0;
  background:var(--ink);display:block}

/* ---------- the reading column ----------------------------------------- */
.reading{max-width:42rem}
.sheet{padding-block:clamp(3rem,9vh,6rem);
  border-top:1px solid var(--line)}
.sheet:first-child{border-top:0}
@media(min-width:62rem){.sheet{min-height:100vh;display:flex;
  flex-direction:column;justify-content:center}}
.sheet > .mono{display:block;margin-bottom:.8rem}
.sheet h2{font-size:clamp(1.9rem,4.6vw,3.1rem);font-weight:300;
  margin-bottom:.7rem}
.sheet h1{font-size:clamp(2.4rem,7vw,4.4rem);font-weight:300;
  margin-bottom:.8rem}
.lede{font-size:clamp(1.06rem,1rem + .4vw,1.3rem);color:var(--ink-2);
  max-width:34rem}
.sheet .body{max-width:34rem}

/* pre-hide, only ever under .js */
.js .reveal > span,.js .fade{opacity:0}

/* ---------- lists the pad hands over ------------------------------------ */
.facts{list-style:none;margin:1.4rem 0 0;padding:0;display:grid;gap:.1rem;
  max-width:34rem}
.facts li{display:flex;justify-content:space-between;gap:1.2rem;
  padding:.62rem 0;border-bottom:1px solid var(--line);
  font-family:"Spline Sans Mono",monospace;font-size:.79rem;
  letter-spacing:.03em;color:var(--ink-2)}
.facts li b{font-weight:500;color:var(--ink);text-transform:none;
  font-family:Newsreader,Georgia,serif;font-size:1rem;letter-spacing:0}
.facts li span:last-child{text-align:right}

.group{margin:1.6rem 0 0}
.group h4{font-family:"Spline Sans Mono",monospace;font-size:.68rem;
  letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3);
  margin:0 0 .5rem;padding-bottom:.3rem;border-bottom:1px solid var(--line)}
.dishes{list-style:none;margin:0;padding:0;columns:2;column-gap:2rem}
@media(max-width:40rem){.dishes{columns:1}}
.dishes li{break-inside:avoid;padding:.24rem 0;font-size:.99rem}
.pairs{list-style:none;margin:0;padding:0;display:grid;gap:.55rem}
.pairs li{display:grid;gap:.1rem;padding-bottom:.55rem;
  border-bottom:1px solid var(--line)}
.pairs b{font-weight:500}
.pairs span{font-family:"Spline Sans Mono",monospace;font-size:.72rem;
  letter-spacing:.05em;color:var(--ink-3);text-transform:uppercase}
.inline{list-style:none;margin:.5rem 0 0;padding:0;display:flex;flex-wrap:wrap;
  gap:.4rem}
.inline li{font-family:"Spline Sans Mono",monospace;font-size:.72rem;
  letter-spacing:.05em;border:1px solid var(--line);border-radius:2px;
  padding:.24rem .5rem;color:var(--ink-2)}
.note{font-size:.86rem;color:var(--ink-3);max-width:32rem}
.src{font-family:"Spline Sans Mono",monospace;font-size:.7rem;
  letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}

/* ---------- the plate wall (gallery) ------------------------------------ */
.wall{display:grid;grid-template-columns:repeat(auto-fill,minmax(11rem,1fr));
  gap:.75rem;margin-top:1.4rem}
.wall figure{margin:0;background:var(--sheet);padding:.5rem .5rem .1rem;
  border:1px solid var(--line);border-radius:2px}
.wall img{aspect-ratio:4/3;object-fit:cover;width:100%}
.wall figcaption{font-family:"Spline Sans Mono",monospace;font-size:.6rem;
  letter-spacing:.06em;color:var(--ink-3);padding:.45rem .1rem .5rem;
  line-height:1.45}

/* ---------- links, buttons --------------------------------------------- */
.links{list-style:none;margin:1.2rem 0 0;padding:0;display:flex;
  flex-wrap:wrap;gap:.5rem}
/* ul.links, not .links: .body a below matches these anchors too and at equal
   specificity the later rule would win, painting ink text on an ink button. */
ul.links a{display:inline-block;text-decoration:none;background:var(--ink);
  color:var(--sheet);font-family:"Spline Sans Mono",monospace;font-size:.72rem;
  letter-spacing:.1em;text-transform:uppercase;padding:.62rem .95rem;
  border-radius:2px;transition:background .2s}
ul.links a:hover{background:var(--amber);color:var(--ink)}
.body a{color:var(--ink);text-decoration-color:var(--amber);
  text-underline-offset:3px}

/* ---------- footer ------------------------------------------------------ */
footer{margin-top:clamp(3rem,8vw,6rem);border-top:1px solid var(--line);
  padding:clamp(2rem,5vw,3.5rem) var(--pad) 3rem;background:var(--sheet-2)}
.foot{display:grid;gap:2rem;grid-template-columns:1fr}
@media(min-width:48rem){.foot{grid-template-columns:1.4fr 1fr 1fr}}
.foot h4{font-family:"Spline Sans Mono",monospace;font-size:.68rem;
  letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3);
  margin:0 0 .6rem}
.foot ul{list-style:none;margin:0;padding:0;display:grid;gap:.3rem;
  font-size:.92rem}
.foot .rows li{display:flex;justify-content:space-between;gap:1rem;
  border-bottom:1px solid var(--line);padding-bottom:.3rem}
.foot a{text-decoration:none;border-bottom:1px solid var(--line)}
.big{font-size:1.3rem;margin-bottom:.3rem}
.colophon{margin:2.4rem 0 0;font-size:.8rem;line-height:1.6;
  color:var(--ink-3);max-width:52rem}

/* ---------- motion off --------------------------------------------------
   app.js drops the .js class when the reader asks for reduced motion, so the
   static layout above is already the whole answer. This block is the belt to
   that braces: any transition that survives is cut to nothing. */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.01ms !important;
    animation-iteration-count:1 !important;transition-duration:.01ms !important;
    scroll-behavior:auto !important}
  .binder{position:static !important;height:auto !important}
}
