/* Caskets holding site
   ------------------------------------------------------------------ */

@font-face {
  font-family: "Oswald";
  src: url("/assets/fonts/oswald-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched fallback so the swap to Oswald doesn't shift layout */
@font-face {
  font-family: "Oswald Fallback";
  src: local("Arial Narrow"), local("ArialNarrow"), local("Roboto Condensed"), local("Arial");
  size-adjust: 92%;
  ascent-override: 128%;
  descent-override: 31%;
}

:root {
  --bg: #0a0a0b;
  --bg-2: #121317;
  --bg-3: #1a1c22;
  --ink: #f3f1ed;
  --muted: #b3b7c2;
  --red: #b02a20;        /* sampled from the poster wordmark (~#ae2c20) - button fills */
  --red-hover: #c7342a;
  --red-text: #ec5a4f;   /* lighter red for small text on dark (AA) */
  --storm: #4a5670;
  --storm-light: #8d99b4;

  --display: "Oswald", "Oswald Fallback", "Arial Narrow", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--red-text);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
}

.section__title {
  margin: 0 0 20px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lede {
  margin: 0 0 32px;
  max-width: 38em;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 28px;
  border: 2px solid transparent;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); }
.btn--ghost { border-color: rgba(243, 241, 237, .75); color: var(--ink); background: rgba(10, 10, 11, .35); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.hero__bg, .hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__bg { z-index: -2; }
.hero__bg img {
  object-fit: cover;
  object-position: 50% 30%;
  transform-origin: 50% 40%;
  animation: kenburns 40s ease-in-out infinite alternate;
  will-change: transform;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 11, .94) 22%, rgba(10, 10, 11, .55) 52%, rgba(10, 10, 11, .25) 75%, rgba(10, 10, 11, .45) 100%),
    radial-gradient(ellipse at 50% 100%, rgba(74, 86, 112, .25), transparent 60%);
}

.hero__content {
  width: 100%;
  max-width: 900px;
  padding: 0 var(--gutter) clamp(56px, 10vh, 112px);
  text-align: center;
}

.hero__logo {
  margin: 0 auto 22px;
  width: min(560px, 78vw);
  animation: rise 1.2s var(--ease) .1s both;
}
.hero__logo img { width: 100%; }

.hero__headline {
  margin: 0 0 34px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.125rem, 3.2vw, 1.75rem);
  letter-spacing: .3em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .8);
  animation: rise 1.2s var(--ease) .3s both;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  animation: rise 1.2s var(--ease) .5s both;
}

/* Phones and portrait tablets: the portrait crop sits at the top at its natural
   ratio (so the wordmark and figures are never cut) and fades into the page */
@media (max-aspect-ratio: 4/5) {
  .hero__bg {
    bottom: auto; height: 120vw; max-height: 100%; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  }
  .hero__bg img { object-position: 50% 0; }
  .hero__shade {
    background: linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 11, .9) 30%, rgba(10, 10, 11, .35) 55%, rgba(10, 10, 11, .15) 80%, rgba(10, 10, 11, .3) 100%);
  }
}

@media (max-width: 520px) {
  .section { padding: 72px 0; }
  .hero__ctas { flex-direction: column; align-items: stretch; max-width: 340px; margin: 0 auto; }
  .hero__headline { letter-spacing: .2em; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 12vw, 152px) 0; }

.merch { background: linear-gradient(to bottom, var(--bg), var(--bg-2)); }

.merch__grid {
  display: grid;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.merch__media {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.merch__media::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(176, 42, 32, .26), rgba(176, 42, 32, .08) 60%, transparent);
}
.merch__media picture { position: relative; z-index: 1; }

@media (min-width: 900px) {
  .merch__grid { grid-template-columns: 1.05fr 1fr; }
  .merch__media { margin: 0; }
}

/* Band photo strip */
.band {
  position: relative;
  margin: 0;
  height: clamp(340px, 56vw, 760px);
  overflow: hidden;
  background: var(--bg-2);
}
.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  filter: saturate(.85) contrast(1.05);
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg-2) 0%, rgba(18, 19, 23, 0) 22%, rgba(10, 10, 11, 0) 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10, 10, 11, .35), transparent 25%, transparent 75%, rgba(10, 10, 11, .35));
  pointer-events: none;
}

