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

   A bound volume. One old-style serif (EB Garamond, with its italic doing the
   captions) and one grotesque (Archivo) for running heads, folios and
   anything clerical. The accent is gilt: the venue's amber, used on rules and
   folios and nowhere as a fill. Paper is warm, the gutter is a shadow, and
   the edges of the block are stacked hairlines rather than a drawn border. */

:root{
  --paper:#F3EBD9;
  --paper-2:#EDE3CD;
  --paper-3:#E4D8BE;
  --ink:#1B1714;
  --ink-2:#4E463B;
  --ink-3:#877C68;
  --line:rgba(27,23,20,.18);
  --gilt:#F5A623;
  --yellow:#FFD400;
  --gutter:rgba(27,23,20,.30);
  --pad:clamp(1.1rem,3.2vw,3rem);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
/* Lenis owns the scroll position; scroll-behavior:smooth would be a second
   smoothing system fighting it on every anchor jump. */
html,body{margin:0;padding:0}
body{background:#241F1A;color:var(--ink);
  font:400 clamp(1rem,.95rem + .25vw,1.14rem)/1.55 "EB Garamond",Georgia,serif;
  overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3{margin:0;font-weight:400;line-height:1;letter-spacing:-.015em}
p{margin:0 0 .8em}
:focus-visible{outline:2px solid var(--gilt);outline-offset:3px}

.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:200;background:var(--ink);
  color:var(--paper);padding:.7rem 1rem}
.skip:focus{left:0}
.mono{font-family:Archivo,system-ui,sans-serif;font-size:.66rem;
  letter-spacing:.18em;text-transform:uppercase;color:var(--ink-3)}

.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%}

/* ---------- the running head -------------------------------------------
   Fixed over the book, because in a bound volume the running head does not
   turn with the page. */
.top{position:fixed;inset:0 0 auto;z-index:120;display:flex;
  align-items:center;gap:1rem;flex-wrap:wrap;padding:.7rem var(--pad);
  background:linear-gradient(rgba(36,31,26,.92),rgba(36,31,26,0));
  color:var(--paper)}
.brand{display:flex;align-items:center;gap:.55rem;text-decoration:none;
  color:var(--paper)}
.brand .mark{width:1.9rem;height:1.9rem;flex:none}
.brand b{font-weight:400;font-size:1rem}
.top nav ul{display:flex;gap:1rem;list-style:none;margin:0 0 0 auto;padding:0;
  flex-wrap:wrap}
.top nav a{text-decoration:none;font-family:Archivo,sans-serif;font-size:.66rem;
  letter-spacing:.16em;text-transform:uppercase;color:rgba(243,235,217,.62);
  border-bottom:1px solid transparent;padding-bottom:.15rem;
  transition:color .2s,border-color .2s}
.top nav a:hover{color:var(--paper)}
.top nav a[aria-current=page]{color:var(--paper);border-color:var(--gilt)}

/* ---------- the stage ---------------------------------------------------
   Static by default: this is the no-JS layout, a plain sequence of pages. */
.stage{padding:4.2rem var(--pad) var(--pad)}
.book{position:relative;margin-inline:auto;width:min(100%,72rem);
  display:grid;gap:var(--pad)}

/* Below the breakpoint there is no book to float over, and a two-row nav
   fixed above a page just covers the top of it. Let it take its own space. */
