/* Garrett's Famous Cheesecakes
   Concept: his business card, life-size on the flannel it was photographed on, then the recipe box,
   the ribbon board and the phone. Built on the starter kit's js/site.js + js/main.js; this file
   replaces the kit's base.css/theme.css.

   Colors, with their sources:
     --red     the card's red ink (#B8263B in the photo), deepened a touch for contrast on cream (6.1:1)
     --flannel the plaid the card was photographed on
     --curd    lemon curd, Garrett's No. 1 seller
     --blue    a fair blue ribbon ("33 blue ribbons", in Garrett's words)
   Fonts: Ysabeau Infant stands in for the card's Tempus Sans ITC; Libre Caslon Text is the body.
   The script wordmark is traced from the card itself (img/brand/wordmark.svg). */

:root {
  --red: #B3203A;
  --red-ink: #A51C34;
  --red-deep: #8A162D;
  --ink: #2B211A;
  --ink-2: #5A4A3E;
  --cream: #FBF6EC;
  --paper: #FFFDF8;
  --rule: #E7DCC8;
  --flannel: #3A281C;
  --curd: #F2BF22;
  --blue: #1E4E96;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --caps: "Ysabeau Infant", "Gill Sans", "Trebuchet MS", sans-serif;
  --wrap: 1180px;
  /* viewport-fit=cover: keep text clear of the notch / Dynamic Island in landscape */
  --gutter: max(clamp(18px, 4vw, 40px), env(safe-area-inset-left), env(safe-area-inset-right));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (max-width: 760px) { html { scroll-padding-top: 62px; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.25rem/1.6 var(--serif); }

/* Aged parchment (after Carmine's): mottled blotches + fine grain over a warm tan */
body, .parchment {
  background-color: #EEDFBF;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .38 0 0 0 0 .18 0 0 0 .55 -.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
img, svg, video { display: block; max-width: 100%; }
/* the traced script lettering: let soft edges and the masthead shadow draw past the outline's frame */
.mast-word svg, .bc-word svg, .bc-forever svg, .nb-brand svg, .foot-brand svg, .damask-script svg { overflow: visible; }
a { color: var(--red-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-deep); }
/* Focus: a dark ring on the light parchment and paper, lemon-curd yellow on the dark areas */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.navbar :focus-visible, .hero-cta :focus-visible, .no1 :focus-visible, .band :focus-visible,
.damask :focus-visible, .foot :focus-visible, .callbox > :focus-visible { outline-color: var(--curd); }
p { margin: 0 0 .8em; }
h1, h2, h3 { font-family: var(--caps); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); }
h3 { font-size: 1.45rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: 8px; font: 600 1.05rem var(--caps); }
.skip:focus { top: 12px; }
.num { white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.paper { padding: clamp(64px, 9vw, 120px) 0; }
/* Section titles, old-menu style: centered, in the card's small caps, over a rule with a diamond */
.sec-head { max-width: 46rem; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.sec-head h2, .about-text h2, .order-main > h2 { font-variant-caps: small-caps; letter-spacing: .02em; }
.sec-head h2::after {
  content: ""; display: block; width: 220px; max-width: 70%; height: 14px; margin: 14px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 14'%3E%3Cpath d='M0 7h92M128 7h92' stroke='%23B3203A' stroke-width='1.6'/%3E%3Cpath d='M110 1l6 6-6 6-6-6z' fill='%23B3203A'/%3E%3Ccircle cx='98' cy='7' r='2' fill='%23B3203A'/%3E%3Ccircle cx='122' cy='7' r='2' fill='%23B3203A'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sec-head p { font-size: 1.3rem; color: var(--ink-2); margin: .7em 0 0; }
.i-phone { width: 1.1em; height: 1.1em; flex: none; }

/* The big red "call" button used in the hero, the order slip and the phone bar */
.btn-call {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .2em .55em;
  min-height: 60px; padding: .7em 1.35em; border-radius: 12px;
  background: var(--red); color: #fff; font: 700 1.3rem/1.25 var(--caps); text-decoration: none; text-align: center;
  box-shadow: 0 2px 0 var(--red-deep), 0 10px 24px rgba(0, 0, 0, .22);
}
.btn-call:hover { background: var(--red-deep); color: #fff; }

/* ---------- flannel (the plaid under the business card in the photo) ---------- */
.flannel {
  background-color: var(--flannel);
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 236, 210, .045) 0 2px, transparent 2px 6px),
    linear-gradient(90deg, rgba(14, 9, 6, .6) 0 28%, transparent 28% 44%, rgba(214, 170, 118, .22) 44% 49%, transparent 49% 64%, rgba(14, 9, 6, .6) 64% 100%),
    linear-gradient(0deg, rgba(14, 9, 6, .6) 0 28%, transparent 28% 44%, rgba(214, 170, 118, .22) 44% 49%, transparent 49% 64%, rgba(14, 9, 6, .6) 64% 100%);
  background-size: auto, 132px 132px, 132px 132px;
}

/* ---------- masthead (after Carmine's): seal + tagline | wordmark | Thanksgiving countdown (or empty) ---------- */
.masthead { position: relative; border-bottom: 1px solid rgba(90, 60, 30, .25); }
.mast-inner {
  max-width: 1320px; margin: 0 auto; padding: 18px var(--gutter) 16px;
  display: grid; grid-template-columns: 1fr minmax(320px, 640px) 1fr; align-items: center; gap: 24px;
}
.mast-left { display: flex; align-items: center; gap: 14px; }
.seal { flex: none; width: 104px; display: block; }
.seal svg { width: 100%; height: auto; }
.mast-tag { margin: 0; color: var(--red-ink); font: 700 1.05rem/1.2 var(--caps); font-variant-caps: small-caps; letter-spacing: .03em; }
.mast-tag b { display: block; white-space: nowrap; font-weight: 700; }
.mast-tag span { display: block; margin-top: 6px; color: var(--ink-2); font-size: .92rem; font-weight: 600; font-variant-caps: normal; letter-spacing: 0; }
.mast-word { margin: 0; color: var(--red); }
.mast-word a { display: block; color: inherit; }
.mast-word svg { width: 100%; height: auto; filter: drop-shadow(1px 2px 0 rgba(58, 12, 20, .45)); }
/* the countdown: three little calendar tiles, in the card's small caps and red ink */
.mast-count { grid-column: 3; justify-self: end; text-align: center; font-family: var(--caps); }
.mc-label { margin: 0 0 7px; color: var(--red-ink); font-weight: 700; font-size: 1.05rem; line-height: 1.2; font-variant-caps: small-caps; letter-spacing: .03em; }
.mc-date { color: var(--ink-2); font-weight: 600; font-variant-caps: normal; letter-spacing: 0; }
.mc-date:not(:empty)::before { content: " · "; }
.mc-time { display: flex; justify-content: center; gap: 7px; margin: 0; }
.mc-unit {
  display: grid; justify-items: center; min-width: 60px; padding: 6px 6px 5px; border-radius: 4px;
  background: var(--paper); border: 1px solid rgba(90, 60, 30, .26);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 2px 5px rgba(60, 30, 10, .12);
}
.mc-unit b { color: var(--red-ink); font-size: 1.75rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.mc-unit small { margin-top: 3px; color: var(--ink-2); font-size: .82rem; font-weight: 600; }
.mast-count.is-day .mc-time { display: none; }
.mast-count.is-day .mc-label { margin: 0; font-size: 1.35rem; }
@media (max-width: 1000px) {
  .mast-inner { grid-template-columns: 1fr; justify-items: center; gap: 10px; padding: 16px var(--gutter) 14px; }
  .mast-word { width: min(560px, 100%); order: -1; }
  .mast-left { gap: 12px; }
  .seal { width: 80px; }
  .mast-count { grid-column: auto; justify-self: center; margin-top: 2px; }
}
@media (max-width: 640px) {
  .mast-tag span { display: none; }
  .seal { width: 66px; }
  .mast-tag { font-size: 1.28rem; }
}

/* ---------- the black nav bar: caps links, a red call box; sticks to the top ---------- */
.navbar { position: sticky; top: 0; z-index: 40; background: #14100D; border-top: 3px solid #14100D; box-shadow: 0 6px 16px rgba(20, 12, 6, .25); }
.navbar-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: stretch; min-height: 56px; padding-left: var(--gutter); }
.nb-brand { display: none; align-self: center; width: 210px; margin-right: 18px; color: #F6EEDF; }
.nb-brand svg { width: 100%; height: auto; }
.navbar.is-stuck .nb-brand { display: block; }
.nb-links { display: flex; align-items: stretch; gap: 4px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.nb-links::-webkit-scrollbar { display: none; }
.nb-links a {
  display: flex; align-items: center; padding: 0 16px; white-space: nowrap;
  color: #F6EEDF; font: 700 1rem/1 var(--caps); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nb-links a:hover { color: #fff; border-bottom-color: var(--red); }
.nb-call {
  display: flex; align-items: center; gap: .5em; padding: 0 max(22px, env(safe-area-inset-right)) 0 22px; flex: none;
  background: var(--red); color: #fff; font: 700 1.02rem/1 var(--caps); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.nb-call:hover { background: #C6283F; color: #fff; }
@media (max-width: 1000px) { .navbar.is-stuck .nb-brand { display: none; } }
/* Phones: every link visible at once (two centered rows, nothing to scroll sideways). The bar scrolls away with
   the page; the slim MENU bar below takes over, and the red Call bar sits at the bottom. */
@media (max-width: 760px) {
  .navbar { position: relative; }
  .navbar-inner { min-height: 0; padding: 4px 6px; }
  .nb-links { flex-wrap: wrap; justify-content: center; margin: 0 auto; overflow: visible; gap: 0 2px; }
  .nb-links a { min-height: 46px; padding: 0 11px; font-size: 1rem; letter-spacing: .07em; }
  .nb-call { display: none; } /* the phone bar at the bottom does this job on phones */
}

/* the slim MENU bar (phones only, after the nav bar has scrolled away) */
.mbar { display: none; }
@media (max-width: 760px) {
  .js .mbar {
    position: fixed; inset: 0 0 auto; z-index: 46; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 8px var(--gutter);
    background: #14100D; box-shadow: 0 6px 16px rgba(20, 12, 6, .3);
    transform: translateY(-110%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s;
  }
  .js .mbar.is-on { transform: none; visibility: visible; transition: transform .3s ease; }
  html { scroll-padding-top: 76px; }
}
.mbar-brand { display: block; width: min(210px, 50vw); color: #F6EEDF; }
.mbar-brand svg { width: 100%; height: auto; }
.mbar-menu {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  border: 2px solid #F3E3B9; border-radius: 8px; background: transparent; color: #FFF8EA;
  font: 700 1.1rem/1 var(--caps); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.burger-icon {
  width: 22px; height: 16px;
  background:
    linear-gradient(currentColor 0 0) top / 100% 2.5px no-repeat,
    linear-gradient(currentColor 0 0) center / 100% 2.5px no-repeat,
    linear-gradient(currentColor 0 0) bottom / 100% 2.5px no-repeat;
}
.mbar :focus-visible, .menu-sheet :focus-visible { outline-color: var(--curd); }

/* the full-screen menu */
.menu-sheet {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0;
  background: #14100D; color: #FFF8EA; overscroll-behavior: contain;
}
.menu-sheet::backdrop { background: rgba(18, 12, 8, .7); }
.menu-sheet:focus { outline: none; }
.menu-sheet[open] { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 84px max(24px, env(safe-area-inset-right)) 40px max(24px, env(safe-area-inset-left)); }
.sheet-links { display: flex; flex-direction: column; width: min(460px, 100%); margin: 0 auto; }
.sheet-links a {
  padding: 18px 8px; border-bottom: 1px solid rgba(243, 227, 185, .25); text-align: center; text-decoration: none;
  color: #FFF8EA; font: 700 1.5rem/1.2 var(--caps); letter-spacing: .08em; text-transform: uppercase;
}
.sheet-links a:first-child { border-top: 1px solid rgba(243, 227, 185, .25); }
.sheet-links a:hover { color: var(--curd); }
.menu-sheet .btn-call { width: min(460px, 100%); margin: 0 auto; }
.sheet-close { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }

/* ---------- buttons (after Carmine's): red for calling, outlined cream for the rest ---------- */
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 56px; padding: .6em 1.3em;
  border: 2px solid var(--red); border-radius: 6px; background: #F8EEDA; color: var(--red-ink);
  font: 700 1.05rem/1.2 var(--caps); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; text-align: center;
}
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-outline.on-dark { background: rgba(20, 13, 9, .5); border-color: #F3E3B9; color: #FFF8EA; }
.btn-outline.on-dark:hover { background: #F8EEDA; color: var(--red-ink); }
.btn-outline.on-red { background: transparent; border-color: #F8EEDA; color: #FFF8EA; font-size: 1.15rem; }
.btn-outline.on-red:hover { background: #F8EEDA; color: var(--red-ink); }

/* ---------- the ornate frame (after Carmine's reservation box): black panel, red and gold border ---------- */
.frame {
  position: relative; background: #17110D; color: #F6EEDF;
  border: 12px solid transparent;
  border-image: repeating-linear-gradient(45deg, #7A1426 0 3px, #9E2034 3px 6px, #6A1020 6px 9px) 12;
  outline: 2px solid #C9A24B; outline-offset: -2px;
  box-shadow: 0 0 0 2px #C9A24B, 0 0 0 4px #2A1A10, 0 18px 40px rgba(40, 24, 10, .35);
}
.frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(201, 162, 75, .55); pointer-events: none; }

/* ---------- phone bar (phones), after the card scrolls away ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 246, 236, .97); border-top: 1px solid var(--rule); box-shadow: 0 -6px 20px rgba(43, 33, 26, .12);
}
.js .callbar { transform: translateY(110%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
.js .callbar.is-on { transform: none; visibility: visible; transition: transform .3s ease; }
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: .5em; min-height: 56px; border-radius: 12px;
  background: var(--red); color: #fff; font: 700 1.2rem/1.2 var(--caps); text-decoration: none;
}
@media (min-width: 761px) { .callbar { display: none; } }

/* ---------- 1. hero: the business card ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(26px, 4.5vh, 44px);
  padding: clamp(40px, 7vh, 76px) var(--gutter) clamp(40px, 7vh, 72px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 72% 62% at 50% 44%, rgba(10, 6, 4, 0) 38%, rgba(10, 6, 4, .58) 100%);
}
.card-stage { position: relative; z-index: 1; width: min(940px, 100%); }
.bizcard {
  --tilt: -1.4deg;
  container-type: inline-size;
  position: relative; aspect-ratio: 1.75;
  display: grid; grid-template-columns: 46% 1fr; grid-template-rows: auto 1fr auto;
  grid-template-areas: "word word" "art who" "line line";
  padding: 5.4% 6% 4.6%; border-radius: 6px; color: var(--red); /* % = of the card's width (its own cqi would resolve against the window) */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .28 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(168deg, #FFFFFC 0%, #FCF8EF 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 2px 3px rgba(0, 0, 0, .35), 0 28px 56px rgba(0, 0, 0, .5);
  transform: rotate(var(--tilt));
}
.bc-word { grid-area: word; margin: 0 0 3cqi; color: var(--red); }
.bc-word svg { width: 100%; height: auto; }
.bc-art { grid-area: art; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bc-art img { width: 94%; height: auto; }
.bc-forever { width: 70%; margin: 0; color: var(--red); }
.bc-forever svg { width: 100%; height: auto; }
.bc-who { grid-area: who; align-self: center; text-align: center; font-family: var(--caps); }
.bc-name { margin: 0; font-size: 5.2cqi; font-weight: 600; line-height: 1.1; font-variant-caps: small-caps; letter-spacing: .01em; }
.bc-title { margin: .35em 0 .55em; font-size: 3.4cqi; font-weight: 600; font-variant-caps: small-caps; letter-spacing: .02em; }
.bc-phone { display: inline-block; font-size: 5.8cqi; font-weight: 600; letter-spacing: .05em; color: var(--red); text-decoration: none; padding: .05em .25em; border-radius: 8px; }
.bc-phone:hover { color: var(--red-deep); background: rgba(179, 32, 58, .07); }
.bc-town { margin: .45em 0 0; font-size: 3.7cqi; font-weight: 500; }
.bc-line { grid-area: line; margin: 3cqi 0 0; text-align: center; font: 600 3.4cqi/1.2 var(--caps); font-variant-caps: small-caps; letter-spacing: .03em; }

.hero-cta { position: relative; z-index: 1; text-align: center; color: #F6EEDF; }
/* the value line under the card: big on purpose (award winning, $70, free delivery, cash) */
.hero-facts { max-width: 29em; margin: 0 auto; font: 600 clamp(1.4rem, 1.1rem + 1.25vw, 2rem)/1.42 var(--caps); color: #FBF4E6; text-shadow: 0 1px 12px rgba(0, 0, 0, .7); text-wrap: balance; }

@media (max-width: 640px) {
  .card-stage { width: min(430px, 100%); }
  .bizcard {
    --tilt: -.8deg; aspect-ratio: auto;
    grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "word" "art" "who" "line";
    padding: 8% 7% 7%;
  }
  .bc-word { margin-bottom: 3cqi; }
  .bc-art img { width: 92%; }
  .bc-forever { width: 72%; margin-top: 1cqi; }
  .bc-who { margin: 6cqi 0 6cqi; }
  .bc-name { font-size: 8.8cqi; }
  .bc-title { font-size: 5.8cqi; }
  .bc-phone { font-size: 10cqi; }
  .bc-town { font-size: 6.2cqi; }
  .bc-line { font-size: 5.3cqi; }
}

/* entrance: the card settles, the red ink writes itself in, the rest follows */
@media (prefers-reduced-motion: no-preference) {
  .js .bizcard { animation: card-in 1s cubic-bezier(.2, .8, .2, 1) both; }
  .js .bc-word svg, .js .bc-forever svg {
    -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%); mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
    -webkit-mask-size: 240% 100%; mask-size: 240% 100%;
    -webkit-mask-position: 100% 0; mask-position: 100% 0;
    animation: ink 1.7s .55s cubic-bezier(.45, .05, .35, 1) forwards;
  }
  .js .bc-forever svg { animation-duration: 1.1s; animation-delay: 2.05s; }
  .js .bc-art img { animation: rise .9s .4s cubic-bezier(.2, .8, .2, 1) both; }
  .js .bc-who, .js .bc-line { animation: rise .8s 1.15s cubic-bezier(.2, .8, .2, 1) both; }
  .js .hero-cta { animation: rise .8s 1.45s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes card-in { from { opacity: 0; transform: translateY(40px) rotate(-4deg); } to { opacity: 1; transform: rotate(var(--tilt)); } }
@keyframes ink { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 2. Garrett's No. 1: the Remotion film ---------- */
.no1 { position: relative; background: #120C08; color: #F6EEDF; }
.no1-text { max-width: var(--wrap); margin: 0 auto; padding: clamp(52px, 7vw, 84px) var(--gutter) 26px; }
.no1 h2 { color: #FFF7E8; max-width: 15ch; }
.no1-quote { margin: 22px 0 0; padding-left: 18px; border-left: 2px solid rgba(242, 191, 34, .7); }
.no1-quote p { margin: 0; font: italic 400 1.55rem/1.4 var(--serif); color: #F9E7AE; text-wrap: balance; }
.no1-facts, .sec-head p, .band-line, .prints-note, .board-more { text-wrap: balance; }
.no1-quote footer { margin-top: 6px; font: 600 1.05rem/1.3 var(--caps); color: #DCCDB6; }
.no1-quote footer::before { content: "— "; }
.no1-facts { margin: 16px 0 0; color: #E8DCC8; }
.film { margin: 0; }
.film-frame { position: relative; }
.film video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #120C08; }
.film-btn {
  position: absolute; right: var(--gutter); bottom: 16px; z-index: 2;
  min-height: 48px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(246, 238, 223, .7);
  background: rgba(18, 12, 8, .6); color: #FFF7E8; font: 600 1.05rem/1 var(--caps); cursor: pointer;
}
.film-btn:hover { background: var(--red); border-color: var(--red); }
.film figcaption { padding: 10px var(--gutter) 24px; max-width: var(--wrap); margin: 0 auto; color: #BCAB92; font-size: .98rem; }
@media (max-width: 699px) { .film video { aspect-ratio: 4 / 5; } }
/* wider screens: the heading on the left, Garrett's words on the right, the film below
   (never over the film: its last frame fills the left side with the served slice) */
@media (min-width: 900px) {
  .no1-text { display: grid; grid-template-columns: 1fr 1fr; gap: 6px clamp(28px, 4vw, 64px); align-items: end; }
  .no1 h2 { grid-row: span 2; max-width: 14ch; }
  .no1-quote { margin-top: 0; }
}

/* ---------- 3. the cheesecakes, on recipe cards ---------- */
.recipe-box { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(22px, 3vw, 34px); }
.rcard {
  --lh: 2.1rem;
  position: relative; display: flex; flex-direction: column;
  padding: 4px 26px 20px; border-radius: 6px; background: var(--paper);
  box-shadow: 0 1px 2px rgba(43, 33, 26, .18), 0 14px 30px rgba(43, 33, 26, .1);
}
.rcard-art { margin: -4px -24px 0; }
.rcard-art img { width: 100%; height: auto; }
.rcard h3 { font-size: 1.6rem; padding: 2px 0 10px; border-bottom: 2px solid rgba(196, 58, 70, .55); }
.rcard-badge {
  align-self: flex-start; margin: 12px 0 2px; padding: 4px 12px; border-radius: 999px;
  background: var(--curd); color: var(--ink); font: 700 .98rem/1.3 var(--caps);
}
.rcard-lines {
  margin: 0; padding-top: 2px; font-size: 1.12rem; line-height: var(--lh);
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--lh) - 1px), rgba(88, 140, 190, .32) calc(var(--lh) - 1px) var(--lh));
}
.rcard-lines div { display: flex; gap: .6em; }
.rcard-lines dt { flex: none; min-width: 4.4em; font: 600 1rem/var(--lh) var(--caps); color: var(--ink-2); }
.rcard-lines dd { margin: 0; }
.stamp {
  position: absolute; top: 16px; right: 14px; transform: rotate(8deg);
  padding: .42em .65em .36em; border: 2.5px solid currentColor; border-radius: 6px;
  color: var(--red); font: 700 .95rem/1 var(--caps); letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255, 253, 248, .75);
}
.drawn-note { margin: 26px 0 0; color: var(--ink-2); font-size: 1.02rem; }

/* ---------- 4. custom cheesecakes ---------- */
.custom { padding-top: 0; }
.custom-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 4vw, 52px); }
.custom-col h3 { margin-bottom: 16px; }
.picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.picks li { padding: 6px 8px 12px; border-radius: 8px; background: var(--paper); box-shadow: 0 1px 2px rgba(43, 33, 26, .15); text-align: center; font: 600 1.05rem/1.25 var(--caps); }
.picks img { width: 100%; height: auto; }
.pick-blank {
  display: grid; place-items: center; aspect-ratio: 800 / 618; margin-bottom: 4px;
  border: 2px dashed #CDBFA6; border-radius: 8px; color: #A8967C; font: 700 2.4rem/1 var(--caps);
}
.springform { width: min(300px, 100%); height: auto; margin: 4px 0 10px; }
.custom-size p { color: var(--ink-2); }
@media (max-width: 900px) { .custom-cols { grid-template-columns: 1fr; } }

/* ---------- full-width photo bands ---------- */
.band { position: relative; margin: 0; height: clamp(360px, 62vh, 640px); overflow: hidden; background: #2B1E16; }
.band picture, .band img { position: absolute; inset: 0; width: 100%; height: 100%; }
.band img { object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 8, 5, 0) 30%, rgba(12, 8, 5, .74) 100%); }
.band figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) clamp(20px, 3vw, 34px); color: #fff; }
.band-line { margin: 0 0 12px; max-width: 22ch; font: 700 clamp(1.8rem, 1.1rem + 2.4vw, 3.1rem)/1.15 var(--caps); text-shadow: 0 2px 18px rgba(0, 0, 0, .55); text-wrap: balance; }
.credit { display: inline-block; max-width: 100%; padding: 6px 14px; border-radius: 12px; background: rgba(0, 0, 0, .58); color: #EFE6D6; font: 500 1rem/1.4 var(--caps); }
.credit a { color: inherit; text-underline-offset: 2px; text-decoration-color: rgba(239, 230, 214, .55); }
.credit a:hover { color: #fff; text-decoration-color: currentColor; }
@media (max-width: 640px) { .band { height: min(80svh, 560px); } }

/* ---------- 5. the ribbon board ---------- */
.board {
  position: relative; padding: clamp(26px, 4.5vw, 52px); border-radius: 10px;
  /* cork: two layers of noise, dark granules and light flecks */
  background-color: #C69C69;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .19 0 0 0 0 .08 0 0 0 -2.2 1.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .93 0 0 0 0 .8 0 0 0 2.6 -1.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 12px #8B5E34, inset 0 0 0 14px #6A4424, inset 0 0 30px 14px rgba(60, 35, 15, .35), 0 18px 40px rgba(43, 33, 26, .22);
}
.board-count, .board-more {
  width: fit-content; margin: 0 auto; padding: 10px 22px 12px; border-radius: 3px;
  background: var(--paper); color: var(--ink); text-align: center;
  box-shadow: 0 2px 5px rgba(50, 30, 10, .35);
}
.board-count { margin-bottom: 26px; font: 700 clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem)/1.1 var(--caps); transform: rotate(-1.2deg); }
.board-n { color: var(--blue); }
.board-more { max-width: 34em; margin-top: 28px; font: 600 1.12rem/1.45 var(--caps); transform: rotate(.8deg); }
/* flex, not grid, so a short last row (the red ones) sits centered */
.rosettes { --per: 11; --gap: 8px; list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px var(--gap); }
.rosettes li { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); }
.rosettes svg { width: 100%; height: auto; filter: drop-shadow(0 3px 2px rgba(50, 30, 10, .35)); }
@media (max-width: 820px) { .rosettes { --per: 8; } }
@media (max-width: 520px) { .rosettes { --per: 6; --gap: 6px; row-gap: 10px; } }
@media (prefers-reduced-motion: no-preference) {
  .js .rosettes li { opacity: 0; transform: translateY(-16px) rotate(-8deg); }
  .js .board.is-on .rosettes li { animation: pin .5s calc(var(--i) * 45ms) cubic-bezier(.2, .9, .3, 1.35) forwards; }
}
@keyframes pin { to { opacity: 1; transform: none; } }

/* Garrett's fair photos, pinned to the board as prints */
.prints-h {
  width: fit-content; max-width: 100%; margin: 40px auto 22px; padding: 8px 18px 10px; border-radius: 3px;
  background: var(--paper); color: var(--ink); font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); text-align: center;
  box-shadow: 0 2px 5px rgba(50, 30, 10, .35); transform: rotate(-.6deg);
}
.prints { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 300px)); justify-content: center; gap: 30px 28px; }
.print { --r: -1.6deg; position: relative; transform: rotate(var(--r)); }
.print:nth-child(3n + 2) { --r: 1.3deg; }
.print:nth-child(3n) { --r: -.6deg; }
.print figure { margin: 0; padding: 10px 10px 12px; background: #FFFEFA; box-shadow: 0 3px 8px rgba(40, 24, 10, .38); }
.print img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: #E9E3D8; }
.print figcaption { padding: 10px 4px 0; color: var(--ink); font: 600 1.05rem/1.3 var(--caps); }
.print figcaption strong { display: block; font-weight: 700; font-size: 1.12rem; }
.print figcaption span { color: var(--ink-2); }
.print::before {
  content: ""; position: absolute; z-index: 1; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #F27A86, #B3203A 55%, #6E0F20); box-shadow: 0 2px 3px rgba(0, 0, 0, .35);
}
.print-open { display: block; cursor: zoom-in; }
.print-open:hover img { filter: brightness(1.04); }

/* the full-screen viewer for the fair photos */
.viewer {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0;
  background: rgba(18, 12, 8, .94); color: #FFF8EA; overscroll-behavior: contain;
}
.viewer::backdrop { background: rgba(18, 12, 8, .7); }
.viewer[open] { display: grid; place-items: center; }
.viewer-fig { margin: 0; padding: 64px 72px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.viewer-fig img { max-width: min(92vw, 900px); max-height: calc(100dvh - 170px); width: auto; height: auto; border: 10px solid #FFFEFA; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.viewer-fig figcaption { max-width: 40em; text-align: center; font: 600 1.15rem/1.4 var(--caps); text-wrap: balance; }
.viewer-btn {
  position: fixed; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid rgba(255, 248, 234, .7); background: rgba(18, 12, 8, .6); color: #FFF8EA;
  font: 400 2.2rem/1 var(--serif); cursor: pointer;
}
.viewer-btn:hover { background: var(--red); border-color: var(--red); }
.viewer-close { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }
.viewer-prev { left: max(14px, env(safe-area-inset-left)); top: 50%; translate: 0 -50%; }
.viewer-next { right: max(14px, env(safe-area-inset-right)); top: 50%; translate: 0 -50%; }
.viewer :focus-visible { outline-color: var(--curd); }
@media (max-width: 640px) {
  .viewer-fig { padding: 70px 12px 20px; }
  .viewer-fig img { max-width: 94vw; max-height: calc(100dvh - 210px); border-width: 6px; }
  .viewer-prev, .viewer-next { top: auto; bottom: max(18px, env(safe-area-inset-bottom)); translate: none; }
}
.prints-note {
  width: fit-content; max-width: 34em; margin: 30px auto 0; padding: 8px 16px; border-radius: 3px;
  background: var(--paper); color: var(--ink-2); font: 500 1rem/1.4 var(--caps); text-align: center; box-shadow: 0 2px 5px rgba(50, 30, 10, .3);
}

/* ---------- 6. how to order ---------- */
.order-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 5vw, 76px); align-items: start; }
.steps { list-style: none; counter-reset: step; margin: 30px 0 0; padding: 0; display: grid; gap: 28px; }
.steps li { counter-increment: step; position: relative; min-height: 54px; padding-left: 74px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: #fff; font: 700 1.5rem/1 var(--caps);
}
.steps h3 { margin-bottom: 4px; font-size: 1.5rem; }
.steps h3 a { white-space: nowrap; }
.steps p { margin: 0; color: var(--ink-2); }
.allergens { margin-top: 40px; padding: 18px 22px 16px; border-left: 5px solid var(--curd); border-radius: 0 8px 8px 0; background: var(--paper); }
.allergens h3 { margin-bottom: 6px; font-size: 1.3rem; }
.allergens p { margin: 0; }
.allergens p + p { margin-top: 8px; color: var(--ink-2); }

/* the order slip, inside the ornate frame (after Carmine's reservation box): a white card on a black panel */
.callbox { padding: 26px 22px 24px; text-align: center; }
.callbox h3 { color: #FFF8EA; font-size: 1.75rem; letter-spacing: .06em; text-transform: uppercase; }
.callbox-sub { margin: 6px auto 18px; max-width: 24em; color: #E7DAC4; font-size: 1.08rem; }
.slip-form { padding: 6px 20px 20px; border-radius: 4px; background: #FFFEFA; color: var(--ink); text-align: left; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.slip-form label { display: block; margin-top: 16px; font: 600 1.08rem/1.3 var(--caps); }
.slip-form select {
  display: block; width: 100%; min-height: 52px; margin-top: 6px; padding: 10px 42px 10px 14px;
  border: 1.5px solid #CDBB8F; border-radius: 8px; color: var(--ink); font: 400 1.12rem/1.3 var(--serif);
  -webkit-appearance: none; appearance: none;
  background: #FFFEF6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20' fill='none' stroke='%235A4A3E' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.slip-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 22px 0 6px; padding-top: 14px; border-top: 2px solid rgba(43, 33, 26, .14); font: 700 1.4rem/1.2 var(--caps); }
.slip-total output { text-align: right; }
.slip-say { min-height: 1.6em; margin: 0 0 18px; color: var(--ink-2); font-style: italic; }
.slip-form .btn-call { width: 100%; }
.slip-note { margin: 14px 0 0; color: var(--ink-2); font-size: 1rem; }
/* without JavaScript (iPhone Quick Look) the selects are a plain checklist; hide the parts only the script fills */
html:not(.js) .slip-total, html:not(.js) .slip-say { display: none; }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .callbox { padding: 20px 12px; } .slip-form { padding: 4px 14px 16px; } }

/* ---------- the red damask band with Garrett's tagline ---------- */
.damask {
  display: flex; flex-direction: column; align-items: center; gap: 22px; padding: clamp(44px, 6vw, 72px) var(--gutter);
  background-color: #8E1830;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='120' viewBox='0 0 84 120'%3E%3Cg fill='%23771226'%3E%3Cpath d='M42 8c7 14 20 18 20 34s-12 22-20 30c-8-8-20-14-20-30S35 22 42 8z'/%3E%3Cpath d='M42 72c4 8 12 10 12 19s-7 13-12 17c-5-4-12-8-12-17s8-11 12-19z' opacity='.8'/%3E%3Ccircle cx='0' cy='60' r='9'/%3E%3Ccircle cx='84' cy='60' r='9'/%3E%3Ccircle cx='0' cy='0' r='5'/%3E%3Ccircle cx='84' cy='0' r='5'/%3E%3Ccircle cx='0' cy='120' r='5'/%3E%3Ccircle cx='84' cy='120' r='5'/%3E%3C/g%3E%3Cpath d='M42 30v24M34 42h16' stroke='%23A3263D' stroke-width='2'/%3E%3C/svg%3E");
  box-shadow: inset 0 10px 18px -12px rgba(0, 0, 0, .6), inset 0 -10px 18px -12px rgba(0, 0, 0, .6);
}
.damask-script { width: min(560px, 86vw); margin: 0; color: #FFF8EA; }
.damask-script svg { width: 100%; height: auto; filter: drop-shadow(0 2px 0 rgba(60, 0, 10, .5)); }

/* ---------- 7. about Garrett ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 68px); align-items: center; }
.ph {
  display: grid; place-items: center; aspect-ratio: 4 / 5; padding: 24px; border: 2px dashed #CDBFA6; border-radius: 10px;
  background: repeating-linear-gradient(45deg, #F6EFE2 0 12px, #F1E8D8 12px 24px);
  color: #7E6E5A; font: 600 1.1rem/1.4 var(--caps); text-align: center;
}
/* Garrett's portrait, in the same ornate frame as the order box */
.portrait { margin: 0; padding: 10px; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait figcaption { padding: 12px 6px 4px; text-align: center; color: #F3E3B9; font: 700 1.05rem/1.2 var(--caps); letter-spacing: .1em; text-transform: uppercase; }
.about-text h2 { margin-bottom: 18px; }
.about-text p { font-size: 1.32rem; }
.about-call { font-weight: 700; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .ph { aspect-ratio: 4 / 3; } }

/* ---------- footer ---------- */
.foot { position: relative; color: #F3E8D6; padding: 60px 0 calc(28px + env(safe-area-inset-bottom)); box-shadow: inset 0 0 0 100vmax rgba(14, 9, 6, .42); }
.foot-grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; }
.foot-brand svg { width: min(540px, 100%); height: auto; color: #FFF6E6; }
.foot-brand .foot-forever { width: min(250px, 62%); margin-top: 14px; color: var(--curd); }
.foot-call p { margin: 6px 0 0; font: 600 1.1rem/1.4 var(--caps); }
.foot-phone { color: #fff; font: 700 clamp(2.1rem, 1.5rem + 2vw, 2.9rem)/1.1 var(--caps); letter-spacing: .03em; text-decoration: none; }
.foot-phone:hover { color: var(--curd); }
.foot-base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; margin-top: 42px; padding-top: 18px; border-top: 1px solid rgba(246, 238, 223, .22); color: #E2D5C1; font-size: 1rem; }
.foot-base p { margin: 0; }
.foot-made { flex-basis: 100%; text-align: right; }
.foot-made a { color: #FFF6E6; font-weight: 600; text-underline-offset: 3px; text-decoration-color: rgba(255, 246, 230, .45); }
.foot-made a:hover { color: var(--curd); text-decoration-color: currentColor; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }

/* ---------- print: a tidy flavor list to pin on the fridge ---------- */
@media print {
  .navbar, .callbar, .film, .band, .callbox, .damask, .skip, .no1-text .no1-quote, .btn-row .btn-outline, .mast-count { display: none !important; }
  .masthead { border: 0; }
  body { background: #fff; font-size: 12pt; }
  .hero { min-height: 0; padding: 0; background: none; }
  .hero::after { display: none; }
  .bizcard { box-shadow: none; border: 1px solid #ccc; transform: none; animation: none !important; width: 4in; }
  .hero-cta { color: #000; animation: none !important; }
  .hero-facts { color: #000; text-shadow: none; }
  .no1 { background: none; color: #000; }
  .no1 h2 { color: #000; }
  .paper { padding: 18pt 0; }
  .rcard, .picks li { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .foot { box-shadow: none; background: none; color: #000; }
  .foot-brand svg { color: var(--red); }
}
