/* Reading pages. These sit beside the scroll-world homepage and share its
   tokens, masthead, button and dialog styling from styles.css. They are plain
   white reading surfaces: no film, no scroll engine, no app.js. The masthead is
   the same frosted-glass fixed bar, so every reading page offsets its content by
   the bar height. */

body.page {
  padding-top: 74px;
  background: var(--paper);
  color: var(--navy);
}

/* The masthead is fixed on the reading pages exactly as it is on the homepage. */
.page .site-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
}

.page .header-nav a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
}

/* Reading column */
.page main {
  max-width: 1050px;
  margin: 0 auto;
  padding: 20px max(6vw, 22px) 40px;
}

.page-hero {
  padding: 34px 0 18px;
  border-bottom: 1px solid rgba(28, 36, 88, .12);
  margin-bottom: 40px;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
}

.page-hero .lead {
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.5;
  max-width: 44ch;
  margin: 22px 0 0;
  color: var(--navy);
}

.page-section {
  margin: 0 0 46px;
  max-width: 68ch;
}

.page-section h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -.04em;
  margin: 0 0 18px;
}

.page-section h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 26px 0 8px;
}

.page-section h3:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 2px;
  background: var(--teal);
  margin-right: 10px;
}

.page-section p,
.page-section li {
  font-size: 16px;
  line-height: 1.65;
}

.page-section ul {
  padding-left: 20px;
}

.page-section li {
  margin: 0 0 10px;
}

.page-section .check {
  font-style: italic;
  color: var(--quiet);
  border-left: 2px solid var(--teal);
  padding-left: 14px;
  margin-top: 18px;
}

.page-section a {
  color: var(--navy);
  text-underline-offset: 3px;
}

.page-cta {
  margin: 8px 0 20px;
}

/* Proof cards */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 8px 0 36px;
}

.proof-card {
  background: #fff;
  border: 1px solid rgba(28, 36, 88, .16);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.proof-card__preview {
  display: block;
  background: var(--pale, #eef6f6);
  border-bottom: 1px solid rgba(28, 36, 88, .12);
  padding: 24px 24px 0;
  height: 320px;
  overflow: hidden;
}

.proof-card__preview img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 3px 20px rgba(28, 36, 88, .1);
}

.proof-card__body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.proof-card__body h2 {
  font-size: 26px;
  letter-spacing: -.035em;
  margin: 0 0 14px;
}

.proof-card__body > p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.proof-download {
  display: inline-block;
  font-weight: 600;
  color: var(--navy);
  text-underline-offset: 4px;
  padding: 10px 0;
}

.proof-download .meta {
  font-size: 13px;
  font-weight: 400;
  color: var(--quiet);
}

.proof-card details {
  margin-top: 16px;
  border-top: 1px solid rgba(28, 36, 88, .12);
  padding-top: 14px;
  font-size: 15px;
}

.proof-card summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.proof-card details > div {
  padding-top: 14px;
}

.proof-card details h3 {
  font-size: 15px;
  color: var(--navy);
  margin: 22px 0 8px;
}

.proof-card dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 16px;
  margin: 0 0 12px;
}

.proof-card dt,
.proof-card dd {
  margin: 0;
  font-size: 15px;
}

.proof-card dd {
  text-align: right;
  font-weight: 600;
}

.proof-card .note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--quiet);
  margin: 12px 0 0;
}

.proof-foot {
  font-size: 14px;
  color: var(--quiet);
  max-width: 68ch;
  margin: 0 0 34px;
}

/* Footer, the reading pages' cross-site navigation. Always visible, so it is
   also the site's mobile navigation. */
.site-footer {
  border-top: 1px solid rgba(28, 36, 88, .14);
  margin-top: 20px;
  padding: 34px max(6vw, 22px) 40px;
  background: var(--paper);
}

.site-footer .footer-inner {
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer nav a {
  font-size: 13px;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-footer nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-footer .footer-meta {
  font-size: 12px;
  line-height: 1.6;
  color: var(--quiet);
  max-width: 40ch;
}

.site-footer .footer-meta a {
  color: var(--navy);
}

@media (max-width: 760px) {
  body.page {
    padding-top: 66px;
  }
  .page .header-nav {
    display: none;
  }
  .proof-grid {
    grid-template-columns: 1fr;
  }
  .proof-card__preview {
    height: 290px;
    padding: 18px 18px 0;
  }
  .page main {
    padding: 16px 22px 30px;
  }
}