@media(max-width:59.99rem){
  .top{position:static;background:#241F1A}
  .stage{padding-top:var(--pad)}
}
@media(min-width:60rem){
  .js .stage{height:100svh;padding:0;overflow:hidden}
  .js .book{height:100svh;width:100%;max-width:none;display:block;gap:0;
    perspective:2800px;perspective-origin:50% 46%}
}

/* The block of pages behind the leaf: stacked hairlines, so the book has a
   thickness without an image or a border-image. */
.edge{display:none}
@media(min-width:60rem){
  .js .edge{display:block;position:absolute;top:4.2rem;bottom:2.6rem;
    width:10px;z-index:0;
    background:repeating-linear-gradient(90deg,
      var(--paper-3) 0 1px,rgba(0,0,0,.14) 1px 2px)}
  .js .edge.r{right:calc(var(--pad) - 10px)}
  .js .edge.l{left:calc(var(--pad) - 10px)}
  /* The gutter. A book is darkest where it is bound. */
  .js .book::after{content:"";position:absolute;top:4.2rem;bottom:2.6rem;
    left:50%;width:5.5rem;transform:translateX(-50%);z-index:40;
    pointer-events:none;
    background:linear-gradient(90deg,rgba(27,23,20,0),var(--gutter) 46%,
      rgba(27,23,20,.42) 50%,var(--gutter) 54%,rgba(27,23,20,0))}
}

/* ---------- a leaf ------------------------------------------------------ */
.leaf{position:relative;display:grid;gap:var(--pad)}
@media(min-width:60rem){
  .js .leaf{position:absolute;top:4.2rem;bottom:2.6rem;
    left:50%;right:var(--pad);display:block;gap:0;
    transform-style:preserve-3d;transform-origin:left center;
    will-change:transform}
  /* The half-title, which every turned leaf lands on top of. Written as
     .face.base so it outranks the .js .face{inset:0} rule below — otherwise
     the half-title covers the whole viewport, masthead included. */
  .js .face.base{position:absolute;top:4.2rem;bottom:2.6rem;left:var(--pad);
    right:auto;width:calc(50% - var(--pad));z-index:0}
}
.base .matter{justify-content:center;align-items:center;text-align:center}
.base .mark{width:clamp(4rem,8vw,6.5rem);aspect-ratio:1;
  margin-bottom:1.3rem;outline:1px solid var(--line);outline-offset:-1px}
.base .kicker{margin:.7rem 0 .4rem}

.face{background:var(--paper);color:var(--ink);position:relative;
  display:flex;flex-direction:column;overflow:hidden;
  padding:clamp(1.3rem,2.6vw,2.6rem);
  box-shadow:0 20px 44px -30px rgba(0,0,0,.8)}
@media(min-width:60rem){
  .js .face{position:absolute;inset:0;backface-visibility:hidden}
  .js .face.verso{transform:rotateY(180deg)}
}
/* Paper is not flat: it darkens toward whichever edge is bound. */
.face.recto{background-image:linear-gradient(90deg,rgba(27,23,20,.10),
  rgba(27,23,20,0) 14%)}
.face.verso{background-image:linear-gradient(-90deg,rgba(27,23,20,.10),
  rgba(27,23,20,0) 14%)}

/* Shading that crosses the paper as it turns. */
.sheen{display:none}
@media(min-width:60rem){
  .js .sheen{display:block;position:absolute;inset:0;z-index:30;opacity:0;
    pointer-events:none;
    background:linear-gradient(90deg,rgba(27,23,20,.62),rgba(27,23,20,0) 55%)}
}

/* ---------- the furniture of a page ------------------------------------- */
.head{display:flex;justify-content:space-between;gap:1rem;
  padding-bottom:.5rem;margin-bottom:clamp(.8rem,2vh,1.6rem);
  border-bottom:1px solid var(--line);flex:none}
.head span{font-family:Archivo,sans-serif;font-size:.62rem;letter-spacing:.18em;
  text-transform:uppercase;color:var(--ink-3)}
.foot{margin-top:auto;padding-top:.7rem;border-top:1px solid var(--line);
  display:flex;justify-content:space-between;gap:1rem;flex:none}
.foot span{font-family:Archivo,sans-serif;font-size:.62rem;letter-spacing:.18em;
  text-transform:uppercase;color:var(--ink-3)}
.foot .no{color:var(--gilt)}
.matter{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}

h1.title{font-size:clamp(1.9rem,1rem + 3.4vh,4.2rem);line-height:.95;
  margin-bottom:.5rem}
h2.title{font-size:calc(clamp(1.35rem,.8rem + 2.2vh,2.7rem) * var(--fit,1));
  margin-bottom:.5rem}
.kicker{font-family:Archivo,sans-serif;font-size:.64rem;letter-spacing:.2em;
  text-transform:uppercase;color:var(--ink-3);margin-bottom:.7rem}
.lede{font-size:calc(clamp(.92rem,.72rem + .55vh,1.22rem) * var(--fit,1));
  color:var(--ink-2);
  max-width:34rem}
.drop::first-letter{float:left;font-size:3.1em;line-height:.82;padding:.06em .1em 0 0;
  color:var(--gilt)}
.rule{height:1px;background:var(--line);margin:1rem 0}
.cont{font-style:italic;color:var(--ink-3);font-size:.9rem;margin-top:.5rem}

/* full-bleed plate pages */
.face.plate{padding:0}
.face.plate img{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover}
.face.plate .cap{position:absolute;left:0;right:0;bottom:0;z-index:2;
  padding:clamp(1.1rem,2.4vw,2.2rem);color:var(--paper);
  background:linear-gradient(rgba(27,23,20,0),rgba(27,23,20,.82))}
.face.plate .cap b{display:block;font-weight:400;
  font-size:clamp(1.3rem,2.4vw,2rem)}
.face.plate .cap i{font-size:.9rem;color:rgba(243,235,217,.78)}
/* Outside the book the plate has no height of its own to fill, and its
   image is absolutely positioned — without this the page collapses to
   nothing and the photograph never appears in the no-JS sequence. */
.face.plate{min-height:70vh}
@media(min-width:60rem){.js .face.plate{min-height:0}}

/* lists set as a book sets them */
.cols{columns:2;column-gap:clamp(1.4rem,3vw,2.6rem);
  column-rule:1px solid var(--line);margin:0;padding:0;list-style:none}
@media(max-width:44rem){.cols{columns:1}}
.cols li{break-inside:avoid;padding:calc(.14rem * var(--fit,1)) 0;
  font-size:calc(clamp(.84rem,.62rem + .5vh,1.06rem) * var(--fit,1))}
.sub{font-family:Archivo,sans-serif;font-size:.62rem;letter-spacing:.18em;
  text-transform:uppercase;color:var(--ink-3);break-after:avoid;
  margin:.7rem 0 .25rem}
.sub:first-child{margin-top:0}
.entries{list-style:none;margin:0;padding:0;display:grid;
  gap:calc(clamp(.5rem,1.4vh,1rem) * var(--fit,1))}
.entries li{display:grid;gap:.08rem;padding-bottom:calc(.5rem * var(--fit,1));
  border-bottom:1px solid var(--line)}
.entries b{font-weight:500;
  font-size:calc(clamp(.94rem,.7rem + .5vh,1.1rem) * var(--fit,1))}
.entries span{font-family:Archivo,sans-serif;
  font-size:clamp(.6rem,.48rem + .25vh,.68rem);
  letter-spacing:.05em;color:var(--ink-3)}
.rows{list-style:none;margin:0;padding:0;display:grid;
  gap:calc(clamp(.4rem,1.2vh,.9rem) * var(--fit,1))}
.rows li{display:flex;justify-content:space-between;gap:1rem;
  border-bottom:1px solid var(--line);padding-bottom:.4rem}
.rows b{font-weight:500}
.rows span{font-family:Archivo,sans-serif;font-size:.66rem;letter-spacing:.08em;
  text-transform:uppercase;color:var(--ink-3);text-align:right}
.tags{list-style:none;margin:.4rem 0 0;padding:0;display:flex;flex-wrap:wrap;
  gap:.35rem}
.tags li{font-family:Archivo,sans-serif;letter-spacing:.05em;
  font-size:calc(clamp(.58rem,.44rem + .28vh,.66rem) * var(--fit,1));
  border:1px solid var(--line);padding:.2rem .45rem;color:var(--ink-2)}
.note{font-size:.88rem;color:var(--ink-3);max-width:32rem}
.plates{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;
  flex:1 1 auto;min-height:0}
@media(max-width:44rem){.plates{grid-template-columns:repeat(2,1fr)}}
.plates figure{margin:0;position:relative;overflow:hidden;background:var(--paper-2)}
.plates img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3}
.plates figcaption{position:absolute;inset:auto 0 0;padding:.4rem .5rem;
  font-family:Archivo,sans-serif;font-size:.56rem;line-height:1.4;
  letter-spacing:.03em;color:var(--paper);
  background:linear-gradient(rgba(27,23,20,0),rgba(27,23,20,.8))}
