@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-serif-4-semibold.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-serif-4-semibold-italic.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --sky: #79cfff;
  --blue: #397fe6;
  --deep: #163f96;
  --ink: #0b1b3a;
  --paper: #fff0d1;
  --cream: #fff8e9;
  --coral: #ff623f;
  --yellow: #ffd43b;
  --pink: #f7c2d9;
  --green: #13583f;
  --display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ui: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --dots: radial-gradient(circle, rgb(11 27 58 / 0.2) 0 1px, transparent 1.2px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.48'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.skip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  background: var(--cream);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus { transform: none; }

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  color: var(--ink);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1360px, calc(100% - 40px));
  height: 86px;
  margin: 0 auto;
  gap: 24px;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.nav-primary a {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-mobile a {
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}

.nav-primary a:hover,
.nav-mobile a:hover,
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.wordmark,
.footer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.wordmark img,
.footer-mark img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-balance { min-width: 1px; }
.nav-mobile { display: none; position: relative; justify-self: end; }

.nav-mobile summary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.nav-mobile summary::-webkit-details-marker { display: none; }

.nav-mobile nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
}

.nav-mobile a { padding: 10px; }

.hero {
  position: relative;
  min-height: min(100dvh, 940px);
  overflow: hidden;
  isolation: isolate;
}

.hero picture { position: absolute; inset: 0; }

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: clamp(150px, 19vh, 205px);
  text-align: center;
}

.hero h1,
.pricing-hero h1 {
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(3.1rem, 5.3vw, 5.15rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.hero h1 { max-width: 15ch; }

.cta,
.plan-cta,
.paper-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid var(--ink);
  background: var(--coral);
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero .cta { margin-top: 30px; }

.cta:hover,
.plan-cta:hover,
.paper-link:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }

.cta:active,
.plan-cta:active,
.paper-link:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.band { position: relative; padding: 104px 24px 118px; }
.wrap { width: min(1140px, 100%); margin: 0 auto; }

.eyebrow,
.launch-kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.7vw, 4.7rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.section-copy {
  max-width: 46ch;
  margin: 22px 0 42px;
  font-size: 19px;
  font-weight: 600;
}

.workspace-band {
  background-color: var(--paper);
  background-image: radial-gradient(circle at 14% 18%, rgb(57 127 230 / 0.18), transparent 32%), var(--dots);
  background-size: auto, 5px 5px;
}

.bento {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-areas: "concept notes guides" "concept model writing";
  gap: 14px;
}

.cell {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
}

.cell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image: var(--dots);
  background-size: 5px 5px;
}

.cell > * { position: relative; z-index: 1; }
.cell-large { grid-area: concept; min-height: 394px; background: var(--yellow); }
.cell-sky { grid-area: notes; background: var(--sky); }
.cell-fire { grid-area: guides; background: var(--coral); }
.cell-ink { grid-area: model; background: var(--deep); color: var(--cream); }
.cell-pink { grid-area: writing; background: var(--pink); }

.cell-number {
  display: block;
  margin-bottom: 42px;
  font-family: var(--display);
  font-size: 18px;
  font-style: italic;
}

.cell h3 { margin: 0 0 8px; font-size: 1.25rem; letter-spacing: -0.025em; }
.cell p { margin: 0; max-width: 28ch; font-size: 16px; }

.research-band {
  color: var(--cream);
  background-color: var(--blue);
  background-image: radial-gradient(circle at 75% 70%, rgb(255 98 63 / 0.8), transparent 28%), var(--dots);
  background-size: auto, 6px 6px;
}

.research-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: end;
  gap: 64px;
}

.research-note {
  margin: 0 0 8px;
  padding: 30px;
  border: 2px solid var(--cream);
  background: rgb(11 27 58 / 0.2);
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.25;
  transform: rotate(2deg);
}

.create-band {
  background-color: var(--pink);
  background-image: linear-gradient(120deg, transparent 0 62%, rgb(255 212 59 / 0.72) 62%), var(--dots);
  background-size: auto, 5px 5px;
}

.formats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  margin: 0;
  border: 2px solid var(--ink);
  list-style: none;
  box-shadow: 6px 6px 0 var(--ink);
}

.formats li {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-right: 2px solid var(--ink);
  background: rgb(255 248 233 / 0.84);
}

.formats li:last-child { border-right: 0; }
.formats strong { font-family: var(--display); font-size: 2rem; letter-spacing: -0.04em; }
.formats span { font-size: 15px; font-weight: 650; }

.pricing-peek {
  background-color: var(--coral);
  background-image: radial-gradient(circle at 84% 42%, var(--yellow) 0 13%, transparent 13.3%), var(--dots);
  background-size: auto, 6px 6px;
}

.pricing-peek-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}

.paper-link { background: var(--cream); white-space: nowrap; }

.launch-band {
  color: var(--cream);
  background-color: var(--deep);
  background-image: repeating-linear-gradient(-18deg, transparent 0 42px, rgb(121 207 255 / 0.14) 42px 44px), var(--dots);
  background-size: auto, 6px 6px;
}

.launch-copy { text-align: center; }
.launch-copy h2 { max-width: 17ch; margin: 0 auto; }
.launch-copy > p:last-child { margin: 22px 0 0; font-size: 18px; font-weight: 700; }

.launch-kicker {
  display: inline-block;
  padding: 8px 12px;
  border: 2px solid var(--cream);
  color: var(--yellow);
  transform: rotate(-2deg);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 42px max(24px, calc((100% - 1140px) / 2));
  border-top: 2px solid var(--ink);
  background-color: var(--yellow);
  background-image: var(--dots);
  background-size: 5px 5px;
}

