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

:root {
  /* Brand tokens: marketing/brand.md §4 (Riverfront Autumn, D57). */
  --bg: #f6ecdb;        /* Paper */
  --panel: #efe0c6;     /* Panel */
  --fg: #1d1a16;        /* Ink */
  --muted: #5b4a3a;     /* Ink muted */
  --accent: #823c1d;    /* Rust: buttons, links, focus */
  --accent-fg: #fbf3e6; /* Cream */
  --river: #1f3a5a;     /* Ohio blue: footer, dark panels */
  --bourbon: #d57d18;   /* decoration only */
  --moss: #697637;      /* decoration, large text only */
  --rule: #d9c7aa;
  --font-display: "Rye", Georgia, serif;
  --font: "Source Serif 4", Georgia, serif;
  --wrap: 60rem;
  --space: 1rem;
}

/* Brand fonts, self-hosted from marketing/brand/fonts (#145). SIL OFL 1.1: assets/fonts/OFL-*.txt. */
@font-face { font-family: "Rye"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/rye-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); }

*, *::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, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; }
/* Prices, forms and staff pages never use the display face (brand.md §4). */
.price, .price-amount, .buy, .order, form h2 { font-family: var(--font); }
h1 { font-size: clamp(2rem, 7vw, 3.25rem); margin: 0 0 var(--space); }
h2 { font-size: 1.75rem; }

.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-header .wrap { flex-wrap: wrap; column-gap: 1.5rem; row-gap: 0; }
.brand { white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
@media (min-width: 40rem) { .site-nav { gap: 0 1.5rem; } }
.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 { background: var(--river); color: var(--accent-fg); font-size: .9375rem; padding: .5rem 0 1rem; }
.site-footer a { color: var(--accent-fg); }
.site-footer a:focus-visible { outline-color: var(--accent-fg); }


@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; }

/* Festival pages (W1, D110): card grid for Info, plan-your-trip and pass cards. */
.cards { display: grid; gap: var(--space); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); padding: 0; margin: var(--space) 0; list-style: none; }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: .5rem; padding: 1rem 1.25rem; }
.card h2, .card h3 { margin: 0 0 .5rem; font-size: 1.25rem; font-family: var(--font); font-weight: 700; }
.card p { margin: 0 0 .5rem; }
.card a.more { font-weight: 700; }
.soon { display: inline-block; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--rule); border-radius: 1rem; padding: .1rem .6rem; }
.photo-grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); margin: var(--space) 0; padding: 0; list-style: none; }
.photo-grid img { width: 100%; height: auto; display: block; border-radius: .25rem; }
.photo-grid figcaption { font-size: .8125rem; color: var(--muted); margin-top: .25rem; }
