:root{--ground:#24423f;--ivory:#f3e6c8;--ink:#33261a;--gold:#c9a24a;--plum:#633b72;--paper:#efe1c2;--linen:url('/herbarium/teal-grain.webp');--tear:polygon(.4% 1.4%,3% 1%,6% 1.5%,10% .6%,16% 1%,19% .3%,23% .9%,28% .4%,32% .8%,37% .3%,41% .7%,46% .3%,51% 1%,54% .4%,59% .8%,64% 0,68% .8%,73% .4%,78% .8%,82% .2%,87% .8%,91% .1%,96% .7%,99.4% .3%,99.8% 8%,99.4% 17%,100% 26%,99.6% 35%,100% 46%,99.5% 55%,99.8% 65%,99.4% 74%,100% 83%,99.5% 92%,99.8% 99%,94% 98.8%,88% 99.7%,83% 99%,76% 99.6%,71% 98.9%,65% 99.6%,58% 99%,51% 99.8%,45% 99.2%,38% 100%,31% 99.1%,24% 99.8%,18% 99%,11% 99.6%,6% 99%,.4% 99.7%,0 90%,.6% 79%,.1% 68%,.5% 57%,0 46%,.4% 34%,0 23%,.5% 12%)}
body{background:linear-gradient(#19343145,#19343145),var(--linen) center/340px auto,var(--ground);color:var(--ivory);font:400 18.5px/1.55 "EB Garamond",Georgia,serif;min-height:100dvh;display:flex;flex-direction:column}
header,footer{width:100%;color:var(--ivory)}main{flex:1;width:100%;max-width:96rem;margin:auto}header .brand{letter-spacing:-.045em;font-size:2rem}header nav a[aria-current]{border:0;position:relative}header nav a[aria-current]:after{content:"☾";position:absolute;left:44%;bottom:-.65em;font-size:1rem;color:var(--gold)}
body main>section:not(#home),body #readings,body #reverse,body #home.hero{position:relative;isolation:isolate;background:transparent;color:var(--ivory);border:3px double var(--gold);box-shadow:none;outline:none;max-width:82rem;margin:clamp(1rem,3.2vw,3rem) auto;padding:clamp(2rem,5.5vw,5.8rem) clamp(2rem,7.7vw,7.5rem)}
.border-art{position:absolute;pointer-events:none;inset:0;z-index:-1;overflow:hidden}.border-art img{position:absolute;height:auto;width:clamp(54px,9vw,140px)}.border-art .left-edge{top:6.2rem;left:-2%;transform:rotate(12deg)}.border-art .right-edge{top:1rem;right:-2%;transform:rotate(-16deg)}.border-art .thread{width:clamp(84px,14vw,220px);right:-1%;top:-6px;opacity:.9}.border-art .corner{width:clamp(25px,4.3vw,65px);height:65px;object-fit:contain}.corner.c0{top:5px;left:4px}.corner.c1{top:6px;right:2px}.corner.c2{bottom:8px;left:8px}.corner.c3{bottom:8px;right:8px}.border-art .seal{bottom:-4px;left:48%;width:64px}.over,#home .intro .over{color:#e5c982;font-size:.82rem;letter-spacing:.18em}.page-title,h1,h2,h3,#collection>p{color:inherit}body p{max-width:70ch}main img{max-width:100%}
#home .cover-plate{background:none;border:none;padding:0;box-shadow:none;width:min(100%,21rem);transform:rotate(3deg)}#home .cover-plate img,.shelf-pair img,.book-shelf>img,.place img,#reverse>a img{filter:drop-shadow(4px 8px 8px #111d1b70)}#home .intro h1{color:var(--ivory)}.home-shelf{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:7%}.home-shelf:before,.paper:before,.guide-intro:before,.edition-grid:before,.colophon:before,.spread-trigger:before{content:"";position:absolute;inset:0;z-index:-1;clip-path:var(--tear);background:linear-gradient(105deg,#efe1c2f5,#e3cc98f7),url('/herbarium/parchment-script-grain.webp') center/72px}.home-shelf:before{inset:6px}.home-shelf h2,.home-shelf p,.home-shelf .over{color:var(--ink)}.shelf-pair{position:relative;display:flex;justify-content:center;gap:4%;padding:1.7rem}.shelf-pair img{width:41%;height:auto;object-fit:contain;transform:rotate(-3deg)}.shelf-pair img+img{transform:rotate(3deg)}.book-shelf>img{width:min(70%,14rem);margin:auto}
#grid{display:block}.card-family{margin:3rem 0}.card-family>h2{font-size:clamp(2rem,4vw,3.15rem);margin-bottom:1.3rem}#grid .family-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2.2rem 1.5rem}#grid .card{display:block;padding:0;background:none;border:0;text-align:center}#grid .mount{display:grid;place-items:center;position:relative;isolation:isolate;background:none;border:0;border-radius:0;padding:.65rem;height:auto;aspect-ratio:.73;transform:rotate(-1deg);transition:transform .2s}#grid .card:nth-child(even) .mount{transform:rotate(1deg)}#grid .card:hover .mount{transform:translateY(-2px)}#grid .mount img{width:100%;height:100%;max-height:100%;object-fit:contain;filter:drop-shadow(2px 3px 3px #33261a5e)}#grid .card h3{display:inline-block;background:var(--paper);color:var(--ink);font:500 clamp(1rem,1.8vw,1.29rem)/1.15 "Cormorant SC",Georgia,serif;margin:.65rem auto 0;padding:.24rem .65rem;clip-path:var(--tear)}.back-link a{display:inline-flex;align-items:center;gap:1.2rem}.back-link img{width:75px;height:auto}
#viewer,#spread-dialog{color:var(--ink);background:var(--paper);border:3px double var(--gold);border-radius:0;width:min(60rem,94vw)}#viewer::backdrop,#spread-dialog::backdrop{background:#142e2bdc}.pair,.pair.landscape{display:grid;grid-template-columns:1fr 1fr}.pair figure{background:transparent}.pair img,.pair.landscape img{width:100%;height:min(39vh,23rem);object-fit:contain}.paging{background:var(--paper);bottom:-1.3rem}.spread-close,#close{position:static;float:right}.paging button,#close,.spread-close,.cta,.paper-link{background:var(--paper);color:var(--ink);border:1px solid #8d7046;border-radius:0}.reading p{font-size:1.12rem}
#readings .spread-trigger{display:flex;justify-content:space-between;align-items:center;gap:.8rem;isolation:isolate;position:relative;color:var(--ink);background:none;clip-path:none;box-shadow:none;padding:.8rem 1.5rem;margin:.9rem 0;width:100%;text-align:left}.spread-trigger:after{content:"❧";font-family:Georgia;color:#74581c}.mini-layout{display:block;flex:none;width:110px;height:64px;background:var(--ground) var(--linen) center/150px;border:3px double var(--gold);position:relative;margin-left:auto}.mini-layout img{position:absolute;width:auto;transform:translate(-50%,-50%) rotate(var(--turn));max-width:33%}.spread-trigger small{display:block;color:var(--plum)}.layout,.film-still{background:var(--ground) var(--linen) center/250px;border:3px double var(--gold);color:var(--ivory)}.place figcaption{color:var(--ivory)}.spreadbody li strong,.spreadbody li span{display:block}.spreadbody li span{color:var(--plum)}.spread-content li{margin-bottom:.7rem}.spread-content .question{color:var(--ink)}
#reverse>a{width:clamp(170px,26vw,360px);transform:rotate(-2deg)}.motifs,.suits{list-style:none;padding:0;display:grid}.motifs li,.suits li{display:flex;align-items:center;gap:.8rem;margin:.45rem 0}.motifs img,.suits img{width:44px;height:48px;object-fit:contain}.suits{grid-template-columns:repeat(2,1fr)}.guide-intro,.edition-grid,.colophon{position:relative;isolation:isolate;color:var(--ink);padding:clamp(1.35rem,3.8vw,3.5rem);margin:2rem auto}.guide-intro .over,.colophon .over{color:var(--plum)}.guide-intro>img{width:100%;max-width:240px}.guide-intro{grid-template-columns:minmax(150px,.55fr) 1.4fr}.guide-intro a,.edition-grid a,.colophon a{color:var(--plum)}.edition-grid{grid-template-columns:1.35fr 1fr}.status{color:var(--ivory)}summary{list-style:none;cursor:pointer}summary::-webkit-details-marker{display:none}summary:before{content:"❧";display:inline-block;color:var(--gold);margin-right:.6em}details[open]>summary:before{transform:rotate(60deg)}.guide-notes{border-color:var(--gold)}.film,.film-grid article{background:#1c3533;color:var(--ivory);border:3px double var(--gold);padding:1.2rem}.film-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:1.6rem}.film-grid article p{min-height:0}.film-grid article>video{max-width:16rem;margin:auto}.film-grid small{color:var(--ivory)}.film-still{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;padding:1rem;align-items:center}.film-still img{width:min(43%,145px);height:auto;object-fit:contain}.foot-emblem{display:flex;align-items:center;justify-content:center;width:100%;gap:.4rem}.foot-emblem img{width:26px;height:39px;object-fit:contain}.foot-emblem img:nth-child(2){width:50px}.foot-emblem img:last-child{transform:scaleX(-1)}footer{align-items:center;justify-content:center;gap:.5rem 1.6rem;text-align:center;border-top:1px solid var(--gold);padding:1.5rem}#guidebook details,#edition details{padding:1rem 0}.suits li{font-size:.93rem}#launch-notice input{background:var(--paper);color:var(--ink)}
@media(max-width:85rem){body main>section:not(#home),body #readings,body #reverse,body #home.hero{margin-left:2%;margin-right:2%}}
@media(max-width:900px){#grid .family-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.edition-grid{grid-template-columns:1fr}.border-art .left-edge,.border-art .right-edge{width:65px}}
@media(max-width:680px){body main>section:not(#home),body #readings,body #reverse,body #home.hero{padding:2.2rem 1rem}.border-art .right-edge,.border-art .left-edge{width:37px;top:0}.room-home .border-art .left-edge,.room-home .border-art .right-edge{display:none}#home.hero{padding:2.1rem 2.2rem 3.4rem!important}#home .cover-plate{width:48%;max-width:140px}#home .intro h1{font-size:3.7rem}.border-art .corner{height:32px;width:30px}.border-art .seal{width:34px}.border-art .thread{width:55px}.home-shelf,.guide-intro{grid-template-columns:1fr;gap:1rem}.home-shelf{text-align:center}.shelf-pair{padding:.8rem;max-width:290px;margin:auto}.book-shelf>img,.guide-intro>img{width:48%;margin:auto}.card-family{margin:2rem 0}#grid .family-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem .8rem}#grid .mount{padding:.4rem}#grid .card h3{font-size:1rem}.pair,.pair.landscape{grid-template-columns:1fr}.pair img,.pair.landscape img{height:32vh}.mini-layout{width:75px;height:54px}.spread-trigger{font-size:1.22rem}#readings .spread-trigger{padding:.6rem .7rem}#reverse{flex-direction:column}#reverse>a{width:60%;margin:1rem auto}.film-grid{grid-template-columns:1fr}.colophon>a{width:130px}.motifs,.suits{grid-template-columns:1fr}footer{display:grid}p{line-height:1.55}header nav a{font-size:1rem}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
#collection h2,#films h2,#films article h3,#readings h2{color:var(--ivory)}
#films .film{background:#1c3533;color:var(--ivory);border:3px double var(--gold)}
#reverse .motifs img{width:44px;height:48px;object-fit:contain}
#reverse .border-art img{width:clamp(48px,8vw,115px)}
#reverse>div:not(.border-art){background:var(--paper);color:var(--ink);clip-path:var(--tear);padding:clamp(1.5rem,3.2vw,3rem);max-width:32rem}
#reverse .over,#viewer .over{color:var(--plum)}
#reverse .page-title{font-size:clamp(2.5rem,5vw,4.5rem)}
#grid .card-family{margin-top:2rem}
.pair figure{position:relative}.pair a{display:block;position:relative}.pair a::after{content:"Wildflower & Bone";position:absolute;right:.4rem;bottom:.3rem;font:italic .7rem Georgia;color:var(--ink);background:#efe1c2c2;padding:.1em .4em;pointer-events:none}
@media(max-width:680px){#reverse .border-art img{width:38px}#reverse .border-art .left-edge{top:1rem}#reverse .motifs img{width:34px;height:38px}#reverse>div:not(.border-art){margin-top:1rem;width:100%}.pair a::after{font-size:.6rem}}
.v24-layout{align-self:start;align-items:center;gap:.5rem;padding:.8rem}
.v24-layout .place img{height:auto;max-height:10rem;margin:auto}
.v24-layout .place figcaption{line-height:1.2}
.worked-steps,.position-key{list-style:none;padding-left:0}
.worked-steps li{margin-bottom:1rem}
#draw{border-block:1px solid var(--gold);padding:1.2rem 0;margin:1.5rem 0;color:var(--ivory)}#draw h2{color:var(--ivory)}#draw .cta,#viewer [role=tab]{min-height:44px;padding:.4rem .85rem}.draw-result{display:flex;align-items:center;gap:1.2rem;flex-wrap:wrap}.draw-result:not(:empty){margin-top:1rem}.draw-result img{width:auto;height:auto;max-width:min(40%,180px);max-height:225px;object-fit:contain}.draw-result>div{flex:1;min-width:150px}.draw-result .inverted{transform:rotate(180deg)}.shuffling{animation:shuffle .5s ease}@keyframes shuffle{25%{transform:translateX(-10px) rotate(-5deg)}75%{transform:translateX(10px) rotate(5deg)}}
.flip-card{padding:0;display:block;max-width:100%;margin:auto;background:transparent;border:0;min-height:44px}.flip-card[aria-expanded=true] img{animation:turn-in .2s ease-out}@keyframes turn-in{from{opacity:.4;scale:.85 1}to{opacity:1;scale:1}}
#viewer [role=tablist]{display:flex;gap:.35rem;flex-wrap:wrap;margin:1rem 0}#viewer [role=tab]{background:transparent;border:1px solid #866e47;color:var(--ink)}#viewer [aria-selected=true]{background:var(--ground);color:var(--ivory)}#viewer .finished-face{display:block;width:auto;height:auto;margin:1rem auto;max-width:100%;max-height:53vh;object-fit:contain}#viewer .reading h3{padding-right:0}[hidden]{display:none!important}#signup-result:not(:empty){font-weight:bold}#promo small{font-size:14px}

.shelf-pair{padding:0;background:none}
#grid .family-grid{align-items:start}
#grid .mount,#grid .card:nth-child(even) .mount,#grid .card:hover .mount{display:block;padding:0;height:auto;aspect-ratio:auto;transform:none;background:none}
#grid .mount img{display:block;width:100%;height:auto;max-height:none;border-radius:3.5%;box-shadow:0 6px 18px rgba(0,0,0,.35);filter:none}
.family-grid>:has(img[src$="card-03.webp"]){grid-column:span 2}
#readings .spread-trigger,#readings .spread-choice{max-width:none;width:100%;box-sizing:border-box}
#readings .spread-trigger:after{content:none}
#readings .spread-trigger{padding-right:0}

/* Keep navigation, focus and selected states legible on either surface. */
header nav a{min-height:44px;padding-inline:.25rem}
header nav a[aria-current="page"]{text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:.35em;text-decoration-thickness:2px}
header nav a[aria-current]:after{content:none}
header nav a:hover,footer a:hover{text-decoration:underline;text-underline-offset:.22em}
.skip-link{background:var(--paper);color:var(--ink)}
:where(a,button,input,summary,[tabindex]):focus-visible{outline:3px solid #fff4cf;outline-offset:2px;box-shadow:0 0 0 6px #294039}
#viewer [role="tab"][aria-selected="true"]{background:var(--ground);color:var(--ivory);font-weight:700}
#viewer [role="tab"]:focus-visible,#spread-dialog button:focus-visible,.skull-draw:focus-visible{outline:3px solid #a87932;outline-offset:2px}
#viewer button,#spread-dialog button,#launch-notice input,#launch-notice button{min-height:44px;font-family:"EB Garamond",serif;font-size:1.08rem}
#grid .card h3{font-family:"Cormorant Garamond",serif;font-weight:700;font-size:clamp(1.08rem,1.8vw,1.35rem)}
#launch-notice a,.guide-intro a,.edition-grid a,footer a{text-underline-offset:.18em;text-decoration-thickness:1px}
footer a{color:var(--ivory)}
@media(max-width:680px){header nav{column-gap:.65rem;row-gap:0}#home .intro>p:not(.kitchen){font-size:1.125rem;line-height:1.5}.v24-layout .place figcaption{font-size:.94rem;line-height:1.25}}

.live-choices { margin: 1.3rem 0 0; padding: 0; border: 0; min-width: 0; }
.live-choices legend { margin-bottom: .5rem; font-size: 1.2rem; }
.live-choices button { margin-bottom: .4rem; }
.draw-result .live-reading { width: 100%; }
.live-reading ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; padding: 0; list-style: none; }
.live-reading li { min-width: 0; }
.draw-result .live-reading img { display: block; width: auto; max-width: 100%; max-height: 13rem; margin: 0 auto 1rem; border-radius: 3.5%; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.live-reading h4 { font: inherit; font-size: 1.25rem; margin: .7rem 0 .35rem; }
.live-reading p { margin: .45rem 0 1rem; }
@media(max-width:760px){ .live-reading ol { grid-template-columns: 1fr; } .live-reading li + li { border-top:1px solid var(--gold); padding-top:1rem; } }

.pick-fan {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(100%, 27rem);
  margin: 1.8rem auto 1rem;
  padding: .8rem 0;
  perspective: 55rem;
}
.pick-fan .fan-back {
  appearance: none;
  width: 100%;
  padding: 0;
  aspect-ratio: 5 / 7;
  cursor: pointer;
  border: 1px solid var(--gold);
  border-radius: 4%;
  background: #24423f url('/faces/back.webp') center / 100% 100% no-repeat;
  box-shadow: 0 4px 12px #0007;
  transform: translateY(calc(var(--offset) * var(--offset) * 2px)) rotate(calc(var(--offset) * 5deg));
  animation: fan-flourish .9s cubic-bezier(.22,.74,.22,1) backwards;
}
@keyframes fan-flourish {
  0% { transform: translateX(calc(var(--offset) * -98%)) rotate(-7deg); }
  38% { transform: translateX(calc(var(--offset) * -62%)) translateY(-10%) rotate(calc(var(--offset) * 16deg)); }
  65% { transform: translateX(calc(var(--offset) * -84%)) rotate(3deg); }
}
.pick-fan .fan-back:disabled { opacity: .18; cursor: default; }
.pick-fan .fan-back:focus-visible { z-index: 1; outline: 3px solid #fff2cd; outline-offset: 3px; }
.pick-sleeve { position: relative; height: 11rem; margin-bottom: 1rem; perspective: 50rem; }
.draw-result .pick-sleeve img { position: absolute; inset: 0; max-height: 100%; max-width: 100%; margin: auto; backface-visibility: hidden; }
.pick-sleeve.turn-card img:first-child { animation: turn-back .55s both; }
.pick-sleeve.turn-card .picked-face { animation: turn-face .55s both; }
.pick-sleeve .picked-face.inverted { rotate: 180deg; transform: none; }
@keyframes turn-back { to { transform: rotateY(180deg); } }
@keyframes turn-face { from { transform: rotateY(-180deg); } to { transform: rotateY(0); } }
.quick-reveal img:first-child { display:none; }
@media (prefers-reduced-motion: reduce) {
  .pick-fan .fan-back, .pick-sleeve.turn-card img { animation: none; }
  .pick-sleeve.turn-card img:first-child { display:none; }
}

.spread-trigger small,.spread summary small { margin-inline-start:0; }
#grid .card:focus { outline:none; box-shadow:none; }
#grid .card:focus-visible .mount img,
#grid .static-card summary:focus-visible .mount img { outline:3px solid #fff4cf; outline-offset:3px; border-radius:3.5%; }
#grid .static-card summary:focus { outline:none; box-shadow:none; }

.practice-draw { border-top:1px solid var(--gold); padding-top:1.25rem; margin-top:1.5rem; }
.practice-draw .live-reading ol { margin-inline:0; }
.practice-draw .live-reading ol:has(>li:only-child) { grid-template-columns:minmax(0,1fr); }
.practice-draw .pick-sleeve img { max-height:100%; margin:auto; }
#spread-dialog .pick-fan .fan-back { background: #24423f url('/faces/back.webp') center / 100% 100% no-repeat; padding:0; }

.live-reading .reading-table { display:grid; gap:.85rem .45rem; width:min(100%,34rem); margin:1rem auto; }
.reading-table figure { min-width:0; margin:0; text-align:center; }
.reading-table figcaption { font-size:1rem; line-height:1.2; overflow-wrap:anywhere; }
.reading-table .pick-sleeve { width:min(100%,7rem); aspect-ratio:5/7; height:auto; margin:0 auto .45rem; }
.draw-result .reading-table .pick-sleeve img { width:auto; height:auto; max-width:100%; max-height:100%; margin:auto; }
.live-reading .reading-notes { display:block; }
.live-reading .reading-notes li { display:flow-root; border-top:1px solid var(--gold); padding:.75rem 0; }
.draw-result .live-reading .reading-copy { float:left; width:min(26%,7rem); height:auto; margin:0 1rem .5rem 0; }
@media(prefers-reduced-motion:reduce){.draw-result .reading-table .pick-sleeve.turn-card img { animation:none; }}


/* Shared reading rhythm and navigation gutters. */
header { box-sizing: border-box; }
header nav { align-items: center; }
header nav a { display: inline-flex; align-items: center; white-space: nowrap; }
main :is(h1,h2,h3,h4) { text-wrap: balance; }
main :is(p,li) { text-wrap: pretty; }
main :is(.paper,.guide-intro,.guide-notes,.colophon,.home-shelf) p {
  max-inline-size: 66ch; line-height: 1.55;
}
main :is(.over,.book-specs) { line-height: 1.4; }
#readings .spread-trigger > span { min-width: 0; }
#readings .spread-trigger small { margin-top: .18rem; line-height: 1.25; }
:is(.position-key,.reading-notes) li + li { margin-block-start: .4rem; }
#grid .card-family > h2 { line-height: 1.12; }
footer { line-height: 1.4; }
@media (max-width: 680px) {
  header { padding: .8rem 1rem .65rem; }
  header .brand { line-height: 1.08; }
  header nav { display: flex; flex-wrap: wrap; justify-content: flex-start;
    gap: 0 clamp(.6rem, 2.6vw, 1.05rem); margin-top: .35rem; }
  header nav a { min-height: 2.75rem; padding: 0; line-height: 1.2; }
  .table-page header { padding-block: .55rem .35rem; }
  .table-page header nav { flex-wrap: nowrap; overflow-x: auto; }
  .table-page header nav a { flex: none; }
  .page-title { line-height: 1.08; }
  .guide-notes p + p { margin-top: .8em; }
  footer { row-gap: .65rem; }
}
