:root {
  --paper: #e9d8b8;
  --paper-dark: #d4bd94;
  --ink: #17120d;
  --gold: #a77725;
  --gold-soft: #d7b064;
  --night: #111015;
  --panel: rgba(245, 231, 201, 0.64);
  --line: rgba(23, 18, 13, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Albert Sans", sans-serif;
  background: linear-gradient(165deg, #e9d7b3 0%, #d7bb8a 50%, #bf9f6b 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  padding-top: var(--header-offset, 86px);
}

.grain,
.aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grain {
  background-image: radial-gradient(rgba(23, 18, 13, 0.24) 0.35px, transparent 0.35px);
  background-size: 3px 3px;
  opacity: 0.18;
  z-index: 1;
}

.aura {
  background: radial-gradient(circle at 15% 15%, rgba(255, 242, 212, 0.9), transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(86, 55, 12, 0.28), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(17, 16, 21, 0.26), transparent 44%);
  z-index: 0;
}

.site-header,
main,
footer {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.floating-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  width: min(1160px, calc(100% - 2rem));
  margin: 0.65rem auto 0;
  transition: transform 0.28s ease;
}

.floating-header.is-compact {
  transform: translateY(-2px);
}

.floating-header img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(245, 231, 201, 0.32);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 22px rgba(40, 24, 6, 0.18);
}

@media (min-width: 1024px) {
  .site-header,
  main,
  footer {
    width: min(1020px, calc(100% - 2rem));
  }

  .floating-header {
    width: min(1020px, calc(100% - 2rem));
  }

  .floating-header img {
    max-height: 128px;
    object-fit: contain;
  }

  .hero-copy {
    padding: 1.9rem 2.1rem;
  }

  .panel {
    padding: 1.3rem 1.45rem;
  }

  .beer-grid {
    gap: 0.8rem;
  }

  .beer-card {
    padding: 1rem;
  }
}

.hero {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
}

.hero-copy,
.panel,
.beer-card {
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--panel);
  backdrop-filter: blur(4px);
}

.hero-copy,
.panel,
.beer-card,
.footer-contact-card {
  position: relative;
  overflow: hidden;
}

.hero-copy::before,
.panel::before,
.beer-card::before,
.footer-contact-card::before,
.hero-copy::after,
.panel::after,
.beer-card::after,
.footer-contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: repeat-y;
  z-index: 1;
}

.hero-copy::before,
.panel::before,
.beer-card::before,
.footer-contact-card::before {
  opacity: 0.36;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 12px, transparent 14.4px),
    radial-gradient(circle, rgba(255, 255, 255, 0.62) 0 11.4px, transparent 13.8px),
    radial-gradient(circle, rgba(255, 255, 255, 0.52) 0 9.6px, transparent 12.2px);
  background-size: 162px 225px, 192px 255px, 174px 243px;
  background-position: 10% 104%, 45% 109%, 80% 106%;
  animation: bubbleRise 7s linear infinite;
}

.hero-copy::after,
.panel::after,
.beer-card::after,
.footer-contact-card::after {
  opacity: 0.26;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.44) 0 8.4px, transparent 11px),
    radial-gradient(circle, rgba(255, 255, 255, 0.38) 0 7.6px, transparent 10.2px);
  background-size: 176px 252px, 204px 264px;
  background-position: 24% 113%, 70% 107%;
  animation: bubbleRise 10s linear infinite;
}

.hero-copy > *,
.panel > *,
.beer-card > *,
.footer-contact-card > * {
  position: relative;
  z-index: 2;
}

.hero-copy {
  padding: clamp(1.2rem, 4vw, 2.8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(245, 231, 201, 0.6);
  animation: reveal 0.8s ease both;
}

.hero-copy-center {
  text-align: center;
  align-items: center;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.86;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Alegreya", serif;
  line-height: 1.05;
}

h1 {
  margin-top: 0.7rem;
  font-size: clamp(2rem, 6vw, 4.3rem);
  max-width: 16ch;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-subtitle {
  margin: 0.25rem 0 0;
  font-size: clamp(1.08rem, 2.6vw, 1.55rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero-copy p {
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 62ch;
}

.hero-cta {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.74rem 1.2rem;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  color: #fffdf5;
  background: linear-gradient(100deg, #8a6118, #c08a2d 58%, #9a6f20);
  box-shadow: 0 14px 28px rgba(82, 52, 8, 0.25);
}

.btn-ghost {
  color: var(--night);
  border-color: var(--line);
  background: rgba(255, 247, 224, 0.55);
}

main {
  padding-top: 1rem;
}

.panel {
  margin-top: 1rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  animation: reveal 0.8s ease both;
}

.panel h2,
.range h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-top: 0.5rem;
}

.panel p {
  line-height: 1.75;
  max-width: 73ch;
}

.range {
  margin-top: 1rem;
}

.range-head {
  padding: 0.2rem 0.1rem;
}

.beer-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.beer-card {
  padding: 1.2rem;
  transition: transform 0.22s ease, border-color 0.22s ease;
  animation: reveal 0.9s ease both;
}

.beer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 119, 37, 0.7);
}

.beer-type {
  margin: 0;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.2rem 0.56rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.beer-card h3 {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.beer-card p {
  margin-top: 0.55rem;
  line-height: 1.7;
}

.beer-photo {
  width: 100%;
  margin-top: 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(23, 18, 13, 0.18);
  box-shadow: 0 10px 24px rgba(31, 22, 8, 0.2);
  object-fit: cover;
  max-height: 280px;
}

.beer-card ul {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.65;
}

.beer-card span {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
  color: #5f3e06;
}

.pils {
  background: linear-gradient(145deg, rgba(244, 228, 188, 0.8), rgba(227, 201, 141, 0.6));
}

.aipa {
  background: linear-gradient(145deg, rgba(250, 237, 206, 0.8), rgba(216, 186, 121, 0.62));
}

.partner {
  background: linear-gradient(130deg, rgba(22, 18, 13, 0.85), rgba(61, 43, 11, 0.8));
  color: #f9efd8;
}

.partner .eyebrow {
  opacity: 0.95;
}

.partner p {
  max-width: 65ch;
}

.partner .btn-gold {
  margin-top: 0.4rem;
}

.contact {
  margin-bottom: 1rem;
}

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-contact-card {
  width: 100%;
  display: grid;
  gap: 0.28rem;
  margin-bottom: 0.45rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(248, 236, 209, 0.66);
  box-shadow: 0 8px 18px rgba(56, 33, 8, 0.12);
}

.footer-contact-title {
  margin: 0 0 0.22rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.82;
}

.footer-contact-card p {
  margin: 0;
  font-size: 0.93rem;
  letter-spacing: normal;
  font-weight: 600;
}

.footer-contact-card a {
  color: var(--night);
  text-decoration: none;
  border-bottom: 1px dashed rgba(23, 18, 13, 0.45);
}

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

@keyframes float-in {
  from {
    transform: translateY(20px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes bubbleRise {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-132px);
  }
}

@media (max-width: 950px) {
  .beer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  footer {
    width: min(1160px, calc(100% - 1rem));
  }

  .floating-header {
    width: min(1160px, calc(100% - 1rem));
    margin-top: 0.5rem;
  }

  .hero-copy,
  .panel,
  .beer-card {
    border-radius: 0.9rem;
  }
}
