:root {
  color-scheme: light;
  --page: #eef2ee;
  --surface: #ffffff;
  --surface-soft: #e3e9e4;
  --surface-cool: #e8f4f3;
  --text: #14201b;
  --muted: #56675f;
  --line: #d3dcd6;
  --accent: #0e6b58;
  --accent-hover: #0a5848;
  --button-text: #ffffff;
  --blue: #0e6b58;
  --yellow: #ffd35f;
  --coral: #f27b61;
  --shadow: 0 16px 36px rgb(68 45 21 / 10%);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --read: "Literata", Georgia, "Times New Roman", serif;
  --ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-family: var(--ui);
  color: var(--text);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0c1311;
  --surface: #141e1a;
  --surface-soft: #1b2823;
  --surface-cool: #1b2823;
  --text: #e6eee9;
  --muted: #93a59d;
  --line: #26352f;
  --accent: #4cc4a2;
  --accent-hover: #68d2b6;
  --button-text: #05130e;
  --blue: #4cc4a2;
  --yellow: #e9be52;
  --coral: #f28a70;
  --shadow: 0 16px 36px rgb(0 0 0 / 24%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --page: #0c1311;
    --surface: #141e1a;
    --surface-soft: #1b2823;
    --surface-cool: #1b2823;
    --text: #e6eee9;
    --muted: #93a59d;
    --line: #26352f;
    --accent: #4cc4a2;
    --accent-hover: #68d2b6;
    --button-text: #05130e;
    --blue: #4cc4a2;
    --yellow: #e9be52;
    --coral: #f28a70;
    --shadow: 0 16px 36px rgb(0 0 0 / 24%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-size: 1rem;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.page-width {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--text);
  color: var(--page);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid #26352f;
  background: #0c1311;
}

.header-inner {
  display: flex;
  width: min(920px, calc(100% - 32px));
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: #e6eee9;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: contain;
}

.read-note-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
}

.brand-wave {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  height: 18px;
}

.brand-wave i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #4cc4a2;
}

.brand-wave i:nth-child(1),
.brand-wave i:nth-child(5) {
  height: 7px;
}

.brand-wave i:nth-child(2) {
  height: 16px;
}

.brand-wave i:nth-child(3) {
  height: 11px;
}

.brand-wave i:nth-child(4) {
  height: 18px;
}

.read-note-mark {
  background: var(--coral);
  color: #2b3040;
  font: 700 1.25rem/1 Georgia, serif;
}

.brand-name {
  max-width: 160px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 30px);
}

.main-nav a {
  color: #93a59d;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.footer-contact a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #26352f;
  border-radius: 12px;
  background: #141e1a;
  color: #e6eee9;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, background-color .2s ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-icon::before {
  transform: translateY(-6px);
}

.menu-icon::after {
  transform: translateY(6px);
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: rotate(-45deg);
}

.site-header .main-nav a:hover {
  color: #4cc4a2;
}

