@font-face {
  font-family: Inter;
  src: url('../base/fonts/inter-latin-400-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url('../base/fonts/inter-latin-600-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

/* Keep display type expressive and reserve Inter for text and controls. */
body:is(.zz-page,.zz-home) {
  font-family: Inter, system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

:is(.zz-page,.zz-home) h1,
:is(.zz-page,.zz-home) h2 {
  font-family: SkySerif, Georgia, serif;
  font-weight: 400;
  letter-spacing: -.02em;
  text-wrap: balance;
}

:is(.zz-page,.zz-home) h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.06;
}

:is(.zz-page,.zz-home) h1 em,
:is(.zz-page,.zz-home) h2 em {
  font-family: inherit;
}

:is(.zz-page,.zz-home) :is(.welcome, .edition-intro, .edition-section-head, .edition-hero, .desk-intro,
  .desk-heading, .atlas-intro, .zz-finder-context, .section-title, .edition-essay-body,
  .edition-field-card) p:not(.eyebrow, .edition-caption),
:is(.zz-page,.zz-home) :is(.desk-record-body, .desk-essay-body, .edition-faq, .edition-research) p {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(.925rem, 1.4vw, 1rem);
  line-height: 1.65;
  color: #ced8e8;
}

:is(.zz-page,.zz-home) .zz-sidebar nav .zz-nav-copy b {
  font-family: Inter, system-ui, sans-serif;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.2;
}

:is(.zz-page,.zz-home) .zz-sidebar nav .zz-nav-copy em {
  font-size: .6875rem;
  line-height: 1.3;
}

:is(.zz-page,.zz-home) .zz-sidebar nav .zz-nav-category,
:is(.zz-page,.zz-home) .zz-sidebar nav .zz-nav-fact {
  display: none;
}

:is(.zz-page,.zz-home) :is(button, a, input, select, summary, textarea):focus-visible {
  outline: 2px solid #e6cd9b;
  outline-offset: 3px;
}

.edition-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.edition-field-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border: 1px solid var(--zz-line);
  border-radius: 16px;
  background: #1b2434;
}

.edition-field-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.edition-field-card > div {
  padding: 18px;
}

.edition-field-card h3 {
  margin: 0;
  font: 400 1.7rem/1.12 SkySerif, Georgia, serif;
  color: #eef1f8;
}

.edition-field-card p {
  margin: 10px 0 15px;
}

.edition-field-card a {
  color: #e6cd9b;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .edition-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .edition-field-grid { grid-template-columns: 1fr; }
}

.zz-sign-model .zz-atlas-art {
  inset: 4px;
  overflow: hidden;
  border-radius: 12px;
}

.zz-sign-model .zz-atlas-art[hidden] { display: none; }

.zz-atlas-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

:is(.zz-page,.zz-home) main :is(h1,h2) {
  font-family: SkySerif, Georgia, serif;
  letter-spacing: -.02em;
}

:is(.zz-page,.zz-home) main h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.06;
}

.zz-home .zz-observatory-heading p {
  max-width: 50ch;
  color: #ced8e8;
  font-size: .975rem;
  line-height: 1.65;
}

:is(.zz-page,.zz-home) .zz-sidebar nav .zz-nav-copy em {
  color: #b9c8dd;
}

@media (max-width: 680px) {
  .zz-sidebar nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding: 0;
  }

  .zz-sidebar nav a {
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
    min-height: 42px;
    padding: 5px;
  }

  :is(.zz-page,.zz-home) .zz-sidebar nav .zz-nav-copy b {
    font-size: .6875rem;
    white-space: normal;
  }
}

