@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-latin-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/newsreader-latin-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/newsreader-latin-italic-variable.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f5efe2;
  --paper-deep: #ece2cd;
  --ink: #221c0e;
  --ink-soft: #5a4f30;
  --warm: #a87520;
  --warm-deep: #7d5612;
  --warm-soft: #f0e3c1;
  --warm-line: #ddc99b;
  --card-shadow: 0 1px 0 #221c0e0a, 0 8px 28px -12px #221c0e2e;
  --hover-shadow: 0 1px 0 #221c0e0a, 0 16px 40px -14px #221c0e38;
  --content-max: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}

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

picture {
  display: block;
}

a {
  color: inherit;
}

button,
textarea {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.25rem;
}

.brand {
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 400;
}

.nav a {
  text-decoration: none;
}

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

.nav-button {
  border-radius: 999px;
  background: var(--warm);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.nav-button:hover {
  background: var(--warm-deep);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(3rem, 5vw, 4rem);
  max-width: var(--content-max);
  margin: 0 auto;
  overflow: hidden;
  padding: 5rem 2rem 8rem;
}

.hero-copy {
  min-width: 0;
  margin-top: 0;
}

.eyebrow,
.kicker,
.sample-card-kicker {
  margin: 0;
  color: var(--warm-deep);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 100%;
  margin: 1.25rem 0 0;
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
  line-height: 1.05;
}

.hand-underline {
  background-image: linear-gradient(transparent 60%, rgba(168, 117, 32, 0.2) 60% 86%, transparent 86%);
  background-repeat: no-repeat;
  padding-bottom: 0.05em;
}

.hero-line {
  display: block;
}

h2 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.lede {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 2rem;
}

.button,
.text-link {
  font-weight: 600;
  text-decoration: none;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--warm-line);
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
}

.button.primary {
  border-color: var(--warm);
  background: var(--warm);
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(181, 83, 63, 0.4);
}

.button:hover {
  border-color: var(--warm);
}

.button.primary:hover {
  background: var(--warm-deep);
}

