@font-face { font-family: 'Publication Serif'; src: url('../fonts/libre-baskerville-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Publication Serif'; src: url('../fonts/libre-baskerville-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Publication Serif'; src: url('../fonts/libre-baskerville-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Montserrat; src: url('../fonts/montserrat-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Montserrat; src: url('../fonts/montserrat-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Montserrat; src: url('../fonts/montserrat-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #171717;
  --muted: #404040;
  --soft: #696969;
  --line: #d8d6d2;
  --accent: #a52731;
  --link: #1455bb;
  --body-font: Montserrat, Verdana, sans-serif;
  --headline-font: 'Publication Serif', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f7f7f5 url('../img/backgrounds/paper.png') center top / cover no-repeat;
  color: var(--ink);
  font: 14px/1.5 var(--body-font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -60px; left: 12px; z-index: 10; padding: 9px 12px; background: #fff; }
.skip-link:focus { top: 12px; }
.header-inner { display: flex; justify-content: center; padding: 18px 0 7px; }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; width: 100%; }
.brand-emblem { display: block; width: 380px; max-width: 100%; aspect-ratio: 1272 / 760; background: url('../img/brands/moonlabs-crest-full.png') center / contain no-repeat; }
.intro { padding: 23px 0 54px; text-align: center; }
.eyebrow { margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 900px; margin: 0 auto; font: 700 clamp(34px, 4vw, 42px)/1.16 var(--headline-font); letter-spacing: -.02em; text-wrap: balance; }
.intro-copy { margin-top: 5px; font-size: 20px; line-height: 1.4; }
.directory-section { margin-bottom: 76px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 21px; }
.section-heading h2 { font: 700 20px/1.2 var(--headline-font); }
.section-heading p { color: var(--soft); font-size: 12px; }
.publication-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 930px; margin: 0 auto; gap: clamp(24px, 4vw, 65px); }
.publication-grid .project { min-width: 0; text-align: center; container-type: inline-size; }
.publication-cover { aspect-ratio: 3 / 4.4; padding: 8px; border: 1px solid #b9b6b0; background: #fff; box-shadow: 0 9px 13px rgb(27 22 21 / 14%), 0 1px 2px rgb(27 22 21 / 15%); }
.cover-link { display: block; color: inherit; text-decoration: none; transition: transform .35s ease, box-shadow .35s ease; }
.cover-link:hover, .cover-link:focus-visible { transform: translateY(-4px) scale(1.04); box-shadow: 0 14px 24px rgb(27 22 21 / 23%); }
.front-page { display: flex; flex-direction: column; height: 100%; padding: 2px 3px; background: #fff; text-align: left; }
.paper-overline, .paper-colophon { display: flex; justify-content: space-between; gap: 4px; font: 600 2cqw/1.3 var(--body-font); letter-spacing: .03em; }
.paper-overline { padding-bottom: 3px; border-bottom: 1px solid var(--ink); }
.paper-masthead { padding: 2px 0; text-align: center; }
.paper-masthead img { display: block; width: 72%; height: 18cqw; margin: auto; object-fit: contain; }
.paper-topics { padding: 3px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); color: var(--accent); font: 700 2.1cqw/1.3 var(--body-font); letter-spacing: .04em; text-align: center; }
.paper-lead { padding: 6px 0 5px; }
.paper-lead strong { display: block; font: 700 7.5cqw/1.02 var(--headline-font); letter-spacing: -.045em; }
.paper-lead p { margin-top: 4px; font: italic 3cqw/1.2 Georgia, serif; }
.paper-feature { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; }
.paper-feature figure { margin: 0; }
.paper-photo { display: block; width: 100%; height: 30cqw; object-fit: cover; object-position: center 35%; }
.paper-feature figcaption { margin-top: 3px; font: 2.1cqw/1.25 var(--body-font); }
.paper-body { padding-left: 6px; border-left: 1px solid var(--line); font: 2.8cqw/1.25 Georgia, serif; text-align: justify; hyphens: auto; }
.paper-body::first-letter { float: left; padding: 0 2px 0 0; font-size: 8cqw; line-height: .85; }
.paper-stories { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--ink); }
.paper-stories > div + div { padding-left: 7px; border-left: 1px solid var(--line); }
.paper-stories span { display: block; margin-bottom: 3px; color: var(--accent); font: 700 2.1cqw/1.2 var(--body-font); letter-spacing: .05em; }
.paper-stories strong { display: block; font: 700 4.5cqw/1.08 var(--headline-font); letter-spacing: -.02em; }
.paper-stories p { margin-top: 4px; font: 2.6cqw/1.24 Georgia, serif; text-align: justify; hyphens: auto; }
.paper-colophon { margin-top: auto; min-height: 10px; padding-top: 4px; border-top: 1px solid var(--ink); }
.publication-grid h3 { margin-top: 23px; font: 700 22px/1.25 var(--headline-font); }
.project-logo { display: block; width: 145px; height: 48px; object-fit: contain; margin-inline: auto; }
.publication-grid h3 a { display: inline-block; text-decoration: none; }
.publication-grid h3 a:hover { text-decoration: underline; }
.network-grid .project-logo { width: 160px; height: 45px; margin: 0; object-position: left center; }
.project-description { margin: 5px auto 0; max-width: 300px; color: var(--muted); font-size: 12px; }
.project-action { margin-top: 4px; font-size: 13px; }
.project-action a { color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.project-action a:hover { color: #0d3c88; }
.availability { color: var(--soft); }
.network-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.network-grid .project-mobile .project-logo { width: 45px; height: 45px; }
.network-grid .project { padding: 17px 22px 0 0; }
.network-grid .project + .project { padding-left: 22px; border-left: 1px solid var(--line); }
.network-grid h3 { font: 600 19px/1.2 var(--headline-font); }
.network-grid .project-description { margin: 6px 0 0; }
.footer-about { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-about-inner { padding-block: 31px; font-size: 13px; line-height: 1.55; }
.footer-toggle { padding: 0; border: 0; background: none; color: var(--ink); font: 700 13px/1.55 var(--body-font); cursor: pointer; white-space: nowrap; }
.footer-toggle:hover { text-decoration: underline; }
.footer-toggle:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.footer-intro .footer-toggle[aria-expanded="true"] { display: none; }
.footer-more p { margin-top: 16px; }
.footer-more a { color: var(--link); }
.footer-less { margin-top: 2px; }
.footer-copyright { padding-block: 20px 25px; text-align: center; font-size: 11px; }
.container-error-404 { display: flex; justify-content: center; align-items: center; min-height: 45vh; padding-block: 30px 70px; text-align: center; }
.error-404 h1 { font-size: clamp(80px, 15vw, 142px); line-height: 1; margin: 0 0 16px; }
.error-404 h2 { font: 700 28px/1.3 var(--headline-font); margin-bottom: 16px; }
.error-404 p + p { margin-top: 20px; }
.error-404 a { color: var(--link); }
.privacy-page { max-width: 760px; padding-block: 35px 90px; }
.privacy-page h1 { margin: 0 0 20px; }
.privacy-page h2 { margin: 27px 0 8px; font: 700 20px/1.3 var(--headline-font); }
.privacy-page p + p { margin-top: 15px; }
.privacy-page a { color: var(--link); }
@media (max-width: 760px) {
  .intro { padding-bottom: 42px; }
  .intro-copy { font-size: 16px; }
  .publication-grid { gap: 22px; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 36px, 420px); }
  .brand-emblem { width: 310px; max-width: 100%; }
  .intro { padding: 24px 0 42px; }
  h1 { font-size: 36px; }
  .intro-copy { font-size: 15px; }
  .publication-grid { grid-template-columns: 1fr; max-width: 300px; gap: 42px; }
  .section-heading { display: block; text-align: center; }
  .section-heading p { margin-top: 4px; }
  .network-grid { grid-template-columns: 1fr; }
  .network-grid .project, .network-grid .project + .project { padding: 15px 0; border-left: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .network-grid .project-description, .network-grid .project-logo { margin-inline: 0; }
  .footer-about-inner { padding-block: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cover-link { transition: none; } }
