@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./fonts/outfit-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/instrument-serif.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/instrument-serif-italic.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/plex-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/plex-mono-500.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Serif Devanagari";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/noto-devanagari.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20B9, U+A8E0-A8FF;
}

:root {
  --bg: #100e0c;
  --bg-2: #171411;
  --ink: #f2ebe3;
  --muted: #8f857a;
  --line: rgba(242, 235, 227, 0.12);
  --accent: #e07a5f;
  --accent-ink: #1a120f;
  --sand: #e8c9a0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --deva: "Noto Serif Devanagari", "Noto Serif", Georgia, serif;
  --sans: "Outfit", "Avenir Next", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.watermark {
  position: fixed;
  left: -0.06em;
  top: 16vh;
  margin: 0;
  font-family: var(--deva);
  font-size: min(38vw, 16rem);
  font-weight: 400;
  line-height: 0.8;
  color: var(--ink);
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 0.9rem;
  z-index: 20;
}

.skip:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem clamp(1.25rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.wordmark-en {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.wordmark-hi {
  font-family: var(--deva);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--ink);
}

.header-cta {
  color: var(--ink) !important;
  border: 1px solid var(--line);
  padding: 0.45rem 0.8rem;
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2.5rem, 7vh, 5.5rem) clamp(1.25rem, 4vw, 3.5rem) 4rem;
  min-height: calc(100vh - 5rem);
}

.kicker {
  margin: 0 0 1.1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 9.2vw, 7.6rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

h1 span {
  display: block;
}

.hero-italic {
  font-style: italic;
  color: var(--sand);
}

.lede {
  max-width: 28rem;
  margin: 1.6rem 0 2rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.waitlist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  max-width: 28rem;
  position: relative;
}

.waitlist input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 0.95rem;
  outline: none;
}

.waitlist input::placeholder {
  color: #6f675e;
}

.waitlist input:focus {
  border-color: var(--sand);
}

.waitlist button {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  white-space: nowrap;
}

.waitlist button:hover,
.waitlist button:focus-visible {
  filter: brightness(1.06);
}

.waitlist button:disabled {
  cursor: default;
  opacity: 0.7;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1.3em;
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--sand);
}

.form-status.is-error {
  color: #e08a8a;
}

.fineprint {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-device {
  display: flex;
  justify-content: center;
}

.device {
  width: min(100%, 320px);
  background: #2a241e;
  padding: 10px;
  border-radius: 32px;
  box-shadow: 0 0 0 1px rgba(242, 235, 227, 0.08);
}

.device-notch {
  height: 10px;
}

.device-screen {
  position: relative;
  background: #f6f0e8;
  color: #1a1612;
  border-radius: 24px;
  overflow: hidden;
  height: 560px;
}

.app-bar {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1rem 0;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.streak {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  padding-top: 0.28rem;
}

.feed {
  height: 100%;
  transition: transform 700ms var(--ease);
}

.lesson {
  height: 560px;
  padding: 4.2rem 1.15rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.lesson-mark {
  margin: auto 0 1.25rem;
  font-family: var(--serif);
  font-size: 4.4rem;
  font-style: italic;
  line-height: 0.85;
  letter-spacing: -0.03em;
  opacity: 0.22;
}

.lesson-meta {
  margin: 0 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lesson h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.15rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lesson-hook {
  margin: 0.7rem 0 0;
  max-width: 20rem;
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0.82;
}

.lesson[data-tone="clay"] { background: #e07a5f; color: #1a120f; }
.lesson[data-tone="sage"] { background: #6f8f78; color: #10140f; }
.lesson[data-tone="ink"] { background: #1f2a32; color: #f2ebe3; }
.lesson[data-tone="sand"] { background: #d8b48a; color: #1a1612; }
.lesson[data-tone="dusk"] { background: #3d4550; color: #f2ebe3; }
.lesson[data-tone="rose"] { background: #c98984; color: #1a120f; }

.feed-dots {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.feed-dots span {
  width: 5px;
  height: 5px;
  background: rgba(16, 14, 12, 0.28);
  border-radius: 1px;
}

.feed-dots span.is-on {
  background: #100e0c;
  height: 14px;
}

.belief {
  position: relative;
  z-index: 1;
  padding: 4.5rem clamp(1.25rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.belief-kicker {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.belief blockquote {
  margin: 0;
  max-width: 18ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.how {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: 5rem clamp(1.25rem, 4vw, 3.5rem);
}

.how h2,
.library h2,
.close h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

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

.steps li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  padding-top: 0.35rem;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
}

.steps p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.library {
  position: relative;
  z-index: 1;
  padding: 1rem clamp(1.25rem, 4vw, 3.5rem) 5rem;
}

.library-head {
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

.library-lede {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.catalog {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.catalog li {
  display: grid;
  grid-template-columns: 3rem minmax(10rem, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.catalog span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.catalog strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.catalog em {
  font-style: normal;
  color: var(--muted);
}

.close {
  position: relative;
  z-index: 1;
  padding: 5rem clamp(1.25rem, 4vw, 3.5rem) 4.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.close-copy {
  max-width: 34rem;
  margin: 1.1rem 0 2rem;
  color: var(--muted);
}

.waitlist-late {
  max-width: 32rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem clamp(1.25rem, 4vw, 3.5rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wordmark-en {
  font-size: 1.05rem;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero,
  .how {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero {
    padding-bottom: 2.5rem;
  }

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

  .catalog li {
    grid-template-columns: 2.4rem 1fr;
  }

  .catalog em {
    grid-column: 2;
  }

  .device-screen,
  .lesson {
    height: 420px;
  }

  .lesson {
    justify-content: center;
    padding-top: 3.2rem;
  }

  .lesson-mark {
    font-size: 3.6rem;
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 1.35rem 1.25rem 1.6rem;
    gap: 1.35rem;
  }

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

  h1 {
    font-size: clamp(2.6rem, 13vw, 3.6rem);
  }

  .lede {
    margin: 0.85rem 0 1.15rem;
    font-size: 1.02rem;
  }

  .belief blockquote {
    max-width: none;
  }

  .device {
    width: min(100%, 260px);
  }

  .device-screen,
  .lesson {
    height: 300px;
  }

  .lesson {
    justify-content: flex-start;
    padding: 3.4rem 1rem 1rem;
  }

  .lesson-mark {
    margin: 0 0 0.45rem;
    font-size: 2.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .feed {
    transition: none;
  }
}
