/* The Pop Corner — site styles */

:root {
  --espresso: #2E241C;
  --ink: #40352A;
  --brown: #6B5334;
  --cream: #EFE0C0;
  --card: #FBF4E4;
  --wine: #7B1F26;
  --gold: #B98B45;
  --gold-light: #E8C88A;
  --sand: #D9BE8C;
  --stripe: rgba(123, 31, 38, 0.9);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  color: var(--espresso);
  background-color: var(--cream);
  background-image: url("../images/paper.jpg");
  background-size: 360px 360px;
}

img { max-width: 100%; }
a { color: var(--wine); }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.paper {
  background-color: var(--cream);
  background-image: url("../images/paper.jpg");
  background-size: 360px 360px;
}

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.serif-display { font-family: 'Bevan', Georgia, serif; font-weight: 400; }
.script { font-family: 'Kaushan Script', cursive; font-weight: 400; }
.body-serif { font-family: 'Libre Baskerville', Georgia, serif; }

.eyebrow {
  font-size: 15px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--wine);
}
.eyebrow--light { color: var(--gold-light); }

.section-title {
  margin: 0; font-family: 'Bevan', Georgia, serif; font-weight: 400;
  font-size: clamp(34px, 4.5vw, 52px); line-height: 1.1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font-size: 17px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--espresso);
}
.btn--primary { background: var(--wine); color: var(--cream); }
.btn--primary:hover { color: var(--gold-light); }
.btn--outline { color: var(--espresso); background: transparent; }
.btn--dark { background: var(--espresso); color: var(--cream); gap: 10px; }
.btn--dark:hover { color: var(--gold-light); }
.btn--small { min-height: 48px; padding: 0 24px; font-size: 16px; border-color: var(--gold); }

/* ---------- Header ---------- */
.site-header { background: var(--espresso); color: var(--cream); border-bottom: 4px solid var(--gold); }
.site-header .wrap {
  padding-top: 14px; padding-bottom: 14px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--cream); }
.brand img {
  width: 52px; height: 52px; object-fit: contain;
  background: var(--cream); border-radius: 50%; padding: 3px;
}
.brand span { font-family: 'Bevan', Georgia, serif; font-size: 22px; letter-spacing: 0.04em; }
.main-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.main-nav a { color: var(--gold-light); text-decoration: none; padding: 12px 0; }
.main-nav a:hover { color: var(--cream); }
.main-nav .nav-order {
  color: var(--cream); background: var(--wine); border: 2px solid var(--gold); padding: 10px 18px;
}

/* ---------- Candy stripes & framed panels ---------- */
.stripes { position: relative; overflow: hidden; }
.stripes::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background-image: repeating-linear-gradient(90deg, var(--stripe) 0 32px, transparent 32px 64px);
}
.stripes > * { position: relative; }

.frame {
  border: 2px solid var(--espresso);
  box-shadow: inset 0 0 0 5px rgba(239, 224, 192, 0.9), inset 0 0 0 7px var(--gold);
}
.rule { height: 2px; background: var(--gold); }

