:root {
  --ink: #161514;
  --muted: #6c625d;
  --paper: #f7f3ed;
  --ivory: #fffaf2;
  --line: rgba(37, 31, 28, 0.13);
  --wine: #722334;
  --wine-dark: #3a111d;
  --olive: #576647;
  --gold: #c7a76a;
  --graphite: #242321;
  --shadow: 0 24px 70px rgba(18, 14, 12, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.mobile-copy {
  display: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(180deg, rgba(16, 12, 11, 0.74), rgba(16, 12, 11, 0));
}

.site-header.solid {
  background: rgba(20, 19, 18, 0.96);
  box-shadow: 0 16px 44px rgba(13, 10, 8, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.brand-mark path:first-child {
  fill: rgba(255, 250, 242, 0.08);
  stroke: currentColor;
  stroke-width: 2;
}

.brand-mark path:not(:first-child) {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: -2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.nav a {
  padding: 10px 11px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
}

.nav a:hover,
.nav a[aria-current="page"],
.nav-cta {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 150px clamp(18px, 6vw, 84px) 54px;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("assets/hero-wine.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 8, 7, 0.86), rgba(10, 8, 7, 0.56) 42%, rgba(10, 8, 7, 0.18)),
    linear-gradient(0deg, rgba(10, 8, 7, 0.84), rgba(10, 8, 7, 0.12) 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
}

.eyebrow,
.ad-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(4.2rem, 9vw, 9rem);
  line-height: 0.88;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
}

h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.08;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  white-space: nowrap;
}

.button.primary {
  background: var(--gold);
  color: #17120c;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 46px 0 0;
}

.hero-stats div {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-stats dt {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.search-band {
  padding: 0 clamp(18px, 6vw, 84px);
  background: var(--graphite);
}

.search-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  transform: translateY(-32px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #fffaf2;
  box-shadow: var(--shadow);
}

.search-panel label {
  font-weight: 850;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 12px;
}

.advanced-search-row {
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(150px, 1fr));
}

.home-search-row {
  align-items: center;
}

.home-search-row p {
  margin: 0;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 124px;
  padding: 12px 14px;
  resize: vertical;
}

.home-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 36px clamp(18px, 6vw, 84px) 0;
  padding: clamp(22px, 4vw, 42px);
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(58, 17, 29, 0.96), rgba(34, 33, 30, 0.92)),
    radial-gradient(circle at 85% 20%, rgba(199, 167, 106, 0.28), transparent 30%);
  box-shadow: var(--shadow);
}

.home-banner h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.home-banner p:not(.ad-label) {
  max-width: 650px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: clamp(68px, 9vw, 120px) clamp(18px, 6vw, 84px);
}

.subpage-hero {
  padding: 160px clamp(18px, 6vw, 84px) 76px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(22, 21, 20, 0.96), rgba(58, 17, 29, 0.92)),
    radial-gradient(circle at 80% 20%, rgba(199, 167, 106, 0.26), transparent 32%);
}

.subpage-hero h1 {
  max-width: 920px;
  font-size: clamp(3.4rem, 7vw, 7.5rem);
}

.subpage-hero p:not(.eyebrow) {
  max-width: 740px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.15rem;
}

.search-band.standalone {
  padding-top: 34px;
  background: var(--paper);
}

.search-band.standalone .search-panel {
  transform: none;
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 72px);
}

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

.feature-grid article,
.collection-grid article,
.review-card,
.steps li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}

.feature-grid article {
  padding: 22px;
}

.feature-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--wine);
  font-weight: 900;
}

.feature-grid p,
.collection-grid p,
.section-heading p,
.workflow-copy p,
.review-card p,
.steps span {
  color: var(--muted);
}

.collections {
  background: #f4ede2;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.collection-grid article {
  min-height: 210px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(114, 35, 52, 0.06), rgba(255, 250, 242, 0)),
    var(--ivory);
}

.collection-grid span {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.collection-grid strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.08;
}

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

.guide-grid article,
.method-grid article,
.admin-panel,
.admin-nav {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}

.guide-grid article,
.method-grid article,
.admin-panel {
  padding: 24px;
}

