/* Shared with the lead magnet pages (check-in, guides): same tokens, type and framing. Library-only parts follow. */

/* Layout: a printed CC field guide. A centred title page, then one reading column on Forest ground.
   One framing device only: the double-rule plate, used for the interactive parts. Ledger rules, small caps and italics do the rest. */
:root{
  --paper:#32382d; --paper-2:#2a2f26; --ink:#fff8e5; --sepia:#d2c9ad;
  --rule:#4f5944; --rule-strong:#828d6a; --accent:#f4c157; --accent-fg:#262b21;
  --tint:rgba(244,193,87,.08); --pull:#df9244; --pull-text:#e9a560; --ring:rgba(244,193,87,.34);
  --wedge:#fff8e5; --wedge-op:.55;
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .97 0 0 0 0 .9 .16 0 0 0 -.04'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --display:"Playfair Display", Georgia, "Times New Roman", serif;
  --sc:"Playfair Display SC", "Playfair Display", Georgia, serif;
  --body:"Libre Baskerville", Georgia, "Times New Roman", serif;
  color-scheme:dark;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{background-color:var(--paper);background-image:var(--grain);color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.75;-webkit-font-smoothing:antialiased}
.page{max-width:42rem;margin:0 auto;padding-block:44px 80px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));display:flex;flex-direction:column;gap:64px}
p,ul,ol,figure,dl{margin:0}
h1,h2,h3{font-family:var(--display);font-weight:500;line-height:1.15;margin:0;text-wrap:balance}
h1{font-size:clamp(2.5rem,8.5vw,3.9rem);letter-spacing:-.012em}
h2{font-size:clamp(1.6rem,5vw,2.05rem)}
h3{font-size:1.3rem}
a{color:var(--accent);text-underline-offset:3px;text-decoration-thickness:1px}
.label{font-family:var(--sc);font-size:15px;font-weight:400;letter-spacing:.05em;color:var(--sepia)}
.meta{font-family:var(--display);font-style:italic;font-size:15px;color:var(--sepia)}

/* Title page */
.masthead{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px}
.masthead .cover-tilt{
  width:min(220px,52vw);aspect-ratio:1365/1764;object-fit:cover;
  border:3px solid var(--accent);box-shadow:0 24px 48px rgba(0,0,0,0.45);
  transform:rotate(-4deg);margin-bottom:6px;
}
.mast{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;padding-block:10px 12px;border-block:3px double var(--rule-strong)}
.mast-name{font-family:var(--sc);font-size:17px;letter-spacing:.16em;color:var(--ink)}
.mast-sub{font-family:var(--display);font-style:italic;font-size:14.5px;color:var(--sepia)}
.masthead h1{margin-top:14px}
.lede{font-size:1.1rem;max-width:34rem;line-height:1.65}
.orn{display:flex;justify-content:center;color:var(--accent)}
.orn svg{width:96px;height:14px;display:block}

/* Sections */
.lib-section{display:flex;flex-direction:column;gap:22px}
.lib-section > h2:first-child,.lib-section > .lib-section-head:first-child{padding-top:20px;border-top:1px solid var(--rule)}
.prose{display:flex;flex-direction:column;gap:18px;max-width:36rem}
.dropcap::first-letter{float:left;font-family:var(--display);font-weight:500;font-size:3.7em;line-height:.8;padding:.07em .09em 0 0;color:var(--accent)}

/* The plate: the one framed device */
.panel,.player{border:3px double var(--rule-strong);background:var(--paper-2);padding:28px}

/* Buttons */
.btn{font-family:var(--body);font-size:17px;letter-spacing:.05em;border-radius:var(--r-xs,2px);padding:10px 24px 12px;border:1px solid var(--accent);background:transparent;color:var(--accent);cursor:pointer;transition:background .15s,filter .15s}
.btn:hover{background:var(--tint)}
.btn.primary{background:var(--accent);color:var(--accent-fg)}
.btn.primary:hover{background:var(--accent);filter:brightness(1.1)}
.btn.quiet{border-color:transparent;color:var(--sepia);padding-inline:2px;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.btn.quiet:hover{background:transparent;color:var(--accent)}
.btn:disabled{opacity:.35;cursor:default}
.actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}

/* Tabs and length choices: a ruled row, like a book's running head */
.choice{display:flex;flex-wrap:wrap;gap:2px 22px;border-bottom:1px solid var(--rule);max-width:100%}
.choice button{font-family:var(--sc);font-size:16px;letter-spacing:.04em;padding:6px 0 9px;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:transparent;color:var(--sepia);cursor:pointer}
.choice button[aria-checked="true"],.choice button[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--accent)}
.choice button:disabled{cursor:default}

