/* Layout: one phone-width column. A deep oxblood sign up top with the wordmark and the spiral,
   a strip of checker tiles, then the order as five numbered steps on ivory with the roll photo.
   The running total stays pinned to the bottom. */
:root {
  /* Brand colours */
  --oxblood: #5A1E24;
  --ivory: #F4EBDD;

  /* Shades made from the two brand colours */
  --oxblood-deep: #33090D;
  --ivory-deep: #E8DAC5;
  --paper: #FFFDF9;
  --ink: #3B1418;
  --ink-soft: #6F534E;
  --edge: #957C6C;
  --hairline: #DFCFB9;

  /* Working colours */
  --error: #B8261A;
  --error-soft: #F8E1DA;
  --whatsapp: #0F7A3F;

  /* Bodoni Moda for names and headings, Cormorant Garamond for everything you read */
  --display: "Bodoni Moda", "Bodoni MT", Didot, "Times New Roman", serif;
  --body: "Cormorant Garamond", Garamond, "Times New Roman", serif;

  --radius: 12px;
  --gutter: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  font-variant-numeric: lining-nums;
  /* Bodoni Moda thins its fine strokes as text gets bigger. Pin it to the sturdier cut everywhere. */
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }

a { color: var(--oxblood); }

img { max-width: 100%; }

[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible {
  outline: 3px solid var(--oxblood);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--oxblood-deep);
  color: var(--ivory);
  overflow: hidden;
  overflow: clip;
}

.hero :focus-visible { outline-color: var(--ivory); }

.topbar {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.social svg { width: 22px; height: 22px; flex: none; }
.social span { border-bottom: 1px solid currentColor; line-height: 1.15; }

.hero-grid {
  display: grid;
  gap: 4px;
  padding-block: 14px 0;
}

.hero-copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.hero h1 {
  font-family: var(--display);
  /* Heavier, and drawn with the sturdier small-size cut so the thin strokes don't look brittle. */
  font-weight: 600;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  line-height: 1;
  display: grid;
  gap: 6px;
}

.h1-lead {
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-left: 0.1em;
}

.h1-mark {
  font-size: clamp(4.5rem, 25vw, 9rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.95;
}

.lede {
  font-size: 1.3rem;
  line-height: 1.3;
  max-width: 28ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
}

.week { display: grid; gap: 6px; }

.week-dots { display: flex; gap: 5px; }

.week-dots span {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  border: 1.5px solid rgba(244, 235, 221, 0.45);
  color: rgba(244, 235, 221, 0.75);
}

.week-dots span.open {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--oxblood);
}

.week-text { font-size: 1rem; font-weight: 600; }

.hero-note { font-size: 1.08rem; font-weight: 600; }

/* The spiral: centred on phones, to the right of the wordmark on wider screens. */
.hero-art {
  line-height: 0;
  width: 68%;
  max-width: 320px;
  margin: 10px auto 34px;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  animation: unroll 1400ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes unroll {
  from { transform: rotate(-120deg); }
  to { transform: none; }
}

/* A strip of the checker tiles closes the hero. */
.checker {
  height: 44px;
  background: var(--oxblood-deep) url("../assets/checker.webp") center top / 88px 88px repeat-x;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 28px;
  border: 1.5px solid var(--oxblood);
  border-radius: 999px;
  background: var(--oxblood);
  color: var(--ivory);
  font: inherit;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn-wide { width: 100%; }

.btn-light { background: var(--ivory); border-color: var(--ivory); color: var(--oxblood); }

.btn-ghost { background: transparent; color: var(--oxblood); }

.btn-wa { background: var(--whatsapp); border-color: var(--whatsapp); color: #FFFFFF; }

/* ---------- Page: the order, and the roll photo ---------- */

.page {
  display: grid;
  gap: 40px;
  padding-block: 44px 40px;
}

.order { min-width: 0; max-width: 680px; width: 100%; margin-inline: auto; }

/* The photo has a see-through background, so it sits straight on the page.
   On phones it closes the page, just before the footer. */
.photo {
  margin: 0 auto;
  width: 100%;
  max-width: 440px;
  line-height: 0;
}

.photo img { display: block; width: 100%; height: auto; }

#order-form, .steps { display: grid; gap: 44px; }

.step { display: grid; gap: 18px; min-width: 0; scroll-margin-top: 20px; }

.step h2, .done h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 14px;
  text-wrap: balance;
}

.num {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--oxblood);
  color: var(--oxblood);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
}

.hint { color: var(--ink-soft); font-size: 1rem; }

/* "Please note": a dotted box for anything the customer must not miss. */
.callout {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 2px dotted var(--oxblood);
  border-radius: var(--radius);
  background: var(--paper);
  font-weight: 600;
}

.callout-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--oxblood);
}

