@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap");

:root {
  --bg: #f6f0e7;
  --surface: #fffaf3;
  --surface-strong: #ece0d1;
  --ink: #1f1915;
  --muted: #75695e;
  --line: rgba(31, 25, 21, 0.14);
  --accent: #6f1730;
  --accent-2: #aa7a48;
  --accent-3: #2f5b47;
  --white: #fff;
  --shadow: 0 18px 42px rgba(31, 25, 21, 0.08);
  --radius: 6px;
  --font-display: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="modern"] {
  --bg: #f4f5ef;
  --surface: #fffef9;
  --surface-strong: #dde5da;
  --ink: #151f1b;
  --muted: #59645e;
  --line: rgba(21, 31, 27, 0.14);
  --accent: #174d3b;
  --accent-2: #a98c4f;
  --accent-3: #7d2337;
  --shadow: 0 18px 42px rgba(20, 43, 34, 0.08);
}

:root[data-theme="terra"] {
  --bg: #fbefe4;
  --surface: #fff9f1;
  --surface-strong: #e8c9ae;
  --ink: #251914;
  --muted: #735d50;
  --line: rgba(37, 25, 20, 0.15);
  --accent: #93462f;
  --accent-2: #4e6e47;
  --accent-3: #5e1930;
  --shadow: 0 18px 42px rgba(63, 31, 18, 0.1);
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  margin: 0;
  min-width: 320px;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

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

button {
  cursor: pointer;
}

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

.site-header {
  align-items: center;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: 0;
  min-height: 74px;
  padding: 16px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

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

.brand__mark {
  align-items: center;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 20px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.brand strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  margin-top: 6px;
  text-transform: uppercase;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
}

.site-nav a {
  padding: 10px 0;
}

.site-nav a:hover {
  color: var(--accent);
}

.cart-link {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 14px !important;
}

[data-cart-count] {
  display: inline-block;
  margin-left: 4px;
}

.menu-button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  display: none;
  min-height: 42px;
  padding: 0 14px;
}

.hero {
  display: grid;
  height: min(660px, calc(100vh - 160px));
  min-height: 540px;
  overflow: hidden;
  position: relative;
}

.hero__image,
.hero__shade,
.hero__content {
  grid-area: 1 / 1;
}

.hero__image {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(12, 9, 7, 0.76), rgba(12, 9, 7, 0.34) 45%, rgba(12, 9, 7, 0.02)),
    linear-gradient(0deg, rgba(12, 9, 7, 0.42), transparent 48%);
}

.hero__content {
  align-self: center;
  color: var(--white);
  max-width: 820px;
  padding: 96px clamp(20px, 6vw, 88px);
  position: relative;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e8bd78;
}

h1,
h2,
h3 {
  margin: 0;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.96;
}

h1 {
  font-size: 106px;
  max-width: 980px;
}

h2 {
  font-size: 54px;
}

h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.12;
}

p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  overflow-wrap: anywhere;
}

.hero__copy {
  color: rgba(255, 255, 255, 0.9);
  font-size: 21px;
  line-height: 1.55;
  margin-top: 22px;
  max-width: 590px;
}

.hero__actions,
.cta,
.catalog-tools,
.summary-top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__actions {
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 2px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.theme-card:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

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

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

.button--secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button--small {
  min-height: 40px;
  padding: 0 15px;
}

.section-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(62px, 8vw, 110px) clamp(18px, 4vw, 36px);
  width: 100%;
}

.theme-band {
  background: var(--surface);
}

.theme-band .section-inner {
  padding-top: 42px;
}

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

.section-heading h2 {
  max-width: 760px;
}

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

.theme-card,
.wine-card,
.tier-card,
.club-panel,
.form-card,
.checkout-form,
.order-summary,
.proof-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.theme-card {
  color: var(--ink);
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.theme-card__image {
  background-position: center;
  background-size: cover;
  display: block;
  height: 148px;
  position: relative;
}

.theme-card__image::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 70%);
  content: "";
  inset: 0;
  position: absolute;
}

.theme-card__meta,
.theme-card small,
.tier-card span,
.club-panel__label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.theme-card__meta {
  margin: 20px 22px 0;
}

.theme-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  margin: 10px 22px 12px;
}

.theme-card small {
  line-height: 1.5;
  margin: 0 22px 24px;
  text-transform: none;
}

.theme-card.is-active {
  border-color: color-mix(in srgb, var(--accent) 68%, var(--line));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 62%, transparent), var(--shadow);
}

.split-section {
  background: var(--bg);
}

