/* ============================================================
   BLUE CLOUD CIGARS — design tokens & components
   Palette derived from brand: midnight navy, royal blue,
   gold, tobacco brown, ivory. Single fixed dark theme.
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Surfaces — midnight navy */
  --color-bg: oklch(0.17 0.03 260);
  --color-surface: oklch(0.2 0.035 260);
  --color-surface-2: oklch(0.23 0.04 260);
  --color-surface-offset: oklch(0.15 0.025 260);
  --color-divider: oklch(1 0 0 / 0.1);
  --color-border: oklch(1 0 0 / 0.14);

  /* Text */
  --color-text: oklch(0.93 0.01 90);
  --color-text-muted: oklch(0.78 0.015 90);
  --color-text-faint: oklch(0.7 0.02 90);
  --color-text-inverse: oklch(0.17 0.03 260);

  /* Accents */
  --color-gold: oklch(0.72 0.13 85);
  --color-gold-hover: oklch(0.78 0.12 85);
  --color-royal: oklch(0.55 0.14 265);

  /* Fonts */
  --font-display: 'Boska', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Switzer', 'Inter', 'Helvetica Neue', sans-serif;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;

  /* Motion */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.1 0.02 260 / 0.4);
  --shadow-md: 0 4px 12px oklch(0.1 0.02 260 / 0.5);
  --shadow-lg: 0 12px 32px oklch(0.05 0.02 260 / 0.6);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Header height */
  --header-h: 72px;
}

/* ============ AGE GATE ============ */

body.age-locked {
  overflow: hidden;
}

body.age-locked .skip-link {
  display: none;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--space-4);
  background:
    radial-gradient(120% 120% at 50% 0%, oklch(0.22 0.05 265 / 0.9), oklch(0.13 0.03 260) 70%),
    var(--color-bg);
}

.age-gate[hidden] {
  display: none;
}

.age-gate__panel {
  width: min(92vw, 460px);
  max-height: calc(100dvh - 2 * var(--space-4));
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(var(--space-6), 5vw, var(--space-10));
  text-align: center;
}

.age-gate__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.age-gate__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text);
}

.age-gate__brand-name::after {
  content: '';
  display: block;
  width: 64px;
  height: 1px;
  margin: var(--space-3) auto 0;
  background: var(--color-gold);
}

.age-gate__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.age-gate__lede {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.age-gate__lede strong {
  color: var(--color-gold);
  font-weight: 600;
}

.age-gate__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: left;
}

.age-gate__fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: var(--space-3);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.field label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: var(--text-base);
  letter-spacing: 0.08em;
  text-align: center;
}

.field input:focus {
  border-color: var(--color-gold);
  outline: none;
}

.age-gate__confirm {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.age-gate__confirm input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: var(--space-1);
  flex: none;
  accent-color: var(--color-gold);
  cursor: pointer;
}

.age-gate__confirm label {
  cursor: pointer;
}

.age-gate__error {
  font-size: var(--text-sm);
  color: oklch(0.72 0.19 25);
  min-height: 1em;
}

.age-gate__actions {
  display: flex;
  gap: var(--space-3);
}

.age-gate__actions .btn {
  flex: 1;
  min-height: 52px;
}

.age-gate__exit-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.age-gate__exit-note a {
  color: var(--color-gold);
}

.age-gate__denied[hidden] {
  display: none;
}

.age-gate .surgeon-general {
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.5;
  max-width: 40ch;
  margin-inline: auto;
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  min-height: 48px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-text-inverse);
}

.btn--gold:hover {
  background: var(--color-gold-hover);
}

.btn--ghost {
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.btn--ghost:hover {
  color: var(--color-text);
  border-color: oklch(1 0 0 / 0.3);
}

/* ============ HEADER ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}

.site-header__inner {
  max-width: var(--content-wide);
  height: 100%;
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.wordmark__text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.06em;
}

.wordmark__text em {
  color: var(--color-gold);
  font-style: italic;
}

.site-nav {
  display: flex;
  gap: clamp(var(--space-4), 3vw, var(--space-8));
}

.site-nav a {
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
}

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

.badge-21 {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-full);
  color: var(--color-gold);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ============ SECTIONS ============ */

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.section__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.kicker {
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

/* ============ HERO ============ */

.hero {
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  place-items: center;
  background:
    radial-gradient(90% 90% at 80% 10%, oklch(0.26 0.06 265 / 0.55), transparent 60%),
    var(--color-bg);
}

.hero__inner {
  max-width: var(--content-wide);
  width: 100%;
  margin-inline: auto;
  padding: clamp(var(--space-8), 5vw, var(--space-16)) clamp(var(--space-4), 4vw, var(--space-8));
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
}

.hero__copy {
  max-width: 34ch;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: var(--space-5);
}

.hero__title em {
  color: var(--color-gold);
  font-style: italic;
}

.hero__lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 28ch;
}

.hero__figure {
  position: relative;
}

.hero__figure::before {
  content: '';
  position: absolute;
  inset: calc(-1 * var(--space-4));
  border: 1px solid oklch(0.72 0.13 85 / 0.35);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.hero__figure img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

/* ============ ROBUSTO ============ */

.robusto {
  background: linear-gradient(in oklab, var(--color-bg), var(--color-surface-offset) 55%, var(--color-bg));
}

.robusto__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

.robusto__figure img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  max-height: 78vh;
  width: auto;
}

.robusto__lede {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.blend-list {
  display: flex;
  flex-direction: column;
}

.blend-list__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-divider);
}

.blend-list__item:last-child {
  border-bottom: 1px solid var(--color-divider);
}

.blend-list__item dt {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
}

.blend-list__origin {
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.blend-list__item dd {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
}

/* ============ CRAFT ============ */

.craft__inner {
  max-width: 760px;
}

.craft__list {
  display: flex;
  flex-direction: column;
}

.craft__row {
  display: flex;
  align-items: baseline;
  gap: clamp(var(--space-4), 4vw, var(--space-8));
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.craft__row:last-child {
  border-bottom: 1px solid var(--color-divider);
}

.craft__num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-gold);
  flex: none;
  width: 3ch;
}

.craft__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-2);
}


/* ============ CONTACT ============ */

.contact {
  text-align: center;
}

.contact .section__title {
  margin-bottom: var(--space-3);
}

.contact__lede {
  color: var(--color-text-muted);
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.contact__details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.contact__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-lg);
  color: var(--color-gold);
  text-decoration: none;
  border-bottom: 1px solid oklch(0.72 0.13 85 / 0.4);
  padding-bottom: 2px;
}

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

.contact__place {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ============ FOOTER ============ */

.site-footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12) var(--space-8);
  background: var(--color-surface-offset);
}

.site-footer__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer__motto {
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.site-footer .surgeon-general {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 56ch;
  line-height: 1.5;
}

.site-footer__legal {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}


/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .hero__inner,
  .robusto__grid {
    grid-template-columns: 1fr;
  }

  .hero__figure {
    max-width: 420px;
  }

  .robusto__figure {
    max-width: 440px;
  }

  .robusto__figure img {
    max-height: none;
    width: 100%;
  }

  .robusto__grid .robusto__copy {
    order: 2;
  }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }

  .hero__inner {
    padding-top: var(--space-8);
  }

  .hero__figure {
    max-width: 300px;
    margin-inline: auto;
  }

  .robusto__figure {
    max-width: 320px;
    margin-inline: auto;
  }

  .age-gate__fields {
    grid-template-columns: 1fr 1fr;
  }

  .age-gate__fields .field:last-child {
    grid-column: span 2;
  }

  .age-gate__actions {
    flex-direction: column;
  }
}
