:root {
  --bg: #f2d9b2;
  --bg-deep: #9b3a1f;
  --paper: rgba(248, 233, 206, 0.9);
  --paper-strong: #f7e4c2;
  --ink: #2c201b;
  --muted: #5d4940;
  --signal: #d2481c;
  --signal-bright: #ffbc4d;
  --shadow: rgba(19, 13, 12, 0.24);
  --line: rgba(54, 36, 29, 0.18);
  --focus-ring: #1f1713;
  --focus-halo: #fff6df;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

a,
button,
[tabindex="-1"] {
  scroll-margin-top: 1.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(255, 203, 103, 0.42), transparent 30%),
    radial-gradient(circle at 15% 20%, rgba(255, 124, 54, 0.22), transparent 22%),
    linear-gradient(180deg, #f5d8ab 0%, #f0c47c 36%, #dc8a47 68%, #7f2e1f 100%);
  font-family: "Avenir Next", "Trebuchet MS", "Gill Sans", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
  mix-blend-mode: soft-light;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.35;
  z-index: 0;
}

.page-shell::before {
  width: 28rem;
  height: 28rem;
  right: -8rem;
  top: 14rem;
  background: rgba(255, 214, 127, 0.45);
}

.page-shell::after {
  width: 22rem;
  height: 22rem;
  left: -7rem;
  top: 48rem;
  background: rgba(103, 149, 147, 0.22);
}

.hero,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 1.2rem clamp(1.1rem, 2vw, 2rem) 4rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  background: #fff4df;
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 160ms ease;
  border: 2px solid var(--focus-ring);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto 2.4rem;
  max-width: 1200px;
}

.brand,
.topbar-links a {
  color: var(--ink);
  text-decoration: none;
}

.brand {
  font-family: "Rockwell", "Georgia", serif;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.topbar-links a {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.12em;
}

.brand:hover,
.brand:focus-visible,
.topbar-links a:hover,
.topbar-links a:focus-visible {
  text-decoration: underline;
}

.hero-grid,
.split-section,
.qsl-layout,
.intro-layout {
  margin: 0 auto;
  max-width: 1200px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg-deep);
}

h1,
h2,
h3,
dt,
.button,
.card-caption,
.site-footer p:first-child {
  font-family: "Arial Black", "Impact", sans-serif;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2.8rem, 8.5vw, 6.3rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: #f9f0d8;
  text-shadow:
    0.05em 0.05em 0 #912d18,
    0.1em 0.1em 0 rgba(19, 13, 12, 0.86);
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
}

h3 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.hero-text,
.intro-layout p,
.split-copy p,
.feature-card p,
.qsl-copy p,
.card-caption,
.site-footer p,
.signal-list {
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-copy {
  padding: clamp(1rem, 3vw, 2rem) 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 2.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

a:focus-visible,
button:focus-visible,
[tabindex="-1"]:focus {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px var(--focus-halo);
}

.button-primary {
  color: #fff4df;
  background: linear-gradient(180deg, #dd5422 0%, #a83416 100%);
  box-shadow: 0 0.9rem 1.8rem rgba(112, 35, 17, 0.26);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 241, 214, 0.92);
  border-color: rgba(63, 42, 34, 0.5);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.hero-stats div,
.feature-card,
.panel,
.card-frame {
  border: 1px solid var(--line);
  box-shadow: 0 1rem 2.4rem var(--shadow);
}

.hero-stats div {
  padding: 1rem;
  border-radius: 1.2rem;
  background: rgba(247, 229, 197, 0.72);
  backdrop-filter: blur(8px);
}

dt {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-size: 1rem;
}

.hero-card {
  justify-self: center;
}

.card-frame {
  position: relative;
  overflow: hidden;
  width: min(100%, 560px);
  padding: 1rem;
  border-radius: 1.8rem;
  background: linear-gradient(180deg, rgba(255, 241, 214, 0.9), rgba(243, 221, 177, 0.76));
  transform: rotate(-2deg);
}

.card-frame::after {
  content: "";
  position: absolute;
  inset: auto 10% -18% 10%;
  height: 28%;
  border-radius: 50%;
  background: rgba(24, 17, 12, 0.24);
  filter: blur(22px);
  z-index: -1;
}

.card-frame img,
.qsl-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.1rem;
}

main {
  padding: 0 clamp(1.1rem, 2vw, 2rem) 4rem;
}

.panel,
.split-section {
  margin-bottom: 2rem;
}

.panel {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(250, 237, 211, 0.93), rgba(240, 220, 186, 0.88)),
    var(--paper);
  backdrop-filter: blur(8px);
}

.panel-title {
  margin-bottom: 1.5rem;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1.5rem;
}

.signal-list {
  margin: 0;
  padding: 1.2rem 1.2rem 1.2rem 2.5rem;
  border-radius: 1.4rem;
  background: rgba(255, 246, 225, 0.8);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: start;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  min-height: 100%;
  padding: 1.35rem;
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgba(165, 61, 28, 0.92), rgba(110, 35, 23, 0.98)),
    var(--bg-deep);
  color: #fff4df;
}

.qsl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: center;
}

.qsl-preview {
  padding: 0.8rem;
  border-radius: 1.8rem;
  background: rgba(255, 245, 221, 0.78);
  border: 1px solid var(--line);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1rem clamp(1.1rem, 2vw, 2rem) 2.5rem;
  color: #fff8eb;
  background: rgba(35, 22, 17, 0.68);
  border-top: 1px solid rgba(255, 241, 214, 0.2);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .button,
  .js .reveal,
  .skip-link {
    transition: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-contrast: more) {
  body::before,
  .page-shell::before,
  .page-shell::after {
    opacity: 0.08;
  }

  .panel,
  .hero-stats div,
  .qsl-preview,
  .button-secondary {
    background: #fff2d9;
  }

  .feature-card,
  .button-primary,
  .site-footer {
    background: #5f2015;
  }

  h1 {
    text-shadow:
      0.05em 0.05em 0 #6c2012,
      0.1em 0.1em 0 rgba(0, 0, 0, 0.92);
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .split-section,
  .qsl-layout,
  .intro-layout,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 12ch;
  }

  .card-frame {
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 1rem;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-links {
    gap: 0.75rem;
  }

  h1 {
    font-size: clamp(2.8rem, 18vw, 4.5rem);
  }

  h2 {
    font-size: clamp(1.8rem, 11vw, 2.7rem);
  }

  .site-footer {
    flex-direction: column;
  }
}
