/* ═══════════════════════════════════════════════
   SCOTCH WHISKY BY NUMBERS
   styles.css
   blairbowman.com/scotch-whisky-by-numbers/
   ═══════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────── */
:root {
  --cream:       #faf8f4;
  --parchment:   #f5f1ea;
  --ink:         #12100e;
  --ink-mid:     #3d3630;
  --ink-light:   #7a6f65;
  --ink-faint:   #b5a99c;
  --amber:       #8c5e2a;
  --amber-light: #c49a5a;
  --rule:        #d6cfc5;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Jost', system-ui, sans-serif;
  --max:         700px;
  --gutter:      2rem;
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Header ─────────────────────────────────── */
.sw-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem var(--gutter) 2rem;
  text-align: center;
}

.rule {
  width: 2.5rem;
  height: 1px;
  background: var(--amber);
  margin: 0 auto 1.8rem;
  opacity: .6;
}
.rule-b { margin: 1.8rem auto 0; }

.kicker {
  font-size: .63rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3dba6e;
  animation: pulse 1.8s ease-in-out infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(61,186,110,.55); }
  60%  { box-shadow: 0 0 0 6px rgba(61,186,110,0);   }
  100% { box-shadow: 0 0 0 0   rgba(61,186,110,0);   }
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--ink);
}
h1 em { font-style: italic; color: var(--ink-mid); }

.sub {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 300;
  color: var(--ink-light);
  margin-bottom: .6rem;
}

.intro {
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--ink-faint);
}

/* ── Counters ───────────────────────────────── */
.counters {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--gutter);
}

.cb {
  padding: 2.2rem 0;
  text-align: center;
}

.clabel {
  font-size: .61rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 1.6rem;
  line-height: 1.6;
}

.cdisplay {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.03em;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: .5rem;
}

.hero .cdisplay { font-size: clamp(2.6rem, 8vw, 5rem); }
.mid  .cdisplay { font-size: clamp(1.8rem, 5vw, 3.4rem); }
.mat  .cdisplay { font-size: clamp(1.6rem, 4.5vw, 2.9rem); }

.divider {
  height: 0;
  border-bottom: 0.5px solid var(--rule);
  margin: .2rem 0;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pair .cb:first-child { border-right: 0.5px solid var(--rule); }

/* Odometer — all sizing done in JS, these are structural only */
.odo { display: inline-flex; align-items: flex-end; }

/* ── Buttons ─────────────────────────────────
   Inline styles on the HTML elements handle
   background / color directly so the sandbox
   cannot override them. These classes add
   font + spacing defaults only.              */
.btn-solid {
  font-family: var(--sans);
  font-size: .67rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .78rem 1.7rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  display: inline-block;
  transition: background .2s, border-color .2s;
}
.btn-solid:hover,
.btn-solid:focus {
  background: var(--ink-mid);
  border-color: var(--ink-mid);
  color: var(--cream);
  outline: none;
}

/* ── Your Visit ──────────────────────────────── */
.visit {
  background: var(--parchment);
  padding: 2.5rem var(--gutter);
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
  box-sizing: border-box;
  width: 100%;
}
.visit-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.sec-head {
  font-family: var(--serif);
  font-size: .68rem;
  font-style: italic;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 1.8rem;
}

.vstats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.vstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.vstat-label {
  font-size: .61rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.vstat-value {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.02em;
}

.share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.share-ok {
  font-size: .61rem;
  letter-spacing: .1em;
  color: var(--amber);
  opacity: 0;
  transition: opacity .3s;
}
.share-ok.on { opacity: 1; }

/* ── Perspective ─────────────────────────────── */
.persp {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.8rem var(--gutter);
}

.plist { list-style: none; }

.pitem {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 0.5px solid var(--rule);
}
.pitem:last-child { border-bottom: none; }

.pfig {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3.2vw, 1.8rem);
  font-weight: 300;
  color: var(--ink);
  min-width: 8rem;
  white-space: nowrap;
}
.ptxt {
  font-size: .74rem;
  letter-spacing: .05em;
  color: var(--ink-light);
  line-height: 1.5;
}

/* ── Closing ─────────────────────────────────── */
.closing {
  border-top: 0.5px solid var(--rule);
  padding: 3.5rem var(--gutter);
  text-align: center;
}
.closing-inner {
  max-width: 520px;
  margin: 0 auto;
}

.cline {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.6vw, 1.38rem);
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.65;
}
.cline-i {
  font-style: italic;
  color: var(--ink-light);
  margin-top: .6rem;
  font-size: clamp(.95rem, 2.3vw, 1.2rem);
  line-height: 1.65;
}
.cbtn-wrap { margin-top: 2.2rem; }

/* ── Verdict ─────────────────────────────────── */
.verdict {
  background: var(--parchment);
  border-top: 0.5px solid var(--rule);
  padding: 3.5rem var(--gutter);
  text-align: center;
  display: none;
}
.verdict-inner { max-width: 400px; margin: 0 auto; }

