/* Shared by every page: brand tokens, base reset, grain texture, footer,
   and the sub-page layout used by /zine/ and /radio/. Page-specific styles
   stay inline in each page. */

@font-face{
  font-family:"Aurora Condensed";
  src:url("../fonts/aurora-condensed.woff") format("woff");
  font-weight:400 900;
  font-style:normal;
  font-display:swap;
}

:root{
  --ink:#15130f;
  --paper:#f3ecd9;
  --paper-bright:#faf6ea;
  --orange:#d9481e;
  --orange-deep:#b83a17;
  --red:#c1272d;
  --gold:#e8b830;
  --hover-yellow:#f1da52;
  --focus:#e8b830;
  --max:840px;
  --edge:clamp(20px, 6vw, 64px);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

img,svg{ display:block; max-width:100%; }
a{ color:inherit; }

.display{
  font-family:"Aurora Condensed","Arial Narrow","Helvetica Neue Condensed",Arial,sans-serif;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.015em;
}

:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:3px;
  border-radius:2px;
}

/* ---------- grain / halftone texture, self-contained via data URI ---------- */
.grain{
  position:relative;
}
.grain::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:0.16;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat:repeat;
}

/* ---------- footer ---------- */
.site-footer{
  position:relative;
  background:var(--orange);
  color:var(--ink);
  padding:clamp(40px, 7vh, 64px) var(--edge) calc(env(safe-area-inset-bottom, 0px) + clamp(28px, 5vh, 48px));
  text-align:center;
  overflow:hidden;
}
.footer-logo{
  width:clamp(160px, 30vw, 240px);
  height:auto;
  margin:0 auto 18px;
}
.footer-nav ul{
  list-style:none;
  margin:0 0 20px;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px 10px;
}
.footer-nav a{
  display:inline-block;
  padding:8px 14px;
  border:2px solid var(--ink);
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  font-size:0.8rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  transition:background 140ms ease;
}
.footer-nav a:hover,
.footer-nav a:focus-visible{ background:var(--hover-yellow); }
.footer-nav a[aria-current="page"]{
  background:var(--ink);
  color:var(--orange);
}
.site-footer :focus-visible{ outline-color:var(--ink); }

.footer-line{
  margin:0;
  font-weight:800;
  letter-spacing:0.05em;
  text-transform:uppercase;
  font-size:0.85rem;
}
.footer-sub{
  margin:8px 0 0;
  font-size:0.78rem;
  opacity:0.75;
}

/* ---------- sub-pages (/zine/, /radio/) ---------- */
.subpage{
  /* gold focus ring disappears on paper; sub-pages are mostly paper */
  --focus:var(--ink);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.page-head{
  background:var(--orange);
  padding:calc(env(safe-area-inset-top, 0px) + clamp(20px, 4vh, 32px)) var(--edge) clamp(56px, 9vw, 96px);
  overflow:hidden;
}
.page-head-inner{
  max-width:var(--max);
  margin:0 auto;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:clamp(10px, 2vh, 16px);
}
.home-link{
  display:block;
  margin-bottom:clamp(8px, 2vh, 16px);
  border-radius:4px;
}
.home-link img{
  width:clamp(130px, 24vw, 180px);
  height:auto;
}
.page-eyebrow{
  margin:0;
  font-size:0.78rem;
  letter-spacing:0.22em;
  text-transform:uppercase;
  font-weight:800;
  opacity:0.85;
}
.page-title{
  margin:0;
  font-size:clamp(2.2rem, 8vw, 3.6rem);
  line-height:0.95;
}
.page-intro{
  margin:0;
  max-width:42ch;
  font-size:clamp(1rem, 2.2vw, 1.12rem);
  font-weight:600;
}
.page-head .cut{
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:clamp(32px, 6vw, 64px);
  background:var(--paper);
  clip-path:polygon(0 100%, 100% 40%, 100% 100%);
}

.page-body{
  flex:1;
  padding:clamp(24px, 5vh, 48px) var(--edge) clamp(56px, 10vh, 96px);
}
.page-body-inner{
  max-width:var(--max);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:clamp(28px, 5vh, 48px);
}

.section-heading{
  margin:0 0 16px;
  font-size:0.8rem;
  letter-spacing:0.2em;
  text-transform:uppercase;
  font-weight:800;
  color:var(--orange-deep);
}

.panel{
  background:var(--paper-bright);
  border:2px solid var(--ink);
  border-radius:12px;
  box-shadow:6px 6px 0 var(--ink);
  padding:clamp(18px, 3.5vw, 28px);
}

/* "Download ... here" lines: only the word "here" is the link, per the client's copy */
.download-line{
  margin:0;
  font-size:clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight:700;
}
.inline-link{
  color:var(--orange-deep);
  font-weight:800;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.inline-link:hover,
.inline-link:focus-visible{
  color:var(--ink);
  background:var(--hover-yellow);
}

.file-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap:12px;
}
.file-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  background:var(--paper);
  border:2px solid var(--ink);
  border-radius:8px;
  text-decoration:none;
  font-weight:700;
  transition:transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  box-shadow:3px 3px 0 var(--ink);
}
.file-link:hover,
.file-link:focus-visible{
  background:var(--hover-yellow);
  transform:translate(-2px,-2px);
  box-shadow:5px 5px 0 var(--ink);
}
.file-meta{
  flex:none;
  font-size:0.7rem;
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--orange-deep);
}

.cta{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:14px 24px;
  background:var(--paper-bright);
  border:2px solid var(--ink);
  border-radius:10px;
  box-shadow:5px 5px 0 var(--ink);
  text-decoration:none;
  color:var(--ink);
  font-weight:800;
  font-size:clamp(0.92rem, 2vw, 1rem);
  letter-spacing:0.03em;
  text-transform:uppercase;
  transition:transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.cta svg{ width:22px; height:22px; flex:none; }
.cta:hover,
.cta:focus-visible{
  background:var(--hover-yellow);
  transform:translate(-2px,-2px);
  box-shadow:7px 7px 0 var(--ink);
}
.cta:active{
  transform:translate(0,0);
  box-shadow:3px 3px 0 var(--ink);
}

.note{
  margin:0;
  font-size:0.85rem;
  opacity:0.8;
}
