/* Spring Hill Bakery. Concept: the spiral. The cinnamon roll swirl is drawn as one line in the hero,
   then unspools into a single thread that runs down the right side of the whole page as you scroll.
   Colors are cinnamon, butter and icing, not candy pink. Young Serif for the big type, Figtree for reading. */
:root {
  --bg: #f6ecdc;
  --surface: #fff8ee;
  --ink: #3a2114;
  --muted: #86624d;
  --accent: #7a3b16;
  --accent2: #d99a4e;
  --light: #fff8ee;
  --dark: #2b170e;
  --font-display: "Young Serif";
  --font-body: "Figtree";
}
html { background: var(--bg); }
body { font-weight: 400; }
h1, h2, h3 { font-weight: 400; letter-spacing: -.015em; }
h2 { font-size: var(--step-4); line-height: .98; }

/* header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter); }
.site-header.is-solid { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); }
.brand img { width: auto; height: 76px; margin: -8px 0; }
.site-nav { display: none; gap: 28px; margin-left: auto; font-weight: 500; font-size: var(--step--1); letter-spacing: .04em; text-transform: uppercase; }
.site-nav a { text-decoration: none; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--accent); transition: right .4s var(--ease-out); }
.site-nav a:hover::after { right: 0; }
.call { margin-left: auto; padding: 12px 20px; border-radius: 999px; background: var(--accent); color: var(--light); text-decoration: none; font-weight: 700; white-space: nowrap; }
.site-nav + .call { margin-left: 0; }
@media (min-width: 900px) { .site-nav { display: flex; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 28px; border-radius: 999px; text-decoration: none; font-weight: 700;
  font-size: var(--step-0); border: 2px solid var(--accent); transition: background .3s, color .3s; cursor: pointer; }
.btn--fill { background: var(--accent); color: var(--light); }
.btn--fill:hover { background: var(--ink); border-color: var(--ink); }
.btn--line { color: var(--accent); background: transparent; }
.btn--line:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* the thread down the page */
main { position: relative; }
.thread { position: absolute; top: 0; right: 0; width: clamp(40px, 7vw, 120px); height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.thread path { fill: none; stroke: var(--accent2); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .8; }
.story .thread-mask { display: none; }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; align-content: end; gap: 32px;
  padding: calc(96px + 4vh) var(--gutter) 48px; overflow: hidden; }
.hero h1 .split-mask { padding-bottom: .1em; margin-bottom: -.1em; }
.hero-kicker { font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.hero-kicker em { font-style: normal; color: var(--accent); }
.hero h1 { font-size: clamp(3.4rem, 1.6rem + 11vw, 11.5rem); line-height: .9; margin: .25em 0 .3em; max-width: 9.5ch; }
.swirl-word { color: var(--accent); }
.hero-lede { max-width: 48ch; font-size: var(--step-1); line-height: 1.45; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-roll { position: relative; margin: 0; width: min(78vw, 420px); justify-self: end; }
.roll-shape { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 48% 12% 48% 12% / 48% 12% 48% 12%;
  box-shadow: 0 30px 80px -30px rgba(58, 33, 20, .55); }
.roll-shape img { width: 100%; height: 100%; object-fit: cover; }
.spiral { position: absolute; inset: 0; width: 100%; height: 100%; }
.spiral path { fill: none; stroke: var(--light); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000;
  animation: draw 3.2s var(--ease-out) .6s forwards; mix-blend-mode: screen; opacity: .9; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ring { position: absolute; width: 34%; aspect-ratio: 1; left: -8%; bottom: -6%; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.ring text { font: 500 15.5px var(--font-body); letter-spacing: .14em; text-transform: uppercase; fill: var(--ink); }
.ring::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: var(--light); box-shadow: 0 10px 30px -10px rgba(58,33,20,.4); }
.ring-wheat { position: relative; width: 44%; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr .85fr; align-items: center; align-content: center; gap: 4vw; padding-top: 120px; }
  .hero-copy { order: 1; }
  .hero-roll { order: 2; width: min(38vw, 560px); justify-self: center; margin-top: 2vh; }
  .hero h1 { max-width: none; font-size: clamp(5rem, 7.2vw, 8.6rem); margin: .2em 0 .25em; }
  .hero-lede { font-size: var(--step-1); }
  .ring { width: 38%; left: -12%; bottom: 2%; }
}

/* from the oven */
.oven { padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 120px); }
.oven-grid { display: grid; gap: 40px; }
.oven-title { max-width: 10ch; }
.oven-photo { margin: 0; border-radius: 0 120px 0 120px; overflow: hidden; aspect-ratio: 4/3; }
.oven-photo img { width: 100%; height: 115%; object-fit: cover; }
.oven-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.oven-list li { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 28px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); align-items: start; }
.oven-list li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.oven-list .num { font-family: var(--font-display); font-size: var(--step-3); color: var(--accent2); line-height: 1; min-width: 2ch; }
.oven-list h3 { font-size: var(--step-2); margin-bottom: 8px; }
.oven-list p { color: var(--muted); max-width: 46ch; }
@media (min-width: 900px) {
  .oven-grid { grid-template-columns: 5fr 7fr; grid-template-areas: "title title" "photo list"; gap: 48px 6vw; align-items: start; }
  .oven-title { grid-area: title; max-width: 12ch; margin-left: 20%; }
  .oven-photo { grid-area: photo; aspect-ratio: 3/4; margin-top: 60px; }
  .oven-list { grid-area: list; }
  .oven-list li { padding: 36px 0; }
}