/* Disclosures */
details > summary{list-style:none;cursor:pointer;font-family:var(--sc);font-size:16px;letter-spacing:.04em;color:var(--accent);display:inline-flex;gap:8px;align-items:baseline;padding-block:4px}
details > summary::-webkit-details-marker{display:none}
details > summary::before{content:"+";font-family:var(--display);display:inline-block;width:.75em}
details[open] > summary::before{content:"\2212"}

/* Lists marked with a short rule */
.isnt,.follows{list-style:none;padding:0;display:flex;flex-direction:column;gap:12px;max-width:36rem}
.isnt li,.follows li{position:relative;padding-left:26px}
.isnt li::before,.follows li::before{content:"";position:absolute;left:0;top:.86em;width:14px;height:1px;background:var(--accent)}

dl dt{font-family:var(--sc);font-size:16px;letter-spacing:.04em;color:var(--accent)}
dl dd{margin:2px 0 0}

/* Placeholder links */
.todo-link{align-self:flex-start;font-family:var(--display);font-style:italic;font-size:1.05rem;color:var(--accent);text-decoration:underline dotted;text-underline-offset:5px}

/* [Zoe: ...] placeholder copy, and placeholder buttons (e.g. a delivery link not yet set): a marked dashed box, never invented copy. */
.placeholder{border:1px dashed var(--rule-strong);border-radius:2px;padding:14px 16px;font-family:var(--display);font-style:italic;font-size:15px;line-height:1.55;color:var(--sepia)}
.lib-section.prose .placeholder{max-width:36rem}
a.placeholder,button.placeholder,span.placeholder{display:inline-block;cursor:default;text-decoration:none}

/* Works cited */
.refs{display:flex;flex-direction:column;gap:14px;font-size:14px;line-height:1.6}
.refs-title{font-family:var(--display);font-style:italic;font-weight:400;font-size:1.3rem;padding-top:20px;border-top:1px solid var(--rule)}
.refs ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:10px}
.refs li{padding-left:1.6em;text-indent:-1.6em}

/* Colophon */
.footer{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px}
.disclaimer{font-size:13.5px;font-style:italic;color:var(--sepia);max-width:34rem;line-height:1.65}
.tagline{font-family:var(--sc);font-size:16px;letter-spacing:.1em}

:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