.text-link {
  color: var(--ink-soft);
  font-size: 0.875rem;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.hero-note {
  margin-top: 1.5rem;
  color: rgba(90, 79, 48, 0.72);
  font-size: 0.75rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 36rem;
  margin-top: 1.35rem;
}

.trust-row span {
  border: 1px solid rgba(221, 201, 155, 0.82);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
  color: var(--ink-soft);
  padding: 0.42rem 0.72rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.sample-card-shell {
  position: relative;
  width: 100%;
  max-width: 29.5rem;
  justify-self: end;
  transform-origin: center;
  transition: transform 420ms cubic-bezier(0.2, 0.72, 0.24, 1);
  will-change: transform;
}

.sample-card-shell::before {
  position: absolute;
  inset: -0.5rem;
  z-index: -1;
  border-radius: 1.5rem;
  background: rgba(240, 227, 193, 0.4);
  filter: blur(1.5rem);
  content: "";
}

.sample-card {
  position: relative;
  overflow: visible;
  width: 100%;
  border: 1px solid var(--warm-line);
  border-radius: 1rem;
  background: #fff;
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  transform: rotate(1.5deg);
  transition: box-shadow 420ms cubic-bezier(0.2, 0.72, 0.24, 1);
}

.sample-card:focus {
  outline: 3px solid rgba(168, 117, 32, 0.32);
  outline-offset: 0.35rem;
}

.sample-card-shell.is-presenting {
  z-index: 3;
  transform: scale(1.055);
}

.sample-card-shell.is-presenting .sample-card {
  box-shadow: var(--hover-shadow);
}

.sample-card h2 {
  margin-top: 0.75rem;
  max-width: 42rem;
  font-size: 1.375rem;
  line-height: 1.25;
}

.sample-card-meta {
  margin: 0.25rem 0 1.25rem;
  border-bottom: 1px solid var(--warm-line);
  padding-bottom: 1.25rem;
  color: rgba(90, 79, 48, 0.78);
  font-size: 0.75rem;
  font-style: italic;
}

.artifact {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--warm-line);
  border-radius: 0.75rem;
  background: #fffdf8;
}

.artifact img {
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.sample-card-notes {
  margin-top: 1rem;
  border-top: 1px solid var(--warm-line);
  padding-top: 1rem;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.sample-card-notes p {
  margin: 0;
}

.sample-card-notes p + p {
  margin-top: 0.72rem;
}

.band {
  border-top: 1px solid var(--warm-line);
  border-bottom: 1px solid var(--warm-line);
  background: rgba(236, 226, 205, 0.6);
}

.intro-band {
  padding: 4.25rem 2rem;
}

.quote-block {
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}

.quote-story {
  margin: 0;
  color: var(--ink-soft);
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.42;
}

.quote-body {
  max-width: 34rem;
  margin: 1.75rem auto 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 8rem 2rem;
}

.feature-section {
  background: var(--paper);
}

.feature-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.section-heading {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.section-heading h2 {
  margin-top: 1.25rem;
}

.section-heading .body-copy {
  margin-left: auto;
  margin-right: auto;
}

.feature-inner .section-heading,
.open-source-inner > div:first-child {
  min-width: 0;
  max-width: none;
  margin: 0;
  text-align: left;
}

.feature-inner .section-heading .body-copy,
.open-source-inner .body-copy {
  margin-left: 0;
  margin-right: 0;
}

.how-steps {
  display: grid;
  gap: 1rem;
}

.how-step {
  position: relative;
  min-width: 0;
  border-top: 1px solid var(--warm-line);
  padding: 1.25rem 0 0 4rem;
}

.step-number {
  position: absolute;
  top: 1.25rem;
  left: 0;
  color: var(--warm-deep);
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
}

.how-step h3 {
  font-size: 1.35rem;
}

.how-step p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.character-section {
  border-bottom: 1px solid var(--warm-line);
  background: #fffaf0;
}

.character-inner {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.guide-image-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 58rem;
  margin: 4rem auto 0;
}

.guide-figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--warm-line);
  border-radius: 0.5rem;
  background: #fffdf8;
  box-shadow: var(--card-shadow);
}

.guide-figure img {
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(18rem, 1.16fr);
  gap: 3rem;
  align-items: start;
}

.body-copy {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.output-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 4rem;
}

.feature-inner .output-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.output-item,
.sample-detail {
  min-width: 0;
  border: 1px solid var(--warm-line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.output-item {
  padding: 1.5rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.output-item:hover {
  border-color: var(--warm);
  box-shadow: var(--hover-shadow);
  transform: translateY(-2px);
}

.output-item strong {
  display: block;
  margin-bottom: 0.5rem;
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  font-weight: 500;
}

.output-item span {
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.6;
}

.section-inner.use-section {
  max-width: none;
  border-top: 1px solid var(--warm-line);
  border-bottom: 1px solid var(--warm-line);
  background: var(--ink);
  color: var(--paper);
  padding: 6rem 2rem;
}

.use-section .section-heading {
  max-width: 48rem;
}

.use-section .kicker {
  color: var(--warm-soft);
}

.use-section .section-heading h2 {
  color: var(--paper);
  font-size: 3.25rem;
  line-height: 1.05;
}

.use-section .section-heading h2 span {
  color: var(--warm-soft);
}

.use-section .body-copy {
  color: rgba(245, 239, 226, 0.76);
  font-size: 1.0625rem;
}

.parent-start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 58rem;
  margin: 3.5rem auto 0;
}

.parent-start-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--warm-line);
  border-radius: 1rem;
  background: var(--paper);
  color: var(--ink);
  padding: 1.5rem;
  box-shadow: 0 1px 0 rgba(245, 239, 226, 0.08), 0 24px 60px -30px rgba(0, 0, 0, 0.58);
}

.parent-start-card h3 {
  margin-top: 0.42rem;
}

.parent-start-card p,
.builder-card p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.parent-start-card p:last-child,
.builder-card p:last-child {
  margin-bottom: 0;
}

.builder-section {
  max-width: var(--content-max);
  margin: 5rem auto 0;
  border-top: 1px solid rgba(221, 201, 155, 0.32);
  padding-top: 5rem;
}

.builder-heading {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.builder-heading h2 {
  margin-top: 1.25rem;
  color: var(--paper);
}

.builder-heading .body-copy {
  margin-left: auto;
  margin-right: auto;
  color: rgba(245, 239, 226, 0.76);
}

.builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 58rem;
  margin: 3rem auto 0;
}

.builder-card {
  min-width: 0;
  border: 1px solid rgba(221, 201, 155, 0.78);
  border-radius: 1rem;
  background: var(--paper);
  color: var(--ink);
  padding: 1.5rem;
  box-shadow: 0 1px 0 rgba(245, 239, 226, 0.08), 0 18px 46px -30px rgba(0, 0, 0, 0.58);
}

.builder-card h3 {
  margin-top: 0.42rem;
}

.builder-card .code-block {
  margin-bottom: 0;
}

.open-source-section {
  border-bottom: 1px solid var(--warm-line);
  background: #fffaf0;
}

.open-source-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: 3rem;
  align-items: start;
}

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

.open-source-links a {
  display: block;
  min-width: 0;
  border: 1px solid var(--warm-line);
  border-radius: 1rem;
  background: #fff;
  padding: 1.2rem;
  text-decoration: none;
  box-shadow: var(--card-shadow);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.open-source-links a:hover {
  border-color: var(--warm);
  box-shadow: var(--hover-shadow);
  transform: translateY(-2px);
}

.open-source-links strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  font-weight: 500;
}

.open-source-links span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.55;
}

.faq-section {
  background: var(--paper);
}

.faq-inner {
  padding-top: 7rem;
}

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

.faq-item {
  min-width: 0;
  border-top: 1px solid var(--warm-line);
  padding-top: 1.25rem;
}

.faq-item h3 {
  font-size: 1.25rem;
}

