:root {
  color-scheme: dark;
  --ink: #0d0b08;
  --charcoal: #17130f;
  --panel: #241b14;
  --cream: #f8edd5;
  --muted: #c9b991;
  --gold: #c99b3c;
  --red: #8b1f1b;
  --green: #5d6f3f;
  --line: rgba(248, 237, 213, 0.2);
  --shadow: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(139, 31, 27, 0.18), transparent 32rem),
    linear-gradient(180deg, #0d0b08 0%, #17130f 42%, #0d0b08 100%);
  color: var(--cream);
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(13, 11, 8, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header.compact {
  position: relative;
}

.brand,
nav,
.hero-actions,
.festival-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand {
  min-width: 0;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  flex: 0 0 auto;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 0.9rem;
}

nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

nav a:hover,
.text-link:hover,
.contact a:hover {
  color: var(--cream);
}

.hero {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 11, 8, 0.78), rgba(13, 11, 8, 0.42) 45%, rgba(13, 11, 8, 0.06)),
    linear-gradient(0deg, rgba(13, 11, 8, 0.92) 0%, rgba(13, 11, 8, 0) 34%);
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(46rem, 100%);
  padding: clamp(2rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem);
}

.hero-logo {
  display: block;
  width: clamp(7rem, 18vw, 12rem);
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, 0.62));
}

.eyebrow,
.style {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: clamp(3.4rem, 9vw, 7.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  font-size: 1.55rem;
}

.lede {
  max-width: 42rem;
  color: #eadbbd;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: 0.35rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: var(--ink);
}

.button.secondary {
  color: var(--cream);
}

.festival-strip,
.section {
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem);
}

.festival-strip {
  display: grid;
  grid-template-columns: minmax(14rem, 0.8fr) minmax(16rem, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(90deg, rgba(36, 27, 20, 0.96), rgba(93, 111, 63, 0.36));
  border-bottom: 1px solid var(--line);
}

.festival-strip h2,
.festival-strip p {
  margin-bottom: 0;
}

.text-link,
.contact a {
  color: var(--gold);
  font-weight: 800;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.about {
  background: linear-gradient(180deg, rgba(13, 11, 8, 0.94), rgba(36, 27, 20, 0.58));
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 0.72fr) minmax(18rem, 1fr) minmax(12rem, 0.72fr);
  gap: 1rem;
  align-items: end;
}

.about-story {
  align-self: center;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(36, 27, 20, 0.72);
  box-shadow: 0 1rem 3rem var(--shadow);
}

.about-story p {
  color: var(--muted);
}

.about-story p:last-child {
  margin-bottom: 0;
}

.brewer-card {
  margin: 0;
}

.brewer-card img {
  display: block;
  width: 100%;
  height: clamp(20rem, 28vw, 31rem);
  object-fit: contain;
  filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, 0.48));
}

.brewer-card.trimmed img {
  transform: scale(1.12);
  transform-origin: bottom center;
}

.brewer-card figcaption {
  margin-top: 0.6rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.beer-grid,
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-beer {
  display: grid;
  grid-template-columns: minmax(16rem, 0.78fr) minmax(18rem, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.feature-beer img,
.pour-label,
.festival-logo {
  display: block;
  width: 100%;
}

.feature-beer img {
  aspect-ratio: 1;
  object-fit: contain;
  background: #080706;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: 0 1rem 3rem var(--shadow);
}

.beer-card,
.archive-card,
.quiet-panel,
.pour-card {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(36, 27, 20, 0.72);
  box-shadow: 0 1rem 3rem var(--shadow);
}

.beer-card,
.archive-card {
  min-height: 16rem;
  padding: 1.35rem;
}

.archive-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 1rem;
  background: #080706;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
}

.archive-card.featured {
  border-color: rgba(201, 155, 60, 0.72);
  background: linear-gradient(135deg, rgba(36, 27, 20, 0.92), rgba(93, 111, 63, 0.24));
}

.beer-card p,
.archive-card p,
.quiet-panel,
.festival-hero p,
.pour-card p,
.contact p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(14rem, 0.72fr) minmax(18rem, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}

.quiet-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.check-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--cream);
}