.split,
.two-column,
.checkout-grid,
.visit-grid {
  display: grid;
  gap: clamp(26px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
}

.split h2,
.visit-copy h2 {
  margin-bottom: 22px;
}

.proof-panel {
  box-shadow: none;
  display: grid;
  gap: 0;
  padding: 0;
}

.proof-panel > div {
  align-items: start;
  background: color-mix(in srgb, var(--surface) 96%, var(--accent) 4%);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 72px 1fr;
  padding: 28px;
}

.proof-panel > div:last-child {
  border-bottom: 0;
}

.metric {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
}

.product-strip,
.membership-section,
.visit-section,
.checkout-section {
  background: var(--surface-strong);
}

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

.wine-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
  padding: 0;
}

.wine-card__media {
  background-color: var(--surface-strong);
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
  display: block;
  height: 184px;
  margin: 0;
}

.wine-card__media--tinto {
  background-image: linear-gradient(0deg, rgba(31, 25, 21, 0.18), rgba(31, 25, 21, 0.02)), url("/assets/images/hero-heritage-estate.png");
  background-position: 72% center;
}

.wine-card__media--blanco {
  background-image: linear-gradient(0deg, rgba(31, 25, 21, 0.12), rgba(31, 25, 21, 0.02)), url("/assets/images/hero-modern-cellar.png");
  background-position: center;
}

.wine-card__media--rosado {
  background-image: linear-gradient(0deg, rgba(31, 25, 21, 0.12), rgba(31, 25, 21, 0.02)), url("/assets/images/hero-terra-mexicana.png");
  background-position: 76% center;
}

.wine-card__media--mesa {
  background-image: linear-gradient(0deg, rgba(31, 25, 21, 0.12), rgba(31, 25, 21, 0.02)), url("/assets/images/hero-modern-cellar.png");
  background-position: 82% center;
}

.wine-card > .wine-card__type,
.wine-card > h3,
.wine-card > p,
.wine-card > .detail-list,
.wine-card > .wine-card__footer {
  margin-left: 22px;
  margin-right: 22px;
}

.wine-card p {
  font-size: 15px;
  line-height: 1.58;
}

.wine-card__type {
  color: var(--accent) !important;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 22px;
  text-transform: uppercase;
}

.wine-card h3 {
  margin-top: 8px;
  margin-bottom: 12px;
}

.wine-card__footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: auto;
  padding: 22px 0 24px;
}

.wine-card__footer span {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 22px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  width: 42px;
}

.icon-button.is-added,
.button.is-added {
  background: var(--accent-3);
  border-color: var(--accent-3);
  color: var(--white);
}

.cta-band {
  background: var(--ink);
  color: var(--white);
}

.cta-band .eyebrow,
.cta-band p {
  color: color-mix(in srgb, var(--white) 72%, var(--accent-2));
}

.cta {
  justify-content: space-between;
}

.cta h2 {
  max-width: 780px;
}

.page-hero {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 72%),
    var(--bg);
}

.page-hero .section-inner {
  padding-top: 96px;
}

.page-hero.compact .section-inner {
  max-width: 980px;
}

.page-hero h1 {
  font-size: 70px;
  margin-bottom: 22px;
}

.page-hero p {
  max-width: 780px;
}

.club-panel {
  padding: clamp(26px, 4vw, 42px);
}

.club-panel h2 {
  font-size: 48px;
  margin-top: 20px;
}

.club-price {
  color: var(--accent) !important;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  margin: 18px 0;
}

.check-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.check-list li {
  color: var(--muted);
  line-height: 1.5;
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  color: var(--accent-3);
  content: "✓";
  font-weight: 700;
  left: 0;
  position: absolute;
}

.tier-card {
  min-height: 280px;
  padding: 28px;
}

.tier-card h3 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  margin: 34px 0 14px;
}

.tier-card strong {
  color: var(--accent);
  display: block;
  font-size: 18px;
  margin-top: 22px;
}

.tier-card--feature {
  background: var(--ink);
  color: var(--white);
}

.tier-card--feature p,
.tier-card--feature span,
.tier-card--feature strong {
  color: rgba(255, 255, 255, 0.78);
}

.catalog-tools {
  justify-content: space-between;
  margin-bottom: 32px;
}

.catalog-tools .button {
  min-width: 72px;
}

.detail-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
}

.detail-list div {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
  text-align: right;
}

.visit-copy {
  align-self: center;
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.mini-list span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-weight: 700;
  padding: 12px 14px;
}

.form-card,
.checkout-form,
.order-summary {
  padding: clamp(22px, 4vw, 34px);
}

.form-card,
.checkout-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