ul.links{list-style:none;margin:1rem 0 0;padding:0;display:flex;
  flex-wrap:wrap;gap:.45rem}
ul.links a{display:inline-block;text-decoration:none;background:var(--ink);
  color:var(--paper);font-family:Archivo,sans-serif;font-size:.68rem;
  letter-spacing:.12em;text-transform:uppercase;padding:.55rem .85rem;
  transition:background .2s,color .2s}
ul.links a:hover{background:var(--gilt);color:var(--ink)}

/* ---------- the turn cue and the progress ------------------------------- */
.cue{display:none}
@media(min-width:60rem){
  .js .cue{display:flex;position:fixed;z-index:130;left:50%;bottom:1rem;
    transform:translateX(-50%);align-items:center;gap:.7rem;
    color:rgba(243,235,217,.72);font-family:Archivo,sans-serif;
    font-size:.62rem;letter-spacing:.18em;text-transform:uppercase}
  .js .cue i{display:block;width:5rem;height:1px;background:rgba(243,235,217,.3);
    position:relative}
  .js .cue i b{position:absolute;inset:0 auto 0 0;width:0;display:block;
    background:var(--gilt)}
}

/* ---------- back matter (below the book, in flow) ----------------------- */
.after{background:#241F1A;color:rgba(243,235,217,.8);
  padding:clamp(2.4rem,6vw,4rem) var(--pad);
  font-family:Archivo,sans-serif;font-size:.86rem;line-height:1.62}
.after .grid{display:grid;gap:2rem;grid-template-columns:1fr;
  width:min(72rem,100%);margin-inline:auto}
@media(min-width:48rem){.after .grid{grid-template-columns:1.4fr 1fr 1fr}}
.after h4{font-size:.64rem;letter-spacing:.18em;text-transform:uppercase;
  color:rgba(243,235,217,.5);margin:0 0 .6rem}
.after ul{list-style:none;margin:0;padding:0;display:grid;gap:.3rem}
.after .rows li{border-bottom:1px solid rgba(243,235,217,.14)}
.after .rows span{color:rgba(243,235,217,.5)}
.after a{color:inherit}
.after .big{font-family:"EB Garamond",Georgia,serif;font-size:1.4rem;
  color:var(--paper);margin:0 0 .3rem}
.after .colophon{width:min(72rem,100%);margin:2.2rem auto 0;
  font-size:.78rem;color:rgba(243,235,217,.55)}

/* ---------- motion off --------------------------------------------------
   app.js drops .js when the reader asks for reduced motion, which restores
   the plain sequence of pages above. This is the belt to that braces. */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.01ms !important;
    animation-iteration-count:1 !important;transition-duration:.01ms !important;
    scroll-behavior:auto !important}
  .stage{height:auto !important;overflow:visible !important}
}
