:root {
  --ink: #0a0a0a;
  --muted: #6b6b6b;
  --line: #e9e9e9;
  --paper: #ffffff;
  --surface: #f6f6f6;
  --white: #ffffff;
  --charcoal: #111111;
  --wine: #8a1735;
  --teal: #0f6f68;
  --gold: #6b6b6b;
  --green: #176b45;
  --shadow: 0 18px 42px rgba(10, 10, 10, 0.08);
  --radius: 8px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Bodoni Moda", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  letter-spacing: 0;
}

body {
  margin: 0;
  min-width: 320px;
}

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

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

input,
select,
button {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr minmax(260px, 480px);
  min-height: 72px;
  padding: 14px clamp(16px, 4vw, 48px);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.brand-mark {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.site-nav a,
.text-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  align-items: center;
  display: inline-flex;
  line-height: 1;
  min-height: 22px;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--ink);
}

.site-nav .nav-icon-link {
  align-items: center;
  justify-content: center;
  min-height: 22px;
  width: 22px;
}

.site-nav .nav-icon-link svg {
  display: block;
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 18px;
}

.site-nav .nav-icon-link .instagram-dot {
  fill: currentColor;
  stroke: none;
}

.header-search {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 42px;
  min-width: 0;
}

.header-search input {
  background: transparent;
  border: 0;
  min-width: 0;
  padding: 12px 14px;
}

.icon-button {
  align-items: center;
  background: var(--ink);
  border: 0;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.icon-button svg,
.button svg {
  height: 17px;
  width: 17px;
}

.hero {
  min-height: 58vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0.26)),
    url("https://images.unsplash.com/photo-1496747611176-843222e1e57c?auto=format&fit=crop&w=1800&q=82") center 38% / cover;
  inset: 0;
  position: absolute;
}

.hero-content {
  color: var(--white);
  max-width: 980px;
  padding: clamp(76px, 11vw, 140px) clamp(18px, 6vw, 72px) clamp(36px, 7vw, 72px);
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

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

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  margin: 0;
}

.hero h1 {
  font-size: clamp(52px, 11vw, 108px);
  line-height: 0.92;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.45;
  max-width: 680px;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  align-items: center;
  border: 1px solid var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  text-align: center;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  width: 100%;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
}

.button.wide {
  width: 100%;
}

.strip {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  background: var(--line);
}

.stats-strip > div {
  background: var(--white);
  padding: 18px clamp(14px, 3vw, 36px);
}

.stats-strip strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 42px);
}

.stats-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.section {
  padding: clamp(42px, 7vw, 88px) clamp(16px, 4vw, 54px);
}

.section-band {
  background: #ffffff;
  border-block: 1px solid var(--line);
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-heading h2,
.page-heading h1 {
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
}

.section-heading.compact h2 {
  font-size: clamp(26px, 4vw, 40px);
}

.deal-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.deal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  overflow: hidden;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.deal-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.deal-image {
  aspect-ratio: 4 / 5;
  background: var(--surface);
  display: block;
  overflow: hidden;
  position: relative;
}

.deal-image img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.image-fallback {
  align-items: center;
  color: var(--wine);
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-size: 72px;
  gap: 12px;
  height: 100%;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.image-fallback small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-fallback.large {
  aspect-ratio: 4 / 5;
  background: var(--surface);
  width: 100%;
}

.score-pill {
  align-items: center;
  background: var(--wine);
  border-radius: 999px;
  color: var(--white);
  display: flex;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 46px;
}

.deal-body {
  padding: 15px;
}

.deal-kicker,
.meta-row,
.price-row,
.feed-toolbar,
.breadcrumbs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.deal-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  justify-content: space-between;
  text-transform: uppercase;
}

.deal-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.1;
  margin: 10px 0 12px;
  min-height: 44px;
}

.price-row strong {
  font-size: 21px;
}

.price-row s,
.meta-row,
.source-note,
.updated {
  color: var(--muted);
}

.price-row span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.deal-label {
  color: var(--wine);
  font-size: 13px;
  font-weight: 900;
  margin: 10px 0;
}

.meta-row {
  font-size: 12px;
}

.card-actions .button {
  width: 100%;
}

