/* BeerDaily.com site.css */
/* Dark amber editorial theme — no white-on-white, mobile friendly, high contrast */

:root {
  --ink: #130b06;
  --black: #090604;
  --charcoal: #17100b;
  --deep-brown: #241309;
  --brown: #3a2112;
  --amber: #d88a21;
  --gold: #f3bd55;
  --cream: #fff2d2;
  --paper: #f6dfad;
  --muted: #d8bf8a;
  --green: #6f8f34;
  --red: #9f3828;
  --line: rgba(243, 189, 85, 0.28);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(216, 138, 33, 0.22), transparent 32rem),
    radial-gradient(circle at 80% 15%, rgba(111, 143, 52, 0.13), transparent 30rem),
    linear-gradient(180deg, #100905 0%, #1c1008 38%, #090604 100%);
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

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

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover,
a:focus {
  color: #ffffff;
  text-decoration: underline;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

/* Layout */

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 44px 0;
}

.section-title {
  margin: 0 0 14px;
  color: #fff7df;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-lede {
  max-width: 830px;
  margin: 0 0 28px;
  color: #f4dfb5;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--gold);
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 6, 4, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 28px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff5dc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 40% 35%, #ffe2a0 0 12%, transparent 13%),
    linear-gradient(135deg, #78400f, #d88a21);
  color: #120904;
  border: 1px solid rgba(255, 226, 160, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(216, 138, 33, 0.13);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 242, 210, 0.08);
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  width: 26px;
  height: 3px;
  display: block;
  position: relative;
  background: var(--cream);
  border-radius: 99px;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-label span::before {
  top: -8px;
}

.nav-toggle-label span::after {
  top: 8px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: inline-flex;
  padding: 10px 12px;
  color: #f8e6bf;
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a.active {
  background: rgba(243, 189, 85, 0.17);
  color: #ffffff;
}

/* Hero */

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 6, 4, 0.92) 0%, rgba(9, 6, 4, 0.64) 42%, rgba(9, 6, 4, 0.25) 100%),
    var(--hero-image, url("images/beerdaily-hero-true-history-of-beer.jpg")) center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 46%;
  background: linear-gradient(0deg, rgba(9, 6, 4, 1), transparent);
}

.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 130px 0 82px;
}

.hero-card {
  max-width: 820px;
  padding: clamp(26px, 5vw, 52px);
  background:
    linear-gradient(135deg, rgba(28, 16, 8, 0.92), rgba(58, 33, 18, 0.72));
  border: 1px solid rgba(243, 189, 85, 0.34);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 14px 0 18px;
  color: #fff9e8;
  font-size: clamp(3rem, 9vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: #f5dfb0;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 226, 160, 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #150b05;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(216, 138, 33, 0.24);
}

.btn:hover,
.btn:focus {
  color: #000000;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.secondary {
  background: rgba(255, 242, 210, 0.08);
  color: #ffe8b4;
  box-shadow: none;
}

.btn.secondary:hover,
.btn.secondary:focus {
  background: rgba(255, 242, 210, 0.15);
  color: #ffffff;
}

/* Cards and grids */

.grid {
  display: grid;
  gap: 24px;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 242, 210, 0.08), rgba(255, 242, 210, 0.035)),
    #160c06;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #241309;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.card:hover .card-media img {
  transform: scale(1.045);
}

.card-body {
  padding: 22px;
}

.card h2,
.card h3 {
  margin: 0 0 10px;
  color: #fff6df;
  line-height: 1.08;
}

.card h2 {
  font-size: clamp(1.6rem, 3vw, 2.45rem);
}

.card h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.card p {
  margin: 0;
  color: #dcc494;
}

.card-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Feature panels */

.feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
  padding: clamp(22px, 5vw, 44px);
  background:
    radial-gradient(circle at 10% 0%, rgba(243, 189, 85, 0.14), transparent 24rem),
    linear-gradient(135deg, rgba(255, 242, 210, 0.08), rgba(255, 242, 210, 0.03));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
}

.feature.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.feature-image {
  overflow: hidden;
  border: 1px solid rgba(243, 189, 85, 0.32);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.feature-copy h2 {
  margin: 8px 0 16px;
  color: #fff7df;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.feature-copy p {
  margin: 0 0 16px;
  color: #f2dcb2;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.badge {
  display: inline-flex;
  padding: 8px 11px;
  background: rgba(243, 189, 85, 0.12);
  color: #ffe6ad;
  border: 1px solid rgba(243, 189, 85, 0.27);
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Timeline */

.timeline {
  position: relative;
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--gold), rgba(243, 189, 85, 0.05));
}

.timeline-item {
  position: relative;
  padding: 20px 20px 20px 58px;
  background: rgba(255, 242, 210, 0.06);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 24px;
  width: 20px;
  height: 20px;
  background: var(--gold);
  border: 4px solid var(--black);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(243, 189, 85, 0.42);
}