.guide-grid span,
.method-grid span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--wine);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-grid h2,
.method-grid h2,
.admin-panel h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
}

.guide-grid p,
.method-grid p {
  color: var(--muted);
}

.guide-grid a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--wine);
  font-weight: 900;
}

.reviews {
  background: #ebe4d8;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 30px;
}

.section-heading p:last-child {
  max-width: 620px;
}

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

[data-page="home"] .review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.library-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid rgba(37, 31, 28, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.7);
}

.library-bar span {
  color: var(--muted);
}

.review-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.card-link {
  display: grid;
  flex: 1;
  grid-template-rows: auto 1fr;
}

.bottle-scene {
  position: relative;
  min-height: 222px;
  background:
    linear-gradient(135deg, rgba(114, 35, 52, 0.16), rgba(87, 102, 71, 0.14)),
    #f7f0e4;
}

.wine-photo {
  position: absolute;
  inset: 34px 16px 20px;
  width: calc(100% - 32px);
  height: calc(100% - 54px);
  object-fit: contain;
  mix-blend-mode: multiply;
}

.bottle {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 74px;
  height: 178px;
  transform: translateX(-50%);
  border-radius: 24px 24px 10px 10px;
  background: linear-gradient(90deg, #171817, #39423b 52%, #111);
  box-shadow: 0 20px 34px rgba(20, 14, 10, 0.24);
}

.bottle::before {
  content: "";
  position: absolute;
  left: 23px;
  top: -52px;
  width: 28px;
  height: 70px;
  border-radius: 12px 12px 3px 3px;
  background: linear-gradient(90deg, #111, #27302b, #080808);
}

.bottle::after {
  content: attr(data-label);
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 40px;
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 7px 5px;
  border: 1px solid rgba(60, 44, 26, 0.2);
  background: #fbf3df;
  color: #2a211d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  line-height: 1.05;
  text-align: center;
}

.bottle-white {
  background: linear-gradient(90deg, #63735b, #aebd82 52%, #34402f);
}

.bottle-sparkling {
  width: 82px;
  border-radius: 30px 30px 12px 12px;
  background: linear-gradient(90deg, #101410, #2f4035 48%, #0a0c09);
}

.photo-note {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.84);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.rating-pill {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.9);
  color: var(--wine-dark);
  font-weight: 900;
}

.review-body {
  display: grid;
  flex: 1;
  grid-template-rows: 22px 4.95rem 5.2rem 10.6rem 3.75rem 3.55rem 1.2rem 1.4rem;
  padding: 18px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  color: var(--wine);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-topline span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-body h3 {
  display: -webkit-box;
  align-self: start;
  margin-top: 6px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.meta {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 0;
  overflow: hidden;
}

.meta span {
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(114, 35, 52, 0.08);
  color: var(--wine-dark);
  font-size: 0.78rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-body > p {
  display: -webkit-box;
  margin: 18px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.taste {
  align-self: end;
  margin-top: 0;
  padding-top: 0;
  color: var(--olive);
  font-weight: 850;
  overflow: hidden;
}

.pairing {
  display: -webkit-box;
  align-self: start;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.read-more {
  display: inline-flex;
  align-self: end;
  margin-top: 0;
  color: var(--wine);
  font-size: 0.86rem;
  font-weight: 900;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 18px 18px;
}

.card-actions button {
  min-height: 38px;
  border: 1px solid rgba(199, 167, 106, 0.72);
  border-radius: var(--radius);
  background: var(--gold);
  color: #17120c;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.card-actions button:hover {
  filter: brightness(0.96);
}

.wine-title .hero-actions button[data-favorite],
.wine-title .hero-actions button[data-compare] {
  border-color: rgba(199, 167, 106, 0.72);
  background: var(--gold);
  color: #17120c;
}

.ad-card {
  margin: 18px;
  margin-top: 0;
  padding: 16px;
  border-radius: var(--radius);
  background: #25221f;
  color: #fff;
}

.load-row {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.ad-card .ad-label {
  margin-bottom: 7px;
  font-size: 0.68rem;
}

.ad-card strong {
  display: block;
  line-height: 1.12;
}

.ad-card p {
  margin: 8px 0 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.ad-card a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: var(--gold);
  color: #17120c;
  font-size: 0.88rem;
  font-weight: 900;
}

.review-break-banner {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 148px;
  padding: clamp(22px, 4vw, 38px);
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(58, 17, 29, 0.98), rgba(36, 35, 33, 0.95)),
    radial-gradient(circle at 82% 20%, rgba(199, 167, 106, 0.26), transparent 34%);
  box-shadow: 0 20px 54px rgba(18, 14, 12, 0.14);
}

.review-break-banner strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
}

.review-break-banner p:not(.ad-label) {
  max-width: 620px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.review-break-banner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--gold);
  color: #17120c;
  font-weight: 900;
  white-space: nowrap;
}

.wine-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  padding: 150px clamp(18px, 6vw, 84px) 72px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(22, 21, 20, 0.98), rgba(58, 17, 29, 0.93)),
    radial-gradient(circle at 20% 30%, rgba(199, 167, 106, 0.2), transparent 32%);
}

.wine-visual {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 250, 242, 0.1), rgba(255, 250, 242, 0.02)),
    rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.wine-visual .bottle {
  width: 118px;
  height: 288px;
  bottom: 98px;
}

.wine-visual .wine-photo {
  inset: 44px 34px 54px;
  width: calc(100% - 68px);
  height: calc(100% - 98px);
  mix-blend-mode: normal;
}

.wine-visual .bottle::before {
  left: 38px;
  top: -86px;
  width: 42px;
  height: 112px;
}

.wine-visual .bottle::after {
  left: 16px;
  right: 16px;
  bottom: 70px;
  min-height: 86px;
  font-size: 1rem;
}

.image-credit {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  text-align: center;
}

.image-credit a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.image-credit-inline {
  display: block;
  align-self: end;
  margin-top: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wine-title h1 {
  max-width: 880px;
  font-size: clamp(3.2rem, 7vw, 7.2rem);
}

.wine-title p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.16rem;
}

.wine-title .meta span {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px, 5vw, 56px);
  padding: clamp(64px, 8vw, 110px) clamp(18px, 6vw, 84px);
}

.detail-main {
  max-width: 860px;
}

.detail-main h2 {
  margin-top: 34px;
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.detail-main p {
  color: var(--muted);
  font-size: 1.06rem;
}

.score-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0;
}

.score-panel div,
.fact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}

.score-panel div {
  padding: 18px;
}

.score-panel strong {
  display: block;
  color: var(--wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
}

.score-panel span {
  color: var(--muted);
  font-size: 0.85rem;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.fact-card {
  padding: 20px;
}

.fact-card h3 {
  margin-bottom: 16px;
}

.fact-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.fact-card dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.fact-card dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fact-card dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.fact-card dd {
  margin: 0;
  font-weight: 850;
}

.fact-card p {
  margin: 0;
  color: var(--muted);
}

.source-note {
  margin-top: 12px !important;
  font-size: 0.9rem;
}

.compact-button {
  margin-top: 16px;
  width: 100%;
}

.detail-ad {
  margin: 0;
}

.taste-meter {
  display: grid;
  gap: 14px;
  margin: 22px 0 34px;
}

.taste-meter div {
  display: grid;
  grid-template-columns: 110px 56px 1fr;
  gap: 12px;
  align-items: center;
}

.taste-meter span,
.taste-meter strong {
  font-weight: 850;
}

.taste-meter i {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(114, 35, 52, 0.12);
  overflow: hidden;
}

.taste-meter i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: var(--wine);
}

.aroma-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aroma-list span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(87, 102, 71, 0.12);
  color: var(--olive);
  font-weight: 850;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
}

.admin-nav {
  position: sticky;
  top: 100px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
}

.admin-nav a {
  padding: 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 850;
}

.admin-nav a:hover {
  background: rgba(114, 35, 52, 0.08);
  color: var(--wine);
}

.admin-panels {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.form-grid input {
  color: var(--ink);
  font-weight: 750;
}

.wide-field {
  grid-column: 1 / -1;
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  margin-bottom: 18px;
}

.upload-box {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 190px;
  padding: 22px;
  border: 1px dashed rgba(114, 35, 52, 0.35);
  border-radius: var(--radius);
  background: rgba(114, 35, 52, 0.05);
  color: var(--muted);
  font-weight: 850;
}

.upload-box span {
  color: var(--wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.upload-box input {
  padding: 12px;
  background: #fff;
}

.upload-box small {
  font-size: 0.85rem;
  font-weight: 700;
}

.upload-preview {
  display: grid;
  place-items: center;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f2eadf;
  color: var(--muted);
  overflow: hidden;
  text-align: center;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fffaf2;
}

.admin-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.admin-panel-head h2 {
  margin: 0;
}

.admin-panel-head .button {
  flex: 0 0 auto;
  min-height: 46px;
}

.review-edit-list {
  display: grid;
  gap: 10px;
}

.review-edit-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
}

.review-edit-list span {
  color: var(--wine);
  font-size: 0.84rem;
  font-weight: 900;
}

.review-edit-list button,
.status-row button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(114, 35, 52, 0.09);
  color: var(--wine);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.status-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.status-row button {
  padding: 14px;
}

.status-row .publish-button {
  background: var(--gold);
  color: #17120c;
}

.publish-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 20px;
}

.publish-options label {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 850;
}

.publish-options input {
  width: auto;
  min-height: auto;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.button.dark {
  border-color: var(--line);
  color: var(--ink);
}

.newsletter-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 24px;
  align-items: end;
}

.newsletter-section p:not(.eyebrow) {
  color: var(--muted);
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.auth-layout {
  display: grid;
  place-items: center;
}

.auth-card {
  display: grid;
  gap: 14px;
  width: min(460px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}

.auth-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 850;
}

.auth-card p {
  color: var(--muted);
}

.login-message {
  min-height: 1.4em;
  margin: 0;
  color: var(--wine);
  font-weight: 850;
}

body[data-page="admin"]:not(.admin-unlocked) main {
  display: none;
}

.saved-list {
  display: grid;
  gap: 12px;
}

.saved-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}

.saved-row span,
.empty-state {
  color: var(--muted);
}

.wide-empty {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}

.saved-row a {
  color: var(--wine);
  font-weight: 900;
}

.compare-table {
  overflow-x: auto;
}

.compare-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--ivory);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare-table th {
  color: var(--wine);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 80px);
  background: var(--graphite);
  color: #fff;
}

