:root {
  color-scheme: dark;
  --ink: #070607;
  --charcoal: #121014;
  --panel: rgba(24, 19, 19, 0.78);
  --panel-strong: rgba(31, 23, 22, 0.94);
  --border: rgba(207, 142, 61, 0.26);
  --gold: #d7a957;
  --orange: #b85f24;
  --orange-bright: #d77a31;
  --burgundy: #4a111b;
  --bone: #eee1c8;
  --muted: #c9b99f;
  --stone: #2a2728;
  --shadow: rgba(0, 0, 0, 0.48);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--bone);
  background:
    radial-gradient(circle at 80% 8%, rgba(215, 169, 87, 0.18), transparent 18rem),
    radial-gradient(circle at 20% 0%, rgba(74, 17, 27, 0.58), transparent 32rem),
    linear-gradient(145deg, #050405 0%, #121014 45%, #090707 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 22%, rgba(238, 225, 200, 0.035) 22% 23%, transparent 23% 100%),
    radial-gradient(circle at 50% 20%, rgba(238, 225, 200, 0.08), transparent 24rem);
  opacity: 0.7;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.disclosure-bar {
  padding: 0.65rem 1rem;
  color: #fbefd9;
  background: #15100f;
  border-bottom: 1px solid rgba(215, 169, 87, 0.32);
  font-size: 0.84rem;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 6, 7, 0.84);
  border-bottom: 1px solid rgba(215, 169, 87, 0.18);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 0.9rem 0;
}

.brand,
.footer-brand {
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 4vw, 1.48rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.65rem, 3vw, 1.4rem);
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-links a,
.footer-links a {
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--orange-bright);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 5rem 1rem 4.5rem;
  border-bottom: 1px solid rgba(215, 169, 87, 0.18);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 6, 7, 0.88), rgba(7, 6, 7, 0.58), rgba(7, 6, 7, 0.92)),
    radial-gradient(circle at 75% 25%, rgba(238, 225, 200, 0.12), transparent 16rem),
    radial-gradient(circle at 20% 72%, rgba(184, 95, 36, 0.18), transparent 24rem);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  content: "";
  background: linear-gradient(0deg, rgba(7, 6, 7, 0.88), transparent);
}

.moon-glow {
  position: absolute;
  right: 8%;
  top: 18%;
  width: clamp(9rem, 25vw, 17rem);
  height: clamp(9rem, 25vw, 17rem);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(238, 225, 200, 0.9), rgba(238, 225, 200, 0.42) 34%, rgba(215, 169, 87, 0.1) 64%, transparent 70%);
  opacity: 0.42;
  filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--orange-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  color: #fff0d4;
  line-height: 1.08;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.55rem, 11vw, 6.45rem);
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 7vw, 3.55rem);
}

h3 {
  font-size: 1.12rem;
}

.hero-copy {
  max-width: 690px;
  margin: 1.25rem auto 0;
  color: #eadcc4;
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.1rem;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  margin-top: 1.7rem;
  color: #1b0d04;
  background: linear-gradient(180deg, #e5b667, #c96c28);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

.button-primary:hover {
  background: linear-gradient(180deg, #efc579, #d9792f);
}

.section {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 4rem 0;
}

:where(.hero, .section, .site-footer, #halloween-product-sections, .product-group, h2[id], h3[id], p[id]) {
  scroll-margin-top: 7rem;
}

.intro-section {
  display: grid;
  place-items: center;
}

.editorial-panel {
  max-width: 840px;
  padding: clamp(1.4rem, 4vw, 2.3rem);
  background:
    linear-gradient(135deg, rgba(28, 20, 18, 0.93), rgba(74, 17, 27, 0.28)),
    linear-gradient(90deg, rgba(215, 169, 87, 0.07), transparent);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.3);
}

.editorial-panel p:last-child,
.section-heading p {
  color: var(--muted);
  font-size: 1rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.product-group {
  margin-top: 4.25rem;
}

.product-group:first-child {
  margin-top: 0;
}

.product-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(215, 169, 87, 0.22);
}

.product-group-heading h3 {
  color: #fff0d4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 5vw, 2.1rem);
}

.product-count {
  flex: 0 0 auto;
  color: var(--orange-bright);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-grid,
.note-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.product-card,
.note-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 18px 42px var(--shadow);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-media {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(74, 17, 27, 0.48), rgba(184, 95, 36, 0.14)),
    var(--stone);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem;
}

.category-label,
.paid-link {
  color: var(--orange-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-title {
  margin-top: 0.45rem;
}

.product-description,
.best-for {
  color: var(--muted);
  font-size: 0.94rem;
}

.product-description {
  margin: 0.65rem 0;
}

.best-for {
  margin: 0 0 1rem;
}

.best-for strong {
  color: #f4e6ca;
}

.product-action {
  margin-top: auto;
}

.paid-link {
  display: block;
  margin-bottom: 0.45rem;
}

.amazon-button {
  width: 100%;
  color: #1b0d04;
  background: linear-gradient(180deg, #e2b35f, #bd6326);
  border: 1px solid rgba(255, 228, 177, 0.54);
}

.amazon-button:hover {
  background: linear-gradient(180deg, #edc474, #cd722e);
}

.amazon-button.is-placeholder {
  color: #f4e6ca;
  background: rgba(58, 41, 36, 0.82);
  border-color: rgba(215, 169, 87, 0.42);
  cursor: not-allowed;
}

.style-notes {
  padding-top: 2rem;
}

.note-card {
  padding: 1.25rem;
}

.step-number {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: var(--orange-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  line-height: 1;
}

.note-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  display: grid;
  gap: 1.5rem;
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 3rem 0 2rem;
  color: var(--muted);
  border-top: 1px solid rgba(215, 169, 87, 0.24);
  font-size: 0.92rem;
}

@media (max-width: 420px) {
  .nav-shell {
    justify-content: center;
    text-align: center;
  }

  .nav-links {
    justify-content: center;
    width: 100%;
  }
}

@media (min-width: 700px) {
  .product-grid,
  .note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 1000px) {
  .hero-content {
    margin-left: max(1rem, calc((100vw - var(--max-width)) / 2));
    text-align: left;
  }

  .hero-copy {
    margin-left: 0;
  }

  .product-grid,
  .note-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
