:root {
  --ink: #f5efe3;
  --muted: #c8baa1;
  --sand: #e3d2b4;
  --copper: #cb8c58;
  --sage: #2b6f73;
  --forest: #214447;
  --night: #0d1215;
  --night-soft: #121a1e;
  --panel: rgba(21, 31, 36, 0.82);
  --panel-soft: rgba(27, 39, 44, 0.78);
  --border: rgba(200, 186, 161, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --font-display: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  --font-body: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top right, rgba(43, 111, 115, 0.32), transparent 28%),
    radial-gradient(circle at bottom left, rgba(203, 140, 88, 0.18), transparent 24%),
    linear-gradient(160deg, #091014 0%, #10181d 48%, #171113 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.page-shell-narrow {
  max-width: 900px;
}

.hero,
.section,
.subpage-header {
  animation: rise 500ms ease-out both;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: linear-gradient(155deg, rgba(22, 32, 38, 0.92), rgba(15, 20, 24, 0.74));
  box-shadow: var(--shadow);
}

.hero-copy h1,
.section-heading h2,
.subpage-header h1,
.callout-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.96;
}

.lede {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-actions,
.callout-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button,
.callout-links a,
.back-link {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.callout-links a:hover,
.back-link:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--copper), #dfad7b);
  color: #16100e;
  border-color: transparent;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
}

.hero-mark {
  display: flex;
  justify-content: center;
}

.hero-mark img {
  width: min(100%, 340px);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.4));
}

.section {
  margin-top: 28px;
}

.stats,
.surface-grid,
.two-up,
.shot-grid {
  display: grid;
  gap: 16px;
}

.stats,
.surface-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2,
.subpage-header h1,
.callout-copy h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.stat-card,
.panel,
.surface-card,
.shot,
.callout {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stat-card,
.surface-card {
  border-radius: 22px;
  padding: 18px;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.panel,
.callout {
  border-radius: 26px;
  padding: 22px;
}

.panel h2,
.panel h3,
.surface-card h3,
.shot figcaption {
  margin-top: 0;
}

.panel p,
.surface-card p,
.shot figcaption,
.clean-list li {
  color: var(--muted);
  line-height: 1.7;
}

.shot {
  border-radius: 24px;
  overflow: hidden;
}

.shot img {
  width: 100%;
  display: block;
}

.shot figcaption {
  padding: 16px 18px 20px;
  background: var(--panel-soft);
}

.callout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: center;
}

.callout-links {
  margin-top: 0;
  flex-direction: column;
  align-items: flex-start;
}

.callout-links a {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  width: 100%;
}

.subpage-header {
  padding: 18px 0 8px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--sand);
  font-weight: 700;
}

.clean-list {
  margin: 0;
  padding-left: 18px;
}

pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
}

code {
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.95em;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero,
  .callout,
  .stats,
  .surface-grid,
  .two-up,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding: 24px 18px 48px;
  }

  .hero {
    padding: 22px;
  }
}