.workflow-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.steps {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.steps li::before {
  content: counter(steps, decimal-leading-zero);
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.steps strong,
.steps span {
  display: block;
}

.steps strong,
.steps span {
  grid-column: 2;
}

.steps span {
  color: rgba(255, 255, 255, 0.65);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 6vw, 84px);
  background: #141312;
  color: #fff;
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
}

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.footer-login {
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.76rem;
  font-weight: 700;
}

.footer-login:hover {
  color: var(--gold);
}

@media (max-width: 980px) {
  .site-header {
    background: rgba(20, 19, 18, 0.96);
    box-shadow: 0 12px 34px rgba(13, 10, 8, 0.18);
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: clamp(12px, 4vw, 24px);
    left: clamp(12px, 4vw, 24px);
    max-height: calc(100vh - 96px);
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(20, 19, 18, 0.96);
    box-shadow: 0 20px 54px rgba(13, 10, 8, 0.3);
    overflow-y: auto;
  }

  .nav.open {
    display: grid;
  }

  .nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
  }

  .menu-button {
    display: block;
    flex: 0 0 auto;
  }

  .intro,
  .section-heading,
  .workflow,
  .wine-hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .collection-grid,
  .guide-grid,
  .method-grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-banner {
    grid-template-columns: 1fr;
  }

  .detail-side {
    grid-template-columns: 1fr;
  }

  .review-break-banner {
    grid-template-columns: 1fr;
  }

  .advanced-search-row,
  .newsletter-section,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-nav {
    position: static;
  }
}