.theme-toggle {
  flex: 0 0 auto;
  border: 1px solid #26352f;
  border-radius: 999px;
  padding: 9px 13px;
  background: #141e1a;
  color: #e6eee9;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: #4cc4a2;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.install-button {
  flex: 0 0 auto;
  border: 1px solid #4cc4a2;
  border-radius: 999px;
  padding: 9px 13px;
  background: #4cc4a2;
  color: #05130e;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

.install-button:hover {
  background: #68d2b6;
}

.install-button[hidden] {
  display: none;
}

.install-dialog {
  width: min(440px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.install-dialog::backdrop {
  background: rgb(0 0 0 / 65%);
}

.install-dialog-content {
  position: relative;
  padding: 32px;
}

.install-dialog-content h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.15;
}

.install-dialog-content p:last-child {
  margin-bottom: 0;
}

.install-dialog-close {
  float: right;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
}

.install-dialog-close:hover {
  border-color: var(--accent);
}

.hero {
  display: grid;
  min-height: 540px;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 48px;
  padding-block: 66px 72px;
}

.hero-copy {
  max-width: 590px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.045em;
}

.hero h1 {
  max-width: 620px;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
}

.hero h1 span {
  color: var(--accent);
}

.hero-invitation {
  max-width: 640px;
}

.hero-invitation .button {
  max-width: 100%;
}

.catalog-intro {
  padding-block: 70px 26px;
}

.page-title {
  max-width: 900px;
  margin: 0 0 12px;
  font: 700 clamp(2.7rem, 6vw, 4.5rem)/1.05 var(--display);
  letter-spacing: -.045em;
}

.page-tagline {
  max-width: 780px;
  margin: 0 0 16px;
  color: var(--blue);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.5;
}

.catalog-intro > p:last-child {
  max-width: 740px;
  margin-bottom: 0;
  color: var(--muted);
}

.catalog-link-section {
  padding-block: 58px 70px;
  background: var(--surface-soft);
}

.catalog-link-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.catalog-link-inner .eyebrow {
  margin-bottom: 8px;
}

.catalog-link-inner h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.catalog-link-inner h2 a {
  text-decoration: none;
}

.catalog-link-inner > p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
}

.page-return {
  padding-block: 0 64px;
  text-align: center;
}

.school-page {
  padding-block: 62px 38px;
}

.school-page h2 {
  margin: 42px 0 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
}

.school-copy {
  max-width: 850px;
  padding-bottom: 54px;
}

.school-copy p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.85;
}

.school-copy .school-emphasis {
  color: var(--text);
  font-weight: 700;
}

.school-actions {
  padding-bottom: 60px;
  text-align: center;
}

