:root {
  --bg: #1a0f07;
  --ink: #2c1a0e;
  --ink-deep: #3b200d;
  --body: #5a3e28;
  --cream: rgba(255, 252, 247, 0.92);
  --cream-solid: #fffaf7;
  --white: #ffffff;
  --gold: #c9a87a;
  --gold-deep: #a67c52;
  --tagline: #d4b896;
  --muted: #c4a882;
  --line: rgba(201, 168, 122, 0.25);
  --line-soft: rgba(201, 168, 122, 0.15);
  --scrim: rgba(26, 15, 7, 0.72);
  --nav-panel: rgba(26, 15, 7, 0.94);
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  --logo-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Raleway", sans-serif;
  --focus: #f3e6d4;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/thebrewbackground.jpg") center/cover no-repeat fixed;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

#site-header,
#site-footer,
.site-footer,
main { width: 100%; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 30;
  background: var(--cream-solid);
  color: var(--ink-deep);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  width: 100%;
  padding: 14px 20px 10px;
}

.brand { display: flex; align-items: center; }

.brand img {
  height: 64px;
  width: auto;
  max-width: 46vw;
  object-fit: contain;
  display: block;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--tagline);
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.nav a {
  color: var(--tagline);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border-radius: 8px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav a[aria-current="page"] { color: var(--white); }

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 12px;
}

.hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 20px 10px;
}

.hero-logo {
  height: 200px;
  width: auto;
  max-width: min(500px, 90vw);
  object-fit: contain;
  filter: drop-shadow(var(--logo-shadow));
  animation: fadeUp 1s ease-out both;
}

.tagline {
  margin-top: 18px;
  font-weight: 300;
  font-size: 1.2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--tagline);
  text-align: center;
  animation: fadeUp 1s 0.25s ease-out both;
}

.tagline-sub {
  margin-top: 10px;
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  font-weight: 400;
  text-transform: none;
}

.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 36px auto;
}

.card {
  background: var(--cream);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 680px;
  width: 90%;
  padding: 40px 36px;
  margin: 0 auto 8px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: fadeUp 1s 0.5s ease-out both;
}

.card-wide { max-width: 760px; text-align: left; }
.page-card { margin-top: 28px; }

.card h1,
.card h2,
.schedule-heading,
.find-us h2 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink-deep);
  margin-bottom: 14px;
}

.card h1 { font-size: 1.8rem; }

.card h2,
.schedule-heading,
.find-us h2 { font-size: 1.5rem; }

.card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink-deep);
  margin: 1.2rem 0 0.4rem;
}

.card p,
.find-us p,
.prose li {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--body);
}

.prose h2 { margin-top: 1.5rem; }
.prose h2:first-child { margin-top: 0; }

.prose p + p,
.prose ul + p,
.prose p + ul { margin-top: 0.8rem; }

.prose ul { padding-left: 1.2rem; margin-top: 0.4rem; }
.prose li + li { margin-top: 0.35rem; }

.card a,
.prose a {
  color: var(--ink-deep);
  font-weight: 600;
}

.schedule-section,
.find-us {
  text-align: center;
  width: 90%;
  max-width: 680px;
  margin-bottom: 8px;
}

.schedule-heading,
.find-us h2 {
  color: var(--tagline);
  letter-spacing: 1px;
}

.schedule-heading a { color: inherit; text-decoration: none; }
.schedule-heading a:hover { text-decoration: underline; text-underline-offset: 4px; }

.find-us p { color: var(--muted); }

.schedule-img-wrap {
  background: var(--cream);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: inline-block;
  max-width: 100%;
}

.schedule-img {
  width: 100%;
  max-width: 526px;
  height: auto;
  border-radius: 10px;
  display: block;
}

.hours {
  list-style: none;
  padding: 0;
  margin: 8px 0 20px;
  text-align: left;
}

.hours li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  line-height: 1.5;
}

.hours li:last-child { border-bottom: 0; }

.hours strong { color: var(--ink-deep); }

.location-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 28px;
  min-height: 44px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.location-badge:hover { background: var(--tagline); }

.gap { height: 48px; width: 100%; }

.site-footer {
  text-align: center;
  padding: 28px 20px 36px;
  margin-top: auto;
  color: var(--tagline);
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

.site-footer a { color: var(--gold); }

.footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 6px;
}

.footer-legal a { text-underline-offset: 3px; }

.footer-social { margin-top: 8px; }

.todo {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px dashed var(--gold-deep);
  border-radius: 10px;
  text-align: left;
  font-size: 0.95rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#gate { display: none; }

html.locked #gate {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 40;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--scrim);
}

html.locked .page { display: none; }

.gate-card {
  background: var(--cream-solid);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: min(420px, 100%);
  padding: 32px 28px;
  text-align: center;
  color: var(--body);
}

.gate-kicker {
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold-deep);
}

.gate-title {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--ink-deep);
  margin: 6px 0 10px;
}

.gate-card label {
  display: block;
  margin: 16px 0 6px;
  text-align: left;
  font-weight: 600;
  color: var(--ink-deep);
}

.gate-card input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--gold-deep);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.gate-card button {
  margin-top: 14px;
  min-height: 44px;
  padding: 10px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

#gate-status {
  min-height: 1.4em;
  margin-top: 12px;
  color: var(--ink-deep);
  font-weight: 600;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--nav-panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
  }

  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; }

  .hero { padding: 24px 16px 8px; }
  .hero-logo { height: 120px; }
  .tagline { font-size: 1rem; letter-spacing: 2px; }
  .card { padding: 28px 22px; }
  .card h1 { font-size: 1.45rem; }
  .card h2, .schedule-heading, .find-us h2 { font-size: 1.3rem; }
  body::before { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  body::before { background-attachment: scroll; }
}
