/* ============================================================
   BREMERTON OKTOBERFEST — Refined Vintage Bierhall design system
   Germania One (brand) · Oswald (poster headings/UI) · Source Sans 3 (body)
   Bavarian blue + brass gold on warm cream paper
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --ink:        #211606;   /* warm near-black body text */
  --ink-soft:   #5b4a2e;
  --muted:      #7d6a48;
  --paper:      #f6eedb;   /* cream */
  --paper-2:    #efe4c9;
  --card:       #fffbf1;   /* warm white card */
  --blue:       #1e3a85;   /* Bavarian blue */
  --blue-deep:  #16285c;
  --blue-ink:   #0f1c44;   /* deepest navy */
  --gold:       #c0901e;   /* brass */
  --gold-bright:#e7b740;
  --gold-soft:  #f1d588;
  --red:        #9e2b25;   /* sparing accent / stamps */
  --line:       rgba(33,22,6,.16);
  --line-strong:rgba(33,22,6,.32);

  --font-display: 'Germania One', 'Oswald', serif;
  --font-head:    'Oswald', 'Arial Narrow', sans-serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;

  --maxw: 1180px;
  --radius: 6px;
  --shadow-card: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 26px -16px rgba(15,28,68,.5);
  --shadow-lift: 0 18px 40px -20px rgba(15,28,68,.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* paper grain + warm vignette overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- type roles ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .01em;
}
.head {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .005em;
}
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 13px;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: "";
  width: 28px; height: 2px;
  background: var(--gold);
  display: inline-block;
}
.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 60ch;
  text-wrap: pretty;
}

h1, h2, h3 { margin: 0; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 84px 0; }
.section.tight { padding: 46px 0; }
.section-head { max-width: 64ch; }
.section-head h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.02; margin: 14px 0 0; }
.section-head .lede { margin-top: 14px; }

.bg-cream  { background: var(--paper-2); }
.bg-blue   { background: var(--blue-deep); color: #f7eccb; }
.bg-blue h2, .bg-blue .display { color: #fff; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.row { display: flex; gap: 16px; }
.row.wrap { flex-wrap: wrap; }
.center { text-align: center; }

/* poster double-rule frame */
.poster-frame { position: relative; }
.poster-frame::before {
  content: "";
  position: absolute; inset: 16px;
  border: 2px solid currentColor;
  opacity: .28;
  pointer-events: none;
}
.poster-frame::after {
  content: "";
  position: absolute; inset: 22px;
  border: 1px solid currentColor;
  opacity: .2;
  pointer-events: none;
}

/* Bavarian lozenge (diamond) band */
.lozenge {
  height: 24px;
  background-color: var(--blue);
  background-image:
    linear-gradient(135deg, var(--gold-soft) 25%, transparent 25%),
    linear-gradient(225deg, var(--gold-soft) 25%, transparent 25%),
    linear-gradient(45deg,  var(--gold-soft) 25%, transparent 25%),
    linear-gradient(315deg, var(--gold-soft) 25%, transparent 25%);
  background-position: 12px 0, 12px 0, 0 0, 0 0;
  background-size: 24px 24px;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22,40,92,.92);
  backdrop-filter: blur(8px);
  color: #fdf6e3;
  border-bottom: 2px solid var(--gold);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fdf6e3; }
.brand .brand-logo { height: 58px; width: auto; flex: none; display: block; }
.brand .brand-presented {
  font-family: var(--font-head); font-weight: 500; text-transform: uppercase;
  letter-spacing: .26em; font-size: 10px; line-height: 1.3; max-width: 9ch;
  color: var(--gold-bright); padding-left: 14px; border-left: 1px solid rgba(231,183,64,.35);
}
@media (max-width: 560px) {
  .brand .brand-logo { height: 48px; }
  .brand .brand-presented { display: none; }
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500; text-transform: uppercase;
  letter-spacing: .12em; font-size: 13px; text-decoration: none; color: #f0e6cc;
  padding: 10px 14px; border-radius: 4px; transition: background .15s, color .15s;
}
.nav-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-links a.active { color: var(--gold-bright); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 2px solid var(--gold); color: var(--gold-bright); width: 44px; height: 44px; border-radius: 4px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; display: block; }

/* mobile drawer */
.drawer { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; font-size: 14px;
  padding: 14px 26px; border-radius: 4px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold-bright); color: var(--blue-ink); border-color: var(--gold); box-shadow: 0 4px 0 var(--gold); }