/* ---------- Hero ---------- */
.hero .wrap {
  padding-top: 72px; padding-bottom: 96px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
}
.hero-panel {
  flex: 1 1 440px;
  padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 22px;
  box-shadow: inset 0 0 0 5px rgba(239, 224, 192, 0.9), inset 0 0 0 7px var(--gold), 0 18px 44px rgba(42, 39, 64, 0.4);
}
.hero-panel .script { font-size: 30px; color: var(--wine); }
.hero-panel h1 {
  margin: 0; font-family: 'Bevan', Georgia, serif; font-weight: 400;
  font-size: clamp(38px, 5.4vw, 66px); line-height: 1.05;
}
.hero-panel p { margin: 0; font-size: 20px; line-height: 1.6; color: var(--ink); max-width: 34em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-logo { flex: 1 1 360px; display: flex; justify-content: center; }
.hero-logo .disc {
  width: min(440px, 84vw); aspect-ratio: 1 / 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 4px var(--gold), 0 0 0 10px var(--espresso), 0 24px 60px rgba(0, 0, 0, 0.5);
}
.hero-logo img { width: 84%; height: auto; }

/* ---------- Flavours ---------- */
.flavours { padding: 96px 24px; }
.flavours-inner { max-width: 1320px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.section-head { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }

.flavour-row {
  list-style: none; margin: 0 -4px; padding: 4px 4px 36px;
  display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.flavour {
  min-width: 0; scroll-snap-align: start;
  padding: 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 16px;
  box-shadow: 0 14px 34px rgba(42, 39, 64, 0.35);
}
.flavour.stripes::before {
  background-image: repeating-linear-gradient(90deg, var(--stripe) 0 20px, transparent 20px 40px);
  background-position: -10px 0;
}
.flavour .badge {
  width: 132px; height: 132px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px var(--gold), 0 4px 12px rgba(46, 36, 28, 0.4);
}
.flavour .badge img { width: 118px; height: auto; }
.flavour .frame { box-shadow: inset 0 0 0 3px rgba(239, 224, 192, 0.9), inset 0 0 0 4px var(--gold); width: 100%; }
.flavour .name-panel { padding: 10px 10px 9px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.flavour h3 { margin: 0; font-family: 'Kaushan Script', cursive; font-weight: 400; font-size: 28px; line-height: 1.1; }
.flavour .tag { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--wine); }
.flavour .info-panel { flex-grow: 1; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.flavour .info-panel p { margin: 0; font-family: 'Libre Baskerville', Georgia, serif; font-size: 13px; line-height: 1.5; color: var(--ink); }
.flavour .info-panel p.allergens { color: var(--wine); }
.flavour .label {
  font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--espresso);
}
.flavour .allergens .label { color: var(--wine); }
.flavour .foot {
  margin-top: auto; border-top: 1px solid rgba(107, 83, 52, 0.55); padding-top: 6px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown);
}
.flavour .foot span { white-space: nowrap; }

.deal {
  align-self: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 20px;
  padding: 18px 36px; background: var(--wine); color: var(--cream); border: 2px solid var(--espresso);
  transform: rotate(-1.5deg);
}
.deal .script { font-size: 26px; }
.deal .serif-display { font-size: clamp(22px, 3vw, 32px); }
.small-print { margin: 0; text-align: center; color: var(--ink); }
.small-print--caps { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.small-print--note { font-size: 13px; margin-top: -36px; }

/* ---------- Find us ---------- */
.find { padding: 96px 0; }
.find .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.find-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.find-text p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink); }
.find-card {
  flex: 1 1 360px; background: var(--card); border: 2px solid var(--espresso);
  box-shadow: 6px 6px 0 var(--espresso); padding: 36px;
  display: flex; flex-direction: column; gap: 14px; transform: rotate(1deg);
}
.find-card .script { font-size: 28px; color: var(--wine); }
.find-card .serif-display { font-size: 30px; line-height: 1.15; }
.find-card dl {
  margin: 0; border-top: 1px dashed var(--brown); padding-top: 14px;
  display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 17px;
}
.find-card dt { font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown); }
.find-card dd { margin: 0; }

/* ---------- Events ---------- */
.events { background: var(--espresso); color: var(--cream); padding: 96px 0; }
.events .wrap { display: flex; flex-direction: column; gap: 48px; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.event-card { border: 2px solid var(--gold); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.event-card .script { font-size: 24px; color: var(--gold-light); }
.event-card h3 { margin: 0; font-family: 'Bevan', Georgia, serif; font-weight: 400; font-size: 32px; }
.event-card p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--sand); }
.event-card .btn { margin-top: auto; align-self: flex-start; }
.events-note { margin: 0; text-align: center; font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand); }

/* ---------- Contact ---------- */
.contact { padding: 96px 24px 64px; }
.contact-inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.contact-inner > img { width: 180px; height: auto; }
.contact-inner h2 { margin: 0; font-family: 'Bevan', Georgia, serif; font-weight: 400; font-size: clamp(32px, 4vw, 46px); }
.contact-inner > p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; width: 100%; }
.contact-card {
  display: flex; flex-direction: column; gap: 4px; padding: 22px;
  background: var(--card); border: 2px solid var(--espresso); text-decoration: none; color: var(--espresso);
  overflow-wrap: anywhere;
}
.contact-card:hover { color: var(--wine); }
.contact-card .kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wine); }
.contact-card .value { font-size: 22px; font-weight: 500; }
.contact-card .value--email { font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--sand); border-top: 4px solid var(--gold); }
.site-footer .wrap {
  padding-top: 28px; padding-bottom: 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- Order page ---------- */
.order-hero .wrap { padding-top: 56px; padding-bottom: 56px; }
.order-hero .frame {
  max-width: 720px; margin: 0 auto; padding: clamp(24px, 4vw, 40px);
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  box-shadow: inset 0 0 0 4px rgba(239, 224, 192, 0.9), inset 0 0 0 6px var(--gold), 0 18px 44px rgba(42, 39, 64, 0.4);
}
.order-hero .script { font-size: 26px; color: var(--wine); }
.order-hero h1 { margin: 0; font-family: 'Bevan', Georgia, serif; font-weight: 400; font-size: clamp(36px, 5vw, 58px); line-height: 1.05; }
.order-hero p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink); max-width: 34em; }

