:root {
  color-scheme: light dark;
  --paper: #f7f5ef;
  --paper-raised: #fffdf8;
  --paper-soft: #efece3;
  --ink: #292d35;
  --muted: #62645f;
  --accent: #3c496c;
  --line: #d9d8ce;
  --working: #435778;
  --waiting: #98532d;
  --done: #486c55;
  --stage: #e9e8dc;
  --focus: #765027;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1e2328;
    --paper-raised: #252b31;
    --paper-soft: #22292e;
    --ink: #eeede5;
    --muted: #b5bbb7;
    --accent: #b9c8ed;
    --line: #444c53;
    --working: #a8bde3;
    --waiting: #e8b582;
    --done: #a6c7af;
    --stage: #303936;
    --focus: #e7c99b;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

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

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

h1, h2, h3, p, figure {
  margin: 0;
}

h1, h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 400;
}

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

.skip-link {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--paper-raised);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.75rem;
  border-bottom: 1px solid var(--line);
}

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

.wordmark img {
  width: 2.25rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.contact-link span {
  font-size: 1.1rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding-block: 6rem 5.5rem;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 14ch;
  margin-top: 1.5rem;
  font-size: clamp(2.8rem, 5.4vw, 4.85rem);
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.hero h1 em {
  color: var(--accent);
  font-weight: 400;
}

.hero-description {
  max-width: 31rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.development-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
  margin-top: 1.65rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 100vmax;
  color: var(--muted);
  font-size: 0.75rem;
}

.development-badge > span {
  flex: 0 0 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.hero-art {
  min-width: 0;
  text-align: center;
}

.mascot-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  aspect-ratio: 1;
}

.mascot-stage::before {
  position: absolute;
  z-index: -1;
  inset: 11% 3% 4% 6%;
  border-radius: 48% 48% 43% 43%;
  background: var(--stage);
  content: "";
  transform: rotate(-7deg);
}

.mascot {
  position: relative;
  width: 100%;
}

.orbit {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.orbit-one {
  top: 15%;
  right: 12%;
}

.orbit-two {
  bottom: 19%;
  left: 3%;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--accent);
}

.hero-art figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
}

.problem {
  padding-block: 3rem 5rem;
  border-top: 1px solid var(--line);
}

.problem-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5rem;
  margin-top: 1.25rem;
}

.problem h2 {
  max-width: 20ch;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.problem-description {
  padding-top: 0.2rem;
  color: var(--muted);
  font-size: 1rem;
}

.problem-description p + p {
  margin-top: 0.75rem;
}

.how-it-works {
  padding-block: 4.5rem 5rem;
  background: var(--paper-soft);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 35rem;
}

.section-heading h2 {
  margin-top: 1rem;
  font-size: clamp(2.1rem, 3.3vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.section-heading > p:last-child {
  max-width: 30rem;
  margin-top: 1rem;
  color: var(--muted);
}

.how-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  margin-top: 2.75rem;
}

.schematic {
  min-width: 0;
}

.schematic > img {
  width: 100%;
}

.schematic figcaption {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.status-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
}

.working { background: var(--working); }
.waiting { background: var(--waiting); }
.done { background: var(--done); }

.features {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--paper-raised);
}

.feature-number {
  padding-top: 0.1rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.feature-card h3 {
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.feature-card p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.claude-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 4rem;
  padding-block: 4.5rem;
}

.claude-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.claude-label h2 {
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.claude-copy {
  color: var(--muted);
  font-size: 0.95rem;
}

.local-note {
  margin-top: 1rem;
  color: var(--ink);
  font-size: 0.85rem;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-contact a {
  display: inline-block;
  color: var(--ink);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 3rem);
  }

  .hero {
    gap: 1rem;
    padding-block: 4rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
  }

  .problem-copy,
  .claude-section {
    gap: 2rem;
  }

  .how-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .schematic {
    width: 100%;
    max-width: 36rem;
    margin-inline: auto;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card {
    gap: 0.8rem;
    padding: 1.2rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 2rem);
  }

  .site-header {
    min-height: 5.25rem;
  }

  .wordmark {
    font-size: 1.3rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding-block: 2.75rem 2.5rem;
  }

  .hero h1 {
    max-width: 15ch;
    margin-top: 1.1rem;
    font-size: clamp(2.6rem, 11.5vw, 3.75rem);
    letter-spacing: -0.045em;
  }

  .hero-description {
    margin-top: 1.25rem;
    font-size: 1rem;
  }

  .development-badge {
    margin-top: 1.3rem;
  }

  .mascot-stage {
    width: 86%;
    max-width: 22rem;
  }

  .hero-art figcaption {
    font-size: 0.85rem;
  }

  .problem {
    padding-block: 2.25rem 3rem;
  }

  .problem-copy,
  .claude-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .problem h2 {
    max-width: 21ch;
    font-size: 2rem;
  }

  .how-it-works {
    padding-block: 3rem;
  }

  .how-layout {
    margin-top: 1.75rem;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-card {
    padding: 1.25rem;
  }

  .claude-section {
    padding-block: 3rem;
  }

  .footer-inner {
    padding-block: 1.5rem;
  }

  .footer-contact a {
    overflow-wrap: anywhere;
  }
}
