/* Good 4 U Smoothies
   Plain on purpose: the real logo, one typeface (DM Sans, close to the logo's
   lettering), maroon / black / white, square corners, no decoration that
   the stand itself doesn't have. */

@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-var-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 104.6%;
  ascent-override: 94.8%;
  descent-override: 29.6%;
  line-gap-override: 0%;
}

:root {
  --maroon: #7A0016;
  --black: #000000;
  --white: #FFFFFF;
  --cream: #F9F9F6;
  --soft: rgb(0 0 0 / 0.7);
  --rule: rgb(0 0 0 / 0.15);
  --font: "DM Sans", "DM Sans Fallback", system-ui, sans-serif;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, ol, dl, dd { margin: 0; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: 64rem; margin-inline: auto; padding-inline: var(--gutter); }

h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.6vw, 4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 15ch;
}
h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.25rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1:focus, h2:focus { outline: none; }
.lead { margin-top: 0.75rem; color: var(--soft); max-width: 30rem; }
.small { font-size: 0.875rem; line-height: 1.5; color: var(--soft); }
.link { color: var(--maroon); font-weight: 700; text-underline-offset: 3px; }
.link:hover { color: var(--black); }

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.75rem 1.35rem;
  border: 2px solid var(--black);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms linear, color 120ms linear, border-color 120ms linear;
}
.btn--maroon, .btn--reserve { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.btn--maroon:hover, .btn--reserve:hover { background: var(--black); border-color: var(--black); }
.btn--plain { background: var(--white); color: var(--black); }
.btn--plain:hover { background: var(--black); color: var(--white); }
.btn--full { width: 100%; }

.btn[aria-busy="true"] { cursor: progress; }
.spin {
  width: 1em; height: 1em;
  border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.order-form[data-state="closed"] .btn--reserve,
.order-form[data-state="closed"] .btn--reserve:hover,
.order-form[data-state="pending"] .btn--reserve,
.order-form[data-state="pending"] .btn--reserve:hover {
  background: var(--white);
  color: var(--soft);
  border: 2px dashed var(--soft);
  cursor: not-allowed;
}

/* ── Header + marquee ──────────────────────────────────────────────────── */

.site-header { background: var(--white); border-bottom: 2px solid var(--black); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; }
.site-header__brand { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 800; text-decoration: none; }
.site-header__brand img { width: 48px; height: 48px; border-radius: 50%; }
.site-header__ig { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font-weight: 700; text-decoration: none; }
.site-header__ig:hover span { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 26rem) {
  .site-header__brand span { display: none; }
}

.marquee { background: var(--maroon); color: var(--white); overflow: hidden; padding-block: 0.5rem; }
.marquee__track {
  display: flex;
  width: max-content;
  gap: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
@keyframes marquee { to { transform: translateX(calc(-50% - 0.5rem)); } }

/* ── Intro ─────────────────────────────────────────────────────────────── */

.intro { padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem); }
.intro__grid { display: grid; gap: 2rem; align-items: center; }
.note {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.6rem;
  background: var(--white);
  border: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--soft);
}
.intro__sub { margin-top: 1.25rem; max-width: 34rem; font-size: 1.15rem; color: var(--soft); }
.intro__sub strong { color: var(--black); }
.next { margin-top: 1rem; font-size: 1rem; }
.next strong { color: var(--maroon); }
.intro__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.intro__logo { width: 150px; height: 150px; border-radius: 50%; order: -1; }

@media (max-width: 29.99rem) {
  .intro__cta .btn { width: 100%; }
}
@media (min-width: 48rem) {
  .intro__grid { grid-template-columns: 1fr auto; }
  .intro__logo { order: 0; }
}

/* ── How it works ──────────────────────────────────────────────────────── */

.how { background: var(--white); border-block: 2px solid var(--black); padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); }
.how__list { display: grid; gap: 1.25rem; margin-top: 1.5rem; padding: 0; list-style: none; counter-reset: step; }
.how__list li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.75rem; align-items: baseline; color: var(--soft); }
.how__list li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-weight: 800;
}
.how__list strong { color: var(--black); }
@media (min-width: 48rem) {
  .how__list { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* ── Order + contact ───────────────────────────────────────────────────── */

.order, .contact { padding-block: clamp(3rem, 2rem + 5vw, 5.5rem); }
.contact { border-top: 2px solid var(--black); }
.order__grid { display: grid; gap: 2rem; }
@media (min-width: 52rem) {
  .order__grid { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: start; }
}

.lines { margin-top: 1.5rem; max-width: 22rem; margin-bottom: 0.75rem; }
.lines__row { display: flex; justify-content: space-between; padding-block: 0.55rem; border-bottom: 1px solid var(--rule); }
.lines__row dd { font-variant-numeric: tabular-nums; font-weight: 600; }
.lines__row--total { border-bottom: 0; border-top: 2px solid var(--black); font-weight: 800; font-size: 1.3rem; }
.lines__row--total dd { font-weight: 800; color: var(--maroon); }

.box { background: var(--white); border: 2px solid var(--black); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }

.callout {
  padding: 0.85rem 1rem;
  border-left: 5px solid var(--maroon);
  background: var(--cream);
  font-weight: 700;
  line-height: 1.45;
}
.callout + .order-form { margin-top: 1.5rem; }
noscript .callout { margin-top: 1.25rem; }

.fields, .contact-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 700; font-size: 0.95rem; }
.input {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  background: var(--white);
  border: 2px solid var(--black);
}
textarea.input { min-height: 8.5rem; resize: vertical; line-height: 1.5; }
.input::placeholder { color: rgb(0 0 0 / 0.5); }
.input:focus { outline: 3px solid var(--maroon); outline-offset: 0; }
.input[aria-invalid="true"] { border-color: var(--maroon); border-width: 3px; }
.input:disabled { background: var(--cream); border-style: dashed; border-color: var(--soft); cursor: not-allowed; }

.field-error { font-size: 0.9rem; font-weight: 700; line-height: 1.4; color: var(--maroon); }
.field-error__body { display: flex; gap: 0.4rem; align-items: flex-start; }
.field-error__body svg { flex: none; margin-top: 0.15em; }

.form-actions { display: grid; gap: 0.8rem; margin-top: 1.4rem; }
.contact-form .form-actions { margin-top: 0.4rem; }
.form-note { display: flex; gap: 0.45rem; align-items: flex-start; }
.form-note svg { flex: none; margin-top: 0.2em; }
@media (min-width: 40rem) {
  .contact-form .btn { justify-self: start; min-width: 12rem; }
}
@media (scripting: none) {
  .order-form { display: none; }
}

/* ── Thank-you banner (?reserved=1) ────────────────────────────────────── */

.banner {
  position: fixed; left: 50%; bottom: 1rem; z-index: 10;
  width: min(calc(100% - 2rem), 30rem);
  transform: translateX(-50%);
  display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; align-items: start;
  padding: 1rem 1.2rem;
  background: var(--black); color: var(--white);
}
.banner .h3 { grid-column: 1; font-size: 1.15rem; font-weight: 800; }
.banner .h3:focus { outline: none; }
.banner__body { grid-column: 1; }
.banner__close {
  grid-column: 2; grid-row: 1 / span 2;
  min-height: 44px; padding: 0 1rem;
  border: 2px solid var(--white); background: transparent; color: var(--white);
  font-weight: 700; cursor: pointer;
}
.banner__close:hover { background: var(--white); color: var(--black); }

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer { background: var(--black); color: var(--white); padding-block: 2.5rem; }
.site-footer__inner { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.site-footer img { width: 72px; height: 72px; border-radius: 50%; }
.site-footer p + p { margin-top: 0.2rem; }
.site-footer .link { color: var(--white); }
.site-footer .small { color: rgb(255 255 255 / 0.7); margin-top: 0.6rem; }
.site-footer :focus-visible { outline-color: var(--white); }

/* ── Thanks / 404 ──────────────────────────────────────────────────────── */

.page-shell { padding-block: clamp(3rem, 2rem + 6vw, 6rem); min-height: 55vh; }
.page-shell img { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee__track > :nth-child(n+6) { display: none; }
  .spin { animation: none; }
}
