/* b-sidecast.com — 1978 analog. Paper stock, misregistered ink, tape labels.
   Deliberately NOT the instantaudio.live look. Nothing shared with the other sites. */

:root{
  --paper:#f2ece0;
  --paper-2:#e8dfcd;
  --ink:#1a1614;
  --ink-soft:#4a423b;
  --ox:#8b1a1a;          /* oxblood, straight off the logo faders */
  --tape:#d9c9a3;
  --rule:#1a1614;
}

*{box-sizing:border-box}

html{ -webkit-text-size-adjust:100% }

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Courier Prime',ui-monospace,'Courier New',monospace;
  font-size:17px;
  line-height:1.65;
  /* Paper grain. feTurbulence baked in as a data URI so the site stays
     self-contained and offline-portable, same as instantaudio. */
  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='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(26,22,20,.022) 0 1px, transparent 1px 4px);
}

img{max-width:100%;height:auto;display:block}

.wrap{max-width:940px;margin:0 auto;padding:0 22px}

/* ---------- type ---------- */

h1,h2,h3{
  font-family:'Archivo Black',Impact,'Haettenschweiler',sans-serif;
  font-weight:400;
  letter-spacing:-.01em;
  line-height:.98;
  text-transform:uppercase;
  margin:0;
}

/* Misregistered second impression — the oxblood plate is off by a hair,
   the way a cheap two-colour press actually failed. */
.mis{position:relative;display:inline-block}
.mis::before{
  content:attr(data-t);
  position:absolute;
  left:-2px;top:2px;
  color:var(--ox);
  opacity:.62;
  z-index:-1;
}

.hand{font-family:'Special Elite',cursive;text-transform:none;letter-spacing:0}

.tape{
  display:inline-block;
  background:var(--tape);
  color:var(--ox);
  font-family:'Special Elite',cursive;
  padding:.35rem 1.1rem;
  transform:rotate(-1.4deg);
  box-shadow:0 1px 0 rgba(26,22,20,.22);
  /* torn masking-tape ends */
  clip-path:polygon(2% 6%,98% 0%,100% 92%,1% 100%);
}

/* ---------- masthead ---------- */

header.mast{
  border-bottom:5px double var(--rule);
  padding:34px 0 26px;
}
.mast-grid{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:26px;
  align-items:center;
}
.mast-grid img{ filter:contrast(1.06) }
.mast h1{ font-size:clamp(2.6rem,10vw,4.6rem) }
.mast .sub{
  font-family:'Special Elite',cursive;
  font-size:1.02rem;
  color:var(--ink-soft);
  margin-top:.55rem;
}

/* ---------- tracklist nav ---------- */

nav.tracks{
  border-bottom:2px solid var(--rule);
  padding:14px 0;
  font-family:'Special Elite',cursive;
  font-size:.94rem;
}
nav.tracks ol{
  list-style:none;margin:0;padding:0;
  display:flex;flex-wrap:wrap;gap:.4rem 1.6rem;
}
nav.tracks a{
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px solid transparent;
  padding:6px 0;               /* keeps the 44px touch row on phones */
  display:inline-block;
  min-height:34px;
}
nav.tracks a:hover,nav.tracks a:focus{border-bottom-color:var(--ox);color:var(--ox)}

/* ---------- sections ---------- */

section{padding:56px 0;border-bottom:2px solid var(--rule)}
section:last-of-type{border-bottom:none}

.side{
  font-family:'Special Elite',cursive;
  font-size:.82rem;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:var(--ox);
  margin-bottom:.7rem;
}
h2{font-size:clamp(1.9rem,6.4vw,3.1rem);margin-bottom:.9rem}
h3{font-size:1.22rem;margin-bottom:.45rem}

p{margin:0 0 1.05rem;max-width:62ch}
.lead{font-size:1.16rem}

strong{background:linear-gradient(transparent 62%,rgba(139,26,26,.24) 0)}

.cols{display:grid;gap:34px;grid-template-columns:repeat(auto-fit,minmax(248px,1fr));margin-top:30px}

/* ---------- halftone panel ---------- */

.halftone{
  background-color:var(--paper-2);
  background-image:radial-gradient(var(--ink) 22%,transparent 23%);
  background-size:7px 7px;
  opacity:.9;
}

/* ---------- image slots ----------
   The ::after carries the photo so it paints OVER the caption. Until a real
   file lands at the path, ::after is empty and the caption shows through.
   Nothing 404s, nothing renders a broken-image icon. */

.slot{
  position:relative;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:var(--paper-2);
  border:2px solid var(--rule);
  min-height:210px;
  margin:26px 0;
}
/* Placeholder art: record grooves under a halftone screen. Reads as a
   deliberate graphic rather than a missing photo. Covered entirely by ::after
   the moment a real file lands at the path. */