@media (max-width: 680px) {
  .desktop-copy {
    display: none;
  }

  .mobile-copy {
    display: inline;
  }

  body {
    font-size: 0.98rem;
  }

  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

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

  .brand {
    gap: 9px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .menu-button {
    width: 44px;
    height: 44px;
  }

  .hero {
    min-height: auto;
    padding: 112px 18px 34px;
    align-items: start;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(10, 8, 7, 0.88), rgba(10, 8, 7, 0.58) 44%, rgba(10, 8, 7, 0.9)),
      linear-gradient(90deg, rgba(10, 8, 7, 0.72), rgba(10, 8, 7, 0.28));
  }

  h1 {
    font-size: 3.35rem;
    line-height: 0.94;
  }

  h2 {
    font-size: 2.15rem;
    line-height: 1.02;
  }

  h3 {
    font-size: 1.28rem;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero-actions,
  .wine-title .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .button,
  .hero-actions .button,
  .hero-actions button,
  .home-banner .button,
  .review-break-banner a,
  .newsletter-form .button,
  .auth-card .button {
    width: 100%;
    min-height: 48px;
    white-space: normal;
    text-align: center;
  }

  .hero-stats,
  .search-row,
  .feature-grid,
  .collection-grid,
  .guide-grid,
  .method-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .library-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-stats {
    gap: 8px;
    margin-top: 28px;
  }

  .hero-stats div {
    padding: 12px 0;
  }

  .hero-stats dt {
    font-size: 1.75rem;
  }

  .hero-stats dd {
    font-size: 0.92rem;
  }

  .search-panel {
    gap: 12px;
    padding: 16px;
    transform: translateY(-18px);
  }

  .search-band {
    padding-inline: 14px;
  }

  .search-band.standalone {
    padding-top: 20px;
  }

  .home-search-row {
    align-items: stretch;
  }

  input,
  select,
  textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .section {
    padding: 48px 16px;
  }

  .subpage-hero {
    padding: 118px 16px 48px;
  }

  .subpage-hero h1 {
    font-size: 3rem;
  }

  .subpage-hero p:not(.eyebrow) {
    margin-top: 16px;
    font-size: 1rem;
  }

  .intro,
  .section-heading {
    gap: 18px;
  }

  .section-heading {
    margin-bottom: 20px;
  }

  .feature-grid,
  .collection-grid,
  .guide-grid,
  .method-grid,
  .review-grid,
  [data-page="home"] .review-grid {
    gap: 14px;
  }

  .home-banner {
    margin: 18px 16px 0;
    padding: 22px 18px;
  }

  .home-banner h2 {
    font-size: 1.9rem;
  }

  .feature-grid article,
  .collection-grid article,
  .guide-grid article,
  .method-grid article {
    min-height: auto;
    padding: 18px;
  }

  .feature-grid span,
  .collection-grid span {
    margin-bottom: 18px;
  }

  .library-bar {
    padding: 14px;
    font-size: 0.95rem;
  }

  .bottle-scene {
    min-height: 190px;
  }

  .wine-photo {
    inset: 24px 14px 16px;
    width: calc(100% - 28px);
    height: calc(100% - 40px);
  }

  .review-body {
    padding: 16px;
  }

  .review-body > p {
    margin-top: 14px;
  }

  .taste {
    margin-top: 16px;
  }

  .card-actions {
    padding: 0 16px 16px;
  }

  .card-actions button {
    min-height: 44px;
    font-size: 0.86rem;
  }

  [data-page="home"] .reviews {
    padding-top: 42px;
  }

  [data-page="home"] .review-grid {
    grid-template-columns: 1fr;
  }

  [data-page="home"] .review-card {
    box-shadow: 0 14px 34px rgba(18, 14, 12, 0.08);
  }

  [data-page="home"] .review-card:nth-of-type(n+4) {
    display: none;
  }

  [data-page="home"] .card-link {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: auto;
  }

  [data-page="home"] .bottle-scene {
    min-height: 190px;
    border-bottom: 0;
  }

  [data-page="home"] .wine-photo {
    inset: 24px 14px 16px;
    width: calc(100% - 28px);
    height: calc(100% - 40px);
  }

  [data-page="home"] .rating-pill {
    top: 12px;
    right: 12px;
    padding: 7px 10px;
    font-size: 0.86rem;
  }

  [data-page="home"] .review-body {
    display: grid;
    grid-template-rows: auto auto auto auto auto auto auto auto;
    padding: 16px;
  }

  [data-page="home"] .card-topline {
    display: flex;
  }

  [data-page="home"] .review-body h3 {
    display: -webkit-box;
    margin-top: 6px;
    font-size: 1.35rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: unset;
  }

  [data-page="home"] .meta {
    gap: 6px;
    margin-top: 10px;
  }

  [data-page="home"] .meta span:nth-child(n+3) {
    display: inline-flex;
  }

  [data-page="home"] .pairing {
    display: -webkit-box;
  }

  [data-page="home"] .review-body > p {
    display: -webkit-box;
    margin-top: 14px;
    font-size: inherit;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: unset;
  }

  [data-page="home"] .taste {
    display: block;
    margin-top: 16px;
    font-size: inherit;
  }

  [data-page="home"] .read-more {
    margin-top: 12px;
    font-size: 0.84rem;
  }

  [data-page="home"] .card-actions {
    grid-template-columns: 1fr 1fr;
    padding: 0 16px 16px;
  }

  [data-page="home"] .card-actions button {
    min-height: 42px;
  }

  .review-break-banner {
    gap: 16px;
    min-height: auto;
    padding: 22px 18px;
  }

  .review-break-banner strong {
    font-size: 1.75rem;
    line-height: 1.05;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 24px 16px;
  }

  .footer-meta {
    justify-items: start;
  }

  .wine-hero {
    gap: 22px;
    padding: 104px 16px 42px;
  }

  .wine-visual {
    min-height: 300px;
  }

  .wine-visual .wine-photo {
    inset: 28px 22px 46px;
    width: calc(100% - 44px);
    height: calc(100% - 74px);
  }

  .image-credit {
    right: 12px;
    bottom: 12px;
    left: 12px;
    font-size: 0.68rem;
  }

  .wine-title h1 {
    font-size: 2.7rem;
    line-height: 1;
  }

  .wine-title p:not(.eyebrow) {
    font-size: 1rem;
  }

  .detail-layout {
    padding: 42px 16px;
  }

  .detail-main h2 {
    margin-top: 28px;
    font-size: 2rem;
  }

  .detail-main p {
    font-size: 1rem;
  }

  .score-panel {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 24px 0;
  }

  .score-panel div,
  .fact-card {
    padding: 16px;
  }

  .score-panel strong {
    font-size: 1.75rem;
  }

  .fact-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .form-grid,
  .upload-layout,
  .admin-toolbar,
  .review-edit-list div,
  .saved-row,
  .newsletter-form,
  .status-row,
  .publish-options,
  .taste-meter div {
    grid-template-columns: 1fr;
  }

  .admin-panel-head {
    flex-direction: column;
  }

  .admin-panel-head .button {
    width: 100%;
  }

  .review-body {
    grid-template-rows: auto auto auto auto auto auto auto auto;
  }

  .review-body h3,
  .review-body > p,
  .pairing {
    -webkit-line-clamp: unset;
  }

  .meta {
    max-height: none;
  }

  .saved-row {
    padding: 14px;
  }

  .auth-card {
    padding: 20px;
  }

  .steps li {
    grid-template-columns: 48px 1fr;
    padding: 16px;
  }

  .steps li::before {
    font-size: 1.45rem;
  }
}

@media (max-width: 420px) {
  .brand small {
    display: none;
  }

  h1 {
    font-size: 2.85rem;
  }

  .subpage-hero h1,
  .wine-title h1 {
    font-size: 2.35rem;
  }

  .hero {
    padding-top: 100px;
  }

  .meta span {
    font-size: 0.74rem;
  }

  .card-topline {
    display: grid;
    gap: 3px;
  }

  .score-panel {
    grid-template-columns: 1fr;
  }

  .taste-meter div {
    gap: 8px;
  }
}
