/* An edge-to-edge paper world; hero scaling stays below its native 720px width. */
:root { --sheet-width: 1600px; --hero-art-width: 560px; --world-gutter: max(clamp(20px, 5vw, 80px), calc((100% - 1440px) / 2)); }
html, body { background: var(--zine-ground); }
.site-sheet { width: 100%; box-shadow: none; }
.masthead { padding-inline: var(--world-gutter); }
.blatt-brand { display: block; width: min(240px, 70%); height: auto; margin-bottom: 20px; }
.hero { width: min(100%, var(--sheet-width)); }
.hero__cover { width: min(100%, var(--hero-art-width)); }
.hero__art { width: 100%; }
.hero-margins { width: 100%; height: calc(var(--hero-art-width) * 920 / 720); }
.hero-margin { width: calc((100% - var(--hero-art-width)) / 2); }
.margin-local-time { display: none; }
.mobile-doodles { display: none; }
.bio { padding-inline: var(--world-gutter); background: var(--zine-paper); gap: clamp(1.5rem, 5vw, 5rem); }
.bio-file { padding: 3.5rem 0; border: 0; }
.bio-file h2 { font-size: clamp(2.5rem, 4.2vw, 4.8rem); }
.bio-collage { padding: 2rem 0; }
.paper--vault, .instagram-section, .contact-section, .join { padding-inline: var(--world-gutter); }
.paper--vault { padding-block: 4rem; }
.instagram-section { padding-block: 4rem; }
.vault-intro { grid-template-columns: minmax(0, 1fr) 200px; }
.instagram-heading h2, .vault-heading h2, .contact-section h2 { font-size: clamp(2.5rem, 4.5vw, 4.8rem); }
.bio-file > p:not(.file-label) { max-width: 48ch; }
/* Scanned-material companion artwork. The original bio vinyl stays unchanged. */
.cassette-collage { position: relative; width: min(100%, 280px); margin-top: 1rem; overflow: hidden; }
.cassette-collage > img { display: block; width: 100%; height: auto; }
.cassette-collage__reels { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cassette-spool { animation: cassette-turn 7s linear infinite; }
.cassette-spool--left { transform-origin: 907px 286px; }
.cassette-spool--right { transform-origin: 1200px 355px; animation-duration: 8s; }
@keyframes cassette-turn { to { transform: rotate(360deg); } }
@media (max-width: 799px) {
  .cassette-collage { width: min(100%, 260px); margin-top: 1rem; }
}
.field-notes h2 { margin: .75rem 0; font: clamp(1.75rem, 2.5vw, 2.5rem)/1.15 var(--font-marker); letter-spacing: -.025em; }
.archive-tools { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem 1.5rem; padding-block: 1rem; border-block: 1px dashed var(--zine-rule); }
.archive-tools[hidden], .collab-builder[hidden], .collab-builder__result[hidden], .archive-empty[hidden] { display: none; }
.archive-tools label { display: grid; gap: .4rem; font-size: .8125rem; width: min(100%, 26rem); }
.archive-tools input { width: 100%; min-height: 48px; border: 1px solid var(--zine-rule); background: #faf6ee; color: var(--zine-ink); padding: .65rem .8rem; font: 1rem/1.4 var(--font-mono); border-radius: 0; }
.archive-tools button, [data-copy-brief] { min-height: 48px; padding: .6rem 1rem; border: 1px solid var(--zine-ink); background: transparent; color: var(--zine-ink); font: .875rem/1.3 var(--font-mono); cursor: pointer; }
.archive-tools > p { margin: 0 0 .75rem auto; font-size: .8125rem; }
.archive-file.is-filtered { display: none; }
.archive-empty { padding: 2rem 0; }
.field-notes { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(1rem, 4vw, 4rem); padding: 2rem var(--world-gutter); background: var(--zine-paper); border-top: 1px solid var(--zine-rule); }
.field-notes header > p:last-child { max-width: 32ch; }
.field-notes details { padding-block: .6rem; border-top: 1px solid var(--zine-rule); }
.field-notes details:last-child { border-bottom: 1px solid var(--zine-rule); }
.field-notes summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; list-style: none; cursor: pointer; font: 700 .9rem/1.5 var(--font-mono); }
.field-notes summary::-webkit-details-marker { display: none; }
.field-notes summary span { font-size: 1.6rem; color: var(--zine-accent); }
.field-notes details[open] summary span { transform: rotate(45deg); }
.field-notes details > p { max-width: 58ch; margin: .4rem 0 1.5rem; }
.field-notes a { color: var(--zine-accent); text-underline-offset: .2em; }
.contact-section { gap: clamp(2rem, 5vw, 5rem); padding-block: 2.5rem; align-items: center; }
.contact-section h2 { font-size: clamp(2rem, 3vw, 3.2rem); }
.archive-file__page { display: inline-block; margin-block: .5rem; font: .85rem/1.5 var(--font-mono); text-underline-offset: .25em; }
.contact-section__details { max-width: 640px; }
.collab-builder { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px dashed var(--zine-rule); }
.collab-builder__row { display: grid; grid-template-columns: 1.3fr 1fr; gap: .8rem; }
.collab-builder label { display: grid; gap: .45rem; margin-bottom: 1rem; font-size: .8125rem; }
.collab-builder input, .collab-builder select, .collab-builder textarea { width: 100%; min-width: 0; padding: .65rem .75rem; border: 1px solid var(--zine-rule); border-radius: 0; background: #faf6ee; color: var(--zine-ink); font: 1rem/1.5 var(--font-mono); }
.collab-builder input, .collab-builder select { min-height: 48px; }
.collab-builder textarea { resize: vertical; }
.collab-builder .paper-button { min-height: 48px; cursor: pointer; }
.collab-builder__result { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px dashed var(--zine-rule); }
.collab-builder__result > a { display: inline-flex; min-height: 48px; align-items: center; margin-left: .8rem; }
.collab-builder__privacy, #collab-status { font-size: .75rem; }
.collab-builder__privacy { color: var(--zine-muted); }
.collab-toggle { margin-top: 1rem; cursor: pointer; min-height: 48px; }
.collab-toggle[hidden] { display: none; }
.archive-file__lineup { display: inline-flex; align-items: center; min-height: 44px; color: var(--zine-accent); text-underline-offset: .2em; font-size: .875rem; }
.flyer-open, .flyer-open body { overflow: hidden; }
.flyer-viewer { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(12px, 2vw, 24px); border: 0; background: #1d1c18; color: #eee7db; }
.flyer-viewer:not([open]) { display: none; }
.flyer-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: .6rem; }
.flyer-viewer::backdrop { background: #1d1c18; }
.flyer-viewer__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.flyer-viewer__header h2 { margin: 0; font: clamp(.9rem, 2vw, 1.2rem)/1.3 var(--font-mono); }
.flyer-viewer button { flex-shrink: 0; min-height: 44px; padding: .6rem .8rem; color: inherit; border: 1px solid #81796d; background: transparent; font: .875rem/1.2 var(--font-mono); cursor: pointer; }
.flyer-viewer button:disabled { opacity: .4; cursor: default; }
.flyer-viewer :focus-visible { outline: 2px solid #ed82b6; outline-offset: 3px; }
.flyer-viewer__canvas { min-height: 0; min-width: 0; overflow: auto; overscroll-behavior: contain; display: flex; align-items: center; justify-content: center; }
.flyer-viewer__canvas img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.flyer-viewer__canvas.is-zoomed { display: block; }
.flyer-viewer__canvas.is-zoomed img { max-width: none; max-height: none; margin: 0 auto; }
.flyer-viewer__status { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; margin: 0; font: .7rem/1.5 var(--font-mono); }
.flyer-viewer__status a { color: inherit; text-underline-offset: .2em; }
.flyer-viewer__controls { display: flex; justify-content: center; gap: .6rem; padding-bottom: env(safe-area-inset-bottom, 0px); }
/* Keep the original chrome artwork; move its light across the transparent letters. */
.chrome-logo { position: relative; width: 86%; height: 27.5cqw; min-height: 0; pointer-events: none; }
.chrome-logo__surface { position: absolute; inset: 0; transform-origin: 50% 60%; }
.hero__brand .chrome-logo img { width: 100%; height: 100%; }
.chrome-logo__light { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chrome-logo__sheen, .chrome-logo__glint { opacity: 0; }
.chrome-logo__glint { fill: #fff; filter: drop-shadow(0 0 4px #dcecff); }
@media (prefers-reduced-motion: no-preference) {
  .chrome-logo__surface { animation: chrome-logo-drift 8s ease-in-out infinite; }
  .chrome-logo__sheen { animation: chrome-logo-sheen 8s ease-in-out infinite; }
  .chrome-logo__glint { animation: chrome-logo-glint 8s ease-in-out infinite; }
  .chrome-logo__glint--b { animation-delay: .5s; }
  .chrome-logo__glint--a { animation-delay: 1.65s; }
  .chrome-logo__glint--t { animation-delay: 2.3s; }
  .chrome-logo__glint--last { animation-delay: 3.05s; }
}
@keyframes chrome-logo-drift {
  0%, 100% { transform: translateY(0) rotate(-.45deg); }
  50% { transform: translateY(-1.2%) rotate(.45deg); }
}
@keyframes chrome-logo-sheen {
  0%, 6% { opacity: 0; transform: translateX(0); }
  12% { opacity: .85; }
  52% { opacity: .85; transform: translateX(1350px); }
  58%, 100% { opacity: 0; transform: translateX(1350px); }
}
@keyframes chrome-logo-glint {
  0%, 19%, 100% { opacity: 0; transform: scale(.35) rotate(-12deg); }
  7% { opacity: .95; transform: scale(1) rotate(0); }
  13% { opacity: .35; transform: scale(.65) rotate(8deg); }
}
[data-world-motion] { animation-play-state: paused; }
.is-world-playing [data-world-motion] { animation-play-state: running; }
html[data-motion-paused=true] [data-world-motion] { animation-play-state: paused; }
@media (min-width: 1200px) {
  :root { --hero-art-width: clamp(560px, 50vw, 680px); }
  .margin-note { width: 72%; max-width: none; }
  .margin-note--origin, .margin-note--archive { left: 14%; }
  .margin-note--archive { top: 60%; }
  .margin-note--social { right: 14%; top: 45%; }
  .margin-note__hand { font-size: clamp(2rem, 2.4vw, 2.6rem); }
  .margin-note__title { font-size: clamp(1.55rem, 1.8vw, 2rem); }
  .margin-note__eyebrow { font-size: .75rem; }
  .margin-note__link { font-size: .9375rem; }
  .margin-doodle--star { left: calc(50% - 67px); top: 38%; }
  .margin-charm { right: 18%; }
  .margin-scrawl { left: 18%; font-size: clamp(1.35rem, 1.7vw, 1.75rem); }
  .margin-doodle--arrow { left: 20%; top: 26%; }
  .margin-stamp { left: 22%; top: 80%; }
  .margin-sound { left: calc(50% - 85px); top: 88%; }
  .margin-local-time { display: grid; gap: .3rem; position: absolute; top: 4px; left: 15%; margin: 0; font: .6875rem/1.4 var(--font-mono); text-transform: uppercase; }
  .margin-local-time time { font-size: .875rem; font-variant-numeric: tabular-nums; }
  .archive-files { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2.5rem; }
  .archive-files > .archive-file:nth-child(n of .archive-file:not([hidden])) { grid-column: auto; margin-top: 0; }
  .archive-files > .archive-file:nth-child(3n + 2 of .archive-file:not([hidden])) { margin-top: 2.5rem; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:not([data-motion-paused=true]) .archive-file { transition: translate .2s ease; }
  html:not([data-motion-paused=true]) .archive-file:hover { translate: 0 -6px; }
}
@media (min-width: 1440px) {
  .archive-files { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .archive-file h3 { font-size: 1.7rem; }
}
@media (max-width: 799px) {
  .field-notes { grid-template-columns: minmax(0, 1fr); padding-block: 2rem; }
  .bio { gap: 0; }
  .vault-intro { grid-template-columns: minmax(0, 1fr) 95px; }
  .bio-file { padding-block: 2.5rem 1rem; }
  .bio-collage { padding-block: 1rem 2rem; }
  .archive-tools > p { margin-left: 0; }
  .contact-section { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) { .collab-builder__row { grid-template-columns: minmax(0, 1fr); gap: 0; } }
@media (min-width: 800px) {
  .contact-section > div:first-child { position: sticky; top: 2rem; align-self: start; }
  .contact-section__details { align-self: center; }
}
@media (max-width: 739px) {
  .mobile-doodles { display: flex; align-items: center; justify-content: space-between; gap: .75rem; height: 72px; padding: .5rem 6%; }
  .mobile-doodles > span { font: .625rem/1.4 var(--font-mono); letter-spacing: .04em; }
  .mobile-doodles__star { width: 44px; height: 46px; stroke: var(--zine-ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-doodles__star path { transform-origin: 40px 35px; animation-name: mobile-star-rock; animation-duration: 4s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
  .mobile-doodles__beat { width: 64px; height: 38px; fill: var(--zine-accent); }
  .mobile-doodles__beat path { transform-box: fill-box; transform-origin: center bottom; animation-name: margin-sound-bounce; animation-duration: 1.3s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; }
  .mobile-doodles__beat path:nth-child(2n) { animation-delay: -.6s; animation-duration: 1.7s; }
  .mobile-doodles__beat path:nth-child(3n) { animation-delay: -.3s; }
}
@keyframes mobile-star-rock { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { [data-world-motion] { animation: none; } }
@media (prefers-reduced-motion: reduce) { .mobile-doodles [data-world-motion] { animation: none; } }