form.signup{display:flex;flex-direction:column;gap:16px;max-width:30rem}
.field{display:flex;flex-direction:column;gap:2px}
.field label{font-family:var(--display);font-style:italic;font-size:14.5px;color:var(--sepia)}
.field input{width:100%;padding:8px 2px;border:0;border-bottom:1.25px solid var(--ink);border-radius:0;background:transparent;color:var(--ink);font:inherit;font-size:17px}
.field input[aria-invalid="true"]{border-bottom-color:var(--accent)}
.err{font-family:var(--display);font-style:italic;font-size:14px;color:var(--accent)}
.consent{display:grid;grid-template-columns:15px minmax(0,1fr);gap:12px;align-items:start;font-size:14.5px;line-height:1.55;cursor:pointer}
.consent input{accent-color:var(--accent);width:15px;height:15px;margin-top:4px}
.fine{font-size:13px;font-style:italic;color:var(--sepia);line-height:1.6}
.sent{font-family:var(--display);font-style:italic;font-size:15px;line-height:1.55;padding:14px;border:1px solid var(--rule-strong)}
/* Logo: the sun-and-roots mark as a mask, so it takes Bark Red on Parchment and Candlelight on Forest */
:root{--logo:url("/assets/logo-mark-mask.png")}
.logo-mark{display:block;width:84px;height:84px;background-color:var(--accent);-webkit-mask:var(--logo) center/contain no-repeat;mask:var(--logo) center/contain no-repeat}
.logo-mark.small{width:44px;height:44px}
.mast{border-block:0;border-bottom:3px double var(--rule-strong);padding-block:0 18px;gap:12px}
.wm{display:flex;flex-direction:column;align-items:center;line-height:1;color:var(--accent)}
.wm-1{font-family:var(--display);font-weight:400;font-size:31px;letter-spacing:.07em;text-transform:uppercase}
.wm-2{font-family:var(--display);font-style:italic;font-weight:400;font-size:21.5px;letter-spacing:.07em;text-transform:uppercase;margin-top:5px}
.mast-sub{margin-top:4px}
@media (max-width:480px){
  body{font-size:16px}
  .logo-mark{width:72px;height:72px}
  .wm-1{font-size:27px}
  .wm-2{font-size:19px}
  .page{gap:52px}
  .panel,.player{padding:18px}
}
@media (prefers-reduced-motion: reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* ---------------------------------------------------------------------------------------------- Library */
.runhead{align-self:stretch;display:flex;justify-content:center;gap:.4em;font-family:var(--sc);font-size:14px;letter-spacing:.08em;color:var(--sepia);margin-bottom:6px}
.runhead a{color:inherit;text-decoration:none}
.runhead a:hover{color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.masthead .line{font-family:var(--display);font-style:italic;font-size:1.35rem;color:var(--accent)}
.actions.center{justify-content:center}

/* Stage path: a small three-step running head */
.path{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:6px}
.path .label{font-family:var(--font-sans);font-size:.7rem;font-weight:600;letter-spacing:.17em;text-transform:uppercase;color:var(--accent-2)}
.path ol{list-style:none;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:4px 22px;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:8px 14px}
.path li{font-family:var(--display);font-style:italic;font-size:1.02rem}
.path a{color:var(--sepia);text-decoration:none}
.path a:hover{color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.path .n{font-family:var(--font-sans);font-style:normal;font-weight:600;font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text-faint)}
.path [aria-current="step"] .here{color:var(--accent);border-bottom:2px solid var(--accent);padding-bottom:3px}

/* The buy block: the framed device */
.plate{border:3px double var(--rule-strong);background:var(--paper-2);padding:28px;display:flex;flex-direction:column;gap:18px}
.plate.buy{align-items:center;text-align:center}
.buy-line{font-family:var(--font-serif);font-size:1.05rem;color:var(--sepia)}
.teaser-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;text-align:left;font-size:14.5px;line-height:1.5;max-width:26rem}
.teaser-list li{position:relative;padding-left:18px}
.teaser-list li::before{content:"–";position:absolute;left:0;top:0;color:var(--accent);font-style:italic}
.plate.closing{align-items:center;text-align:center}
.close-line{font-family:var(--display);font-style:italic;font-size:clamp(1.35rem,4.6vw,1.75rem);line-height:1.35;text-wrap:balance;max-width:30rem}
a.btn{display:inline-block;text-decoration:none;text-align:center}
.plate .actions{justify-content:center}

/* Waitlist panel */
.waitlist.is-closed:not(:target){display:none}
.waitlist h2{font-size:1.5rem;font-style:italic}
.waitlist:focus{outline:none}
.waitlist .sent{margin:0}

/* Sections */
.recog-list{list-style:none;padding:0;display:flex;flex-direction:column;gap:0;max-width:36rem;margin-inline:auto;width:100%}
.recog-list li{font-family:var(--display);font-style:italic;font-size:1.2rem;line-height:1.45;padding:14px 0;border-top:1px solid var(--rule)}
.recog-list li:last-child{border-bottom:1px solid var(--rule)}
.lib-section .prose,.lib-section.prose{max-width:36rem}
.lib-section.prose{gap:18px}
.lib-section.prose > h2{padding-bottom:0}
.chapters{list-style:none;counter-reset:ch;padding:0;display:flex;flex-direction:column;gap:14px;max-width:38rem}
.chapters li{counter-increment:ch;position:relative;padding-left:2.2rem}
.chapters li::before{content:counter(ch) ".";position:absolute;left:0;font-family:var(--display);font-style:italic;color:var(--accent);font-size:1.15rem}
.chapters strong{font-family:var(--display);font-weight:500;font-size:1.08rem}
.group{display:flex;flex-direction:column;gap:12px}
.group + .group{margin-top:10px}
.group > h3{font-size:1.3rem;font-style:italic}
.inside > p{max-width:36rem}
.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.ledger{border-collapse:collapse;width:100%;font-size:15.5px;line-height:1.55}
.ledger th,.ledger td{text-align:left;vertical-align:top;padding:12px 14px 12px 0;border-top:1px solid var(--rule)}
.ledger thead th{font-family:var(--font-sans);font-weight:600;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text-faint);border-top:0;border-bottom:1px solid var(--rule-strong)}
.ledger tbody th{font-family:var(--display);font-style:italic;font-weight:500;font-size:1.05rem;white-space:nowrap;padding-right:18px}
.ledger tbody th a{color:var(--accent)}
.ledger td.num{text-align:right;white-space:nowrap;padding-right:0;font-family:var(--display);font-size:1.05rem}
.ledger thead th:last-child{text-align:right;padding-right:0}
.ledger tr.total th,.ledger tr.total td{border-top:3px double var(--rule-strong);font-weight:500}
.who{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.who > div{display:flex;flex-direction:column;gap:14px}
.who h3{font-style:italic}
.who:has(> div:only-child){grid-template-columns:minmax(0,1fr)}
.isnt{list-style:none;padding:0;display:flex;flex-direction:column;gap:12px}
.isnt li{position:relative;padding-left:26px}
.isnt li::before{content:"";position:absolute;left:0;top:.86em;width:14px;height:1px;background:var(--sepia)}
.faqs{gap:8px}
.faq-plate{border:3px double var(--rule-strong);background:var(--paper-2);padding:28px}
.faq-plate h2{margin-bottom:12px}
.faq{border-top:1px solid var(--rule);padding-block:8px}
.faq:last-child{border-bottom:0}
.faq summary{font-family:var(--font-serif);font-weight:700;font-size:17px;padding-block:6px}
.faq p{margin-top:8px;padding-left:1.5em;max-width:36rem}

/* Hub: a contents page. Ruled lines, not boxes — except Questions, set off in the
   same double-rule plate as the interactive parts, since it closes out the page. */
.hubsec .intro-line{max-width:36rem;font-family:var(--display);font-style:italic;font-size:1.12rem;line-height:1.55;color:var(--sepia)}
.hubsec .note{font-family:var(--display);font-style:italic;color:var(--sepia);max-width:36rem}
.tag{font-family:var(--sc);font-size:14px;letter-spacing:.06em;color:var(--pull-text);border:1px solid var(--pull);padding:2px 9px 3px;border-radius:2px}

/* "Not sure where to start?": the one card that needs a real button, not a ruled line. */
.start-plate{border:3px double var(--rule-strong);background:var(--paper-2);padding:28px;display:flex;flex-wrap:wrap;align-items:center;gap:28px}
.start-plate__text{flex:1 1 20rem}
body[data-system="v4"] .start-plate h3{font-size:clamp(1.3rem,4.4vw,1.6rem);font-style:italic;margin-bottom:16px}
body[data-system="v4"] .start-plate__text p{max-width:36rem;font-size:16px;line-height:1.65;margin-bottom:20px}
.start-plate__map{flex:0 0 auto;width:min(200px,40vw);margin-inline:auto}
.start-plate__map .map{width:100%;height:auto;display:block}
.start-plate__map .ring{fill:none;stroke:var(--rule-strong);stroke-width:.75}
.start-plate__map .axis{stroke:var(--rule);stroke-width:.75}
.start-plate__map .wedge{fill:var(--rule);opacity:.55}
.start-plate__map .core{fill:var(--ground);stroke:var(--ink);stroke-width:1}
.start-plate__map .m-name{font-family:var(--display);font-style:italic;font-size:13px;fill:var(--ink)}

/* Guide cards: a shop grid for the actual products — cover, title, price. One framing
   device carried over from the price plate: a double rule along the cover's top edge. */
.guide-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:28px 20px;margin-top:8px}
.guide-card{position:relative;display:flex;flex-direction:column;gap:10px;text-decoration:none;color:var(--ink)}
.guide-card__cover{
  display:block;aspect-ratio:4/5;background-size:cover;background-position:center;
  border:1px solid var(--rule-strong);border-top:3px double var(--accent);
  transition:border-color 180ms ease;
}
.guide-card:hover .guide-card__cover{border-color:var(--accent);border-top-color:var(--accent)}
.guide-card__cover--plate{
  background-color:var(--paper-2);display:flex;flex-direction:column;justify-content:center;
  align-items:center;text-align:center;gap:10px;padding:1.4rem;
}
.guide-card__cover-eyebrow{font-family:var(--sc);font-size:13px;letter-spacing:.07em;color:var(--sepia)}
.guide-card__cover-name{font-family:var(--display);font-style:italic;font-size:1.2rem;line-height:1.3}
.guide-card__body{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.guide-card__title{font-family:var(--display);font-style:italic;font-size:1rem;line-height:1.3}
.guide-card:hover .guide-card__title{color:var(--accent);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.guide-card__price{font-family:var(--display);font-size:1rem;white-space:nowrap;flex:none}
.guide-card .tag{position:absolute;top:10px;left:10px}

@media (max-width:640px){
  .who{grid-template-columns:minmax(0,1fr)}
  .plate{padding:20px}
  .ledger{font-size:14.5px}
  .ledger tbody th{white-space:normal}
}