/* The one thing left to do after ordering: bigger, and filled in. */
.callout-strong { background: var(--ivory-deep); border-width: 2.5px; padding: 16px 18px; }
.callout-strong .callout-title { font-size: 1.3rem; line-height: 1.2; }

/* Menu */

.menu { display: grid; gap: 14px; }

.roll {
  display: grid;
  gap: 14px;
  align-content: space-between;
  padding: 20px;
  border-radius: 20px;
}

.roll-classic { background: var(--ivory-deep); }
.roll-cadbury { background: var(--oxblood); color: var(--ivory); }

.roll-info { min-width: 0; display: grid; gap: 6px; }

.roll h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.1;
}

.roll-desc { font-size: 1.05rem; line-height: 1.3; }

.roll-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.price {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  font-variant-numeric: lining-nums tabular-nums;
}

.price small { font-family: var(--body); font-weight: 500; font-size: 1rem; }

.stepper {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 3px;
}

.stepper button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--oxblood);
  color: var(--ivory);
  /* A plain face keeps the plus and minus signs bold enough to read. */
  font: 500 1.45rem/1 system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.roll-cadbury .stepper button { background: var(--oxblood-deep); }

.stepper button[disabled] { background: var(--hairline); color: var(--edge); cursor: default; }

.stepper output {
  min-width: 42px;
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
  font-variant-numeric: lining-nums tabular-nums;
}

/* Fields */

.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }

.field > label, .field > legend {
  font-weight: 700;
  padding: 0;
}

.field > legend { margin-bottom: 8px; }

.optional { font-weight: 500; color: var(--ink-soft); font-size: 0.95rem; padding-left: 4px; }

input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%;
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--edge);
  border-radius: var(--radius);
  padding: 12px 14px;
  appearance: none;
}

textarea { resize: vertical; min-height: 56px; }

input::placeholder, textarea::placeholder { color: #A08E82; font-weight: 500; }

input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

.field-error, .form-error { color: var(--error); font-weight: 700; font-size: 1rem; }

.form-error {
  background: var(--error-soft);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.form-error a { color: var(--error); font-weight: 700; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Choices */

.choice { position: relative; min-width: 0; }

.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice input[disabled] { cursor: default; }

.choice label {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 8px 10px;
  text-align: center;
  background: var(--paper);
  border: 1.5px solid var(--edge);
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.15;
}

.choice input:checked + label {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--ivory);
}

.choice input:focus-visible + label { outline: 3px solid var(--oxblood); outline-offset: 3px; }

.choice input[disabled] + label {
  background: transparent;
  border-style: dashed;
  border-color: var(--hairline);
  color: #9A8779;
}

.choice input[disabled] + label b { text-decoration: line-through; }

/* A sold-out day is a quiet badge of honour, so it reads stronger than a closed one. */
.choice.sold input[disabled] + label {
  background: var(--ivory-deep);
  border-style: solid;
  border-color: var(--ivory-deep);
  color: var(--ink-soft);
}

.choice.sold label small { color: var(--oxblood); font-weight: 700; }

.segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }

.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }

.days label { min-height: 76px; padding-inline: 2px; font-weight: 600; font-size: 0.95rem; }
.days label b { display: block; font-size: 1.1rem; font-weight: 700; }
.days label small { display: block; font-size: 0.85rem; font-weight: 600; padding-top: 2px; }

/* Summary and payment */