/* Tour */
.tour { padding-top: clamp(48px, 8vw, 96px); }
.tour__head { max-width: 760px; }
.tour__poster {
  margin: clamp(8px, 2vw, 24px) 0 clamp(32px, 5vw, 48px);
  border: 1px solid rgba(141, 153, 180, .22);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .6);
  background: var(--bg-3);
}
.tour__poster img { width: 100%; aspect-ratio: 16 / 9; }

/* ---------- Footer ---------- */

.footer {
  padding: 64px 0 48px;
  border-top: 1px solid rgba(141, 153, 180, .16);
  background: var(--bg);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.footer__icon { width: 48px; height: 48px; opacity: .9; }

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.socials a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--muted);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.socials a:hover { color: #fff; background: var(--bg-3); }
.socials svg { width: 22px; height: 22px; fill: currentColor; }

.footer__legal {
  margin: 0;
  font-family: var(--display);
  font-size: .875rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 404 ---------- */

.notfound .hero__content { padding-bottom: clamp(64px, 14vh, 140px); }
.notfound__code {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .4em;
  color: var(--red-text);
  text-transform: uppercase;
}
.notfound h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  letter-spacing: .06em;
  line-height: 1.02;
  text-transform: uppercase;
}
.notfound p.lede { margin-left: auto; margin-right: auto; color: var(--ink); }
.notfound__logo { width: min(260px, 60vw); margin: 0 auto 40px; }

/* ---------- Links page (/links) ---------- */

.links-page {
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(74, 86, 112, .16), transparent 70%),
    var(--bg);
}

/* Press shot header: natural 3:2 on phones so all four are in frame,
   a wide crop on bigger screens; fades into the page at the bottom */
.links-hero {
  position: relative;
  margin: 0;
  height: clamp(240px, 66.7vw, 58vh);
  overflow: hidden;
  background: var(--bg-2);
}
.links-hero picture { height: 100%; }
.links-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  filter: saturate(.85) contrast(1.05);
}
.links-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 11, .25) 0%, rgba(10, 10, 11, 0) 30%, rgba(10, 10, 11, .35) 70%, var(--bg) 100%);
}

.links {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  margin-top: clamp(-56px, -6vw, -28px);
  padding: 0 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.links__head { text-align: center; animation: rise 1s var(--ease) both; }
.links__logo { margin: 0 auto 14px; width: min(340px, 72vw); }
.links__logo a { display: block; }
.links__tagline {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: .9375rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

.links__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.links__list li { animation: rise .9s var(--ease) both; }
.links__list li:nth-child(1) { animation-delay: .08s; }
.links__list li:nth-child(2) { animation-delay: .14s; }
.links__list li:nth-child(3) { animation-delay: .2s; }
.links__list li:nth-child(4) { animation-delay: .26s; }
.links__list li:nth-child(n+5) { animation-delay: .32s; }

.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 20px;
  border: 1px solid rgba(141, 153, 180, .28);
  background: rgba(18, 19, 23, .82);
  color: var(--ink);
  text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.link-btn:hover { background: var(--bg-3); border-color: rgba(243, 241, 237, .6); }
.link-btn:active { transform: translateY(1px); }
.link-btn.is-featured { background: var(--red); border-color: var(--red); color: #fff; }
.link-btn.is-featured:hover { background: var(--red-hover); border-color: var(--red-hover); }

.link-btn__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.link-btn__label {
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}
.link-btn__detail { font-size: .875rem; line-height: 1.35; color: var(--muted); }
.link-btn.is-featured .link-btn__detail { color: rgba(255, 255, 255, .88); }
.link-btn__arrow { flex: none; font-size: 1.125rem; transition: transform .2s var(--ease); }
.link-btn:hover .link-btn__arrow { transform: translateX(4px); }

.links__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-size: .8125rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.links__foot a { color: var(--ink); text-decoration: none; }
.links__foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08) translate3d(0, -1%, 0); }
}

/* Scroll reveal - only armed once JS has run, so content is never hidden without JS */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