.footer-mark { justify-self: start; }
.site-footer p { margin: 0; font-family: var(--display); font-size: 18px; font-style: italic; }
.site-footer nav { display: flex; justify-self: end; gap: 22px; }
.site-footer a { font-weight: 800; text-decoration: none; }

/* Pricing */
.pricing-page { background: var(--paper); }
.pricing-header { color: var(--ink); }

.pricing-hero {
  padding: 166px 24px 112px;
  text-align: center;
  background-color: var(--coral);
  background-image: radial-gradient(circle at 20% 28%, var(--yellow) 0 10%, transparent 10.3%), radial-gradient(circle at 82% 74%, var(--sky) 0 16%, transparent 16.3%), var(--dots);
  background-size: auto, auto, 6px 6px;
}

.pricing-hero h1 { max-width: 14ch; }
.pricing-hero h1 em { font-style: italic; }
.pricing-hero > p:last-child { margin: 22px 0 0; font-size: 20px; font-weight: 700; }

.plans-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 118px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  min-height: 570px;
  flex-direction: column;
  padding: 32px;
  border: 2px solid var(--ink);
  background-color: var(--cream);
  background-image: var(--dots);
  background-size: 6px 6px;
}

.plan + .plan { border-left: 0; }
.plan-pro { margin: -22px 0 22px; background-color: var(--yellow); box-shadow: 7px 7px 0 var(--ink); z-index: 1; }
.plan-max { background-color: var(--sky); }

.plan-tag {
  position: absolute;
  top: -18px;
  right: 18px;
  margin: 0;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  background: var(--coral);
  font-size: 13px;
  font-weight: 900;
  transform: rotate(2deg);
}

.plan-name { margin: 0; font-family: var(--display); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.04em; }
.plan-price { margin: 26px 0 18px; font-weight: 850; }
.plan-price strong { font-family: var(--display); font-size: 4.5rem; line-height: 0.8; letter-spacing: -0.06em; }
.plan-price span { display: block; margin-top: 8px; font-size: 14px; }
.plan-copy { min-height: 54px; margin: 0; font-weight: 650; }
.plan ul { display: grid; gap: 12px; padding: 24px 0 28px 20px; margin: 24px 0 0; border-top: 2px solid var(--ink); font-size: 16px; }
.plan-cta { margin-top: auto; background: var(--coral); }
.pricing-footer { background-color: var(--pink); }

/* 404 */
.missing { width: min(720px, calc(100% - 40px)); margin: 0 auto; padding: 18vh 0 24vh; }
.missing h1 { margin: 0; font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
.missing p { font-size: 19px; font-weight: 650; }
.missing-kicker { margin: 0 0 10px; font-weight: 900; }
.is-404 { background-color: var(--sky); background-image: var(--dots); background-size: 6px 6px; }
.is-404 .site-header { position: static; }
.is-404 .nav { grid-template-columns: 1fr auto; }
.is-404 .wordmark { justify-content: start; }
.is-404 .hero-actions { display: flex; gap: 20px; align-items: center; }
.text-link { font-weight: 800; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "concept concept" "notes guides" "model writing"; }
  .cell-large { min-height: 220px; }
  .research-grid { grid-template-columns: 1fr; gap: 40px; }
  .research-note { max-width: 520px; }
  .formats { grid-template-columns: 1fr 1fr; }
  .formats li:nth-child(2) { border-right: 0; }
  .formats li:nth-child(-n + 2) { border-bottom: 2px solid var(--ink); }
  .plans-wrap { width: min(620px, calc(100% - 36px)); grid-template-columns: 1fr; gap: 18px; }
  .plan + .plan { border-left: 2px solid var(--ink); }
  .plan-pro { margin: 0; }
}

@media (max-width: 720px) {
  .nav { grid-template-columns: 1fr auto; width: calc(100% - 28px); height: 72px; }
  .nav-primary, .nav-balance { display: none; }
  .wordmark { justify-self: start; }
  .nav-mobile { display: block; }
  .hero { min-height: 760px; }
  .hero-art { object-position: center bottom; }
  .hero-copy { padding-top: 132px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.15rem); max-width: 9ch; }
  .band { padding: 76px 18px 88px; }
  h2 { font-size: clamp(2.55rem, 12vw, 3.7rem); }
  .bento { grid-template-columns: 1fr; grid-template-areas: "concept" "notes" "guides" "model" "writing"; }
  .cell, .cell-large { min-height: 205px; }
  .formats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .formats li { flex: 0 0 72%; min-height: 170px; border: 0; border-right: 2px solid var(--ink); scroll-snap-align: start; }
  .pricing-peek-grid { grid-template-columns: 1fr; align-items: start; }
  .paper-link { justify-self: start; }
  .site-footer { grid-template-columns: 1fr; text-align: left; }
  .site-footer p { max-width: 24ch; }
  .site-footer nav { justify-self: start; }
  .pricing-hero { padding: 136px 18px 82px; }
  .pricing-hero h1 { font-size: clamp(3rem, 14vw, 4.3rem); }
  .plans-wrap { padding: 64px 0 82px; }
  .plan { min-height: 520px; padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .plan-cta, .paper-link { transition: none; }
  .cta:hover, .plan-cta:hover, .paper-link:hover,
  .cta:active, .plan-cta:active, .paper-link:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .grain { opacity: 0.08; mix-blend-mode: normal; }
}