.faq-item p {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.closing-cta-section {
  border-top: 1px solid var(--warm-line);
  border-bottom: 1px solid var(--warm-line);
  background: var(--ink);
  color: var(--paper);
}

.closing-cta-inner {
  padding-top: 6rem;
  padding-bottom: 6rem;
  text-align: center;
}

.closing-cta-inner h2 {
  color: var(--paper);
  margin-top: 1.25rem;
  font-size: 3rem;
  line-height: 1.05;
}

.closing-cta-inner h2 span {
  color: var(--warm-soft);
}

.closing-cta-section .kicker {
  color: var(--warm-soft);
}

.closing-cta-inner .body-copy {
  margin-left: auto;
  margin-right: auto;
  color: rgba(245, 239, 226, 0.68);
}

.closing-cta-actions {
  justify-content: center;
}

.closing-cta-actions .button.primary {
  border-color: var(--warm);
  background: var(--warm);
  color: #fff;
}

.closing-cta-actions .button.primary:hover {
  background: var(--warm-deep);
}

.closing-cta-actions .text-link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 239, 226, 0.28);
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.closing-cta-actions .text-link:hover {
  border-color: rgba(245, 239, 226, 0.42);
  background: rgba(245, 239, 226, 0.04);
  color: var(--paper);
  text-decoration: none;
}

.gemini-setup {
  padding-top: 5rem;
}

.gemini-setup h1 {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.gemini-setup-actions {
  justify-content: center;
}

.gemini-setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 58rem;
  margin: 4rem auto 0;
}

.gemini-wide-card {
  grid-column: 1 / -1;
}

.gemini-wide-card .button {
  margin-top: 0.5rem;
}

.gemini-test-grid {
  max-width: 58rem;
  margin-left: auto;
  margin-right: auto;
}

.platform-fit {
  margin: 0;
  color: var(--warm-deep);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.code-block {
  border: 1px solid var(--warm-line);
  border-radius: 0.75rem;
  background: #fffdf8;
  color: var(--ink);
}

.code-block {
  overflow-x: auto;
  padding: 1rem;
  font-size: 0.9rem;
  overflow-wrap: normal;
  white-space: pre-wrap;
  word-break: normal;
}

.sample-detail {
  background: rgba(240, 227, 193, 0.42);
  padding: 1.35rem;
}

.sample-detail ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.sample-detail li + li {
  margin-top: 0.55rem;
}

.footer {
  color: var(--ink-soft);
  padding: 3.75rem 2rem 4rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--content-max);
  margin: 0 auto;
  border-top: 1px solid var(--warm-line);
  padding-top: 2rem;
}

.footer-brand,
.footer-meta {
  margin: 0;
}

.footer-brand {
  color: var(--ink-soft);
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.4;
}

.footer-right {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  justify-content: flex-end;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--warm-deep);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-meta {
  color: rgba(90, 79, 48, 0.66);
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (min-width: 64rem) {
  .site-header {
    padding: 1.75rem 2rem;
  }
}

@media (max-width: 900px) {
  .hero,
  .split,
  .feature-inner,
  .open-source-inner,
  .parent-start-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding: 2.5rem 1.25rem 5rem;
  }

  .hero-copy {
    max-width: 36rem;
    margin-top: 0;
  }

  .sample-card-shell {
    max-width: min(29.5rem, 100%);
    justify-self: center;
  }

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

  .feature-inner .output-grid {
    margin-top: 0;
  }

  .open-source-links {
    max-width: 44rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: center;
    flex-direction: row;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
  }

  .nav a:not(.nav-button) {
    display: none;
  }

  .hero,
  .section-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  h1 {
    max-width: 100%;
    font-size: 2.375rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 1.75rem;
  }

  .lede {
    font-size: 1.0625rem;
  }

  .cta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .sample-card {
    padding: 1.45rem 1rem 1.25rem;
    transform: rotate(1deg);
  }

  .output-grid {
    grid-template-columns: 1fr;
  }

  .feature-inner .output-grid {
    grid-template-columns: 1fr;
  }

  .parent-start-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .parent-start-card .button {
    justify-self: start;
  }

  .builder-grid,
  .open-source-links,
  .gemini-setup-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .gemini-wide-card {
    grid-column: auto;
  }

  .builder-card,
  .parent-start-card {
    padding: 1.2rem;
  }

  .quote-story {
    font-size: 1.2rem;
    line-height: 1.45;
  }

  .quote-body {
    margin-top: 1.35rem;
    font-size: 0.9375rem;
  }

  .intro-band {
    padding: 4rem 1.25rem;
  }

  .section-inner {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .section-inner.use-section {
    padding: 5rem 1.25rem;
  }

  .use-section .section-heading h2 {
    font-size: 2.25rem;
  }

  .closing-cta-inner h2 {
    font-size: 2.25rem;
  }

  .closing-cta-actions {
    align-items: center;
  }

  .footer {
    padding: 3rem 1.25rem;
  }

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

  .footer-right {
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sample-card-shell,
  .sample-card {
    transition: none;
  }

  .sample-card-shell.is-presenting {
    transform: none;
  }
}