.summary {
  display: grid;
  gap: 8px;
  background: var(--paper);
  border-radius: 16px;
  padding: 16px 18px;
  font-variant-numeric: lining-nums tabular-nums;
}

.summary .line { display: flex; justify-content: space-between; gap: 16px; }
.summary .line span:first-child { min-width: 0; }
.summary .line span:last-child { flex: none; text-align: right; }
.summary .muted { color: var(--ink-soft); }

.summary .total {
  border-top: 1.5px solid var(--hairline);
  padding-top: 10px;
  margin-top: 2px;
  font-weight: 700;
  font-size: 1.25rem;
}

.summary .total span:last-child { font-family: var(--display); font-weight: 600; }

.rules {
  list-style: none;
  padding: 16px 18px;
  display: grid;
  gap: 10px;
  border: 1.5px solid var(--oxblood);
  border-radius: 16px;
}

.rules strong { font-weight: 700; color: var(--oxblood); }

.pay { display: grid; gap: 12px; }

.pay-card {
  background: var(--ivory-deep);
  border-radius: 16px;
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}

.pay-card h3 { font-size: 1.1rem; font-weight: 700; }

.pay-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 12px;
}

.pay-row dt { font-size: 0.95rem; color: var(--ink-soft); grid-column: 1; }
.pay-row dd { margin: 0; font-weight: 700; grid-column: 1; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
dl { margin: 0; display: grid; gap: 10px; }

.copy {
  grid-column: 2;
  grid-row: 1 / span 2;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--oxblood);
  background: var(--paper);
  border: 0;
  border-radius: 999px;
  min-height: 40px;
  padding: 6px 14px;
  cursor: pointer;
}

.selectable { user-select: all; -webkit-user-select: all; font-weight: 700; white-space: nowrap; }

/* Confirmation */

.done { display: grid; gap: 18px; scroll-margin-top: 24px; }
.done:focus { outline: none; }
.done h2 { font-size: 2.3rem; }
.done-ref { font-size: 1.15rem; }
.done-next { font-weight: 600; }

.notice {
  background: var(--ivory-deep);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 600;
  font-size: 1rem;
}

/* Footer */

.footer {
  background: var(--oxblood-deep);
  color: var(--ivory);
  padding-block: 36px calc(120px + env(safe-area-inset-bottom, 0px));
}

.footer :focus-visible { outline-color: var(--ivory); }

.footer-grid { display: grid; gap: 16px; }

.footer .footer-mark {
  font-family: var(--display);
  font-weight: 600;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-size: 2.2rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-info { display: grid; gap: 6px; }
.footer p { font-size: 1.02rem; }
.footer a { color: var(--ivory); }

/* Sticky total */

.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: var(--oxblood-deep);
  color: var(--ivory);
  box-shadow: 0 -6px 24px rgba(51, 9, 13, 0.28);
  padding-block: 10px calc(10px + env(safe-area-inset-bottom, 0px));
}

.bar :focus-visible { outline-color: var(--ivory); }

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bar-text { display: grid; line-height: 1.15; min-width: 0; }
.bar-text span { font-size: 1rem; }
.bar-text strong { font-family: var(--display); font-size: 1.25rem; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.bar .btn { min-height: 48px; padding-inline: 22px; flex: none; }

/* ---------- Wider screens ---------- */

@media (min-width: 560px) {
  .menu { grid-template-columns: 1fr 1fr; }
  .hero-art { width: 46%; max-width: 360px; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 32px;
    padding-block: 8px 0;
  }
  .hero-copy { gap: 26px; padding-block: 24px 64px; }
  .h1-mark { font-size: clamp(6rem, 11vw, 9rem); }
  .lede { font-size: 1.5rem; }
  .hero-art { width: 100%; max-width: 480px; margin: 0 -6% 0 auto; align-self: center; }
  .checker { height: 56px; background-size: 112px 112px; }

  /* The order on the left, the photo keeping it company on the right. */
  .page {
    grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    padding-block: 56px 72px;
  }
  .order { margin-inline: 0; }
  .photo { position: sticky; top: 20px; max-width: 460px; margin: -24px 0 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img { animation: none; }
}
