:root {
  --bg: #f3efe4;
  --panel: rgba(255, 252, 246, 0.8);
  --panel-strong: #fffaf0;
  --text: #18322d;
  --muted: #546861;
  --accent: #b75f28;
  --accent-strong: #7a3512;
  --line: rgba(24, 50, 45, 0.12);
  --shadow: 0 18px 45px rgba(24, 50, 45, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(183, 95, 40, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(24, 50, 45, 0.14), transparent 30%),
    var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

body[data-site-environment="dev"] {
  --environment-banner: #7a3512;
}

body[data-site-environment="staging"] {
  --environment-banner: #365c53;
}

a {
  color: inherit;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.environment-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  background: var(--environment-banner, var(--text));
  color: #fffaf4;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.shell-narrow {
  width: min(760px, calc(100% - 2rem));
}

.hero,
.legal,
.card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero,
.legal {
  padding: 2rem;
}

.hero h1,
.legal h1,
.card h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.hero h1 {
  max-width: 9ch;
  font-size: clamp(3rem, 9vw, 6.2rem);
}

.legal h1 {
  font-size: clamp(2.3rem, 7vw, 4rem);
}

.eyebrow,
.card-label {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.lede {
  max-width: 56rem;
  margin: 1.25rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

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

.button-primary {
  background: var(--text);
  color: #fffaf4;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
}

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

.card {
  padding: 1.4rem;
}

.card-accent {
  background:
    linear-gradient(135deg, rgba(183, 95, 40, 0.12), rgba(255, 250, 240, 0.92)),
    var(--panel-strong);
}

.card p,
.card li {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.checklist {
  margin: 0;
  padding-left: 1.2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2rem;
}

.callout {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  line-height: 1.6;
}

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

  .shell {
    width: min(100% - 1rem, 1120px);
    padding: 1rem 0 2.5rem;
  }

  .hero,
  .legal,
  .card {
    border-radius: 22px;
    padding: 1.25rem;
  }

  .hero h1 {
    max-width: 12ch;
  }
}
