/* Neubad's shared print-inspired palette and type. Used by every public surface. */
@font-face {
  font-family: 'Neubad Bodoni';
  src: url('/branding/bodoni-moda-500.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: 'Neubad Jost';
  src: url('/branding/jost-400.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Neubad Jost';
  src: url('/branding/jost-600.ttf') format('truetype');
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}
html:root {
  --cream: #f4eedf;
  --paper: #fbf7ed;
  --green: #173f35;
  --ink: #173f35;
  --muted: #5e685b;
  --accent: #173f35;
  --accent-soft: #e6e7d9;
  --gold: #cfaf67;
  --gold-dark: #806024;
  --line: #cbbd9b;
  --terracotta: #806024;
  --orange: #806024;
  --serif: 'Neubad Bodoni', 'Bodoni MT', 'Didot', Georgia, serif;
  --sans: 'Neubad Jost', 'Trebuchet MS', sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Shared by the Cigar Suisse storefront, age gate and static merchant pages. */
html[data-shop-palette='cigars'],
.cigar-storefront[data-theme='cigars'] {
  --cream: #f5eee5;
  --paper: #fffbf6;
  --ink: #2e231e;
  --muted: #66574e;
  --line: #decec0;
  --accent: #73343d;
  --accent-soft: #f0e0df;
  --green: var(--accent);
  --gold: #dfbe98;
  --gold-dark: #765339;
  --terracotta: var(--accent);
  --theme-text-muted: var(--muted);
  --theme-text-positive: #315b42;
  --theme-text-warning: #855323;
  --theme-text-danger: #922d36;
  --cigar-accent-hover: #5f2833;
  --cigar-button-ink: #fffbf6;
  --cigar-image-mat: #eee2d5;
  --cigar-display: 'Neubad Bodoni', Georgia, serif;
  --cigar-dark: #382625;
}
html[data-shop-palette='cigars'][data-color-mode='dark'],
html[data-color-mode='dark'] .cigar-storefront[data-theme='cigars'] {
  --cream: #211917;
  --paper: #2e2320;
  --ink: #f3e7dc;
  --muted: #d3bcb0;
  --line: #6a5047;
  --accent: #e3a9ae;
  --accent-soft: #452f32;
  --gold: #d8a6ad;
  --gold-dark: #ccb3ad;
  --theme-text-positive: #b0d1b4;
  --theme-text-warning: #f1c78c;
  --theme-text-danger: #ffadb0;
  --cigar-accent-hover: #f0bec3;
  --cigar-button-ink: #2b1b1d;
  --cigar-image-mat: #e4d5c7;
}
html[data-shop-palette='cigars'],
html[data-shop-palette='cigars'] body {
  color: var(--ink);
  background: var(--cream);
  accent-color: var(--accent);
}

body { font-family: var(--sans); }
button, input, select, textarea { font-family: inherit; }
::selection { color: var(--paper); background: var(--green); }

/* The self-declaration is independent of account and identity verification. */
html.nb-age-open, html.nb-age-open body { overflow: hidden; }
.nb-age-dialog {
  position: fixed;
  inset: 0;
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  margin: auto;
  padding: 12px;
  border: 1px solid var(--gold);
  color: var(--cream);
  background: var(--green);
  font: 400 15px/1.6 var(--sans);
  box-shadow: 0 20px 80px #0c20194d;
}
.nb-age-dialog::backdrop { background: #102b24d9; backdrop-filter: blur(5px); }
.nb-age-content { padding: 28px; border: 1px solid #cfaf6770; text-align: center; }
.nb-age-brand { display: block; width: 250px; max-width: 100%; height: auto; margin: 0 auto 26px; }
.nb-age-kicker { margin: 0 0 8px; color: var(--gold); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.nb-age-title { margin: 0 0 18px; font: 500 42px/1.1 var(--serif); letter-spacing: -.025em; }
.nb-age-copy { margin: 0 0 22px; color: #e0e3d3; font-size: 15px; line-height: 1.65; }
.nb-age-seal { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 22px; border: 1px solid var(--gold); border-radius: 50%; outline: 1px solid #cfaf6750; outline-offset: 5px; color: var(--gold); font: 500 30px/1 var(--serif); }
.nb-age-actions { display: grid; gap: 10px; }
.nb-age-button { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--gold); border-radius: 0; background: var(--gold); color: var(--green); font: 600 14px/1.5 var(--sans); cursor: pointer; }
.nb-age-button:hover { background: #e1c589; }
.nb-age-secondary { background: transparent; color: var(--cream); border-color: #cfaf6770; }
.nb-age-secondary:hover { color: var(--cream); background: #ffffff0d; }
.nb-age-button:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.nb-age-note { margin: 18px 0 0; color: #cbd2bd; font-size: 11px; line-height: 1.6; }
.nb-age-dialog [hidden] { display: none; }

html[data-shop-palette='cigars'] .nb-age-dialog.cigar-age-dialog {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
  box-shadow: 0 20px 80px #321c2560;
}
html[data-shop-palette='cigars'] .cigar-age-dialog::backdrop { background: #2b1824c9; }
.cigar-age-dialog .cigar-age-wordmark {
  display: block;
  margin: 0 auto 18px;
  font: 500 40px/.98 var(--cigar-display);
  letter-spacing: -.045em;
}
.cigar-age-dialog .nb-age-content { border-color: var(--line); }
.cigar-age-dialog .nb-age-title { font-family: var(--cigar-display); }
.cigar-age-dialog .nb-age-copy,
.cigar-age-dialog .nb-age-note { color: var(--muted); }
.cigar-age-dialog .nb-age-seal { color: var(--accent); border-color: var(--accent); outline-color: var(--line); }
.cigar-age-dialog .nb-age-note a { color: var(--accent); text-decoration: underline; }
.cigar-age-dialog .nb-age-button {
  color: var(--cigar-button-ink);
  background: var(--accent);
  border-color: var(--accent);
}
.cigar-age-dialog .nb-age-button:hover { background: var(--cigar-accent-hover); border-color: var(--cigar-accent-hover); }
html[data-shop-palette='cigars'] .cigar-age-dialog .nb-age-secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
html[data-shop-palette='cigars'] .cigar-age-dialog .nb-age-secondary:hover { background: var(--accent-soft); border-color: var(--accent); }
.cigar-age-dialog :is(.nb-age-button, a):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 400px) {
  .nb-age-content { padding: 24px 18px; }
  .nb-age-title { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) { .nb-age-dialog::backdrop { backdrop-filter: none; } }
@media print { .nb-age-dialog { display: none !important; } }