.order-main { padding-top: 56px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.order-steps { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.order-steps h2 { margin: 0; font-family: 'Bevan', Georgia, serif; font-weight: 400; font-size: 30px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step-intro { margin: 0; font-size: 15px; color: var(--ink); }

.order-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding: 18px 0; border-bottom: 1px dashed var(--brown);
}
.order-row .who { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.order-row .who .script { font-size: 28px; line-height: 1.15; }
.order-row .who .body-serif { font-size: 13px; color: var(--wine); }
.steppers { display: flex; gap: 20px; flex-wrap: wrap; }
.stepper { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.field-label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brown); }
.stepper-controls { display: flex; align-items: center; }
.stepper button {
  width: 44px; height: 44px; flex: none; padding: 0; cursor: pointer;
  border: 2px solid var(--espresso); background: var(--card); color: var(--espresso);
  font-family: 'Oswald', sans-serif; font-size: 22px; line-height: 1;
}
.stepper button:hover { background: var(--gold-light); }
.stepper output {
  min-width: 48px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-top: 2px solid var(--espresso); border-bottom: 2px solid var(--espresso);
  font-size: 20px; font-weight: 600; background: #FFFBF2;
}

.choice {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px; cursor: pointer;
  border: 2px solid var(--espresso); background: var(--card);
}
.choice input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--wine); }
.choice .title { display: block; font-size: 18px; font-weight: 600; }
.choice .sub { display: block; font-family: 'Libre Baskerville', Georgia, serif; font-size: 14px; color: var(--ink); }

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 2px solid var(--espresso); background: var(--card); color: var(--espresso);
  font-family: 'Oswald', sans-serif; font-size: 17px;
}
.field textarea { resize: vertical; }

.order-side { flex: 1 1 320px; min-width: 0; }
.summary {
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: inset 0 0 0 4px rgba(239, 224, 192, 0.9), inset 0 0 0 6px var(--gold), 6px 6px 0 var(--espresso);
}
.summary h2 { margin: 0; font-family: 'Bevan', Georgia, serif; font-weight: 400; font-size: 26px; }
.summary ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.summary li {
  display: flex; justify-content: space-between; gap: 12px; font-size: 17px;
  border-bottom: 1px solid rgba(107, 83, 52, 0.35); padding-bottom: 6px;
}
.summary li span:last-child { font-weight: 600; }
.summary .total { font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brown); }
.summary .empty, .summary .hint { margin: 0; font-family: 'Libre Baskerville', Georgia, serif; color: var(--ink); }
.summary .empty { font-size: 15px; line-height: 1.6; }
.summary .hint { font-size: 13px; line-height: 1.6; }
.send-btn { width: 100%; min-height: 56px; font-size: 18px; text-align: center; }
[hidden] { display: none !important; }

.event-tip { margin-top: 24px; padding: 22px; background: var(--espresso); color: var(--cream); display: flex; flex-direction: column; gap: 8px; }
.event-tip .script { font-size: 22px; color: var(--gold-light); }
.event-tip p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--sand); }
.event-tip a { color: var(--gold-light); font-size: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 0; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .flavours { padding-left: 16px; padding-right: 16px; }
  .contact { padding-left: 16px; padding-right: 16px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 56px; gap: 36px; }
  .find-card, .event-card { padding: 24px; }
}

/* ---------- Order form submit ---------- */
.order-form { display: contents; }
.send-btn { cursor: pointer; font-family: 'Oswald', sans-serif; }
.send-btn[disabled] { opacity: 0.6; cursor: wait; }
.form-error {
  margin: 0; padding: 12px 14px; background: #F6DCDC; border: 2px solid var(--wine);
  color: var(--wine); font-size: 16px; line-height: 1.5;
}
.field input[aria-invalid="true"] { border-color: var(--wine); box-shadow: 0 0 0 2px var(--wine); }
.thanks .script { font-size: 30px; color: var(--wine); }
.thanks p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }
.thanks .btn { align-self: flex-start; cursor: pointer; font-family: 'Oswald', sans-serif; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer link ---------- */
.site-footer a { color: var(--gold-light); }
.site-footer a:hover { color: var(--cream); }

/* ---------- Terms page ---------- */
.legal { padding-top: 48px; padding-bottom: 96px; max-width: 880px; display: flex; flex-direction: column; gap: 24px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 12px; }
.legal-toc a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 2px solid var(--espresso); background: var(--card); color: var(--espresso);
  font-size: 15px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
}
.legal-toc a:hover { background: var(--gold-light); color: var(--espresso); }
.legal-doc {
  padding: clamp(24px, 5vw, 56px);
  font-family: 'Libre Baskerville', Georgia, serif; font-size: 16px; line-height: 1.75; color: var(--ink);
}
.legal-doc h2 {
  margin: 0 0 8px; font-family: 'Bevan', Georgia, serif; font-weight: 400; font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15; color: var(--espresso); scroll-margin-top: 24px;
}
.legal-doc h3 {
  margin: 32px 0 10px; font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--wine);
}
.legal-doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.legal-doc ul ul { margin-top: 8px; gap: 4px; list-style: circle; }
.legal-doc strong { color: var(--espresso); }
.legal-facts {
  margin: 0 0 36px; padding-bottom: 20px; border-bottom: 1px dashed var(--brown);
  display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 15px;
}
.legal-facts dt { font-family: 'Oswald', sans-serif; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown); }
.legal-facts dd { margin: 0; overflow-wrap: anywhere; }
.legal-divider { margin: 48px 0 36px; }
.legal-contact { margin: 40px 0 0; padding-top: 20px; border-top: 1px dashed var(--brown); }
@media (max-width: 600px) {
  .legal-facts { grid-template-columns: 1fr; gap: 2px; }
  .legal-facts dd { margin-bottom: 10px; }
}
