:root {
  --bg: #0c0906;
  --bg-2: #16110b;
  --card: rgba(18, 12, 8, 0.78);
  --card-solid: #1a140f;
  --ink: #f6f0e4;
  --muted: #d4c7b0;
  --gold: #e8c547;
  --gold-2: #c9a227;
  --green: #5cc97b;
  --green-2: #aee4bd;
  --red: #f44444;
  --line: rgba(232, 197, 71, 0.28);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --nav-h: 72px;
  --font-head: "Inter", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--green-2); }
h1, h2, h3, h4, h5, .as-h1, .title {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,6,4,0.55) 0%, rgba(8,6,4,0.72) 45%, rgba(8,6,4,0.88) 100%),
    var(--page-bg-image, url("../img/bg-sunflowers.webp")) center top / cover no-repeat,
    var(--bg);
}
body.page-potato .page-bg {
  --page-bg-image: url("../img/bg-potato-eaters.webp");
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  background: rgba(6, 4, 2, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.nav-logo img {
  width: auto;
  height: 42px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--gold); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid, .btn-buy {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1208 !important;
  text-decoration: none;
}
.btn-solid:hover, .btn-buy:hover { color: #1a1208 !important; filter: brightness(1.05); }
.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold) !important;
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 1.2rem;
}

/* LAYOUT */
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section {
  padding: 3.2rem 0;
}
.section + .section { padding-top: 0.2rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem;
  margin: 0 0 1.5rem;
  backdrop-filter: blur(10px);
}
.hero-card { padding: 0; overflow: hidden; }
.hero-banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  max-height: 420px;
  object-fit: cover;
  object-position: center 48%;
}
.hero-copy { padding: 1.6rem 1.25rem 2rem; }
.kicker {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.7rem;
}
.hero-copy h1, .hero-copy .as-h1 {
  font-size: clamp(1.8rem, 6vw, 3.15rem);
  margin-bottom: 0.35em;
}
.hero-copy .subhead {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.15rem, 3.5vw, 1.7rem);
  color: var(--ink);
  margin: 0 0 0.4em;
}
.hero-dates {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.15rem, 3.4vw, 1.85rem);
  margin: 0.2em 0 0.45em;
}
.hero-quote {
  font-style: italic;
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
}
.lede { font-weight: 700; }

/* typography in cards */
.card h2, .card .as-h1 { font-size: clamp(1.45rem, 3.6vw, 2.15rem); }
.card h3 { font-size: 1.2rem; }
.card h4 { font-size: 1.02rem; color: var(--gold); }
.prose > :first-child { margin-top: 0; }

/* MEDIA / GRIDS */
.media-grid, .grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.2rem;
}
.media-grid { grid-template-columns: 1fr; }
.frame {
  background: #070504;
  border: 8px solid #3d2a12;
  box-shadow: 0 0 0 1px #c9a227, var(--shadow);
  border-radius: 4px;
  overflow: hidden;
}
.frame img { width: 100%; height: auto; object-fit: cover; }
.product-shot {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.product-shot img { width: 100%; margin: 0 auto; }

/* SMART LAYOUTS */
.smart {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0 1.3rem;
}
.smart-cell {
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1rem 1.05rem;
}
.smart.side-line .smart-cell { border-left: 4px solid var(--gold); }
.smart.top-circle .smart-cell { text-align: left; }
.smart.icons .icon,
.smart.top-circle .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0.6rem;
  filter: invert(86%) sepia(41%) saturate(600%) hue-rotate(8deg);
}
.smart.steps { counter-reset: step; }
.smart.steps .smart-cell { position: relative; padding-left: 3.1rem; }
.smart.steps .smart-cell::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.8rem;
  top: 0.9rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1208;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}
.smart.stats { grid-template-columns: 1fr 1fr; }
.stat-label {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.smart.timeline { position: relative; }
.smart.timeline::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: var(--line);
}
.smart.timeline .smart-cell {
  padding-left: 2.2rem;
  background: transparent;
  border: 0;
  position: relative;
}
.smart.timeline .smart-cell::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 1.15rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--gold);
}

/* LISTS / TABLES / CALLOUTS */
ul, ol { margin: 0 0 1em; padding-left: 1.2rem; }
li { margin: 0.25em 0; }
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.3rem;
  font-size: 0.95rem;
  overflow: hidden;
  border-radius: 12px;
}
.table-wrap { overflow-x: auto; margin: 1rem 0 1.3rem; }
.table-wrap table { margin: 0; min-width: 520px; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid rgba(232, 197, 71, 0.18);
}
th { color: var(--gold); font-family: var(--font-head); font-weight: 700; }
tr:nth-child(even) td { background: rgba(255,255,255,0.03); }
.callout, blockquote {
  margin: 1rem 0;
  padding: 1rem 1rem 1rem 1.1rem;
  border-left: 4px solid var(--gold);
  background: rgba(232, 197, 71, 0.08);
  border-radius: 0 12px 12px 0;
}
blockquote { font-style: italic; }

/* DETAILS / NESTED CARDS */
details.more {
  margin: 1rem 0 1.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  padding: 0.2rem 0.9rem 0.4rem;
}
details.more > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
  padding: 0.85rem 0.2rem;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: " +"; }
details.more[open] > summary::after { content: " −"; }
.subcard {
  margin: 1rem 0 1.3rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
}

/* EMBEDS / LINK CARDS / VIDEO */
.link-card, .video-embed {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.9rem;
  align-items: center;
  margin: 1rem 0 1.3rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(0,0,0,0.28);
}
.link-card img { width: 140px; height: 88px; object-fit: cover; border-radius: 8px; }
.link-card strong { display: block; color: var(--ink); }
.link-card span { color: var(--muted); font-size: 0.9rem; }
.video-embed { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
.video-embed iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  display: block;
}
.divider { height: 1px; background: var(--line); margin: 1.4rem 0; border: 0; }

/* FOOTER + STICKY CTA */
.site-footer {
  margin-top: 2rem;
  padding: 2.2rem 0 6.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer strong { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; margin: 0.8rem 0 1rem; }
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(8,6,4,0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}
.sticky-cta .btn { width: min(100%, 420px); }

/* HELPERS */
.highlight { background: #81B61C; color: #111; padding: 0 0.15em; border-radius: 3px; }
hr.divider { border: 0; }

@media (min-width: 720px) {
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 2.4rem; }
  .nav { padding: 0 1.4rem; }
  .card { padding: 2rem 2rem; }
  .hero-copy { padding: 2rem 2.1rem 2.4rem; }
  .media-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .smart.cols-2, .smart.side-line, .smart.icons, .smart.boxes { grid-template-columns: 1fr 1fr; }
  .smart.cols-3, .smart.top-circle, .smart.leaf, .smart.steps { grid-template-columns: repeat(2, 1fr); }
  .smart.cols-4, .smart.stats { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .hero-banner img { height: min(42vw, 480px); object-position: center 58%; }
}
@media (min-width: 980px) {
  .smart.cols-3, .smart.top-circle, .smart.leaf, .smart.steps { grid-template-columns: repeat(3, 1fr); }
  .hero-banner img { height: min(36vw, 440px); object-position: center 52%; }
  .nav-logo img { height: 48px; }
}
@media (max-width: 719px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8,6,4,0.96);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem 1rem;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a, .nav-links .btn { width: 100%; text-align: center; padding: 0.7rem 0.4rem; }
  .link-card { grid-template-columns: 1fr; }
  .link-card img { width: 100%; height: 140px; }
  .smart.stats { grid-template-columns: 1fr 1fr; }
}