.slot::before{
  content:"";position:absolute;inset:0;
  background-image:
    repeating-radial-gradient(circle at 28% 50%,
      transparent 0 9px, rgba(139,26,26,.13) 9px 10px),
    radial-gradient(rgba(26,22,20,.5) 21%,transparent 22%);
  background-size:auto, 6px 6px;
}
.slot::after{
  content:"";position:absolute;inset:0;
  background-image:var(--img);
  background-size:cover;background-position:center;
  filter:grayscale(.35) contrast(1.12) sepia(.16);
}
.slot.tall{min-height:340px}

/* A supplied photo shown WHOLE rather than cropped into the wide letterbox
   band. The band is roughly 2.6:1; a 4:3 photo loses its top and bottom to
   `cover`, which on at-home.jpg meant losing the dog. Matching the slot's
   aspect ratio to the file means cover crops nothing.
   Sized like a print pasted onto the page — at full width a 4:3 block is
   enormous, and the smaller framed version suits the layout better. */
.slot.photo{
  aspect-ratio:1178/884;
  min-height:0;
  max-width:620px;
  margin-left:auto;
  margin-right:auto;
}

/* ---------- the calculator ----------
   Same job as the one on livecastnow, deliberately not the same look: this one
   is a paper worksheet, not a broadcast readout. */

.calc{
  border:3px solid var(--rule);
  background:var(--paper-2);
  padding:28px;
  margin-top:30px;
  max-width:660px;
}
.calc .field{margin-bottom:26px}
.calc label{
  display:block;
  font-family:'Special Elite',cursive;
  font-size:.92rem;
  color:var(--ink-soft);
  margin-bottom:.2rem;
}
.calc .val{
  display:block;
  font-family:'Archivo Black',Impact,sans-serif;
  font-size:1.8rem;
  line-height:1.1;
  color:var(--ink);
  margin-bottom:.35rem;
}
.calc input[type=range]{
  width:100%;
  height:34px;               /* keeps the thumb inside a 44px touch row */
  accent-color:var(--ox);
  cursor:pointer;
}
.calc .out{
  border-top:3px double var(--rule);
  padding-top:22px;
  margin-top:4px;
}
.calc .out .big{
  display:block;
  font-family:'Archivo Black',Impact,sans-serif;
  font-size:clamp(2.6rem,10vw,3.8rem);
  line-height:1;
  color:var(--ox);
}
.calc .out .k{
  font-family:'Special Elite',cursive;
  font-size:.9rem;
  color:var(--ink-soft);
  margin:.7rem 0 0;
  max-width:none;
}
.calc .disclaim{
  font-family:'Special Elite',cursive;
  font-size:.84rem;
  color:var(--ink-soft);
  margin:1.5rem 0 0;
  padding-top:1.2rem;
  border-top:1px dashed rgba(26,22,20,.35);
  max-width:none;
}

/* ---------- steps ---------- */

ol.steps{counter-reset:s;list-style:none;padding:0;margin:30px 0 0}
ol.steps li{
  counter-increment:s;
  position:relative;
  padding-left:66px;
  margin-bottom:26px;
  max-width:62ch;
}
ol.steps li::before{
  content:counter(s);
  position:absolute;left:0;top:-4px;
  font-family:'Archivo Black',Impact,sans-serif;
  font-size:2.4rem;
  color:var(--ox);
  line-height:1;
}

/* ---------- stamp CTA ---------- */

.stamp{
  display:inline-block;
  font-family:'Archivo Black',Impact,sans-serif;
  text-transform:uppercase;
  font-size:1.16rem;
  letter-spacing:.03em;
  color:var(--ox);
  background:transparent;
  border:4px solid var(--ox);
  border-radius:3px;
  padding:16px 30px;
  min-height:44px;
  text-decoration:none;
  transform:rotate(-2.2deg);
  opacity:.92;
  box-shadow:inset 0 0 0 2px rgba(242,236,224,.55);
}
.stamp:hover,.stamp:focus{opacity:1;transform:rotate(-2.2deg) scale(1.02)}

.cta{text-align:center;padding:66px 0}
.cta p{margin-left:auto;margin-right:auto}
.cta .after{
  font-family:'Special Elite',cursive;
  font-size:.92rem;color:var(--ink-soft);
  margin-top:1.6rem;
}

/* ---------- liner notes ---------- */

.liner{
  border-left:5px solid var(--ox);
  padding-left:22px;
  font-family:'Special Elite',cursive;
  font-size:1rem;
  color:var(--ink-soft);
  max-width:60ch;
}
.liner h3{font-family:'Special Elite',cursive;text-transform:none;color:var(--ink);font-size:1.08rem}

/* ---------- footer ---------- */

footer{
  border-top:5px double var(--rule);
  padding:38px 0 60px;
  font-family:'Special Elite',cursive;
  font-size:.9rem;
  color:var(--ink-soft);
}
footer a{color:var(--ox)}
footer p{max-width:66ch}

@media (max-width:560px){
  .mast-grid{grid-template-columns:110px 1fr;gap:18px}
  section{padding:42px 0}
  ol.steps li{padding-left:52px}
}

/* The look is a fixed choice, not a theme. Honour reduced motion only. */
@media (prefers-reduced-motion:reduce){
  .stamp:hover,.stamp:focus{transform:rotate(-2.2deg)}
}