.source-note {
  font-size: 11px;
  margin: 10px 0 0;
}

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

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

.category-grid,
.ops-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.category-link,
.ops-stat {
  background: var(--charcoal);
  border-radius: var(--radius);
  color: var(--white);
  min-height: 120px;
  padding: 18px;
}

.category-link span,
.ops-stat span {
  color: #cfcfcf;
  display: block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-link strong,
.ops-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  margin-top: 12px;
}

.page-heading {
  padding: clamp(42px, 7vw, 88px) clamp(16px, 4vw, 54px) 28px;
}

.page-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 820px;
}

.browse-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 290px minmax(0, 1fr);
  padding: 0 clamp(16px, 4vw, 54px) clamp(48px, 7vw, 90px);
}

.filters,
.save-search {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  padding: 16px;
}

.save-search {
  margin-top: 14px;
}

.filters label,
.save-search label {
  display: grid;
  gap: 6px;
}

.filters span,
.save-search span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.filters input,
.filters select,
.save-search input,
.save-search select,
.feed-toolbar select {
  background: var(--paper);
  border: 1px solid var(--line);
  min-height: 42px;
  padding: 9px 10px;
  width: 100%;
}

.checkbox-label {
  align-items: center;
  display: flex !important;
  grid-template-columns: auto 1fr;
}

.checkbox-label input {
  height: 18px;
  width: 18px;
}

.feed-toolbar {
  justify-content: space-between;
  margin-bottom: 16px;
}

.feed-toolbar > span {
  color: var(--muted);
  font-weight: 800;
}

.pagination {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.pagination a,
.pagination span {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 10px 14px;
}

.detail-layout {
  display: grid;
  gap: clamp(24px, 5vw, 64px);
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 0.8fr);
  padding: clamp(28px, 6vw, 70px) clamp(16px, 5vw, 72px);
}

.detail-gallery {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  justify-content: center;
  min-height: min(72vh, 760px);
  padding: clamp(16px, 4vw, 42px);
}

.detail-gallery img {
  height: auto;
  max-height: min(72vh, 760px);
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.detail-panel {
  align-self: center;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.detail-panel h1 {
  font-size: clamp(36px, 6vw, 70px);
  line-height: 0.98;
}

.detail-price {
  align-items: center;
  border-block: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
  padding: 18px 0;
}

.detail-price strong {
  font-size: 34px;
}

.detail-price span {
  color: var(--green);
  font-weight: 900;
}

.score-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.score-panel > div:first-child {
  align-items: center;
  display: flex;
  gap: 12px;
}

.score-big {
  align-items: center;
  background: var(--wine);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  font-size: 24px;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.score-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.score-grid,
.product-facts {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  margin: 18px 0;
}

.score-grid div,
.product-facts div {
  background: var(--paper);
  padding: 12px;
}

dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
}

.history-list {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.history-list div {
  background: var(--paper);
  padding: 14px;
}

.history-list span,
.history-list small {
  color: var(--muted);
  display: block;
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.internal-links a {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  padding: 10px 12px;
}

.ops-panels {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 clamp(16px, 4vw, 54px) clamp(48px, 7vw, 90px);
}

.ops-panels article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
  padding: 18px;
}

.ops-panels h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

table {
  border-collapse: collapse;
  min-width: 100%;
}

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

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

.ops-list li {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
}

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

.empty-state {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.messages {
  padding: 12px clamp(16px, 4vw, 54px) 0;
}

.message {
  background: var(--white);
  border-left: 4px solid var(--teal);
  margin: 0;
  padding: 12px 14px;
}

.site-footer {
  background: var(--charcoal);
  color: var(--white);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1.4fr;
  padding: 34px clamp(16px, 4vw, 54px);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  margin: 8px 0 0;
}

.footer-social-link {
  color: var(--white);
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  margin-top: 16px;
}

.footer-social-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .strip,
  .split-section,
  .browse-layout,
  .detail-layout,
  .ops-panels,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .split-section .deal-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 62vh;
  }

  .hero-content {
    padding-top: 92px;
  }

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

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .score-grid,
  .product-facts {
    grid-template-columns: 1fr;
  }
}