label {
  color: var(--ink);
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  line-height: 1.35;
  text-transform: uppercase;
}

input,
select,
textarea {
  background: color-mix(in srgb, var(--surface) 68%, var(--bg));
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

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

.notice {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  padding: 14px;
}

.checkout-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.order-summary {
  position: sticky;
  top: 98px;
}

.summary-top {
  justify-content: space-between;
  margin-bottom: 20px;
}

.text-button {
  background: transparent;
  border: 0;
  color: var(--accent);
  font-weight: 700;
  padding: 0;
}

.cart-item,
.summary-line {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 0;
}

.cart-item span,
.summary-line span {
  color: var(--muted);
}

.cart-item strong {
  display: block;
  margin-bottom: 5px;
}

.summary-line.total {
  color: var(--ink);
  font-size: 20px;
}

.summary-line.muted {
  font-size: 14px;
}

.empty-cart {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 24px 0;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 34px clamp(18px, 4vw, 56px);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-weight: 700;
}

.age-gate {
  align-items: center;
  background: rgba(12, 9, 7, 0.78);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 50;
}

.age-gate__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  justify-items: start;
  max-width: 430px;
  padding: 34px;
}

.age-gate__panel h2 {
  font-size: 46px;
}

.theme-switcher {
  align-items: center;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  bottom: 14px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 8px;
  left: 14px;
  padding: 8px;
  position: fixed;
  z-index: 70;
  backdrop-filter: blur(16px);
}

.theme-switcher span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 0 8px;
  text-transform: uppercase;
}

.theme-switcher button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  min-height: 34px;
  padding: 0 10px;
}

.theme-switcher button.is-active {
  background: var(--accent);
  color: var(--white);
}

:root[data-theme="modern"] .site-header {
  background: rgba(255, 254, 249, 0.9);
}

:root[data-theme="modern"] .brand__mark {
  border-radius: 999px;
}

:root[data-theme="modern"] h1,
:root[data-theme="modern"] h2,
:root[data-theme="modern"] h3,
:root[data-theme="modern"] .brand strong {
  font-family: var(--font-display);
}

:root[data-theme="modern"] h1 {
  font-size: 68px;
  font-weight: 700;
  line-height: 1.02;
  max-width: 620px;
}

:root[data-theme="modern"] h2 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
}

:root[data-theme="modern"] .hero {
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 48%, transparent 48%),
    var(--surface);
}

:root[data-theme="modern"] .hero__image {
  justify-self: end;
  object-position: center;
  width: 62%;
}

:root[data-theme="modern"] .hero__shade {
  background:
    linear-gradient(90deg, rgba(244, 245, 239, 0.99) 0%, rgba(244, 245, 239, 0.96) 40%, rgba(244, 245, 239, 0.38) 63%, rgba(244, 245, 239, 0.02)),
    linear-gradient(0deg, rgba(244, 245, 239, 0.7), transparent 38%);
}

:root[data-theme="modern"] .hero__content {
  color: var(--ink);
  max-width: 620px;
}

:root[data-theme="modern"] .hero .eyebrow {
  color: var(--accent);
}

:root[data-theme="modern"] .hero__copy {
  color: var(--muted);
  font-size: 19px;
}

:root[data-theme="modern"] .button--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

:root[data-theme="modern"] .wine-card,
:root[data-theme="modern"] .theme-card,
:root[data-theme="modern"] .form-card,
:root[data-theme="modern"] .checkout-form,
:root[data-theme="modern"] .order-summary,
:root[data-theme="modern"] .club-panel,
:root[data-theme="modern"] .tier-card {
  box-shadow: none;
}

:root[data-theme="modern"] .wine-card__media {
  height: 210px;
}

:root[data-theme="modern"] .cta-band {
  background: #10221b;
}

:root[data-theme="terra"] .site-header {
  background: rgba(37, 25, 20, 0.94);
  border-bottom-color: rgba(255, 249, 241, 0.14);
  color: var(--white);
}

:root[data-theme="terra"] .brand__mark {
  border-color: rgba(255, 249, 241, 0.5);
  color: var(--white);
}

:root[data-theme="terra"] .brand small,
:root[data-theme="terra"] .site-nav a {
  color: rgba(255, 255, 255, 0.72);
}

