/* Damn Good Bread — colors and fonts taken from the label */
@font-face { font-family: "Anton"; src: url("fonts/anton.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Oswald"; src: url("fonts/oswald.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --cream: #F4EADA;
  --cream-2: #EADBC3;
  --ink: #161412;
  --red: #C8372D;
  --red-dark: #A82C23;
  --crust: #8A5A2B;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --max: 1160px;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --label: "Oswald", "Arial Narrow", sans-serif;
  --serif: "Lora", Georgia, serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .strip__track { animation: none !important; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
.tagline, .price__note, .lede { text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream); padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }

/* Ribbon + nav */
.ribbon {
  background: var(--ink); color: var(--cream); text-align: center;
  font-family: var(--label); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .5rem 1rem;
}
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem var(--pad);
  background: rgba(244, 234, 218, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(8px); backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 2px solid var(--ink);
}
.nav__brand, .footer__brand { font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; text-decoration: none; letter-spacing: .01em; line-height: 1; }
.nav__brand em, .footer__brand em { font-style: normal; color: var(--red); }
.nav__links { display: none; list-style: none; margin: 0; padding: 0; gap: 1.75rem; }
.nav__links a { font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; text-decoration: none; }
.nav__links a:hover { color: var(--red); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.4rem;
  background: var(--red); color: var(--cream); border: 2px solid var(--ink); border-radius: 999px;
  font-family: var(--label); font-weight: 700; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease, background .12s;
  cursor: pointer; text-align: center;
}
.btn:hover { background: var(--red-dark); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--cream-2); }
.btn--small { min-height: 40px; padding: .45rem 1.1rem; font-size: .85rem; box-shadow: 2px 2px 0 var(--ink); }
.btn--big { font-size: 1rem; letter-spacing: .06em; padding: 1rem 1.3rem; width: 100%; max-width: 420px; white-space: nowrap; }
.btn--soon { background: var(--ink); color: var(--cream); cursor: default; }
.btn--soon::after { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(200,55,45,.7); animation: pulse 1.8s infinite; }
.btn--soon:hover { background: var(--ink); transform: none; box-shadow: 3px 3px 0 var(--ink); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(200,55,45,0); } 100% { box-shadow: 0 0 0 0 rgba(200,55,45,0); } }

/* Hero */
.hero { display: grid; gap: 2rem; padding: 2.25rem var(--pad) 2.75rem; max-width: var(--max); margin: 0 auto; }
.kicker, .eyebrow {
  font-family: var(--label); font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: .9rem;
}
.wordmark { position: relative; text-transform: uppercase; line-height: .9; margin-bottom: 1.1rem; }
.wordmark span { display: block; }
.wordmark__damn { font-family: var(--display); font-size: clamp(3.1rem, 16vw, 6.2rem); letter-spacing: .005em; }
.wordmark__bread { font-family: var(--display); font-size: clamp(4.6rem, 25vw, 9.6rem); color: var(--red); letter-spacing: .01em; }
.wordmark__by {
  position: absolute; right: 0; bottom: 38%;
  font-family: var(--hand); font-weight: 700; text-transform: none; font-size: clamp(1.7rem, 8vw, 2.8rem); line-height: 1;
  transform: rotate(-8deg);
}
.band {
  display: inline-block; background: var(--ink); color: var(--cream);
  font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: clamp(.95rem, 4vw, 1.15rem);
  padding: .4rem .9rem; margin-bottom: 1.25rem;
}
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.55rem, 6.5vw, 2.25rem); line-height: 1.2; margin-bottom: .8rem; }
.hero__sub { max-width: 34rem; color: #3a332d; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

/* Photos */
.photo { position: relative; margin: 0; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--cream-2); box-shadow: 6px 6px 0 var(--ink); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--hero { aspect-ratio: 4 / 3.4; }
.photo--square { aspect-ratio: 1 / 1; }
.photo__caption {
  position: absolute; left: .75rem; bottom: .8rem; max-width: calc(100% - 1.5rem);
  background: var(--cream); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px;
  font-family: var(--hand); font-weight: 700; font-size: clamp(1.15rem, 4.6vw, 1.45rem); line-height: 1.1;
  padding: .3rem .7rem .35rem; transform: rotate(-2deg); transform-origin: left bottom;
  box-shadow: 3px 3px 0 var(--ink);
}
/* Empty photo slot: "Fresh photo coming soon" (same box as the photo) */
.photo--soon {
  background-color: var(--cream-2);
  background-image:
    repeating-linear-gradient(0deg, rgba(22,20,18,.035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(22,20,18,.03) 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at 50% 45%, rgba(244,234,218,.9), rgba(234,219,195,0) 70%);
}
.soon {
  position: absolute; inset: 14px; border: 2px dashed rgba(22,20,18,.45); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem;
  text-align: center; padding: 1rem; color: var(--ink);
}
.soon__icon { color: var(--red); }
.soon__brand {
  margin: 0; font-family: var(--label); font-weight: 600; text-transform: uppercase;
  letter-spacing: .16em; font-size: .78rem; color: var(--ink); opacity: .75;
}
.soon__line {
  margin: 0; font-family: var(--hand); font-weight: 700; line-height: 1.1;
  font-size: clamp(1.5rem, 6vw, 2rem); color: var(--ink); transform: rotate(-2deg);
}
.lede--handmade { margin-top: -.25rem; }

/* Strip */
.strip { background: var(--red); color: var(--cream); border-block: 2px solid var(--ink); overflow: hidden; }
.strip__track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.strip__track span { font-family: var(--display); text-transform: uppercase; font-size: 1.35rem; letter-spacing: .03em; padding: .6rem 1.1rem; white-space: nowrap; }
.strip__track span::after { content: "✺"; font-family: var(--body); margin-left: 2.2rem; font-size: 1rem; vertical-align: middle; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 3rem var(--pad); max-width: var(--max); margin: 0 auto; }
.section h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(2.3rem, 10vw, 4rem); line-height: .98; margin-bottom: 1rem; }
.lede { font-size: 1.15rem; max-width: 40rem; color: #3a332d; }
.small { font-size: .88rem; color: #5a5048; }

.points { list-style: none; margin: 2rem 0 2.75rem; padding: 0; display: grid; gap: 1rem; }
.point { background: #fbf5ea; border: 2px solid var(--ink); border-radius: 16px; padding: 1.15rem 1.2rem 1rem; }
.point__num { font-family: var(--display); color: var(--red); font-size: 1.1rem; }
.point h3 { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1.2rem; margin: .1rem 0 .35rem; }
.point p { margin: 0; color: #3a332d; }

.split { display: grid; gap: 2rem; align-items: center; }
.ingredients h3 { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; margin-bottom: .8rem; }
.ingredients__list { list-style: none; margin: 0 0 1rem; padding: 0; counter-reset: ing; }
.ingredients__list li {
  counter-increment: ing; display: flex; align-items: baseline; gap: .9rem;
  font-family: var(--display); text-transform: uppercase; font-size: clamp(1.75rem, 8.5vw, 2.6rem); line-height: 1.15;
  padding: .35rem 0; border-bottom: 2px dashed rgba(22,20,18,.35);
}
.ingredients__list li::before { content: counter(ing); font-family: var(--hand); font-weight: 700; color: var(--red); font-size: .8em; min-width: 1.1rem; }
.ingredients__note { font-family: var(--hand); font-weight: 700; font-size: 1.9rem; color: var(--red); transform: rotate(-2deg); margin: .5rem 0 .4rem; }

/* Price */
.section--dark { max-width: none; background: var(--ink); color: var(--cream); border-top: 0; }
.section--dark > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section--dark .lede { color: #d9ccb6; }
.section--dark .eyebrow { color: #ff8a7f; }
.prices { display: grid; gap: 1.25rem; margin-top: 2rem; }
.price { position: relative; background: var(--cream); color: var(--ink); border-radius: 18px; padding: 1.5rem 1.4rem 1.3rem; border: 2px solid var(--cream); }
.price--best { background: var(--red); color: var(--cream); border-color: var(--cream); }
.price__badge {
  position: absolute; top: -0.85rem; right: 1.1rem; background: var(--cream); color: var(--ink); border: 2px solid var(--ink);
  font-family: var(--label); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: .2rem .7rem; border-radius: 999px; transform: rotate(3deg);
}
.price__label { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin: 0; }
.price__amount { font-family: var(--display); font-size: 4.5rem; line-height: 1; margin: .3rem 0 .4rem; }
.price__note { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.05rem; }

/* Order */
.section--order { text-align: left; }
.steps { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step__num {
  flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--red); color: var(--cream); border: 2px solid var(--ink); font-family: var(--display); font-size: 1.25rem;
}
.step h3 { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 1.15rem; }
.step p { margin: 0; color: #3a332d; }
.order__cta { display: grid; gap: .9rem; justify-items: start; background: var(--cream-2); border: 2px solid var(--ink); border-radius: 18px; padding: 1.5rem; }
.order__cta .small { margin: 0; }

/* About */
.prose p { font-size: 1.08rem; }
.signoff { font-family: var(--hand); font-weight: 700; font-size: 2rem; color: var(--red); margin: 0; }
.pull { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 6.5vw, 2.2rem); color: var(--red); line-height: 1.2; margin: -.2rem 0 1.2rem; }

/* FAQ */
.section--faq { max-width: 860px; }
.faq { border-top: 2px solid var(--ink); margin-top: 1.5rem; }
.faq__item { border-bottom: 2px solid var(--ink); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.05rem 0; font-family: var(--label); font-weight: 600; font-size: 1.15rem; letter-spacing: .02em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--body); font-weight: 700; font-size: 1.9rem; color: var(--red); line-height: 1; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 1.2rem; color: #3a332d; max-width: 42rem; }

/* Footer */
.footer { background: var(--ink); color: var(--cream); text-align: center; padding: 2.75rem var(--pad) calc(2.5rem + env(safe-area-inset-bottom)); }
.footer p { margin: 0 0 .6rem; }
.footer__brand { font-size: 2.2rem !important; margin-bottom: .8rem !important; }
.footer__legal { font-family: var(--label); letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.footer .small { color: #bfb2a0; }

/* Larger screens */
@media (min-width: 640px) {
  .points { grid-template-columns: 1fr 1fr; }
  .prices { grid-template-columns: 1fr 1fr; max-width: 760px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; }
}
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 3.5rem; padding-bottom: 4rem; gap: 3.5rem; }
  .wordmark__damn { font-size: 5.4rem; }
  .wordmark__bread { font-size: 8.4rem; }
  .photo--hero { aspect-ratio: 4 / 4.4; }
  .points { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .section { padding-top: 5rem; padding-bottom: 5rem; }
  .order__cta { grid-template-columns: auto 1fr; align-items: center; justify-items: start; gap: 1.5rem; }
  .btn--big { width: auto; }
}
