:root {
  --wine: #6b1d2f;
  --wine-dark: #4a1220;
  --cream: #faf6f0;
  --cream-alt: #f1e9dd;
  --ink: #2a2226;
  --muted: #6d6268;
  --card: #ffffff;
  --border: #e4d9ca;
  --red-tag: #8c2a3f;
  --white-tag: #8a7a2b;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --wine: #b0475c;
    --wine-dark: #8c2a3f;
    --cream: #1c1618;
    --cream-alt: #241c1f;
    --ink: #f0e8ea;
    --muted: #b3a6ab;
    --card: #2b2226;
    --border: #3d3237;
    --red-tag: #c95a70;
    --white-tag: #cbb84f;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

a {
  color: var(--wine);
}

.container {
  width: min(1100px, 100% - 32px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--wine);
  text-decoration: none;
}

.nav-list {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--ink);
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--wine);
  text-decoration: underline;
}

/* Hero */
.hero {
  padding: 96px 0;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}

.lead {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 1.15rem;
  opacity: 0.92;
}

.button {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: #fff;
  color: var(--wine-dark);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--cream-alt);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--cream-alt);
}

.section-intro {
  color: var(--muted);
  margin-bottom: 32px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card h3 {
  font-size: 1.25rem;
}

.card p {
  margin: 0 0 12px;
}

.pairing {
  color: var(--muted);
  font-size: 0.95rem;
}

.tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-red {
  color: var(--red-tag);
}

.tag-white {
  color: var(--white-tag);
}

/* Footer */
.site-footer {
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
}

/* Variety pages */
.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--wine);
  text-decoration: underline;
}

.page-hero {
  padding: 48px 0 40px;
  background: var(--cream-alt);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.3em;
}

.page-hero .lead {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  opacity: 1;
}

.breadcrumb {
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.article {
  max-width: 820px;
}

.article .section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.article .section:last-child {
  border-bottom: 0;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 0;
}

.facts div {
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.facts dt {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.flavors {
  padding-left: 20px;
}

.flavors li {
  margin-bottom: 8px;
}

.pair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.pair-grid > div {
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pair-grid h3 {
  font-size: 1.1rem;
}

.pair-grid ul {
  margin: 0;
  padding-left: 20px;
}

.pair-grid .pair-good {
  border-top: 3px solid #4f8a5b;
}

.pair-grid .pair-avoid {
  border-top: 3px solid var(--red-tag);
}

/* Small screens */
@media (max-width: 520px) {
  .header-inner {
    flex-direction: column;
    gap: 8px;
  }

  .hero {
    padding: 64px 0;
  }
}