/* story band */
.story { background: var(--dark); color: var(--light); padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 110px); position: relative; }
.story .wrap { position: relative; z-index: 2; }
.pull { margin: 0; font-family: var(--font-display); font-size: clamp(2.6rem, 1rem + 8vw, 8.5rem); line-height: .95; letter-spacing: -.015em; max-width: 12ch; }
.pull-by { margin-top: 20px; color: var(--accent2); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.story-photo { margin: clamp(48px, 7vw, 100px) 0 0 auto; width: min(100%, 1200px); position: relative; aspect-ratio: 16/10; overflow: hidden;
  border-radius: 0 0 0 clamp(60px, 10vw, 180px); }
.story-photo img { width: 100%; height: 118%; object-fit: cover; object-position: center 40%; }
.story-photo figcaption { position: absolute; left: var(--gutter); bottom: 18px; font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; color: var(--light);
  background: color-mix(in srgb, var(--dark) 70%, transparent); padding: 8px 14px; border-radius: 999px; }
.story-grid { display: grid; gap: 48px; margin-top: clamp(48px, 7vw, 100px); }
.story-text { display: grid; gap: 22px; font-size: var(--step-1); line-height: 1.5; color: color-mix(in srgb, var(--light) 86%, transparent); max-width: 56ch; }
.story-quote { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; color: var(--light); margin-top: 12px; }
.tally { display: grid; gap: 8px; align-self: start; }
.tally-row { display: grid; gap: 4px; padding: 22px 0; border-top: 1px solid color-mix(in srgb, var(--light) 22%, transparent); }
.tally-row:last-child { border-bottom: 1px solid color-mix(in srgb, var(--light) 22%, transparent); }
.tally-row strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 1.5rem + 6vw, 6.5rem); line-height: .9; color: var(--accent2); }
.tally-row strong span { font-size: .45em; color: var(--light); }
.tally-row small { font-size: var(--step-0); color: color-mix(in srgb, var(--light) 72%, transparent); max-width: 32ch; }
.press { margin-top: clamp(56px, 8vw, 120px); font-size: var(--step-0); color: color-mix(in srgb, var(--light) 60%, transparent); }
.press span { color: var(--light); font-weight: 500; }
@media (min-width: 900px) {
  .story-grid { grid-template-columns: 7fr 5fr; gap: 8vw; }
  .tally { margin-top: -40px; }
}