.vword {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 1.3rem;
}
.vbody {
  font-family: var(--serif);
  font-size: clamp(.92rem, 2vw, 1.15rem);
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: .9rem;
}
.vattr {
  font-size: .63rem;
  letter-spacing: .12em;
  color: var(--ink-faint);
}

/* ── Sources ─────────────────────────────────── */
.sources {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--gutter);
}
.shead {
  font-size: .61rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
}
.slist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-bottom: 1.4rem;
}
.sitem {
  font-size: .71rem;
  color: var(--ink-light);
  line-height: 1.6;
}
.sitem-title { color: var(--ink-mid); }
.sitem a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 0.5px solid var(--rule);
  transition: border-color .2s;
  white-space: nowrap;
}
.sitem a:hover { border-color: var(--amber); }

.disclaimer {
  font-size: .64rem;
  color: var(--ink-light);
  line-height: 1.75;
  font-style: italic;
  padding-top: 1.2rem;
  border-top: 0.5px solid var(--rule);
}
.disclaimer a {
  color: var(--ink-light);
  text-decoration: none;
  border-bottom: 0.5px solid var(--rule);
}

.drink-resp {
  font-size: .64rem;
  color: var(--ink-light);
  line-height: 1.8;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 0.5px solid var(--rule);
  letter-spacing: .02em;
}
.drink-resp a {
  color: var(--ink-light);
  text-decoration: none;
  border-bottom: 0.5px solid var(--rule);
}

/* ── Full-bleed section divider ─────────────── */
.section-rule {
  width: 100%;
  height: 0;
  border-bottom: 0.5px solid var(--rule);
  margin: 0;
}

/* ── Counter note ───────────────────────────── */
.counter-note {
  font-size: .68rem;
  font-weight: 300;
  letter-spacing: .07em;
  color: var(--ink-faint);
  margin-top: .4rem;
}

/* ── Footer ──────────────────────────────────── */
.footer {
  border-top: 0.5px solid var(--rule);
  padding: 1.4rem var(--gutter);
  text-align: center;
}
.footer p {
  font-size: .67rem;
  color: var(--ink-light);
  line-height: 2.2;
}
.footer a {
  color: var(--ink-light);
  text-decoration: none;
  border-bottom: 0.5px solid var(--rule);
}
.footer a:hover { border-color: var(--ink-light); }

/* ── Easter egg ──────────────────────────────── */
.egg-trigger {
  display: inline-block;
  cursor: pointer;
  user-select: none;
}

@keyframes cheers {
  0%   { transform: scale(1)    rotate(0);     }
  20%  { transform: scale(1.4)  rotate(-18deg);}
  50%  { transform: scale(1.2)  rotate(14deg); }
  70%  { transform: scale(1.1)  rotate(-7deg); }
  85%  { transform: scale(1.04) rotate(3deg);  }
  100% { transform: scale(1)    rotate(0);     }
}
.egg-trigger.clink { animation: cheers .55s ease forwards; }

.slainte {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: .82rem;
  color: var(--amber);
  letter-spacing: .05em;
  text-align: center;
  margin-bottom: .3rem;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.slainte.show { opacity: 1; transform: translateY(0); }
.slainte.hiding { opacity: 0; transform: translateY(-3px); }

/* ── Fade-up entrance animations ─────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(10px);
  animation: fup .8s ease forwards;
}
@keyframes fup { to { opacity: 1; transform: translateY(0); } }

.a1 { animation-delay: .05s; }
.a2 { animation-delay: .18s; }
.a3 { animation-delay: .30s; }
.a4 { animation-delay: .42s; }
.a5 { animation-delay: .54s; }
.a6 { animation-delay: .64s; }
.a7 { animation-delay: .74s; }
.a8 { animation-delay: .84s; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 500px) {
  .pair {
    grid-template-columns: 1fr;
  }
  .pair .cb:first-child {
    border-right: none;
    border-bottom: 0.5px solid var(--rule);
  }
  .vstats { gap: 1.8rem; }
  .pitem  { flex-direction: column; gap: .25rem; }
  .pfig   { min-width: unset; }
}

/* ── Cookie Banner (matches blairbowman.com style) ── */
.cookie-banner {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: calc(100% - 40px);
  max-width: 520px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 22px 24px 20px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.cookie-banner.hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
}
.cookie-rule {
  width: 2rem;
  height: 1px;
  background: var(--amber);
  margin-bottom: 18px;
  opacity: .6;
}
.cookie-header {
  font-family: var(--sans);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.cookie-body {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-light);
  margin-bottom: 6px;
}
.cookie-closing {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-mid);
  margin-bottom: 22px;
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.cookie-accept {
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 9px 20px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}
.cookie-accept:hover {
  background: var(--amber);
  border-color: var(--amber);
}
.cookie-decline {
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s;
  white-space: nowrap;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}
.cookie-decline:hover { color: var(--ink); }