.timeline-date {
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin: 6px 0 8px;
  color: #fff6df;
}

.timeline-item p {
  margin: 0;
  color: #dec696;
}

/* Page hero */

.page-hero {
  padding: 90px 0 48px;
  background:
    radial-gradient(circle at 50% 0%, rgba(243, 189, 85, 0.18), transparent 34rem),
    linear-gradient(180deg, rgba(36, 19, 9, 0.95), rgba(9, 6, 4, 0));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 1000px;
  margin: 10px 0 18px;
  color: #fff7df;
  font-size: clamp(2.7rem, 8vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #efd7a9;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

/* Article */

.article {
  width: min(850px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
}

.article h2 {
  margin: 44px 0 12px;
  color: #fff7df;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.article h3 {
  margin: 34px 0 10px;
  color: var(--gold);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.article p,
.article li {
  color: #f1dbaf;
}

.article p {
  margin: 0 0 20px;
}

.article ul,
.article ol {
  padding-left: 1.25em;
}

.article blockquote {
  margin: 34px 0;
  padding: 24px;
  background: rgba(243, 189, 85, 0.1);
  border-left: 5px solid var(--gold);
  border-radius: 0 18px 18px 0;
  color: #fff2d2;
  font-size: 1.2rem;
}

.article img {
  margin: 30px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Image gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery a,
.gallery figure {
  margin: 0;
  overflow: hidden;
  background: #1c1008;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
}

/* Callout */

.callout {
  padding: clamp(24px, 5vw, 46px);
  background:
    linear-gradient(135deg, rgba(216, 138, 33, 0.22), rgba(111, 143, 52, 0.12)),
    #160c06;
  border: 1px solid rgba(243, 189, 85, 0.35);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
}

.callout h2 {
  margin: 0 0 12px;
  color: #fff7df;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
}

.callout p {
  max-width: 800px;
  margin: 0;
  color: #f5dfb0;
}

/* Forms */

.form {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

label {
  color: #ffe4ad;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 242, 210, 0.08);
  color: #fff7df;
  border: 1px solid rgba(243, 189, 85, 0.34);
  border-radius: 14px;
  font: inherit;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(243, 189, 85, 0.28);
  border-color: var(--gold);
}

/* Tables */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: rgba(255, 242, 210, 0.05);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: rgba(243, 189, 85, 0.14);
  color: #fff0c5;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

td {
  color: #ecd3a2;
}

/* Footer */

.site-footer {
  background:
    radial-gradient(circle at 20% 0%, rgba(216, 138, 33, 0.18), transparent 28rem),
    #090604;
  color: #f7ead2;
  border-top: 1px solid rgba(255, 196, 92, 0.35);
  padding: 44px 20px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  align-items: center;
}

.footer-logo-link {
  display: inline-flex;
  width: fit-content;
}

.footer-logo {
  max-width: 190px;
  height: auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px;
}

.footer-copy {
  color: #f7ead2;
  font-size: 0.98rem;
  line-height: 1.6;
}

.footer-copy strong {
  color: #ffffff;
}

.site-footer a {
  color: #ffd27a;
  font-weight: 800;
}

.footer-note {
  grid-column: 1 / -1;
  max-width: 820px;
  margin: 8px 0 0;
  color: #d8c29b;
  font-size: 0.92rem;
}

.footer-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 196, 92, 0.2);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
}

/* Utilities */

.text-center {
  text-align: center;
}

.text-center .section-lede,
.text-center .callout p {
  margin-left: auto;
  margin-right: auto;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 12px; }
.mb-2 { margin-bottom: 24px; }
.mb-3 { margin-bottom: 36px; }

.paper-panel {
  background:
    linear-gradient(180deg, rgba(255, 242, 210, 0.92), rgba(246, 223, 173, 0.92));
  color: #261307;
  border: 1px solid rgba(75, 41, 15, 0.32);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.paper-panel h2,
.paper-panel h3 {
  color: #1b0d05;
}

.paper-panel p,
.paper-panel li {
  color: #3d220f;
}

.dark-panel {
  background: rgba(9, 6, 4, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
}

/* Responsive */

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

  .feature,
  .feature.reverse {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo-link {
    margin: 0 auto;
  }

  .footer-note,
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .nav-wrap {
    min-height: 68px;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    background: rgba(9, 6, 4, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav-menu a {
    width: 100%;
    justify-content: center;
    padding: 13px 12px;
    border-radius: 12px;
  }

  .nav-toggle:checked ~ .nav-menu {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    width: min(100% - 28px, var(--max));
    padding: 96px 0 52px;
  }

  .hero-card {
    padding: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 52px 0;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .gallery {
    grid-template-columns: 1fr;
  }

  .container,
  .article {
    width: min(100% - 28px, var(--max));
  }

  .page-hero {
    padding: 70px 0 38px;
  }

  .card-body {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 1.18rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero h1,
  .page-hero h1 {
    letter-spacing: -0.05em;
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

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