/* Wylie Milk Cigars — shared retro/8-bit theme */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #050302;
  --bg-panel: #120c08;
  --brown-dark: #2a1206;
  --gold: #f4b93b;
  --gold-light: #ffd76a;
  --gold-soft: #ffb347;
  --cream: #e7c993;
  --cream-light: #f2dca0;
  --teal: #7fe6c9;
  --line: rgba(244, 220, 160, 0.35);
}

html, body {
  min-height: 100%;
  background: var(--bg);
  font-family: 'VT323', monospace;
  color: var(--cream);
}

body {
  position: relative;
}

/* fixed scanline + vignette layers, sit above content on interior pages */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.18) 0px,
    rgba(0,0,0,0.18) 1px,
    transparent 2px,
    transparent 3px
  );
  mix-blend-mode: multiply;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 28px);
  padding: 16px 12px;
  background: linear-gradient(to bottom, rgba(8,5,3,0.96), rgba(8,5,3,0.9));
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.site-nav.nav-overlay {
  position: absolute;
  background: linear-gradient(to bottom, rgba(8,5,3,0.88), rgba(8,5,3,0.55) 80%, transparent);
  border-bottom: none;
}
.site-nav a {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(9px, 1.3vw, 13px);
  color: var(--cream-light);
  text-decoration: none;
  letter-spacing: 1px;
  padding: 6px 4px;
  text-shadow: 0 0 6px rgba(244, 185, 59, 0.5);
  transition: color 0.15s;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--gold-light);
  border-bottom: 2px solid var(--gold-soft);
}
.site-nav .sep {
  color: rgba(244, 220, 160, 0.35);
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(9px, 1.3vw, 13px);
}

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
  position: relative;
  padding: 70px 5% 50px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('hero-scene.png');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.22;
  filter: saturate(0.8);
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,3,2,0.55), rgba(5,3,2,0.92));
}
.page-banner > * { position: relative; z-index: 1; }
.page-title {
  font-family: 'Press Start 2P', monospace;
  color: var(--gold);
  font-size: clamp(20px, 4vw, 38px);
  letter-spacing: 3px;
  line-height: 1.5;
  text-shadow:
    0 0 8px rgba(244, 185, 59, 0.8),
    0 0 22px rgba(244, 185, 59, 0.4),
    3px 3px 0 var(--brown-dark);
}
.page-tagline {
  font-family: 'VT323', monospace;
  color: var(--cream);
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: 4px;
  margin-top: 12px;
  text-shadow: 0 0 8px rgba(217, 140, 63, 0.55);
}

/* ---------- Layout helpers ---------- */
main { position: relative; z-index: 1; }
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 5%;
}
.section-title {
  font-family: 'Press Start 2P', monospace;
  color: var(--gold);
  font-size: clamp(14px, 2.4vw, 20px);
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 0 0 8px rgba(244, 185, 59, 0.5);
}
.section-sub {
  text-align: center;
  color: var(--teal);
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 40px;
  text-shadow: 0 0 6px rgba(127, 230, 201, 0.4);
}
.section-lead {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 22px;
  line-height: 1.6;
  color: var(--cream);
}

/* ---------- Story (long-form narrative) ---------- */
.story-frame {
  max-width: 900px;
  margin: 0 auto 40px;
  border: 3px solid var(--gold-soft);
  box-shadow: 0 0 0 5px var(--bg-panel), 0 10px 30px rgba(0,0,0,0.6);
  border-radius: 2px;
  overflow: hidden;
}
.story-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.story-cap {
  background: var(--bg-panel);
  text-align: center;
  color: var(--teal);
  font-size: 16px;
  letter-spacing: 2px;
  padding: 10px;
  border-top: 1px solid var(--line);
}
.story {
  max-width: 760px;
  margin: 0 auto;
  font-size: 22px;
  line-height: 1.75;
  color: var(--cream);
}
.story p { margin-bottom: 22px; }
.story p:first-of-type::first-letter {
  font-family: 'Press Start 2P', monospace;
  font-size: 38px;
  color: var(--gold);
  float: left;
  line-height: 1;
  padding: 6px 10px 0 0;
  text-shadow: 0 0 8px rgba(244, 185, 59, 0.6);
}
.story .signoff {
  color: var(--gold-light);
  font-style: normal;
  letter-spacing: 1px;
}

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: linear-gradient(160deg, var(--bg-panel), var(--brown-dark) 140%);
  border: 2px solid var(--line);
  border-radius: 4px;
  padding: 22px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 8px 20px rgba(0,0,0,0.5);
}
.card h3 {
  font-family: 'Press Start 2P', monospace;
  color: var(--gold-light);
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.card p {
  font-size: 20px;
  line-height: 1.5;
  color: var(--cream);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--teal);
  border: 1px solid rgba(127, 230, 201, 0.5);
  padding: 5px 8px;
  border-radius: 3px;
  background: rgba(127, 230, 201, 0.08);
}
.price {
  font-family: 'Press Start 2P', monospace;
  color: var(--gold);
  font-size: 16px;
  margin: 14px 0;
}

