:root {
  color-scheme: light;
  --bg: #f8f8f5;
  --ink: #1b1b18;
  --line: #deded7;
  --orange: #f15a24;
  --soft: #fff1ea;
  --shadow: rgba(44, 39, 33, .1);
  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; }

.skip { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--bg); transform: translateY(-150%); transition: transform .2s ease; text-decoration: none; }
.skip:focus { transform: none; }

.page { width: min(960px, calc(100% - 48px)); margin: 0 auto; }

/* Hero: one sentence, one form */
.hero { min-height: min(520px, 78dvh); display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(38px, 5vw, 64px); padding: 20px 0 12px; animation: enter .65s var(--ease) both; }
.hero h1 { max-width: 440px; margin: 0; font: 400 clamp(1.8rem, 3vw, 2.5rem)/1.18 var(--serif); letter-spacing: -.03em; text-wrap: pretty; }
.lede { margin: 20px 0 0; font-size: .95rem; line-height: 1.5; }

.mark { display: inline-block; width: .74em; height: .74em; margin: 0 .02em .08em .14em; vertical-align: middle; border-radius: .17em; background: var(--soft) url("/favicon.svg") center / cover no-repeat; transform: rotate(-6deg); }

.signup { width: 100%; max-width: 560px; }
.signup iframe { display: block; color-scheme: light; }

/* Board carousel */
.carousel { margin: 0; }
.boards { position: relative; aspect-ratio: 1600 / 1118; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 24px 60px var(--shadow); animation: enter .75s .1s var(--ease) both; }
.boards img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; transition: opacity .9s ease-in-out; }
.boards img.is-active { opacity: 1; }
.dots { margin-top: 18px; display: flex; justify-content: center; gap: 6px; }
.dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 99px; background: color-mix(in srgb, var(--ink) 25%, transparent); cursor: pointer; transition: width .35s var(--ease), background-color .35s ease; }
.dots button.is-active { width: 18px; background: var(--orange); }
.dots button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Story */
.story { min-height: 100dvh; max-width: 700px; margin: 0 auto; display: grid; align-items: center; padding: 96px 0; }
.story p { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; letter-spacing: -.015em; }

/* Scroll-linked word reveal */
.reveal { --floor: .24; }
.reveal--half { --floor: .5; }
.reveal [data-word] { opacity: calc(var(--floor) + var(--p, 0) * (1 - var(--floor))); }
.letters { white-space: nowrap; }

@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .page { width: min(100% - 30px, 640px); }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 12px; padding: 40px 0 12px; text-align: center; }
  .hero h1 { margin-inline: auto; }
  .lede { margin: 14px auto 0; }
  .signup { margin-inline: auto; text-align: left; }
  .story { padding: 72px 0; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: clamp(1.65rem, 8vw, 2.15rem); }
  .lede { font-size: .88rem; }
  .boards { margin-inline: -15px; border-inline: 0; border-radius: 0; }
}

@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg: #111110; --ink: #f3f2ec; --line: #30302c; --orange: #ff6a2e; --soft: #2b1b15; --shadow: rgba(0, 0, 0, .32); }
  .signup iframe { filter: invert(.91) hue-rotate(180deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal [data-word] { opacity: 1 !important; }
}
