/* ==========================================================================
   Stitchglyph — site styles
   Palette: deep indigo, warm sand, thread-gold. System fonts only.
   ========================================================================== */

:root {
  /* Indigo */
  --indigo-950: #14163a;
  --indigo-900: #1d2050;
  --indigo-800: #282c68;
  --indigo-700: #363b86;
  --indigo-500: #5a60b8;
  --indigo-200: #c9cbea;
  --indigo-100: #e4e5f4;

  /* Sand */
  --sand-50: #fbf7f0;
  --sand-100: #f4ecdf;
  --sand-200: #eadcc4;
  --sand-300: #d9c39a;
  --sand-500: #a88d5f;

  /* Thread-gold */
  --gold-200: #f3dca6;
  --gold-300: #ecc879;
  --gold-400: #e0b04f;
  --gold-500: #c9952b;
  --gold-700: #7d5a0e;

  /* Roles */
  --bg: var(--sand-50);
  --surface: #fffdf9;
  --ink: var(--indigo-900);
  --ink-soft: #484b70;
  --line: var(--sand-200);
  --focus: var(--indigo-700);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-card: 0 1px 2px rgba(29, 32, 80, 0.06), 0 12px 32px -12px rgba(29, 32, 80, 0.18);
  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-space: clamp(4.5rem, 10vw, 8rem);

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
}

h3,
.h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--indigo-700);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--indigo-900);
  text-decoration-style: dashed;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--gold-300);
  color: var(--indigo-950);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--indigo-900);
  color: var(--sand-50);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--gold-400);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Stitch accents
   -------------------------------------------------------------------------- */

/* A horizontal line of running stitches */
.stitch-rule {
  height: 2px;
  border: 0;
  margin: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--gold-500) 0 12px,
    transparent 12px 20px
  );
  opacity: 0.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--gold-700);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 10px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 240, 0.92);
  border-bottom: 1px solid transparent;
  border-image: repeating-linear-gradient(90deg, var(--sand-300) 0 8px, transparent 8px 14px) 1;
}

@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(251, 247, 240, 0.8);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
  }
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: 72px;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--indigo-900);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--indigo-900);
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--sand-100);
  color: var(--indigo-900);
}

.site-nav a[aria-current="page"] {
  background: var(--indigo-100);
  color: var(--indigo-900);
}

.site-nav .nav-cta {
  margin-left: 0.35rem;
  background: var(--indigo-900);
  color: var(--sand-50);
}

