/* 02 ink — near-black field, cream type, one sharp green. */

:root {
  --bg: #0c0c0b;
  --cream: #f3eadb;
  --cream-dim: #c4baab;
  --line: rgba(243, 234, 219, 0.16);
  --green: #c6ff3d;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 68rem;
  --header: 6.5rem;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

::selection {
  background: var(--cream);
  color: var(--bg);
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-160%);
  background: var(--cream);
  color: var(--bg);
  padding: 0.65rem 0.85rem;
  z-index: 80;
  text-decoration: none;
  font-size: 0.9rem;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "mark lang"
    "nav nav";
  gap: 0.85rem 0.75rem;
  align-items: center;
  padding: 0.85rem 0 0.95rem;
}

.wordmark {
  grid-area: mark;
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: 0.42em;
  color: var(--cream);
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 1;
}
.wordmark:hover { text-decoration: none; }

.header-tools {
  display: contents;
}

.header-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
}

.header-nav a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.3;
}
.header-nav a:hover { color: var(--cream); }

.lang-switch {
  grid-area: lang;
  display: inline-flex;
  border: 1px solid var(--line);
  padding: 2px;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--cream-dim);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
}

.lang-switch button.is-active,
.lang-switch button[aria-pressed="true"] {
  background: var(--cream);
  color: var(--bg);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.hero {
  padding: 1.75rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 0.25rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--cream-dim);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.hero-title {
  margin: 0;
  font-size: 2.05rem;
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.08;
  text-wrap: balance;
}

.hero-lead {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--cream-dim);
  font-size: 1.05rem;
  line-height: 1.45;
}

.hero-actions { margin: 1.25rem 0 0; }

.text-link {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 234, 219, 0.45);
  padding-bottom: 0.08em;
}
.text-link:hover { border-bottom-color: var(--cream); }

.text-link-primary {
  color: var(--green);
  border-bottom-color: var(--green);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.text-link-primary:hover { color: var(--green); border-bottom-color: var(--green); }

.hero-face {
  min-width: 0;
  container-type: inline-size;
}

.face-hold {
  height: min(440px, 96cqi);
  display: grid;
  place-items: center;
}

/* Face geometry matches the source .face-* rules. Colors only are retuned for ink. */
.face-stage {
  position: relative;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  overflow: visible;
  transform: scale(calc(min(440px, 96cqi) / 176px));
  transform-origin: center center;
}
.face-rig {
  width: 132px;
  height: 132px;
  transform-origin: 50% 60%;
  z-index: 1;
}
.face-orb {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%,
    #fffdf8 0%,
    #f3eadb 12%,
    #d5c9b6 38%,
    #9a8d7c 68%,
    #5c5146 100%);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.45),
    inset 0 0 16px rgba(255, 253, 248, 0.28),
    inset 8px 10px 14px rgba(255, 253, 248, 0.42),
    inset -10px -14px 18px rgba(48, 36, 22, 0.55);
  transform-origin: 50% 62%;
  cursor: pointer;
}
.face-orb::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 16%;
  width: 38%;
  height: 20%;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 253, 248, 0.9), rgba(255, 253, 248, 0.08) 70%, transparent);
  pointer-events: none;
}
.face-eyes {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 58px;
  height: 28px;
  margin-left: -29px;
  margin-top: -14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.face-eye {
  width: 11px;
  height: 26px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.28);
  flex: 0 0 auto;
}
.face-shadow {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 78px;
  height: 12px;
  margin-left: -39px;
  border-radius: 50%;
  background: rgba(243, 234, 219, 0.08);
  filter: blur(2px);
  z-index: 0;
}
.face-line {
  margin: 0.35rem 0 0;
  max-width: 16rem;
  text-align: center;
  color: var(--cream-dim);
  font-size: 0.95rem;
  min-height: 1.5em;
}
.face-spray {
  position: absolute;
  left: 50%;
  top: 68%;
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}
.face-drop {
  position: absolute;
  width: 5px;
  height: 8px;
  margin: -4px 0 0 -2px;
  border-radius: 40%;
  background: var(--cream);
  animation: face-drop 620ms cubic-bezier(0.12, 0.7, 0.2, 1) forwards;
}
@keyframes face-drop {
  0% { opacity: 0; transform: translate(0, 0) scale(0.35); }
  18% { opacity: 0.95; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.25); }
}

.section {
  padding: 3.25rem 0;
  border-top: 1px solid var(--line);
}

.section-head h2,
.cta-inner h2 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
}

.section-lead,
.cta-inner p {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  color: var(--cream-dim);
}

.steps,
.include-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.step,
.include-list li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.step-num {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--cream-dim);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
}

.step h3,
.include-list h3,
.footer-label {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.step p,
.include-list p {
  margin: 0.4rem 0 0;
  color: var(--cream-dim);
  max-width: 40rem;
}

.section-cta { padding-top: 3.5rem; }

.cta-inner .text-link-primary {
  display: inline-block;
  margin-top: 1.35rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.75rem;
}

.footer-wordmark { margin-bottom: 0.85rem; }

.footer-tag,
.footer-address,
.footer-copy,
.footer-cols p {
  margin: 0.35rem 0 0;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.footer-name {
  margin: 1rem 0 0;
  font-weight: 600;
}

.footer-address { line-height: 1.45; }

.footer-cols {
  display: grid;
  gap: 1.25rem;
}

.footer-cols a { text-decoration: none; border-bottom: 1px solid rgba(243, 234, 219, 0.35); }
.footer-cols a:hover { color: var(--cream); border-bottom-color: var(--cream); }

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
}

#how, #included { scroll-margin-top: 7.5rem; }

@media (min-width: 800px) {
  :root { --header: 4.25rem; }

  .wrap { width: min(100% - 3rem, var(--wrap)); }

  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "mark nav lang";
    gap: 1.5rem;
    padding: 1rem 0;
  }

  .wordmark {
    font-size: 0.84rem;
    letter-spacing: 0.22em;
  }

  .header-nav {
    justify-content: flex-end;
    gap: 1.5rem;
  }

  .header-nav a { font-size: 0.95rem; }

  .hero {
    padding: 2.5rem 0 3.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
    gap: 2rem 3rem;
    align-items: center;
    min-height: calc(100svh - var(--header) - 5rem);
  }

  .hero-title {
    font-size: clamp(2.8rem, 4.3vw, 4.15rem);
  }

  .hero-lead { font-size: 1.15rem; }

  .section { padding: 5rem 0; }

  .section-head h2,
  .cta-inner h2 { font-size: clamp(2.2rem, 3.4vw, 3.15rem); }

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

  .step { padding-top: 1.35rem; }

  .include-list li {
    display: grid;
    grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
    gap: 1.5rem 2.5rem;
    align-items: baseline;
    padding: 1.4rem 0;
  }

  .include-list p { margin: 0; }

  .section-cta { padding: 5.5rem 0; }

  .footer-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-areas:
      "brand cols"
      "copy copy";
    gap: 2rem 3rem;
    align-items: start;
  }

  .footer-brand { grid-area: brand; }
  .footer-cols {
    grid-area: cols;
    grid-template-columns: 1fr 1fr;
    justify-self: end;
    width: min(100%, 28rem);
  }
  .footer-copy { grid-area: copy; }

  #how, #included { scroll-margin-top: 5.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .face-drop { animation: none; }
}