/* ---------- The List ---------- */
.list-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.list-card { padding: 26px 22px; }
.list-heading {
  font-family: 'Press Start 2P', monospace;
  font-size: 15px;
  letter-spacing: 1px;
  text-align: center;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--line);
}
.list-heading.mild { color: var(--teal); text-shadow: 0 0 8px rgba(127, 230, 201, 0.5); }
.list-heading.medium { color: var(--gold-soft); text-shadow: 0 0 8px rgba(255, 179, 71, 0.5); }
.list-heading.full { color: var(--gold-light); text-shadow: 0 0 10px rgba(244, 185, 59, 0.7); }
.cigar-list {
  list-style: none;
  counter-reset: cigar;
  font-size: 18px;
  line-height: 1.5;
}
.cigar-list li {
  counter-increment: cigar;
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(244, 220, 160, 0.12);
  color: var(--cream);
}
.cigar-list li::before {
  content: counter(cigar);
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--gold);
  min-width: 22px;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.pixel-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--bg);
  background: var(--gold);
  border: 2px solid var(--brown-dark);
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--brown-dark);
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
}
.pixel-btn:hover {
  background: var(--gold-light);
}
.pixel-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--brown-dark);
}
.pixel-btn.ghost {
  background: transparent;
  color: var(--gold-light);
  border: 2px solid var(--gold-soft);
  box-shadow: 3px 3px 0 rgba(255, 179, 71, 0.25);
}

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; text-align: left; }
.field label {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--teal);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg-panel);
  border: 2px solid var(--line);
  color: var(--cream-light);
  font-family: 'VT323', monospace;
  font-size: 18px;
  padding: 10px 12px;
  border-radius: 2px;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-soft);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 30px 5% 24px;
  text-align: center;
}
.site-footer .foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}
.site-footer .foot-nav a {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 1px;
}
.site-footer .foot-nav a:hover { color: var(--gold-light); }
.url {
  font-family: 'Press Start 2P', monospace;
  color: var(--teal);
  font-size: clamp(9px, 1.4vw, 13px);
  text-shadow: 0 0 8px rgba(127, 230, 201, 0.6);
}
.copyright {
  margin-top: 10px;
  font-size: 15px;
  color: rgba(231, 201, 147, 0.5);
  letter-spacing: 1px;
}

/* ---------- Hero (home page) ---------- */
.page-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,3,2,0.65) 0%, rgba(5,3,2,0.05) 22%, rgba(5,3,2,0) 55%, rgba(5,3,2,0.55) 100%);
  pointer-events: none;
}
.hero-text {
  position: absolute;
  top: 14%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  pointer-events: none;
  padding: 0 5%;
}
.brand {
  font-family: 'Press Start 2P', monospace;
  color: var(--gold);
  font-size: clamp(20px, 5vw, 46px);
  letter-spacing: 3px;
  text-align: center;
  line-height: 1.5;
  text-shadow:
    0 0 8px rgba(244, 185, 59, 0.8),
    0 0 22px rgba(244, 185, 59, 0.4),
    3px 3px 0 var(--brown-dark);
}
.tagline {
  font-family: 'VT323', monospace;
  color: var(--cream);
  font-size: clamp(14px, 2.4vw, 22px);
  letter-spacing: 5px;
  margin-top: 10px;
  text-shadow: 0 0 8px rgba(217, 140, 63, 0.55);
}
.hero-cta {
  margin-top: 30px;
  pointer-events: auto;
}
.footer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  padding: 14px 0 18px;
  pointer-events: none;
}

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

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