.site-nav .nav-cta:hover {
  background: var(--indigo-700);
  color: #fff;
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.45rem 0.7rem;
  }

  .site-nav .nav-cta {
    margin-left: 0;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.button:hover {
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .button:hover {
    transform: translateY(-1px);
  }
}

.button svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.button--gold {
  background: var(--gold-400);
  color: var(--indigo-950);
}

.button--gold:hover {
  background: var(--gold-300);
  color: var(--indigo-950);
}

.button--ghost {
  border-color: rgba(244, 236, 223, 0.45);
  color: var(--sand-50);
}

.button--ghost:hover {
  border-color: var(--sand-100);
  background: rgba(244, 236, 223, 0.08);
  color: #fff;
}

.button--indigo {
  background: var(--indigo-900);
  color: var(--sand-50);
}

.button--indigo:hover {
  background: var(--indigo-700);
  color: #fff;
}

.button__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.button__stack small {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Dark surfaces (hero, CTA band, footer)
   -------------------------------------------------------------------------- */

.on-dark {
  --focus: var(--gold-300);
  color: var(--sand-100);
}

.on-dark a:not(.button) {
  color: var(--gold-300);
}

.on-dark a:not(.button):hover {
  color: var(--gold-200);
}

.on-dark .eyebrow {
  color: var(--gold-300);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero-wrap {
  padding: clamp(0.75rem, 2vw, 1.25rem);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(90, 96, 184, 0.55), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(201, 149, 43, 0.22), transparent 60%),
    linear-gradient(160deg, var(--indigo-800), var(--indigo-950));
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

/* Inner stitched border */
.hero::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px dashed rgba(236, 200, 121, 0.28);
  border-radius: calc(var(--radius-lg) - 10px);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.4em;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-300);
  text-decoration: underline dashed var(--gold-400);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.16em;
}

.hero__lede {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: var(--indigo-100);
  font-size: clamp(1.125rem, 1.8vw, 1.3rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.format-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.format-chips li {
  padding: 0.3rem 0.75rem;
  border: 1.5px dashed rgba(236, 200, 121, 0.55);
  border-radius: 999px;
  color: var(--gold-200);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero__note {
  margin: 0.9rem 0 0;
  color: var(--indigo-200);
  font-size: 0.9375rem;
}

.hero__art img {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  filter: drop-shadow(0 30px 40px rgba(10, 11, 40, 0.45));
}

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

  .hero__art img {
    max-width: 460px;
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--section-space);
}

section[id] {
  scroll-margin-top: 90px;
}

.section--sand {
  background: var(--sand-100);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center .eyebrow {
  justify-content: center;
}

.section__head p {
  color: var(--ink-soft);
  font-size: 1.1875rem;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

/* stitched inner seam */
.card--stitched::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px dashed var(--sand-300);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}

.card h3 {
  margin-bottom: 0.45em;
}

.card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: var(--indigo-900);
  color: var(--gold-300);
}

.icon-badge svg {
  width: 26px;
  height: 26px;
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  counter-increment: step;
}

.step__num {
  position: absolute;
  top: 1.6rem;
  right: 1.75rem;
  color: var(--sand-300);
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
}

.step__num::before {
  content: "0" counter(step);
}

/* --------------------------------------------------------------------------
   Specimen band
   -------------------------------------------------------------------------- */

.specimen {
  position: relative;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--indigo-900);
  overflow: hidden;
}

.specimen::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(236, 200, 121, 0.3);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.specimen figure {
  position: relative;
  margin: 0;
}

.specimen img {
  width: 100%;
}

.specimen figcaption {
  margin-top: 1rem;
  color: var(--indigo-200);
  font-size: 0.9375rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-grid .card {
  border: 1px solid var(--line);
  box-shadow: none;
}

.feature--wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--surface), var(--sand-100));
}

.stitch-types {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stitch-types li {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.stitch-types strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
}

.stitch-swatch {
  height: 22px;
  border-radius: 4px;
}

.stitch-swatch--satin {
  background: repeating-linear-gradient(
    100deg,
    var(--gold-500) 0 2px,
    var(--gold-300) 2px 4px
  );
}

.stitch-swatch--fill {
  background:
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(29, 32, 80, 0.16) 4px 5px),
    repeating-linear-gradient(90deg, var(--indigo-500) 0 9px, var(--indigo-700) 9px 10px);
}

.stitch-swatch--run {
  height: 3px;
  margin-block: 9.5px;
  background: repeating-linear-gradient(90deg, var(--indigo-900) 0 8px, transparent 8px 13px);
}

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

/* --------------------------------------------------------------------------
   Formats
   -------------------------------------------------------------------------- */

