/* Grateville site styles. Mobile first, no framework.
   Colour and type tokens are placeholders until the Designer supplies the brand. */

:root {
  --bg: #fbf8f3;
  --fg: #1d1a16;
  --muted: #5b544b;
  --accent: #8a2c1f;      /* AA contrast on --bg */
  --accent-fg: #ffffff;
  --rule: #e4ddd2;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 60rem;
  --space: 1rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.6 var(--font);
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(2rem, 7vw, 3.25rem); margin: 0 0 var(--space); }
h2 { font-size: 1.5rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space); }
.section { padding: calc(var(--space) * 2) var(--space); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--fg); color: var(--bg); padding: .5rem 1rem;
}
.skip:focus { left: 0; }

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; min-height: 3.5rem; }
.brand { font-weight: 700; text-decoration: none; color: var(--fg); font-size: 1.125rem; }

.hero { padding: calc(var(--space) * 3) 0; border-bottom: 1px solid var(--rule); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .875rem; color: var(--muted); margin: 0 0 .5rem; }
.lede { font-size: 1.25rem; color: var(--muted); margin: 0; }

/* Buttons and forms, ready for /tickets */
.button {
  display: inline-block; min-height: 3rem; padding: .75rem 1.5rem;
  background: var(--accent); color: var(--accent-fg);
  border: 0; border-radius: .375rem; font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.button[disabled] { opacity: .5; cursor: not-allowed; }

/* Header nav */
.site-header .wrap { justify-content: space-between; gap: var(--space); }
.site-nav a { font-weight: 600; text-decoration: none; padding: .5rem 0; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }

/* Tickets */
.notice {
  border-left: 4px solid var(--accent); background: #fff; padding: .75rem 1rem;
  margin: 0 0 calc(var(--space) * 1.5); font-weight: 600;
}
.offer h2 { margin-top: 0; }
.price { margin: var(--space) 0 .25rem; }
.price-amount { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.price-tax { font-size: 1.125rem; font-weight: 600; }
.price-detail { color: var(--muted); font-size: .9375rem; margin: 0 0 var(--space); }
.terms { padding-left: 1.25rem; }
.buy { display: grid; gap: .75rem; max-width: 24rem; margin-top: calc(var(--space) * 1.5); }
.buy label { font-weight: 600; }
.buy select { font: inherit; min-height: 3rem; padding: .5rem; border: 1px solid var(--muted); border-radius: .375rem; background: #fff; color: var(--fg); }
.fine { font-size: .875rem; color: var(--muted); margin: 0; }
.opt-in { display: grid; grid-template-columns: auto 1fr; gap: .25rem .6rem; align-items: start; }
.opt-in input { width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; accent-color: var(--accent); }
.opt-in label { font-weight: 400; }
.opt-in .fine { grid-column: 2; }

.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: .9375rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .site-footer, .skip { display: none; }
  body { background: #fff; }
}

/* Thank-you page: tickets shown right after payment (D72) */
.order { border: 1px solid var(--rule); border-radius: .5rem; padding: 1rem; margin: 1rem 0 1.5rem; background: #fff; }
.order h2 { margin-top: 0; }
.order-tickets { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .5rem; }
.order-tickets li { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.order-tickets .num { font-weight: 700; letter-spacing: .03em; }