/* classes and the cookbook */
.classes { padding: clamp(80px, 12vw, 160px) 0; background: var(--surface); position: relative; overflow: clip; }
.classes-grid { display: grid; gap: 40px; align-items: center; }
.book { margin: 0; width: min(62vw, 300px); transform: rotate(-6deg); filter: drop-shadow(0 30px 40px rgba(58, 33, 20, .3)); }
.classes-text { display: grid; gap: 20px; }
.classes-text h2 { max-width: 10ch; }
.classes-text p { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 52ch; }
.classes-text em { color: var(--ink); font-style: italic; }
.classes-text .hero-actions { margin-top: 4px; }
.bl-logo { width: 96px; height: auto; opacity: .7; margin-top: 8px; }
.classes-side { margin: 0; display: none; }
@media (min-width: 900px) {
  .classes-grid { grid-template-columns: 3fr 6fr 3fr; gap: 5vw; }
  .book { width: 100%; max-width: 340px; justify-self: end; transform: rotate(-7deg) translateY(-20px); }
  .classes-side { display: block; aspect-ratio: 3/4; overflow: hidden; border-radius: 160px 0 0 0; transform: translateX(12%); }
  .classes-side img { width: 100%; height: 118%; object-fit: cover; }
}

/* find us + order */
.find { padding: clamp(80px, 12vw, 160px) 0 clamp(80px, 10vw, 140px); }
.find-grid { display: grid; gap: 48px; align-items: start; }
.find-text h2 { margin-bottom: 36px; }
.find-list { margin: 0; display: grid; gap: 0; }
.find-list > div { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.find-list > div:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.find-list dt { font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.find-list dd { margin: 0; font-size: var(--step-1); line-height: 1.45; max-width: 40ch; }
.find-list a { color: var(--ink); text-decoration-color: var(--accent2); text-underline-offset: 4px; }
.order { background: var(--dark); color: var(--light); padding: clamp(28px, 4vw, 48px); border-radius: 28px 28px 28px 120px; display: grid; gap: 16px;
  box-shadow: 0 40px 80px -40px rgba(58, 33, 20, .6); }
.order h3 { font-size: var(--step-3); }
.order-note { color: color-mix(in srgb, var(--light) 70%, transparent); margin-bottom: 8px; }
.order label { display: grid; gap: 8px; font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: var(--accent2); }
.order input[type="text"], .order select, .order textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--light) 25%, transparent);
  background: color-mix(in srgb, var(--light) 8%, transparent); color: var(--light); font-size: var(--step-0); letter-spacing: 0; text-transform: none; font-weight: 400; }
.order select option { color: var(--ink); }
.order textarea { resize: vertical; }
.order input:focus, .order select:focus, .order textarea:focus { outline: 2px solid var(--accent2); outline-offset: 1px; }
.pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.pick legend { font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: var(--accent2); margin-bottom: 10px; }
.pick label { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: var(--step-0); color: var(--light); font-weight: 400; }
.pick input { accent-color: var(--accent2); width: 18px; height: 18px; }
.order .btn { justify-self: start; margin-top: 8px; border-color: var(--accent2); background: var(--accent2); color: var(--dark); }
.order .btn:hover { background: var(--light); border-color: var(--light); }
@media (min-width: 900px) {
  .find-grid { grid-template-columns: 6fr 6fr; gap: 8vw; }
  .order { margin-top: 40px; }
}

/* footer */
.site-footer { background: var(--dark); color: var(--light); padding: clamp(60px, 8vw, 100px) 0 120px; }
.foot-grid { display: grid; gap: 28px; align-items: center; }
.foot-logo { width: 140px; height: auto; filter: invert(1) brightness(1.1); opacity: .95; }
.foot-text { display: grid; gap: 10px; }
.foot-big { font-family: var(--font-display); font-size: var(--step-3); line-height: 1; margin-bottom: 8px; }
.foot-text a { color: var(--light); text-decoration-color: var(--accent2); text-underline-offset: 4px; }
.foot-small { font-size: var(--step--1); color: color-mix(in srgb, var(--light) 55%, transparent); }
.foot-small a { color: inherit; }
@media (min-width: 900px) {
  .site-footer { padding-bottom: 80px; }
  .foot-grid { grid-template-columns: auto 1fr; }
  .foot-small { grid-column: 1 / -1; }
}

/* sticky call bar (phones) */
.callbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; gap: 8px; }
.callbar a { flex: 1; text-align: center; padding: 14px; border-radius: 999px; background: var(--accent); color: var(--light); font-weight: 700; text-decoration: none; }
.callbar a:last-child { background: var(--light); color: var(--accent); border: 2px solid var(--accent); }
@media (max-width: 899px) { .callbar { display: flex; } .call { display: none; } }
