/* standalone text pages (/about, /case-file-004): the reader view's paper look, without the 3D app */
@font-face { font-family: 'Caroni Carnival'; src: url('/fonts/CaroniCarnival-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Ibrand'; src: url('/fonts/Ibrand.woff2') format('woff2'); font-display: swap; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: #f3eee4; color: #141414;
  font-family: 'Ibrand', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); line-height: 1.65;
  font-synthesis: none; -webkit-font-smoothing: antialiased;
  padding: clamp(24px, 8vw, 96px) clamp(16px, 10vw, 160px);
}
body > * { max-width: 680px; margin-left: auto; margin-right: auto; }
h1, h2 { font-family: 'Caroni Carnival', 'Ibrand', sans-serif; font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 1.5rem + 6vw, 5.5rem); line-height: 1; overflow-wrap: break-word; margin: 40px 0 16px; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem); line-height: 1.15; margin: 56px 0 12px; }
h3 { font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 22px 0 6px; }
p, li { margin-bottom: 0.7em; }
ul, ol { padding-left: 1.2em; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid #ff5a1f; outline-offset: 3px; }
.lead { font-size: clamp(1.125rem, 1.05rem + 0.5vw, 1.375rem); }
.portrait { display: block; width: min(280px, 70%); height: auto; margin-top: 32px; border-radius: 4px; }
footer { margin-top: 72px; padding-top: 16px; border-top: 1px solid rgba(20, 20, 20, 0.2); font-size: 0.875rem; }