.btn--gold:hover { background: var(--gold-soft); box-shadow: 0 6px 0 var(--gold); transform: translateY(-2px); }
.btn--blue { background: var(--blue); color: #fff; border-color: var(--blue-deep); box-shadow: 0 4px 0 var(--blue-deep); }
.btn--blue:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--sm { padding: 9px 16px; font-size: 12px; }

/* ---------- chips / stamps ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 500; text-transform: uppercase;
  letter-spacing: .08em; font-size: 12.5px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--line-strong); color: var(--ink);
}
.chip.blue { background: #e9eefb; border-color: var(--blue); color: var(--blue-deep); }
.chip.gold { background: #fbf0d2; border-color: var(--gold); color: #6b4d05; }

.stamp {
  display: inline-block;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: 12px; white-space: nowrap;
  padding: 6px 12px; border: 2px solid currentColor; border-radius: 3px;
  transform: rotate(-1.5deg);
}
.stamp.blue { color: var(--blue); }
.stamp.gold { color: #6b4d05; }
.stamp.red  { color: var(--red); }

/* round wax/letterpress seal */
.seal {
  width: 116px; height: 116px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  color: var(--gold-bright);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 5px transparent, 0 0 0 6px rgba(231,183,64,.4);
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em;
  line-height: 1.1; font-size: 12px; font-weight: 600;
}
.seal .big { font-family: var(--font-display); font-size: 30px; letter-spacing: .02em; display: block; }

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px;
}
.card.blue-top { border-top-color: var(--blue); }
.card.pad-lg { padding: 32px; }

/* photo placeholder — looks intentional, easy to swap with <img> */
.photo {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(15,28,68,.05) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #dfe6f4, #c9d3ec);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid; place-items: center; text-align: center;
  color: var(--blue-deep); overflow: hidden;
  min-height: 200px;
}
.photo .ph-label {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .16em;
  font-size: 12px; font-weight: 600; opacity: .7; padding: 10px 16px;
}
.photo .ph-icon { width: 44px; height: 44px; opacity: .55; margin-bottom: 6px; }
/* real photo dropped into a placeholder — covers the swatch entirely */
.photo > img.photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }

/* "to be announced" badge — for vendors/acts not yet confirmed */
.tba-tag {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: 9px; line-height: 1;
  padding: 4px 7px; border-radius: 3px;
  background: var(--blue-ink); color: var(--gold-bright);
  border: 1px solid var(--gold);
}
.photo.gold { background: repeating-linear-gradient(135deg, rgba(107,77,5,.06) 0 12px, transparent 12px 24px), linear-gradient(160deg, #f6e6bd, #efd58f); color: #6b4d05; }
.photo.tall { min-height: 320px; }

/* ---------- marquee ticker ---------- */
.ticker {
  background: var(--blue-ink); color: var(--gold-bright);
  border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  overflow: hidden; white-space: nowrap; padding: 12px 0;
}
.ticker-track {
  display: inline-block; white-space: nowrap;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .26em;
  font-size: 13px; font-weight: 500;
  animation: ticker 32s linear infinite;
}
.ticker-track span { padding: 0 8px; }
.ticker-track .star { color: #fff; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- footer ---------- */
.footer { background: var(--blue-ink); color: #d9e0f2; border-top: 3px solid var(--gold); }
.footer a:not(.btn) { color: var(--gold-bright); text-decoration: none; }
.footer a:not(.btn):hover { text-decoration: underline; }
.footer .display { color: #fff; }

/* ---------- divider ---------- */
.rule-orn { display: flex; align-items: center; gap: 16px; color: var(--gold); }
.rule-orn::before, .rule-orn::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.rule-orn .dot { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

/* ---------- reveal on scroll (safe: visible by default, animates in as enhancement) ---------- */
.reveal { } /* base state is fully visible — no hidden state, so content can never get stuck invisible */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal.in { animation: reveal-in .6s ease both; }
}
@keyframes reveal-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .section { padding: 60px 0; }
  body { font-size: 17px; }

  .drawer { display: block; position: fixed; inset: 0; z-index: 60; visibility: hidden; }
  .drawer[data-open="true"] { visibility: visible; }
  .drawer-scrim { position: absolute; inset: 0; background: rgba(15,28,68,.55); opacity: 0; transition: opacity .25s; }
  .drawer[data-open="true"] .drawer-scrim { opacity: 1; }
  .drawer-panel {
    position: absolute; top: 0; right: 0; height: 100%; width: min(82vw, 340px);
    background: var(--blue-deep); color: #fdf6e3; border-left: 3px solid var(--gold);
    padding: 26px 24px; transform: translateX(100%); transition: transform .28s ease;
    display: flex; flex-direction: column; gap: 6px;
  }
  .drawer[data-open="true"] .drawer-panel { transform: none; }
  .drawer-panel a { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: 16px; text-decoration: none; color: #f0e6cc; padding: 14px 6px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .drawer-panel .btn { margin-top: 18px; justify-content: center; }
  .drawer-close { align-self: flex-end; background: none; border: 0; color: var(--gold-bright); font-size: 30px; line-height: 1; cursor: pointer; margin-bottom: 8px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .btn { padding: 13px 20px; }
}

/* ---------- social links ---------- */
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(231,183,64,.5); color: var(--gold-bright);
  display: grid; place-items: center; text-decoration: none;
  transition: background .15s, border-color .15s, transform .12s;
}
.footer a.social-link:hover { background: rgba(231,183,64,.14); border-color: var(--gold-bright); transform: translateY(-2px); text-decoration: none; }
.social-link svg { width: 20px; height: 20px; }
.social-link .glyph { font-family: var(--font-display); font-size: 22px; line-height: 1; }