.hero-description {
  max-width: 500px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: .91rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: var(--button-text);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.text-link,
.book-link {
  color: var(--blue);
  font-size: .9rem;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link span,
.book-link span {
  display: inline-block;
  margin-left: 4px;
  transition: transform .18s ease;
}

.text-link:hover span,
.book-link:hover span {
  transform: translateX(4px);
}

.hero-note {
  margin: 23px 0 0;
  color: var(--muted);
  font-size: .86rem;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
  isolation: isolate;
}

.sun-shape {
  position: absolute;
  z-index: -1;
  top: 22px;
  right: 7%;
  width: min(340px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
}

.hero-cover {
  position: absolute;
  width: min(215px, 47%);
  height: auto;
  border: 8px solid var(--surface);
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.hero-cover-back {
  z-index: 0;
  top: 50px;
  left: 10%;
  transform: rotate(-11deg);
}

.hero-cover-front {
  z-index: 1;
  top: 76px;
  right: 11%;
  transform: rotate(7deg);
}

.hero-label {
  position: absolute;
  z-index: 2;
  right: 1%;
  bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}

.hero-label:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.art-spark {
  position: absolute;
  z-index: 2;
  color: var(--accent);
  font-size: 2rem;
}

.art-spark-one {
  top: 18px;
  left: 16%;
}

.art-spark-two {
  right: 4%;
  bottom: 92px;
  color: var(--blue);
  font-size: 1.5rem;
}

.book-section {
  padding-block: 50px 92px;
  scroll-margin-top: 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 30px;
}

.section-heading .eyebrow {
  margin-bottom: 7px;
}

.section-heading h2,
.read-copy h2,
.school-inner h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.section-heading > p {
  max-width: 365px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .95rem;
}

.showcase-section {
  padding-block: 64px 76px;
  background: var(--surface-soft);
}

.showcase-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 32px;
}

.showcase-heading .eyebrow {
  margin-bottom: 7px;
}

.showcase-heading h2 {
  margin: 0;
  font: 700 clamp(2.1rem, 4vw, 3.2rem)/1.08 var(--display);
  letter-spacing: -.045em;
}

.showcase-heading > p {
  max-width: 380px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: .95rem;
}

.showcase-list {
  display: grid;
  gap: 32px;
}

.showcase-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px;
}

.showcase-row-reversed .showcase-image {
  order: 2;
}

.showcase-image {
  position: relative;
  min-width: 0;
  min-height: 470px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.showcase-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.showcase-image figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 20px 18px;
  background: linear-gradient(transparent, rgb(20 30 39 / 76%));
  color: #fff;
  font: 1rem/1.4 var(--read);
}

.showcase-book {
  display: flex;
  min-width: 0;
  min-height: 470px;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.showcase-cover {
  display: block;
  width: min(42%, 235px);
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 5px;
  background: var(--surface-soft);
  box-shadow: 0 14px 28px rgb(24 30 40 / 20%);
  aspect-ratio: 2 / 3;
}

.showcase-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.showcase-copy {
  max-width: 290px;
}

.showcase-copy .eyebrow {
  margin-bottom: 10px;
  font-size: .69rem;
}

.showcase-copy h3 {
  margin: 0 0 12px;
  font: 700 clamp(1.55rem, 2.4vw, 2.15rem)/1.1 var(--display);
  letter-spacing: -.035em;
}

.showcase-copy > p:not(.eyebrow) {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

.showcase-collection {
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

.showcase-covers {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}

.showcase-covers .showcase-cover {
  width: 100%;
}

.showcase-covers .showcase-cover:nth-child(even) {
  transform: translateY(-10px);
}

.showcase-collection .showcase-copy {
  max-width: 100%;
}

.illustration-note {
  max-width: 900px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.book-card,
.journey-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 6px 20px rgb(68 45 21 / 5%);
}

.cover-link {
  display: block;
  overflow: hidden;
  background: var(--surface-soft);
}

.book-card .cover-link {
  aspect-ratio: 2 / 3;
}

.cover-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.book-info {
  padding: 16px 16px 18px;
}

.book-info h3,
.book-info h2 {
  margin: 0 0 5px;
  font: 700 1.08rem/1.3 var(--display);
  letter-spacing: -.015em;
}

.book-info h3 a,
.book-info h2 a {
  text-decoration: none;
}

.book-info h3 a:hover,
.book-info h2 a:hover {
  color: var(--accent);
}

.book-subtitle {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: .81rem;
  line-height: 1.45;
}

.book-info > p:not(.book-subtitle) {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.55;
}

.book-link {
  display: inline-block;
  font-size: .82rem;
}

.book-tag {
  display: inline-block;
  margin-bottom: 9px;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: .7rem;
  font-weight: 800;
}

.journey-section {
  padding-block: 76px 84px;
  background: var(--surface-soft);
  scroll-margin-top: 20px;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.journey-card {
  display: grid;
  grid-template-columns: minmax(90px, .75fr) 1.25fr;
  align-items: stretch;
}

.journey-card .book-info {
  align-self: center;
  padding: 13px;
}

.journey-card .book-info h3 {
  font-size: 1rem;
}

.journey-card .book-info > p:not(.book-subtitle) {
  font-size: .76rem;
}

.journey-card .cover-link {
  align-self: center;
  width: 100%;
  min-height: 0;
  aspect-ratio: 2 / 3;
}

.journey-card .cover-link img {
  height: auto;
  min-height: 0;
}

.read-section {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 48px;
  padding-block: 92px;
  scroll-margin-top: 20px;
}

.read-copy .eyebrow {
  margin-bottom: 8px;
}

.read-copy h2 {
  margin-bottom: 14px;
}

.read-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin-bottom: 22px;
  color: var(--muted);
}

.read-note {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 25px;
  background: var(--surface-cool);
}

.read-note-mark {
  margin-bottom: 14px;
  background: var(--yellow);
}

.read-note p {
  margin-bottom: 13px;
  font: 1.28rem/1.45 var(--read);
}

.read-note a {
  color: var(--blue);
  font-size: .84rem;
  font-weight: 800;
}

.how-to-page .read-section {
  align-items: start;
  padding-top: 66px;
}

.reading-steps {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding-left: 24px;
}

.reading-steps li {
  padding-left: 4px;
}

.read-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, .7fr);
  align-items: center;
  gap: 16px;
}

.read-photo,
.read-app-screenshot {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.read-photo {
  position: relative;
  aspect-ratio: 3 / 2;
}

.read-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.read-photo figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 38px 12px 12px;
  background: linear-gradient(transparent, rgb(20 30 39 / 76%));
  color: #fff;
  font-size: .78rem;
  line-height: 1.4;
}

.read-app-screenshot {
  padding: 8px;
}

.read-app-screenshot img {
  width: 100%;
  max-height: 560px;
  border-radius: 9px;
  object-fit: contain;
}

.read-app-screenshot figcaption {
  padding: 8px 2px 2px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.4;
  text-align: center;
}

.search-page {
  padding-top: 58px;
}

.search-intro {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.search-intro > p:not(.eyebrow, .search-count) {
  color: var(--muted);
}

.search-label {
  display: block;
  margin: 26px 0 8px;
  font-weight: 750;
  text-align: left;
}

.book-search-input {
  width: 100%;
  min-height: 58px;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1.08rem;
}

.book-search-input:focus-visible {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent);
  outline-offset: 2px;
}

.search-count {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .88rem;
  text-align: left;
}

.search-carousel-section {
  margin-bottom: 36px;
}

.search-scroll-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .85rem;
}

.search-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 4px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.search-carousel:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.search-book-card {
  min-width: 0;
  flex: 0 0 clamp(155px, 20vw, 220px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.search-book-card[hidden] {
  display: none;
}

.search-book-card a {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
}

.search-book-card a:hover {
  color: var(--accent);
}

.search-book-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  background: var(--surface-soft);
  object-fit: contain;
}

.search-empty {
  margin: 22px 4px;
  color: var(--muted);
  font-weight: 650;
}

.apps-page {
  padding-block: 58px 76px;
}

.apps-intro {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.apps-intro > p:last-child {
  color: var(--muted);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.app-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-screen {
  display: flex;
  min-height: 390px;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  padding: 18px 14px 0;
  overflow: hidden;
  background: var(--surface-soft);
}

.app-screen img {
  width: auto;
  height: 360px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: var(--surface);
  box-shadow: 0 10px 24px rgb(0 0 0 / 18%);
  object-fit: contain;
  object-position: top center;
}

.app-screen figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.app-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.app-copy .eyebrow {
  margin-bottom: 8px;
}

.app-copy h2 {
  margin: 0 0 12px;
  font: 800 1.5rem/1.15 var(--display);
}

.app-copy p:not(.eyebrow) {
  margin: 0 0 22px;
  color: var(--muted);
}

.app-link {
  margin-top: auto;
}

.school-section {
  padding-block: 60px;
  background: var(--surface);
  scroll-margin-top: 20px;
}

.school-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.school-inner .eyebrow {
  margin-bottom: 8px;
}

.school-inner > p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  padding-block: 34px 40px;
  background: var(--text);
  color: var(--page);
}

.footer-inner {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  color: var(--page);
}

.footer-copy {
  margin: 14px 0 0 48px;
  color: #d3d8d8;
  font-size: .82rem;
}

.footer-contact {
  color: #e6e9e5;
  font-size: .84rem;
}

.footer-contact p {
  margin-bottom: 5px;
}

.footer-contact a {
  text-underline-offset: 3px;
}

.footer-contact a:hover {
  color: var(--yellow);
}

@media (max-width: 1060px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 14px 22px;
    padding-block: 13px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-toggle {
    margin-left: 0;
  }

  .header-actions {
    order: 4;
    margin-left: auto;
  }

  .book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-width,
  .header-inner {
    width: min(100% - 36px, 560px);
  }

  .header-inner {
    gap: 8px;
  }

  .menu-toggle {
    display: grid;
    order: 2;
  }

  .header-actions {
    order: 3;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    order: 4;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    border-radius: 8px;
    padding: 10px 12px;
  }

  .apps-page {
    padding-block: 42px 58px;
  }

  .apps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-screen {
    min-height: 380px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 15px;
    padding-block: 53px 50px;
  }

  .hero h1 {
    max-width: 540px;
    font-size: clamp(2.5rem, 9vw, 3.5rem);
  }

  .hero-art {
    width: min(100%, 470px);
    min-height: 335px;
    margin-inline: auto;
  }

  .hero-cover {
    width: min(190px, 43%);
  }

  .hero-cover-back {
    top: 37px;
  }

  .hero-cover-front {
    top: 55px;
  }

  .sun-shape {
    top: 8px;
    width: min(290px, 76%);
  }

  .book-section {
    padding-block: 42px 65px;
  }

  .showcase-section {
    padding-block: 48px;
  }

  .showcase-heading {
    display: block;
    margin-bottom: 24px;
  }

  .showcase-heading > p {
    margin-top: 12px;
  }

  .showcase-list {
    gap: 20px;
  }

  .showcase-row {
    gap: 16px;
  }

  .showcase-image,
  .showcase-book {
    min-height: 360px;
  }

  .showcase-book {
    flex-direction: column;
    gap: 16px;
    padding: 18px;
  }

  .showcase-book > .showcase-cover {
    width: min(75%, 170px);
  }

  .showcase-copy {
    width: 100%;
  }

  .showcase-copy h3 {
    font-size: 1.45rem;
  }

  .showcase-copy > p:not(.eyebrow) {
    font-size: .82rem;
  }

  .showcase-collection {
    justify-content: center;
  }

  .showcase-covers {
    gap: 7px;
  }

  .showcase-covers .showcase-cover:nth-child(even) {
    transform: none;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin: 12px 0 0;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .book-info {
    padding: 12px;
  }

  .book-info h3 {
    font-size: 1rem;
  }

  .journey-section {
    padding-block: 58px;
  }

  .journey-grid {
    gap: 13px;
  }

  .journey-card {
    grid-template-columns: minmax(78px, .72fr) 1.28fr;
  }

  .journey-card .book-info {
    padding: 10px;
  }

  .read-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 65px;
  }

  .how-to-page .read-section {
    padding-top: 44px;
  }

  .read-visuals {
    grid-template-columns: minmax(0, 1fr) minmax(120px, .72fr);
  }

  .read-app-screenshot img {
    max-height: 470px;
  }

  .search-page {
    padding-top: 40px;
  }

  .school-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .catalog-link-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    display: grid;
    gap: 20px;
  }
}

@media (max-width: 440px) {
  .page-width,
  .header-inner {
    width: calc(100% - 30px);
  }

  .main-nav {
    gap: 8px 16px;
    flex-wrap: wrap;
  }

  .main-nav a {
    font-size: .8rem;
  }

  .brand-name {
    max-width: 118px;
    font-size: 12px;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .theme-toggle,
  .install-button {
    padding: 7px 8px;
    font-size: .68rem;
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 9vw, 2.8rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .hero-art {
    min-height: 300px;
  }

  .hero-cover {
    width: min(168px, 44%);
    border-width: 6px;
  }

  .hero-cover-front {
    right: 14%;
  }

  .hero-label {
    right: 0;
    bottom: 16px;
    font-size: .75rem;
  }

  .read-visuals {
    grid-template-columns: 1fr;
  }

  .read-app-screenshot {
    justify-self: center;
    width: min(100%, 240px);
  }

  .search-book-card {
    flex-basis: 152px;
  }

  .book-grid {
    gap: 10px;
  }

  .showcase-list {
    gap: 24px;
  }

  .showcase-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .showcase-row-reversed .showcase-image {
    order: 0;
  }

  .showcase-row-reversed .showcase-book {
    order: 1;
  }

  .showcase-image {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .showcase-image img {
    object-position: center 38%;
  }

  .showcase-book {
    min-height: 0;
    flex-direction: row;
    justify-content: flex-start;
    padding: 18px;
  }

  .showcase-book > .showcase-cover {
    width: min(38%, 140px);
  }

  .showcase-collection {
    flex-direction: column;
    align-items: stretch;
  }

  .showcase-covers {
    gap: 8px;
  }

  .showcase-copy {
    max-width: 280px;
  }

  .showcase-collection .showcase-copy {
    max-width: 100%;
  }

  .book-card {
    border-radius: 10px;
  }

  .book-info {
    padding: 10px;
  }

  .book-info h3 {
    font-size: .91rem;
  }

  .book-subtitle,
  .book-info > p:not(.book-subtitle) {
    font-size: .76rem;
  }

  .book-link {
    font-size: .75rem;
  }

  .journey-grid {
    grid-template-columns: 1fr;
  }

  .journey-card {
    grid-template-columns: 108px 1fr;
  }

  .journey-card .book-info h3 {
    font-size: 1.05rem;
  }

  .read-note {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