.check-list li {
  padding-left: 1.35rem;
  border-left: 3px solid var(--green);
}

.contact {
  background: #100e0b;
  border-top: 1px solid var(--line);
}

.merch {
  background: linear-gradient(180deg, rgba(139, 31, 27, 0.08), rgba(13, 11, 8, 0.92));
  border-top: 1px solid var(--line);
}

.shirt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.shirt-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(36, 27, 20, 0.72);
  box-shadow: 0 1rem 3rem var(--shadow);
}

.shirt-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #080706;
}

.product-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.shirt-card img.product-mockup {
  object-fit: contain;
  object-position: center top;
}

.shirt-card .logo-product {
  padding: 1.4rem;
}

.shirt-card .style {
  display: block;
  padding: 0.85rem 0.85rem 0;
}

.shirt-card h3,
.shirt-card p {
  padding: 0 0.85rem;
}

.shirt-card h3 {
  margin-top: 0.75rem;
  font-size: 1.22rem;
}

.shirt-card p {
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.product-price {
  display: block;
  padding: 0 0.85rem 0.4rem;
  color: var(--cream);
  font-weight: 800;
}

.shop-link {
  display: inline-flex;
  margin: 0 0.85rem 0.9rem;
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.shop-link:hover {
  color: var(--cream);
}

.festival-page {
  background:
    radial-gradient(circle at top right, rgba(201, 155, 60, 0.16), transparent 26rem),
    linear-gradient(180deg, #0d0b08, #1b1510 52%, #0d0b08);
}

.festival-hero {
  padding: clamp(2rem, 8vw, 5.5rem) clamp(1rem, 5vw, 4rem) 1rem;
}

.festival-logo {
  width: min(9rem, 42vw);
  margin-bottom: 1.5rem;
}

.festival-hero h1 {
  max-width: 10ch;
}

.festival-hero p {
  max-width: 42rem;
  font-size: 1.15rem;
}

.pour-list {
  display: grid;
  gap: 1rem;
  padding: 1rem clamp(1rem, 5vw, 4rem) 2rem;
}

.pour-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 1.6rem);
}

.pour-card.featured {
  grid-template-columns: minmax(13rem, 0.45fr) minmax(16rem, 1fr);
  align-items: center;
  border-color: rgba(201, 155, 60, 0.72);
  background: linear-gradient(135deg, rgba(36, 27, 20, 0.92), rgba(93, 111, 63, 0.3));
}

.pour-label {
  grid-row: span 3;
  aspect-ratio: 1;
  object-fit: contain;
  background: #080706;
  border-radius: 0.45rem;
  box-shadow: 0 1rem 3rem var(--shadow);
}

.pour-card h2,
.pour-card p {
  margin-bottom: 0;
}

dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.beer-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

dt {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0.15rem 0 0;
  color: var(--cream);
}

.festival-actions {
  flex-wrap: wrap;
  padding: 0 clamp(1rem, 5vw, 4rem) 4rem;
}

.merch-note {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .shirt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header,
  .festival-strip,
  .split {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 44rem;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(13, 11, 8, 0.02), rgba(13, 11, 8, 0.74) 55%, rgba(13, 11, 8, 0.94)),
      linear-gradient(90deg, rgba(13, 11, 8, 0.36), rgba(13, 11, 8, 0.05));
  }

  .hero-art {
    object-position: 58% center;
  }

  .hero-copy {
    padding-top: 16rem;
  }

  .hero-actions,
  .festival-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .beer-grid,
  .archive-grid,
  .about-grid,
  .feature-beer,
  .shirt-grid,
  .pour-card.featured,
  dl {
    grid-template-columns: 1fr;
  }

  .pour-label {
    grid-row: auto;
  }

  .brewer-card img {
    height: auto;
    max-height: 28rem;
  }

  .brewer-card.trimmed img {
    transform: none;
  }
}