.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.format {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.format__tag {
  align-self: flex-start;
  margin-bottom: 1.1rem;
  padding: 0.4rem 0.8rem 0.4rem 0.7rem;
  border-radius: 10px;
  background: var(--indigo-900);
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.format__tag::before {
  content: ".";
  color: var(--sand-300);
}

.format h3 {
  margin-bottom: 0.25em;
  font-size: 1.0625rem;
}

.format p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.format__meta {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1.5px dashed var(--sand-300);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 600;
}

.format__meta strong {
  color: var(--gold-700);
}

.formats-note {
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 50rem;
  margin-inline: auto;
}

.faq details {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.faq details[open] {
  border-color: var(--sand-300);
  box-shadow: var(--shadow-card);
}

.faq summary {
  position: relative;
  padding: 1.25rem 4rem 1.25rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 50%;
  background:
    linear-gradient(var(--indigo-900), var(--indigo-900)) center / 12px 2px no-repeat,
    linear-gradient(var(--indigo-900), var(--indigo-900)) center / 2px 12px no-repeat,
    var(--sand-100);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--gold-300);
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}

.faq .faq__answer {
  padding: 0 1.5rem 1.4rem;
  color: var(--ink-soft);
}

.faq .faq__answer p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(90, 96, 184, 0.5), transparent 60%),
    var(--indigo-900);
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(236, 200, 121, 0.3);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.cta > * {
  position: relative;
}

.cta h2 {
  color: #fff;
}

.cta p {
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--indigo-100);
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Inner pages (legal, support, 404)
   -------------------------------------------------------------------------- */

.page-head {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem);
}

.page-head h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
}

.page-head p {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.1875rem;
}

.page-meta {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.page-body {
  padding-bottom: var(--section-space);
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}

.toc {
  position: sticky;
  top: 96px;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--sand-100);
}

.toc h2 {
  margin-bottom: 0.75rem;
  color: var(--gold-700);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.toc li + li {
  margin-top: 0.45rem;
}

.toc a {
  color: var(--ink-soft);
  text-decoration: none;
}

.toc a:hover {
  color: var(--indigo-900);
  text-decoration: underline dashed;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1.5px dashed var(--sand-300);
  font-size: 1.625rem;
  scroll-margin-top: 96px;
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.1875rem;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

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

.prose .callout {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--gold-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
}

.prose .callout p:last-child {
  margin-bottom: 0;
}

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

  .toc {
    position: static;
  }
}

/* Support page */

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.support-grid .card {
  display: flex;
  flex-direction: column;
}

.support-grid .card .button {
  align-self: flex-start;
  margin-top: 1.25rem;
}

.contact-email {
  font-family: var(--font-mono);
  font-weight: 600;
  word-break: break-all;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 14px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold-500) 0 5px, transparent 5px 8px);
}

/* 404 */

.not-found {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding-block: var(--section-space);
  text-align: center;
}

.not-found__code {
  margin: 0 0 1.5rem;
  color: var(--indigo-900);
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: underline dashed var(--gold-500);
  text-decoration-thickness: 6px;
  text-underline-offset: 0.12em;
}

.not-found p {
  max-width: 32rem;
  margin-inline: auto;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button--outline {
  border-color: var(--indigo-900);
  color: var(--indigo-900);
}

.button--outline:hover {
  background: var(--indigo-100);
  color: var(--indigo-900);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--indigo-950);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand:hover {
  color: #fff;
}

.site-footer__tagline {
  max-width: 22rem;
  margin-top: 1rem;
  color: var(--indigo-200);
  font-size: 0.9375rem;
}

.site-footer h2 {
  margin-bottom: 1rem;
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.5rem;
}

.site-footer a:not(.button):not(.brand) {
  color: var(--sand-100);
  text-decoration: none;
}

.site-footer a:not(.button):not(.brand):hover {
  color: var(--gold-200);
  text-decoration: underline dashed;
}

.site-footer__legal {
  padding-top: 1.75rem;
  color: var(--indigo-200);
  font-size: 0.8125rem;
}

.site-footer__legal p {
  margin-bottom: 0.4rem;
}

.site-footer .stitch-rule {
  margin-bottom: 0;
  opacity: 0.45;
}

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

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .toc {
    display: none;
  }

  body {
    background: #fff;
  }

  .legal-layout {
    display: block;
  }
}

@media (forced-colors: active) {
  .card--stitched::before,
  .hero::before,
  .cta::before,
  .specimen::before {
    border-color: CanvasText;
  }

  .button {
    border-color: ButtonText;
  }
}
