@font-face {
  font-family: Hanken;
  src: url("./fonts/Hanken-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Hanken;
  src: url("./fonts/Hanken-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Bricolage;
  src: url("./fonts/Bricolage-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Bricolage;
  src: url("./fonts/Bricolage-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fffbf3;
  --white: #fff;
  --ink: #213568;
  --muted: #586487;
  --cobalt: #223dcb;
  --sky: #e0e9ff;
  --poppy: #c6402a;
  --butter: #f2ce63;
  --line: #dcddd6;
  --max: 1200px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 18px/1.6 Hanken,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a:focus-visible {
  outline: 3px solid var(--poppy);
  outline-offset: 6px;
}
.opening a:focus-visible,
.closing a:focus-visible {
  outline-color: var(--butter);
}
::selection {
  background: var(--butter);
  color: var(--ink);
}
.wrap {
  width: min(calc(100% - 96px), var(--max));
  margin-inline: auto;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.skip-link {
  position: absolute;
  z-index: 10;
  top: 8px;
  left: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
.opening {
  background: var(--cobalt);
  color: var(--paper);
  border-radius: 0 0 56px 56px;
  overflow: hidden;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 116px;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 55px;
  height: 58px;
  object-fit: contain;
}
.brand span {
  font:
    800 31px/0.88 Bricolage,
    sans-serif;
  letter-spacing: -1.3px;
}
.site-header nav {
  display: flex;
  gap: 36px;
  margin-left: auto;
  margin-right: 28px;
}
.site-header nav a {
  text-decoration: none;
  font-size: 16px;
}
.site-header nav a:hover {
  text-decoration: underline;
  text-underline-offset: 7px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  padding: 15px 26px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:active {
  transform: translateY(2px);
}
.header-button {
  min-height: 48px;
  font-size: 15px;
  background: var(--sky);
  color: var(--cobalt);
  padding: 12px 22px;
}
.header-button:hover {
  background: white;
}
.primary-button {
  background: var(--poppy);
  color: white;
}
.primary-button:hover {
  background: #ab3320;
}
.hero {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: center;
  gap: 50px;
  padding-top: 40px;
  padding-bottom: 88px;
  min-height: 720px;
}
.hero-copy {
  padding-bottom: 10px;
}
h1,
h2 {
  font-family: Bricolage, sans-serif;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(64px, 7.2vw, 100px);
  text-wrap: initial;
}
.hero-copy > p {
  max-width: 44ch;
  margin: 28px 0 28px;
  color: var(--sky);
  font-size: 19px;
  line-height: 1.5;
}
.hero-copy .hero-footnote {
  font-size: 14px;
  max-width: none;
  margin: 18px 0 0;
}
.hero-art {
  position: relative;
  min-height: 594px;
  align-self: center;
}
.phone {
  position: relative;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 36px;
  padding: 7px;
  margin: 0;
  width: 280px;
  box-shadow: 8px 18px 0 #21356812;
  overflow: hidden;
}
.phone img {
  width: 100%;
  border-radius: 27px;
  aspect-ratio: 393/810;
  object-fit: cover;
  object-position: top;
}
.hero-phone {
  width: 282px;
  position: absolute;
  right: 10px;
  top: 0;
  transform: rotate(5deg);
  box-shadow: 14px 20px 0 #122da340;
  border-color: var(--paper);
  background: var(--paper);
}
.hero-mascot {
  position: absolute;
  bottom: 3px;
  left: -35px;
  width: 246px;
  transform: rotate(-9deg);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}
.benefits a {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  justify-content: center;
  min-height: 65px;
}
.benefits a + a {
  border-left: 1px solid var(--line);
}
.benefits svg {
  color: var(--cobalt);
  width: 32px;
  height: 32px;
}
.benefits strong,
.benefits span span {
  display: block;
}
.benefits strong {
  font-size: 18px;
  line-height: 1.4;
}
.benefits span span {
  font-size: 14px;
  color: var(--muted);
}
.benefits a:hover strong {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.intro {
  padding: 104px 0 72px;
  text-align: center;
}
.intro p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 17px;
}
.intro h2 {
  font-size: clamp(40px, 5.4vw, 70px);
}
.features {
  display: grid;
  gap: 32px;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  padding: 72px 88px;
  border-radius: 32px;
  overflow: hidden;
  min-height: 696px;
}
.feature-copy {
  max-width: 450px;
}
.feature-label {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  color: var(--cobalt);
  margin-bottom: 25px;
}
.feature-copy h2 {
  font-size: clamp(40px, 4.8vw, 65px);
  font-weight: 700;
  line-height: 1.05;
}
.feature-copy > p {
  margin: 24px 0 0;
  max-width: 35ch;
  color: var(--muted);
  font-size: 18px;
}
.text-link {
  display: inline-block;
  font-weight: 700;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.feature-copy .text-link {
  margin-top: 30px;
  font-size: 16px;
}
.feature-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reading-feature {
  background: var(--sky);
}
.reading-feature .phone {
  transform: rotate(3deg);
}
.page-tab {
  position: absolute;
  bottom: 32px;
  left: -18px;
  padding: 13px 22px;
  background: var(--butter);
  border-radius: 4px 4px 14px 4px;
  font-weight: 700;
  font-size: 16px;
  transform: rotate(-5deg);
}
.notebook-feature {
  padding-block: 80px;
  border-radius: 0;
}
.notebook-feature .feature-art {
  grid-column: 1;
  grid-row: 1;
}
.notebook-feature .feature-copy {
  grid-column: 2;
  grid-row: 1;
}
.notebook-art {
  background: repeating-linear-gradient(
    transparent 0 39px,
    var(--line) 39px 40px
  );
  padding: 20px 0;
}
.notebook-art .phone {
  transform: rotate(-3deg);
  box-shadow: -12px 14px 0 var(--butter);
}
.feature-copy .feature-aside {
  font-family: Bricolage, sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-top: 30px;
}
.recall-feature {
  background: var(--butter);
}
.recall-feature .feature-copy > p {
  color: var(--ink);
}
.recall-feature .phone {
  transform: rotate(3deg);
}
.recall-stamp {
  position: absolute;
  bottom: 15px;
  right: -18px;
  width: 90px;
  height: 90px;
  padding: 20px;
  background: var(--cobalt);
  color: var(--paper);
  border-radius: 50%;
  transform: rotate(-10deg);
}
.screens-note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 76px;
}
.closing {
  background: var(--cobalt);
  color: var(--paper);
  border-radius: 48px 48px 0 0;
  overflow: hidden;
}
.closing-inner {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  gap: 80px;
  align-items: center;
  padding-top: 78px;
  padding-bottom: 78px;
}
.closing h2 {
  max-width: 790px;
  font-size: clamp(42px, 5.5vw, 72px);
}
.closing .button {
  margin-top: 32px;
}
.closing-inner > img {
  width: 310px;
  transform: rotate(8deg);
}
footer {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  padding-block: 44px;
}
footer .brand span {
  font-size: 26px;
}
footer .brand img {
  width: 45px;
  height: 48px;
}
footer p {
  font-size: 16px;
  color: var(--muted);
}
footer .text-link {
  font-size: 14px;
}
@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .hero {
    gap: 20px;
  }
  .hero-mascot {
    left: -15px;
    width: 200px;
  }
  .hero-phone {
    width: 250px;
  }
  .hero-art {
    min-height: 555px;
  }

  .feature {
    padding: 64px 48px;
    gap: 40px;
  }
  .feature .phone {
    width: 250px;
  }
  .site-header nav {
    margin-right: 0;
    gap: 24px;
  }
  .closing-inner {
    gap: 35px;
  }
}
/* Stack at the point where feature copy and phone previews become cramped. */
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 40px);
    max-width: 600px;
  }
  .site-header {
    min-height: 0;
    padding-block: 22px 16px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .brand {
    gap: 8px;
  }
  .brand span {
    font-size: 25px;
    letter-spacing: -0.04em;
  }
  .brand img {
    width: 42px;
    height: 46px;
  }
  .site-header nav {
    display: flex;
    order: 3;
    width: 100%;
    margin: 0;
    gap: 24px;
    border-top: 1px solid #fffbf333;
    padding-top: 8px;
  }
  .site-header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
  }
  .opening {
    border-radius: 0 0 28px 28px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 28px;
    padding-top: 20px;
    padding-bottom: 32px;
  }
  .hero-copy {
    padding: 0;
  }
  .hero h1 {
    font-size: clamp(38px, 11.7vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.04em;
  }
  .hero-copy > p {
    font-size: 17px;
    line-height: 1.55;
    max-width: 36ch;
    margin: 20px 0 24px;
  }
  .hero-copy .hero-footnote {
    font-size: 14px;
    margin: 14px 0 0;
    max-width: 32ch;
  }
  .hero-art {
    width: min(100%, 370px);
    margin: auto;
    min-height: 0;
    padding: 8px 12px 18px 0;
  }
  .hero-phone {
    position: relative;
    width: min(76%, 262px);
    margin-left: auto;
    right: auto;
    top: auto;
    transform: rotate(3deg);
  }
  .hero-mascot {
    width: 43%;
    bottom: 10px;
    left: 0;
    transform: rotate(-6deg);
  }
  .benefits {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 0;
  }
  .benefits a {
    justify-content: flex-start;
    padding: 16px 4px;
    gap: 18px;
  }
  .benefits a + a {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .benefits strong {
    font-size: 18px;
  }
  .benefits span span {
    font-size: 15px;
  }
  .intro {
    padding: 56px 0 32px;
  }
  .intro p {
    font-size: 16px;
    max-width: 28ch;
    margin: 0 auto 16px;
  }
  .intro h2 {
    font-size: clamp(34px, 9.5vw, 48px);
    letter-spacing: -0.04em;
  }
  .features {
    gap: 24px;
  }
  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 28px 24px 32px;
    min-height: 0;
    border-radius: 24px;
  }
  .feature-copy {
    max-width: none;
    min-width: 0;
  }
  .feature-copy h2 {
    font-size: clamp(32px, 9vw, 46px);
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-wrap: initial;
  }
  .feature-copy > p {
    font-size: 17px;
    line-height: 1.6;
    margin-top: 18px;
  }
  .feature-copy .feature-aside {
    font-size: 20px;
    margin-top: 24px;
  }
  .feature-copy .text-link {
    margin-top: 20px;
    padding-block: 10px;
    min-height: 44px;
  }
  .feature-label {
    margin-bottom: 18px;
    font-size: 16px;
  }
  .feature-art {
    width: 100%;
    max-width: 340px;
    margin: auto;
    padding: 8px 0;
  }
  .feature .phone {
    width: min(100%, 280px);
    transform: none;
  }
  .phone {
    border-radius: 28px;
    padding: 6px;
  }
  .phone img {
    border-radius: 20px;
  }
  .page-tab {
    left: -8px;
    bottom: 32px;
    font-size: 14px;
    padding: 10px 16px;
  }
  .notebook-feature {
    padding-block: 28px;
    border-radius: 0;
  }
  .notebook-feature .feature-copy {
    grid-column: 1;
    grid-row: 1;
  }
  .notebook-feature .feature-art {
    grid-column: 1;
    grid-row: 2;
    padding-block: 16px;
  }
  .notebook-art .phone {
    box-shadow: -8px 10px 0 var(--butter);
  }
  .recall-stamp {
    right: -8px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    padding: 15px;
  }
  .screens-note {
    margin: 0 8px 32px;
    font-size: 13px;
  }
  .closing {
    border-radius: 28px 28px 0 0;
  }
  .closing-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 40px;
    padding-bottom: 32px;
  }
  .closing h2 {
    font-size: clamp(36px, 10vw, 52px);
    letter-spacing: -0.04em;
  }
  .closing-inner > img {
    width: 152px;
    justify-self: end;
    margin-right: 12px;
  }
  footer {
    gap: 20px;
    padding-block: 28px;
  }
  footer .text-link {
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    min-height: 44px;
  }
  footer p {
    font-size: 14px;
    margin: 0;
  }
  .desktop-break {
    display: none;
  }
}
@media (max-width: 360px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .brand span {
    font-size: 22px;
  }
  .brand img {
    width: 34px;
  }
  .feature {
    padding-inline: 20px;
  }
  footer {
    gap: 16px;
  }
}
/* Keep landscape content away from iPhone sensor housings. */
@supports (padding: env(safe-area-inset-left)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  footer {
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button {
    transition: none;
  }
}

/* Apple-provided badge artwork is displayed unchanged; destinations are pending. */
.app-store-cta {
  display: block;
  width: 180px;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  cursor: pointer;
}
.app-store-cta img {
  display: block;
  width: 100%;
  height: auto;
}
.app-store-cta:focus-visible {
  outline: 3px solid var(--poppy);
  outline-offset: 8px;
  border-radius: 10px;
}
.opening .app-store-cta:focus-visible,
.closing .app-store-cta:focus-visible {
  outline-color: var(--butter);
}
.header-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--paper);
  color: var(--cobalt);
  font:
    700 16px/1.25 Hanken,
    sans-serif;
  flex-shrink: 0;
  cursor: pointer;
}
.header-download:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 5px;
}
.feature-download {
  margin-top: 30px;
}
.closing .app-store-cta {
  margin-top: 32px;
}
footer {
  flex-wrap: wrap;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  width: 100%;
  font-size: 15px;
}
.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 4px;
}
.legal-links a:hover {
  color: var(--cobalt);
}

/* Download availability popup shares the app's paper, cobalt and bookworm. */
body.dialog-open {
  overflow: hidden;
}
.download-dialog {
  width: min(400px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 36px 28px 28px;
  border: 0;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 24px 64px #101c4940;
}
.download-dialog::backdrop {
  background: #101c4980;
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--sky);
  color: var(--cobalt);
  cursor: pointer;
}
.dialog-close svg {
  width: 22px;
  height: 22px;
}
.dialog-mascot {
  width: 112px;
  margin: 4px auto 24px;
}
.download-dialog h2 {
  font-size: 40px;
  letter-spacing: -0.04em;
}
.download-dialog p {
  margin: 16px 0 24px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}
.dialog-done {
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  font:
    700 17px/1.4 Hanken,
    sans-serif;
  background: var(--cobalt);
  color: var(--paper);
  cursor: pointer;
}
.download-dialog button:focus-visible {
  outline: 3px solid var(--poppy);
  outline-offset: 4px;
}
@media (hover: hover) {
  .header-download:hover,
  .dialog-close:hover {
    background: var(--butter);
  }
  .dialog-done:hover {
    background: var(--ink);
  }
}
