:root {
  --cream: #f8f0e8;
  --cream-deep: #efe4d8;
  --ink: #201810;
  --ink-soft: #3a2f28;
  --terracotta: #c86030;
  --peach: #e88050;
  --muted: #6f645b;
  --rule: #e0d2c4;
  --card: #fffaf4;
  --shadow: 0 18px 40px rgba(32, 24, 16, 0.08);
  --radius: 18px;
  --max: 72rem;
  --content: 40rem;
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--terracotta);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: lowercase;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.dot {
  color: var(--terracotta);
}

.wrap {
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 2.5rem), 42rem);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  font-size: 1.05rem;
}

.brand:hover {
  color: inherit;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle-label {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-label span::before {
  top: -5px;
}

.nav-toggle-label span::after {
  top: 5px;
}

nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--terracotta);
}

.hero {
  background: var(--ink);
  color: var(--cream);
  padding: 4.5rem 0 5rem;
}

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

.hero p {
  max-width: 32rem;
  color: #e8dcd0;
  font-size: 1.15rem;
}

.lede {
  font-size: 1.2rem;
  max-width: 38rem;
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.85rem;
}

.hero .kicker {
  color: var(--peach);
}

.section {
  padding: 4.2rem 0;
}

.section + .section {
  padding-top: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.product-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  color: inherit;
  transform: translateY(-3px);
  border-color: var(--terracotta);
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.steps h3 {
  margin-bottom: 0.3rem;
}

.track-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.2rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.track-list li {
  position: relative;
  padding-left: 1.1rem;
}

.track-list li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--terracotta);
  position: absolute;
  left: 0;
  top: 0.55rem;
}

.note,
.callout {
  border-left: 4px solid var(--terracotta);
  background: var(--cream-deep);
  padding: 1.1rem 1.2rem;
  border-radius: 0 14px 14px 0;
}

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

.service {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--card);
}

.service strong {
  display: block;
  margin-bottom: 0.25rem;
}

.legal {
  padding: 3.5rem 0 5rem;
}

.legal h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin-bottom: 0.4rem;
}

.legal .meta {
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal h2 {
  margin-top: 2.2rem;
}

.legal h3 {
  margin-top: 1.4rem;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li + li {
  margin-top: 0.4rem;
}

.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: var(--cream);
  padding: 2.4rem 0;
}

.site-footer a {
  color: #f0d3c2;
}

.site-footer a:hover {
  color: var(--cream);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  font-size: 1.15rem;
}

.footer-links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

.hero .muted {
  color: #cbbfb3;
}

.page-hero {
  padding: 3.2rem 0 1.2rem;
}

.page-hero h1 {
  max-width: 10ch;
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.button:hover {
  background: var(--ink);
  color: var(--cream);
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.button-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.hero .button-ghost {
  color: var(--cream);
  border-color: #8a7466;
}

.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

@media (max-width: 800px) {
  .grid-2,
  .services,
  .track-list {
    grid-template-columns: 1fr;
  }

  .nav-toggle-label {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 4.4rem;
    right: 1.25rem;
    left: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 0.6rem;
    z-index: 5;
    box-shadow: var(--shadow);
  }

  nav a {
    padding: 0.75rem 0.8rem;
  }

  .nav-toggle:checked ~ nav {
    display: flex;
  }

  .site-header {
    position: relative;
  }
}
