/* tram 92: styled after the postcards.
   Palette and type are taken straight from them: warm paper, charcoal, burnt-orange "92" badge, DejaVu Sans Mono. */

@font-face {
  font-family: "DejaVu Sans Mono";
  src: url("/assets/fonts/DejaVuSansMono.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DejaVu Sans Mono";
  src: url("/assets/fonts/DejaVuSansMono-Bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --paper:   #e7e1d6;   /* postcard back */
  --card:    #f1ece2;
  --ink:     #2a2622;
  --muted:   #7d776d;
  --rule:    #bdb8aa;
  --orange:  #b5502d;   /* the "92" badge */
  --orange-soft: #cf8a6e;
  --dark:    #5c564e;   /* warm grey the photo fades into (lighter than the printed card) */
  --cream:   #f1e8d8;   /* lettering on the dark band */
  --mono: "DejaVu Sans Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--orange-soft); text-underline-offset: .2em; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, 46rem); margin-inline: auto; }

/* ---------- hero: front of the postcard ---------- */
.hero { background: var(--dark); }  /* the fade into --dark is baked into hero.webp */
.hero img { width: 100%; height: auto; }  /* show the whole picture so the fade at its foot is never cropped */

.masthead { background: var(--dark); color: var(--cream); padding: 1.25rem 0 3rem; }
.masthead-inner {
  display: grid; gap: 1.25rem 2.5rem; align-items: end;
  grid-template-columns: auto 1fr;
}
.logo { margin: 0; font-weight: 400; line-height: 1; display: inline-flex; align-items: center; gap: .55em;
  font-size: clamp(2.6rem, 8vw, 4.1rem); position: relative; padding-bottom: .22em; }
.logo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(241,232,216,.45); }
.logo-badge {
  background: var(--orange); color: #faf4ea; font-weight: 700;
  font-size: .78em; line-height: 1; padding: .22em .3em .2em; border-radius: .22em;
  transform: translateY(.1em);
  box-shadow: 0 .15em .4em rgba(0,0,0,.25);
}
.tagline { margin: 0; font-size: clamp(1rem, 2.4vw, 1.3rem); line-height: 1.55; max-width: 26ch; padding-bottom: .3rem; }

@media (max-width: 640px) {
  .masthead-inner { grid-template-columns: 1fr; }
  .tagline { max-width: none; }
  .masthead { padding-bottom: 2.25rem; }
}

/* ---------- sections ---------- */
main { padding-block: 3.5rem 2rem; }
main > section + section { margin-top: 4rem; }

/* the "— SOUL MUSIC FOR ATHEISTS —" label from the back of the card */
.label, .foot-tag {
  display: flex; align-items: center; gap: 1rem; justify-content: center;
  margin: 0 0 1.5rem; font-size: .95rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--orange);
}
.label::before, .label::after, .foot-tag::before, .foot-tag::after {
  content: ""; flex: 0 1 4.5rem; height: 2px; background: var(--orange-soft);
}

.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 .8rem 1.6rem -1.2rem rgba(51,48,43,.45);
}
.card iframe { display: block; }
.card-pad { padding: 1rem 1rem .5rem; }
.fineprint { margin: .25rem 0 .5rem; text-align: center; font-size: .8rem; color: var(--muted); letter-spacing: .04em; }

/* ---------- videos (ready for when the clips exist) ---------- */
.reels {
  --ratio: 9 / 16;
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.reels video {
  width: 100%; aspect-ratio: var(--ratio); object-fit: cover; display: block;
  background: var(--dark); border-radius: var(--radius); border: 1px solid var(--rule);
}
.reel-title { margin: .6rem 0 0; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- contact: the back of the card ---------- */
.postcard {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 2rem 0; box-shadow: 0 .8rem 1.6rem -1.2rem rgba(51,48,43,.45);
}
.postcard-msg { padding: 0 2rem; display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; }
.postcard-msg p { margin: 0; }
.postcard-addr { padding: 0 2rem; border-left: 2px dashed var(--rule); display: flex; flex-direction: column; justify-content: center; }
.addr-line {
  display: block; padding: 1rem 0 .35rem; border-bottom: 2px solid var(--rule);
  text-decoration: none; font-size: .9rem; overflow-wrap: anywhere;
}
a.addr-line:hover { border-bottom-color: var(--orange); }
.addr-k { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .7rem;
  background: var(--orange); color: #faf4ea; font-weight: 700; text-decoration: none;
  padding: .8rem 1.3rem; border-radius: .55rem; font-size: 1.05rem;
  box-shadow: 0 .15rem .5rem rgba(181,80,45,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: #faf4ea; transform: translateY(-2px); box-shadow: 0 .4rem .9rem rgba(181,80,45,.4); }

@media (max-width: 640px) {
  .postcard { grid-template-columns: 1fr; padding: 1.5rem 0; }
  .postcard-msg, .postcard-addr { padding: 0 1.25rem; }
  .postcard-addr { border-left: 0; border-top: 2px dashed var(--rule); margin-top: 1.5rem; padding-top: .75rem; }
}

/* ---------- footer ---------- */
.foot { text-align: center; padding: 3rem 1.25rem 3.5rem; }
.foot-tag { margin-bottom: 1rem; }
.foot-small { margin: 0; font-size: .8rem; letter-spacing: .12em; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

@media (max-width: 420px) {
  .label, .foot-tag { letter-spacing: .14em; gap: .6rem; }
  .label::before, .label::after, .foot-tag::before, .foot-tag::after { flex-basis: 1.5rem; }
}

/* Bandcamp's large player is square artwork (as wide as the frame) plus ~120px of controls,
   so its height must track its width. Measured: 350px wide -> 468px tall, 480px wide -> 598px tall. */
.card-bc { max-width: 26rem; margin-inline: auto; container-type: inline-size; }
.card-bc iframe { width: 100%; height: 470px; height: calc(100cqw + 120px); }