:root[data-theme="terra"] .cart-link,
:root[data-theme="terra"] .menu-button {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

:root[data-theme="terra"] .hero {
  height: min(720px, calc(100vh - 120px));
}

:root[data-theme="terra"] .hero__image {
  object-position: center;
}

:root[data-theme="terra"] .hero__shade {
  background:
    linear-gradient(90deg, rgba(36, 18, 12, 0.78), rgba(36, 18, 12, 0.38) 48%, rgba(36, 18, 12, 0.1)),
    linear-gradient(0deg, rgba(36, 18, 12, 0.58), transparent 45%);
}

:root[data-theme="terra"] .hero__content {
  align-self: end;
  max-width: 720px;
  padding-bottom: 84px;
}

:root[data-theme="terra"] h1 {
  font-size: 112px;
}

:root[data-theme="terra"] .hero .eyebrow {
  color: #e6b88f;
}

:root[data-theme="terra"] .button--primary {
  background: var(--accent);
}

:root[data-theme="terra"] .split-section {
  background: #291710;
  color: var(--white);
}

:root[data-theme="terra"] .split-section p,
:root[data-theme="terra"] .proof-panel p {
  color: rgba(255, 249, 241, 0.7);
}

:root[data-theme="terra"] .proof-panel {
  background: transparent;
  border-color: rgba(255, 249, 241, 0.16);
}

:root[data-theme="terra"] .proof-panel > div {
  background: rgba(255, 249, 241, 0.06);
  border-bottom-color: rgba(255, 249, 241, 0.12);
}

:root[data-theme="terra"] .metric {
  color: #e6b88f;
}

@media (max-width: 1100px) {
  .wine-grid--catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
    min-height: 68px;
  }

  .menu-button {
    align-items: center;
    display: inline-flex;
  }

  .site-nav {
    align-items: stretch;
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-top: 1px solid var(--line);
    padding: 14px 0 !important;
  }

  .hero {
    height: min(650px, calc(100vh - 96px));
    min-height: 560px;
  }

  .hero__shade {
    background: linear-gradient(0deg, rgba(12, 9, 7, 0.8), rgba(12, 9, 7, 0.24));
  }

  .hero__content {
    align-self: end;
    padding-bottom: 68px;
  }

  h1 {
    font-size: 74px;
  }

  h2,
  .page-hero h1 {
    font-size: 44px;
  }

  .section-heading,
  .cta,
  .catalog-tools {
    align-items: start;
    flex-direction: column;
  }

  .catalog-tools {
    gap: 18px;
  }

  .theme-grid,
  .wine-grid,
  .tier-grid,
  .split,
  .two-column,
  .checkout-grid,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

  .wine-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 9px;
  }

  .brand__mark {
    height: 36px;
    width: 36px;
  }

  .hero {
    height: min(620px, calc(100vh - 92px));
    min-height: 540px;
  }

  .hero__content {
    padding-bottom: 56px;
  }

  h1 {
    font-size: 52px;
  }

  h2,
  .page-hero h1 {
    font-size: 34px;
  }

  h3 {
    font-size: 20px;
  }

  .hero__copy {
    font-size: 18px;
  }

  .section-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .form-row,
  .proof-panel > div,
  .wine-grid--catalog {
    grid-template-columns: 1fr;
  }

  .theme-card__image {
    height: 132px;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 980px) {
  :root[data-theme="modern"] .hero {
    background: var(--bg);
  }

  :root[data-theme="modern"] .hero__image {
    justify-self: stretch;
    width: 100%;
  }

  :root[data-theme="modern"] .hero__shade {
    background: linear-gradient(0deg, rgba(244, 245, 239, 0.96), rgba(244, 245, 239, 0.68) 58%, rgba(244, 245, 239, 0.18));
  }

  :root[data-theme="modern"] .hero__content {
    color: var(--ink);
  }

  :root[data-theme="modern"] .hero__copy {
    color: var(--muted);
  }

  :root[data-theme="modern"] h1 {
    font-size: 54px;
  }

  :root[data-theme="modern"] h2,
  :root[data-theme="modern"] .page-hero h1 {
    font-size: 38px;
  }

  :root[data-theme="terra"] .hero {
    height: min(660px, calc(100vh - 88px));
  }

  :root[data-theme="terra"] .hero__shade {
    background: linear-gradient(0deg, rgba(36, 18, 12, 0.84), rgba(36, 18, 12, 0.36));
  }

  :root[data-theme="terra"] h1 {
    font-size: 72px;
  }

  .theme-switcher {
    align-items: stretch;
    bottom: 10px;
    flex-wrap: wrap;
    left: 10px;
    max-width: calc(100vw - 20px);
  }
}

@media (max-width: 620px) {
  :root[data-theme="modern"] h1,
  :root[data-theme="terra"] h1 {
    font-size: 48px;
  }

  :root[data-theme="modern"] .hero__copy {
    font-size: 17px;
  }

  :root[data-theme="terra"] .hero {
    min-height: 560px;
  }
}
