/* Typeset preview: the established Alike / Manrope pairing, tuned by role.
   No animation properties, product imagery, palette or factual copy changed. */
:root {
  --type-body: 1rem;
  --type-reading: 1.0625rem;
  --type-lead: 1.125rem;
  --type-action: .9375rem;
  --type-meta: .875rem;
  --type-section: clamp(2.5rem, 4.4vw, 4.25rem);
  --type-product: clamp(1.5rem, 2vw, 2rem);
  --type-reading-title: clamp(2rem, 4vw, 3rem);
}
body { font-size: var(--type-body); }
h1, h2, h3, .memories-values dt { overflow-wrap: anywhere; }

/* Keep the approved display composition. Only supporting copy needs more air. */
.home-page .hero h1 { font-size: clamp(3rem, 7.15vw, 6.625rem); }
.hero h1 .hero-word { max-inline-size: 100%; }
.home-page .hero p {
  font-size: var(--type-lead);
  line-height: 1.65;
  letter-spacing: normal;
  font-weight: 500;
  max-width: 29ch;
  text-wrap: balance;
}
.home-page .hero .button { font-size: var(--type-body); font-weight: 500; }
.sm-trigger, .sm-close { font-size: var(--type-body); }
.sm-panel-item { font-size: clamp(2.25rem, 4vw, 3.625rem); text-wrap: balance; }
.sm-label-mask { min-width: 0; overflow-wrap: anywhere; }
.primary-nav a { font-size: var(--type-action); }

.collection-heading h2 { font-size: var(--type-section); line-height: 1.1; }
.collection-hint { font-size: var(--type-action); line-height: 1.6; text-wrap: balance; }
.ag-caption h3 {
  font-size: var(--type-product);
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: balance;
  min-width: 0;
  flex: 1 1 8ch;
}
.ag-caption { flex-wrap: wrap; row-gap: 0; }
.ag-enhanced .ag-media img { padding-bottom: max(80px, calc(7rem - 32px)); }
.ag-caption a { font-size: var(--type-action); font-weight: 500; line-height: 1.5; }
.ag-closed-label { font-size: 1.375rem; letter-spacing: -.015em; }

/* Reading sizes are distinct from the deliberately miniature book previews. */
.book-page-content h2 {
  font-size: var(--type-reading-title);
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.book-page-content p, .memories-values dd {
  font-size: var(--type-reading);
  line-height: 1.7;
  max-inline-size: 65ch;
  text-wrap: pretty;
}
.book-page-content .book-origin-lead {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.55;
  max-inline-size: 38ch;
}
.book-page-content p + p { margin-top: 1.5em; }
.memories-values dt { font-size: 1.5rem; line-height: 1.25; text-wrap: balance; }
.memories-values dd { margin-top: .6em; }
.book-signature { font-size: 2.25rem; }
.book-page-count { font-size: var(--type-meta); }
.memories-link, .text-link, .back-link { font-size: var(--type-action); line-height: 1.5; }

.ocean h2 { font-size: clamp(3.125rem, 5.7vw, 5.5rem); text-wrap: balance; }
.ocean p { font-size: clamp(1.125rem, 2vw, 1.875rem); font-weight: 500; line-height: 1.65; letter-spacing: normal; text-wrap: balance; }
.footer-contact h2 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.02em; }
.footer-contact a { font-size: var(--type-body); }
.site-footer small { font-size: var(--type-meta); }

.frame-copy h1, .frame-example-page .frame-intro h1 {
  font-size: clamp(2.75rem, 4.5vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.frame-copy p { font-size: var(--type-lead); max-width: 42ch; line-height: 1.7; text-wrap: pretty; }
.frame-example-page .frame-intro p { font-size: var(--type-body); max-width: 42ch; line-height: 1.7; text-wrap: pretty; }
.frame-visual figcaption, .frame-next > span { font-size: var(--type-meta); }
.frame-next a { font-size: 1.75rem; line-height: 1.25; }
.not-found h1 { font-size: clamp(2.75rem, 5vw, 4rem); }

@media (min-width: 701px) and (max-width: 1100px) {
  .home-page .hero h1 { font-size: clamp(3rem, 7vw, 4.8125rem); }
  .home-page .hero p { font-size: var(--type-body); }
  .ag-closed-label { font-size: 1.25rem; }
}
@media (max-width: 700px) {
  .home-page .hero h1 { font-size: clamp(2.625rem, 11vw, 4.75rem); }
  .home-page .hero p { font-size: var(--type-body); }
  .sm-panel-item { font-size: clamp(2.125rem, 9.7vw, 3rem); }
  .collection-heading h2 { font-size: 2.5rem; }
  .ag-caption h3 { font-size: 1.5rem; }
  .ag-closed-label { font-size: 1.3125rem; }
  .ag-enhanced .ag-panel { min-height: max(64px, 4rem); }
  .ag-closed-label { max-inline-size: calc(100% - 36px); white-space: normal; overflow-wrap: anywhere; }
  .frame-copy h1, .frame-example-page .frame-intro h1 { font-size: clamp(2.5rem, 11vw, 2.875rem); }
  .frame-copy p { font-size: var(--type-body); }
  .frame-next a { font-size: 1.625rem; }
  .ocean h2 { font-size: clamp(2.25rem, 11.8vw, 3.875rem); }
  .ocean p { font-size: var(--type-lead); }
}
@media (max-width: 480px) {
  .book-page-content h2 { font-size: clamp(1.875rem, 8.4vw, 2.375rem); }
  .book-page-content p, .memories-values dd { font-size: var(--type-body); }
  .memories-values dt { font-size: 1.375rem; }
  .book-signature { font-size: 1.875rem; }
  /* Reserve room for a two-line product name beside its action. */
  .ag-caption { column-gap: 10px; }
  .ag-caption h3 { font-size: 1.375rem; }
  .ag-caption a { gap: 6px; }
}
