/* Shared styling for the pages that weren't part of the original design:
   thank-you, the cookbook product page, 404 and the policy documents.
   Tokens mirror the landing page so these don't read as a different site.
   The three big pages still carry their own inline CSS. */

:root{
  --ink:#f3f1ea;
  --paper:#0b0a08;
  --orange:#e2742c;
  --orange-deep:#f2954f;
  --amber:#c98b4d;
  --blush:#141210;
  --card:#1c1a16;
  --muted:rgba(243,241,234,0.58);
  --hair:rgba(243,241,234,0.14);
  --r-lg:20px;
  --r-md:16px;
}

*{box-sizing:border-box;}

/* Safety net: every image on the site is individually constrained today,
   but one added later without a class would blow the layout sideways on a
   phone. Horizontal overflow is the single most common mobile bug. */
img,svg,video{max-width:100%;}

/* Long unbroken strings — a payment reference, a pasted URL in a policy
   page — must wrap rather than force the page wider than the screen.
   Deliberately NOT using body{overflow-x:hidden}: it would break the
   sticky nav below, and it hides overflow bugs instead of fixing them. */
p,li,dd,h1,h2,h3{overflow-wrap:break-word;}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Source Serif 4',Georgia,serif;
  font-size:17px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}

.wrap{max-width:760px;margin:0 auto;padding:0 24px;}

/* ---------- nav ---------- */
.nav{border-bottom:1px solid var(--hair);background:rgba(11,10,8,0.9);
     position:sticky;top:0;z-index:20;backdrop-filter:blur(10px);}
.nav__inner{display:flex;align-items:center;justify-content:space-between;
            gap:20px;height:70px;max-width:1180px;margin:0 auto;padding:0 24px;}
/* padding, not margin, so the tappable box grows with it */
.nav a{color:var(--ink);text-decoration:none;font-size:15px;padding:11px 0;display:inline-block;}
.nav__links{display:flex;align-items:center;gap:26px;}
.nav__links a:hover{color:var(--orange-deep);}
.logo-badge{height:34px;width:auto;display:block;}

/* These pages carry only two or three short links, so they stay visible on
   a phone rather than being hidden behind nothing — there is no hamburger
   menu here, and hiding them would leave no way off the page but the logo. */
@media (max-width:620px){
  .nav__inner{height:62px;padding:0 16px;gap:12px;}
  .nav__links{gap:16px;}
  .nav__links a{font-size:14px;}
  .logo-badge{height:28px;}
}
@media (max-width:380px){
  .nav__links{gap:12px;}
  .nav__links a{font-size:13px;}
}

/* ---------- type ---------- */
h1{font-family:'Bodoni Moda',Georgia,serif;font-size:clamp(30px,5vw,44px);
   line-height:1.15;margin:0 0 14px;font-weight:500;}
h2{font-family:'Bodoni Moda',Georgia,serif;font-size:24px;margin:38px 0 12px;font-weight:500;}
h3{font-size:18px;margin:26px 0 8px;}
p{margin:0 0 16px;}
a{color:var(--orange-deep);}
ul{padding-left:22px;margin:0 0 16px;}
li{margin-bottom:8px;}
small,.small{font-size:13.5px;color:var(--muted);}
.lede{font-size:19px;color:var(--muted);margin-bottom:28px;}
.eyebrow{display:inline-block;font-size:12px;letter-spacing:0.16em;
         text-transform:uppercase;color:var(--amber);margin-bottom:14px;}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:13px 26px;border-radius:999px;border:1px solid var(--hair);
  background:transparent;color:var(--ink);font:inherit;font-size:15.5px;
  cursor:pointer;text-decoration:none;transition:transform .18s,box-shadow .18s;
}
.btn--orange{background:linear-gradient(135deg,var(--amber),var(--orange-deep));
             border-color:transparent;color:#fff;}
.btn--orange:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(201,139,77,.36);}
.btn:disabled{opacity:.6;cursor:default;transform:none;box-shadow:none;}
/* An <svg> with no width/height defaults to 300x150 and, with no fill set,
   paints solid black. Inside a button that reads as a black slab. The three
   big inline-CSS pages each define this; page.css did not. */
.btn svg{width:17px;height:17px;flex:0 0 auto;
         fill:none;stroke:currentColor;stroke-width:1.8;}

/* ---------- blocks ---------- */
.section{padding:64px 0 80px;}
.card{background:var(--card);border:1px solid var(--hair);
      border-radius:var(--r-lg);padding:32px;}
.notice{border-left:3px solid var(--amber);background:rgba(201,139,77,.08);
        padding:16px 20px;border-radius:0 var(--r-md) var(--r-md) 0;margin:0 0 24px;}
.check-mark{width:64px;height:64px;margin:0 auto 24px;border-radius:50%;
            display:grid;place-items:center;background:rgba(201,139,77,.14);
            border:1px solid rgba(201,139,77,.4);}
.check-mark svg{width:30px;height:30px;stroke:var(--orange-deep);fill:none;stroke-width:2;}
.centered{text-align:center;}

.price-tag{font-family:'Bodoni Moda',Georgia,serif;font-size:38px;line-height:1;}
.price-tag small{font-size:14px;font-family:'Source Serif 4',Georgia,serif;
                 color:var(--muted);margin-left:8px;}

/* ---------- footer ---------- */
.foot{border-top:1px solid var(--hair);padding:30px 0;margin-top:60px;
      font-size:13.5px;color:var(--muted);}
.foot .wrap{display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:space-between;}
.foot a{color:var(--muted);text-decoration:none;}
.foot a:hover{color:var(--orange-deep);}
.foot nav{display:flex;flex-wrap:wrap;gap:4px 18px;}
/* Vertical padding so these clear the ~44px touch guideline. Without it
   they render about 23px tall and sit close together — easy to mis-tap. */
.foot nav a{display:inline-block;padding:10px 0;}

/* ---------- toast (reused by checkout.js for errors) ---------- */
.cart-toast{
  position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);
  background:var(--card);border:1px solid var(--hair);border-radius:999px;
  padding:12px 24px;font-size:14.5px;opacity:0;pointer-events:none;
  transition:opacity .25s,transform .25s;z-index:60;max-width:90vw;text-align:center;
}
.cart-toast.is-visible{opacity:1;transform:translate(-50%,0);}
