:root {
  color-scheme: dark;
  --ink: #f4efe6;
  --muted: #b8aea2;
  --night: #0e0e0d;
  --panel: #171614;
  --panel-2: #211d1b;
  --wine: #7f263d;
  --wine-bright: #a63b58;
  --gold: #c6a66b;
  --line: rgba(244, 239, 230, 0.14);
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 0%, rgba(127, 38, 61, 0.2), transparent 30rem),
    linear-gradient(180deg, #12110f 0%, var(--night) 32rem);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 14, 13, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner,
.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(198, 166, 107, 0.6);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.07em;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.brand-copy span,
.header-count {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.header-count {
  text-align: right;
}

.shell {
  padding: 64px 0 72px;
}

.catalog-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.intro-copy {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.catalog-stat {
  min-width: 150px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  text-align: right;
}

.catalog-stat strong,
.catalog-stat span {
  display: block;
}

.catalog-stat strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.catalog-stat span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 370px));
  gap: 24px;
}

.name-story {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  margin-top: 56px;
  padding: clamp(30px, 5vw, 52px);
  overflow: hidden;
  border: 1px solid rgba(198, 166, 107, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 8% 10%, rgba(127, 38, 61, 0.34), transparent 22rem),
    linear-gradient(135deg, #211a1a, #151412 68%);
  box-shadow: var(--shadow);
}

.name-story-mark {
  display: grid;
  align-content: center;
  min-height: 210px;
  padding-right: clamp(22px, 4vw, 48px);
  border-right: 1px solid rgba(198, 166, 107, 0.3);
}

.name-story-mark strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(70px, 10vw, 116px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.86;
}

.name-story-mark span {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.name-story-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.04;
}

.name-story-copy > p:not(.eyebrow) {
  max-width: 720px;
  color: #d5cec5;
  font-size: 17px;
}

.name-story-copy > p:last-of-type {
  margin-bottom: 0;
  color: var(--ink);
}

.name-story-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
}

.name-story-sources a {
  color: var(--gold);
  font-size: 13px;
  text-underline-offset: 4px;
}

.wine-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.wine-card-link {
  display: block;
  text-decoration: none;
}

.wine-card-image {
  position: relative;
  aspect-ratio: 4 / 4.2;
  overflow: hidden;
  background: #e9e5db;
}

.wine-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transition: transform 240ms ease;
}

.wine-card-link:hover .wine-card-image img,
.wine-card-link:focus-visible .wine-card-image img {
  transform: scale(1.025);
}

.card-number {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(14, 14, 13, 0.78);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.wine-card-body {
  padding: 22px;
}

.status-row,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-row {
  margin-bottom: 15px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d8d0c7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pill.wine {
  border-color: rgba(166, 59, 88, 0.7);
  background: rgba(127, 38, 61, 0.22);
  color: #efbdca;
}

.pill.gold {
  border-color: rgba(198, 166, 107, 0.45);
  color: #ddc798;
}

.wine-card h2 {
  margin-bottom: 7px;
  font-size: 28px;
  line-height: 1.1;
}

.wine-card p {
  margin-bottom: 19px;
  color: var(--muted);
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  font-weight: 650;
}

.card-action::after {
  content: "→";
  font-size: 20px;
  transition: transform 180ms ease;
}

.wine-card-link:hover .card-action::after,
.wine-card-link:focus-visible .card-action::after {
  transform: translateX(4px);
}

.breadcrumb {
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  text-underline-offset: 4px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
}

.gallery-main {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e9e5db;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.thumb {
  appearance: none;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ddd7cd;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb[aria-pressed="true"] {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.detail-copy {
  padding-top: 8px;
}

.detail-copy h1 {
  max-width: 760px;
  font-size: clamp(42px, 6.5vw, 78px);
}

.wine-subtitle {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 19px;
}

.badge-row {
  margin-bottom: 34px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.spec {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.spec:nth-child(odd) {
  padding-right: 20px;
}

.spec:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.spec dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.spec dd {
  margin: 0;
  font-weight: 650;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.info-panel,
.critic-panel,
.source-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

.info-panel {
  padding: 28px;
}

.info-panel h2,
.critic-panel h2,
.source-panel h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.cellar-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cellar-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.cellar-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cellar-list span {
  color: var(--muted);
}

.cellar-list strong {
  text-align: right;
}

.decision {
  border-color: rgba(166, 59, 88, 0.42);
  background:
    radial-gradient(circle at 100% 0%, rgba(166, 59, 88, 0.25), transparent 17rem),
    var(--panel-2);
}

.decision-state {
  margin-bottom: 10px;
  color: #efbdca;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
}

.decision p:last-child,
.critic-panel p:last-child,
.source-panel p:last-child {
  margin-bottom: 0;
}

.wide-sections {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.critic-panel,
.source-panel {
  padding: clamp(26px, 5vw, 44px);
}

.critic-lead {
  margin-bottom: 14px;
  color: var(--gold);
  font-weight: 750;
}

.critic-note {
  max-width: 820px;
  color: var(--muted);
}

.source-links {
  display: grid;
  gap: 12px;
}

.source-links a {
  width: fit-content;
  color: #dec997;
  text-underline-offset: 4px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 25px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

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

@media (max-width: 820px) {
  .shell {
    padding-top: 42px;
  }

  .catalog-intro,
  .detail-hero,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .catalog-intro {
    align-items: start;
    flex-direction: column;
  }

  .catalog-stat {
    width: 100%;
    text-align: left;
  }

  .detail-hero {
    display: grid;
  }

  .detail-copy {
    padding-top: 0;
  }

  .name-story {
    grid-template-columns: 1fr;
  }

  .name-story-mark {
    min-height: auto;
    padding: 0 0 26px;
    border-right: 0;
    border-bottom: 1px solid rgba(198, 166, 107, 0.3);
  }
}

@media (max-width: 520px) {
  .header-inner,
  .shell,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-copy span,
  .header-count {
    display: none;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .gallery-main {
    border-radius: 14px;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .spec:nth-child(odd),
  .spec:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .cellar-list li {
    display: grid;
    gap: 2px;
  }

  .cellar-list strong {
    text-align: left;
  }

  .footer-inner {
    display: grid;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