.zz-home .zz-original-hero { padding: 22px 12px 12px; }
.zz-home .zz-observatory-heading { padding: 0 14px 17px; }
.zz-home .zz-observatory-heading h1 { margin: 0 auto 7px; }
.zz-home .zz-observatory-heading h1 em { color: #d2b990; }
.zz-home .zz-observatory-heading p { margin: 0 auto 8px; font-size: 1.125rem; }
.zz-home .zz-launch { margin: 2px auto; font-size: .9375rem; line-height: 1.5; }
.zz-home #observatory-frame { height: clamp(690px, 91vh, 860px); }

@media (max-width: 540px) {
  .zz-home .zz-original-hero { padding: 17px 7px 7px; }
  .zz-home #observatory-frame { height: max(720px, 91vh); }
}

/* The atlas and the book use the same four-part reading order. */
.atlas-tradition { margin: 34px 0 52px; scroll-margin-top: 20px; }
.atlas-tradition-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--zz-line);
}
.atlas-tradition-head h3 {
  margin: 0;
  color: #f0e8d8;
  font: 400 clamp(1.9rem, 4vw, 3rem)/1.1 SkySerif, Georgia, serif;
}
.atlas-tradition-head p, .atlas-tradition-intro p {
  max-width: 66ch;
  margin-block: 10px;
  color: #cbd7e8;
  font: 400 1rem/1.6 Inter, system-ui, sans-serif;
}
:is(.atlas-tradition-head,.atlas-chapter-breadcrumb,.atlas-chapter-extras,.book-part) a { color: #e6cd9b; text-underline-offset: 4px; }
.atlas-tradition-head > a { flex-shrink: 0; font-size: .875rem; }
.atlas-tradition-intro { margin: 8px 0 20px; color: var(--zz-ink); }
:is(.atlas-tradition-intro,.atlas-chapter-extras) summary { min-height: 40px; padding: 9px 0; cursor: pointer; }
.atlas-tradition .cards { margin-top: 8px; }
.zz-atlas .atlas-tradition .card-visual { display: block; height: auto; aspect-ratio: 4 / 3; overflow: hidden; }
.atlas-chapter-art { display: block; width: 100%; height: 100%; object-fit: contain; }
.atlas-tradition .atlas-chapter-art { object-fit: cover; }
.atlas-tradition .card-title-row h4 {
  margin: 0;
  font: 400 1.8rem/1.15 SkySerif, Georgia, serif;
  color: #ecf1fb;
}
.atlas-chapter .article-art { max-width: 450px; justify-self: center; }
.atlas-chapter .atlas-chapter-art.is-large { width: 100%; height: auto; }
.atlas-chapter-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.atlas-chapter-dates { margin-block: 10px; color: #c8d4e5; }
.zz-atlas .atlas-chapter .article-summary { font: 400 clamp(1.2rem,2.4vw,1.65rem)/1.45 Inter, system-ui, sans-serif; }
.atlas-story-body, .atlas-chapter-extras, .atlas-chapter-navigation { width: min(100%, 67ch); margin-inline: auto; }
.atlas-story-body { margin-block: 24px 32px; color: #e1e9f7; font: 400 clamp(1.0625rem,2.1vw,1.25rem)/1.76 Inter, system-ui, sans-serif; }
.atlas-story-body p + p { margin-top: 20px; }
.atlas-chapter-navigation { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.atlas-chapter-navigation a { display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--zz-line); border-radius: 10px; color: #efddb7; }
.atlas-chapter-navigation span { color: #cad5e4; font-size: .85rem; }
.atlas-chapter-extras { margin-block: 28px; color: #cfd7e5; }
.atlas-chapter-extras details { margin-top: 10px; border-top: 1px solid var(--zz-line); }
.atlas-chapter-extras audio { width: min(100%,365px); }
.atlas-chapter-extras ul { padding-inline-start: 20px; }
.atlas-chapter-extras li + li { margin-top: 8px; }
.book-parts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.book-part { padding: 18px; background: #192435; border: 1px solid var(--zz-line); border-radius: 12px; }
.book-part h3 { margin: 0 0 10px; font: 400 1.75rem/1.14 SkySerif, Georgia, serif; }
.book-part ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px 12px; margin: 16px 0 0; padding-inline-start: 18px; }
.book-part li { min-width: 0; color: #c4cfe2; font: 400 .875rem/1.4 Inter, system-ui, sans-serif; }
.book-part li a { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .atlas-tradition-head { display: block; }
  .book-parts { grid-template-columns: 1fr; }
}

.zz-atlas .atlas-chapter .article-art { height: auto; max-height: none; width: min(100%, 380px); overflow: hidden; }
.zz-atlas .atlas-chapter .article-hero { align-items: center; gap: 24px; }
@media (min-width: 850px) {
  .zz-atlas .atlas-chapter .article-hero { grid-template-columns: minmax(0,1fr) minmax(0,.8fr); text-align: left; }
  .zz-atlas .atlas-chapter .article-actions { justify-content: flex-start; }
  .zz-atlas .atlas-chapter .article-summary { margin-inline: 0; }
}
.book-studies { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.book-studies a { padding: 9px 13px; border: 1px solid var(--zz-line); border-radius: 8px; color: #f0d7a7; background: #192435; }

#book-visual-chapters .edition-field-card { min-width: 0; }
#book-visual-chapters .edition-field-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
#book-visual-chapters h3 { text-wrap: balance; }
#book-visual-chapters a:focus-visible { outline: 2px solid #e8d2a7; outline-offset: 4px; }
