:root {
  color-scheme: light dark;
  --background: #f1efe8;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #fffef9;
  --text: #171917;
  --muted: #656960;
  --line: rgba(27, 31, 27, 0.14);
  --accent: #ec5b2a;
  --accent-strong: #bc3513;
  --accent-text: #fffaf4;
  --ink: #14241d;
  --success: #2e7d58;
  --shadow: 0 24px 70px rgba(32, 38, 31, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 4%, rgba(236, 91, 42, 0.13), transparent 29rem),
    radial-gradient(circle at 89% 88%, rgba(46, 125, 88, 0.11), transparent 32rem),
    var(--background);
  color: var(--text);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(25, 30, 25, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 30, 25, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  content: "";
  pointer-events: none;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent), transparent 35%);
  outline-offset: 4px;
}

header,
main,
footer {
  width: min(76rem, calc(100% - 2rem));
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 780;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.quiet-link {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

main {
  padding-block: clamp(3rem, 9vw, 7rem);
}

.entry-main {
  min-height: calc(100vh - 12rem);
}

.entry-hero,
.hero {
  max-width: 58rem;
}

.entry-hero {
  padding-top: clamp(1rem, 7vw, 6rem);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  backdrop-filter: blur(14px);
}

.status-pill span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--success), transparent 84%);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.06;
  text-wrap: balance;
}

h1 {
  max-width: 16ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 9vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -0.06em;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
}

.lede {
  max-width: 45rem;
  margin-block: 1.5rem 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  text-wrap: pretty;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.8rem;
  border: 1px solid var(--ink);
  border-radius: 0.8rem;
  padding: 0.72rem 1.05rem;
  background: var(--ink);
  color: #fff;
  font-weight: 760;
  box-shadow: 0 8px 24px rgba(20, 36, 29, 0.14);
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(20, 36, 29, 0.2);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.entry-steps,
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin-top: clamp(4rem, 10vw, 8rem);
}

.entry-steps article,
.card,
.steps li {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
  backdrop-filter: blur(16px);
}

.entry-steps article,
.card {
  padding: 1.35rem;
}

.entry-steps article > span {
  color: var(--accent-strong);
  font: 700 0.78rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.entry-steps h2 {
  margin: 2.3rem 0 0.5rem;
}

.entry-steps p,
.card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

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

.steps li {
  padding: 1.4rem;
  counter-increment: steps;
}

.steps li::before {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--accent-strong);
  font-weight: 750;
  content: counter(steps, decimal-leading-zero);
}

footer {
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.public-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.public-footer p {
  margin: 0;
}

@media (max-width: 42rem) {
  header,
  .public-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5rem);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111411;
    --surface: rgba(27, 33, 28, 0.8);
    --surface-strong: #1b201c;
    --text: #f2f0e9;
    --muted: #aeb5ab;
    --line: rgba(235, 240, 232, 0.15);
    --accent: #ff7647;
    --accent-strong: #ff8d67;
    --accent-text: #1d0b05;
    --ink: #eff4ec;
  }

  .button {
    color: #152018;
  }

  .wordmark-mark {
    background: #f2f0e9;
    color: #151815;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
