:root {
  --ink: #0f2a44;
  --ink-soft: #4a5d70;
  --bg: #f6f4ef;
  --card: #ffffff;
  --line: #e2ded4;
  --accent: #fdc82f; /* Hofstra gold */
  --accent-ink: #0f2a44; /* navy text on gold; white on gold is too faint to read */
  --accent-soft: #fff6d9;
  --field: #1f7a4d;
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: 1.5rem; font-weight: 800; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-soft); }

.btn {
  display: inline-block; border: 0; border-radius: 999px; padding: .85em 1.5em;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.05); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; font-size: 1.05rem; }

/* Top bar */
.topbar { background: var(--ink); color: #fff; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-block: 12px; gap: 12px; }
.brand { font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
.closes { font-size: .9rem; opacity: .85; text-align: right; }

/* Hero */
/* The ship sits on the right of the painting, where the progress card would hide it,
   so the image is mirrored to put it behind the "Season fundraiser" heading instead. */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; padding: 72px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  /* The image file is cropped just below the hull, so "bottom" puts the hull on the hero's edge.
     80% (before the mirror) keeps the ship in view on narrow screens. */
  background: url("/images/hero-ship.jpg") 80% bottom / cover no-repeat; transform: scaleX(-1);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to right, rgba(15, 42, 68, .55), rgba(15, 42, 68, .15) 60%, rgba(15, 42, 68, .35));
}
.hero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.hero-grid { display: grid; gap: 32px; grid-template-columns: 1.1fr 1fr; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; }
.hero .hero-title { margin-bottom: 28px; }
.lede { font-size: 1.1rem; opacity: .85; max-width: 32em; margin: 0 0 24px; }

.progress-card { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 24px; }
.big { font-size: 2.4rem; font-weight: 900; }
.bar { position: relative; height: 16px; background: #ebe7dd; border-radius: 999px; margin: 12px 0 20px; }
.bar-fill { height: 100%; width: 0; background: var(--field); border-radius: 999px; transition: width .8s ease; }
.stats { display: flex; gap: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.stats > div { display: flex; flex-direction: column; }
.stat { font-size: 1.5rem; font-weight: 800; }

/* Ways */
.ways { padding: 32px 0 8px; }
.ways-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; counter-reset: way; }
.way:not([hidden]) .way-num::before { counter-increment: way; content: counter(way); }
.way { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.way h3 { font-size: 1.15rem; margin-top: 8px; }
.way p { margin: 0; color: var(--ink-soft); }
.way-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.ways-note { grid-column: 1 / -1; margin: 0; font-weight: 600; text-align: center; }

/* Shop */
.shop { display: grid; grid-template-columns: 1fr 360px; gap: 32px; padding-top: 32px; padding-bottom: 48px; align-items: start; }
.shop-items h2 { margin-top: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.discs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
/* A white UltraStar: 7" max print on a 10.75" disc, so the art spans about 65% of it. */
.disc-art {
  aspect-ratio: 1; border-radius: 50%; margin: 4px 8px 16px; display: grid; place-items: center;
  background: radial-gradient(circle at 38% 32%, #ffffff 0%, #f3f4f6 60%, #e4e7eb 100%);
  box-shadow: inset 0 0 0 7px #eceef1, inset 0 0 0 8px #d9dde2, 0 10px 24px rgba(15, 42, 68, .14);
}
.disc-art img { width: 65%; height: 65%; object-fit: contain; display: block; }
.disc h3 { font-size: 1.2rem; margin-bottom: 4px; }
.disc .price { font-weight: 800; font-size: 1.1rem; }
.disc p { margin: 0 0 12px; color: var(--ink-soft); font-size: .95rem; }
.split { margin: 0 0 12px; }
.split-bar { height: 8px; border-radius: 999px; background: #e6e2d8; overflow: hidden; margin-bottom: 8px; }
.split-bar span { display: block; height: 100%; background: var(--field); border-radius: 999px; transition: width .4s ease; }
.disc .split-text { margin: 0; font-size: .88rem; color: var(--ink); }
.disc .split-text strong { color: var(--field); }
.disc .split-next { margin: 6px 0 0; font-size: .82rem; color: var(--ink-soft); }
.qty-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); gap: 8px; }
.qty-row small { display: block; color: var(--ink-soft); font-size: .8rem; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg);
  font: inherit; font-size: 1.2rem; font-weight: 700; color: var(--ink); cursor: pointer;
}
.stepper button:hover { border-color: var(--ink); }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; }

.beer { display: flex; align-items: center; gap: 16px; }
.beer-note { margin: 10px 0 32px; color: var(--ink-soft); font-size: .9rem; }
.beer-icon { width: 48px; height: 48px; flex: none; }
.beer-text { display: flex; flex-direction: column; flex: 1; }
.beer-text strong { font-size: 1.1rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip {
  border: 2px solid var(--line); background: var(--card); border-radius: 999px; padding: .55em 1.2em;
  font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.custom { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.money-input { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fff; }
.money-input input { border: 0; outline: 0; font: inherit; font-weight: 700; width: 110px; padding: 8px 4px; background: transparent; color: var(--ink); }
.money-input:focus-within { border-color: var(--accent); }

/* Cart */
.cart { position: sticky; top: 16px; }
.cart-lines { list-style: none; padding: 0; margin: 0 0 12px; }
.cart-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.delivery { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0 0 12px; display: grid; gap: 6px; }
.delivery legend { font-weight: 700; padding: 0 4px; font-size: .95rem; }
.bulk-note { margin: -4px 0 16px; color: var(--ink-soft); max-width: 40em; }
.details { display: grid; gap: 10px; margin: 0 0 12px; }
.details #ship-fields { display: grid; gap: 10px; }
.address-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.address-row input { min-width: 0; }
.member { display: grid; gap: 4px; font-size: .9rem; }
.member > span { font-weight: 600; }
.req { color: #c62828; font-weight: 700; }
.req-note { margin: -4px 0 0; font-size: .75rem; color: var(--ink-soft); }
.cash-done h3 { font-size: 1.2rem; }
.cash-done p { margin: 0 0 16px; }
.member input { font: inherit; padding: 8px 10px; border: 2px solid var(--line); border-radius: 8px; color: var(--ink); }
.member input:focus { outline: 0; border-color: var(--accent); }
.total { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 900; border-top: 2px solid var(--ink); padding-top: 12px; margin-bottom: 16px; }
.error { color: #b42318; font-weight: 600; margin: 8px 0 0; min-height: 0; }
.error:empty { display: none; }
.fine { font-size: .8rem; color: var(--ink-soft); margin: 12px 0 0; text-align: center; }

/* FAQ */
.faq { padding-bottom: 48px; max-width: 760px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--ink-soft); }

.footer { background: var(--ink); color: #fff; padding: 24px 0; text-align: center; font-weight: 600; }

.mobile-bar { display: none; }

@media (max-width: 860px) {
  .hero-grid, .shop { grid-template-columns: 1fr; }
  .ways-grid { grid-template-columns: 1fr; }
  .cart { position: static; }
  body { padding-bottom: 72px; }
  .mobile-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px;
    background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(15, 42, 68, .08);
  }
  .mobile-bar .btn { padding: .65em 1.3em; }
}
