/* TED MURENA — tedmurena.com
   Layout: an indie band's site. Single dark world, chosen on purpose. A ticker across the top, the name
   stacked like a band logo, releases as record covers and tracklists, the day job as tour dates, games as
   posters. Grain over everything. */
:root {
  --bg: #0d0c0b;           /* stage black, slightly warm */
  --bg-2: #15130f;         /* raised panel */
  --ink: #f3efe6;          /* bone */
  --muted: #a39c8f;
  --line: #2a2722;
  --acc: #ff8c42;          /* warm orange, toned down from the racing game's sunset */
  --acc-ink: #1a0f06;
  --pop: #3ee8c4;          /* bright mint, the second voice: labels, numbers, links */
  --pop-ink: #06211b;
  --alt: var(--pop);
  --f-display: "Syne", "Arial Black", Impact, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 96px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* grain */
body::after { content: ""; position: fixed; inset: -50%; width: 200%; height: 200%; pointer-events: none; z-index: 50; opacity: .07; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-2%,1%)} 40%{transform:translate(1%,-2%)} 60%{transform:translate(-1%,2%)} 80%{transform:translate(2%,-1%)} 100%{transform:translate(0,0)} }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--acc); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:where(a, button):focus-visible { outline: 3px solid var(--alt); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: .92; margin: 0; letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: .02em; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--pop); }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } html { scroll-behavior: auto; } .ticker .track { animation: none !important; } }

/* ---------- ticker ---------- */
.ticker { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--acc); color: var(--acc-ink); overflow: hidden; height: 34px; display: flex; align-items: center; }
.ticker .track { display: flex; gap: 0; white-space: nowrap; animation: tick 40s linear infinite; will-change: transform; }
.ticker:hover .track { animation-play-state: paused; }
.ticker span { font-family: var(--f-mono); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 0 28px; display: inline-flex; align-items: center; gap: 28px; }
.ticker span::after { content: "✦"; font-size: 11px; }
.ticker a { text-decoration: none; }
.ticker a:hover { text-decoration: underline; }
@keyframes tick { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ---------- nav ---------- */
.top { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 34px); z-index: 39; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.mark { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
.mark b { color: var(--acc); }
.nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 8px 12px; color: var(--muted); border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 56px 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero h1 { font-size: clamp(60px, 8.6vw, 132px); line-height: .84; letter-spacing: -.04em; white-space: nowrap; }
.hero h1 span { display: block; }
.hero h1 .two { color: var(--acc); -webkit-text-stroke: 0; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.prompt { margin-top: 28px; font-family: var(--f-mono); font-size: clamp(14px, 1.4vw, 17px); color: var(--muted); line-height: 1.7; max-width: 60ch; }
.prompt b { color: var(--ink); font-weight: 600; }
.prompt .c { color: var(--pop); }
.cursor { display: inline-block; width: .6em; height: 1.1em; background: var(--pop); vertical-align: -.2em; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0 } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--bg); transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px) rotate(-1deg); background: var(--pop); color: var(--pop-ink); }
.btn.acc { background: var(--acc); color: var(--acc-ink); } .btn.acc:hover { background: var(--ink); color: var(--bg); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); } .btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn svg { width: 16px; height: 16px; }

/* poster pile */
.pile { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 100%; min-width: 0; }
.poster { position: absolute; width: 62%; border: 6px solid var(--ink); background: var(--bg-2); box-shadow: 0 30px 60px rgba(0,0,0,.6); transition: transform .3s; }
.poster img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.poster .cap { position: absolute; left: 10px; bottom: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: var(--pop); color: var(--pop-ink); padding: 4px 8px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster.a { left: 0; top: 6%; transform: rotate(-6deg); z-index: 2; }
.poster.b { right: 0; top: 30%; transform: rotate(4deg); z-index: 3; }
.poster.c { left: 14%; bottom: 0; transform: rotate(-2deg); z-index: 1; width: 58%; }
.poster.c img { aspect-ratio: 16 / 9; }
.poster .ph { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 10px 14px 34px; text-align: center; line-height: .95; font-family: var(--f-display); font-weight: 800; font-size: 18px; text-transform: uppercase; color: var(--pop); background: #1a1611; }
.pile:hover .poster.a { transform: rotate(-8deg) translateY(-6px); }
.pile:hover .poster.b { transform: rotate(6deg) translateY(-6px); }

/* ---------- sections ---------- */
section.sec { padding-block: 80px; border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(44px, 7vw, 96px); }
.sec-head .eyebrow { display: block; margin-bottom: 14px; }
.sec-head .more { font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--alt); padding-bottom: 10px; white-space: nowrap; }
.sec-head .more:hover { text-decoration: underline; }
.intro { font-size: clamp(18px, 1.6vw, 21px); max-width: 62ch; color: var(--muted); margin-bottom: 36px; text-wrap: pretty; }
.intro b { color: var(--ink); font-weight: 600; }

/* latest drops */
.drops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.drop { position: relative; display: grid; grid-template-rows: auto 1fr; text-decoration: none; background: var(--bg-2); border: 1px solid var(--line); min-width: 0; overflow: hidden; transition: transform .2s, border-color .2s; }
.drop:hover { transform: translateY(-4px); border-color: var(--acc); }
.drop .pic { aspect-ratio: 16 / 9; max-width: 100%; background: #1d1a16; overflow: hidden; display: grid; place-items: center; }
.drop .pic img { width: 100%; height: 100%; object-fit: cover; }
.drop .pic .typo { font-family: var(--f-display); font-weight: 800; font-size: 34px; text-transform: uppercase; line-height: .9; color: var(--acc); padding: 20px; text-align: center; letter-spacing: -.02em; }
.drop .body { padding: 16px 18px 18px; display: grid; gap: 6px; align-content: start; }
.drop .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--pop); }
.drop .t { font-weight: 600; font-size: 17px; line-height: 1.3; }
.drop .d { font-size: 13px; color: var(--muted); }

/* record + tracklist */
.record { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px 56px; align-items: start; }
.cover { position: relative; aspect-ratio: 1; max-width: 100%; background: var(--acc); color: var(--acc-ink); padding: 8%; display: grid; grid-template-rows: auto 1fr auto; box-shadow: 0 30px 80px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.08); }
.cover .mono { color: var(--acc-ink); opacity: .8; }
.cover .title { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 6.5vw, 76px); line-height: .88; letter-spacing: -.04em; text-transform: uppercase; align-self: center; }
.cover .title i { font-style: normal; display: block; }
.cover .title .q { color: var(--pop); }
.cover .foot { display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.cover .foot .mono { font-size: 11px; }
.cover .dos { font-family: var(--f-mono); font-size: 12px; line-height: 1.6; }
.cover .dos b { font-weight: 700; text-decoration: underline; }
.rec-copy { margin-top: 22px; color: var(--muted); font-size: 16px; max-width: 48ch; text-wrap: pretty; }
.rec-copy b { color: var(--ink); font-weight: 600; }
.tracks { list-style: none; margin: 0; padding: 0; counter-reset: trk; }
.tracks li { counter-increment: trk; border-top: 1px solid var(--line); }
.tracks li:last-child { border-bottom: 1px solid var(--line); }
.tracks a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px 18px; align-items: baseline; padding: 20px 6px; text-decoration: none; transition: background .15s, padding-left .15s; }
.tracks a:hover { background: var(--bg-2); padding-left: 14px; }
.tracks a::before { content: counter(trk, decimal-leading-zero); font-family: var(--f-mono); font-size: 13px; color: var(--pop); padding-top: 4px; }
.tracks .tt { font-family: var(--f-display); font-weight: 700; font-size: clamp(19px, 2vw, 26px); line-height: 1.1; letter-spacing: -.01em; }
.tracks .ts { grid-column: 2; font-size: 14px; color: var(--muted); max-width: 64ch; text-wrap: pretty; }
.tracks .td { font-family: var(--f-mono); font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tracks a:hover .tt { color: var(--alt); }
.rec-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* videos */
.vids { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.vid { text-decoration: none; display: grid; gap: 10px; min-width: 0; grid-column: span 3; }
.vid:first-child { grid-column: span 6; grid-row: span 2; }
.vid:first-child .t { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
.thumb { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); transition: transform .4s, filter .3s; }
.vid:hover .thumb img { transform: scale(1.04); filter: saturate(1.1); }
.thumb .play { position: absolute; left: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--pop); color: var(--pop-ink); display: grid; place-items: center; }
.thumb .play svg { width: 16px; height: 16px; margin-left: 3px; }
.vid .t { font-weight: 600; font-size: 15px; line-height: 1.35; }
.vid .d { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }

/* games as posters */
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.game { position: relative; background: var(--bg-2); border: 1px solid var(--line); min-width: 0; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.game .shot { position: relative; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; display: block; }
.game .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.game:hover .shot img { transform: scale(1.03); }
.game .tag { position: absolute; left: 16px; top: 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; background: var(--ink); color: var(--bg); }
.game .tag.live { background: var(--pop); color: var(--pop-ink); }
.game .body { padding: 24px 26px 28px; display: grid; gap: 14px; align-content: start; }
.game h3 { font-size: clamp(36px, 4vw, 56px); }
.game p { color: var(--muted); font-size: 16px; text-wrap: pretty; max-width: 58ch; }
.game .strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.game .strip a { aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; border: 1px solid var(--line); display: block; }
.game .strip img { width: 100%; height: 100%; object-fit: cover; }
.game .row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 4px; }
.game .mono { color: var(--muted); }

/* tour dates (work) */
.bio { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px 64px; margin-bottom: 44px; }
.bio p { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.bio p b { color: var(--ink); font-weight: 600; }
.bio p + p { margin-top: 14px; }
.nums { display: grid; gap: 0; border-top: 1px solid var(--line); align-self: start; }
.num { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.num b { font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 3.6vw, 52px); color: var(--acc); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.num span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.dates { list-style: none; margin: 0; padding: 0; }
.dates li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 170px; gap: 6px 24px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); }
.dates li:last-child { border-bottom: 1px solid var(--line); }
.dates .y { font-family: var(--f-mono); font-size: 13px; color: var(--pop); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.dates .v { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2.2vw, 30px); text-transform: uppercase; letter-spacing: -.01em; line-height: 1; }
.dates .v small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.dates .city { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: right; }
.dates .note { grid-column: 2 / -1; font-size: 14.5px; color: var(--muted); max-width: 70ch; text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* follow */
.follow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.follow a { display: grid; gap: 14px; text-decoration: none; padding: 22px 20px; background: var(--bg-2); border: 1px solid var(--line); min-width: 0; transition: transform .2s, border-color .2s, background .2s; }
.follow a:hover { transform: translateY(-4px) rotate(-.5deg); border-color: var(--acc); background: #1a1611; }
.follow svg { width: 30px; height: 30px; color: var(--pop); }
.follow b { font-family: var(--f-display); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; }
.follow span { font-family: var(--f-mono); font-size: 12px; color: var(--muted); word-break: break-all; }
.ig { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 16px; }
.ig a { aspect-ratio: 1; max-width: 100%; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); display: block; }
.ig img { width: 100%; height: 100%; object-fit: cover; }
.ig:empty { display: none; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 48px 56px; }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
footer .big { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 8vw, 110px); line-height: .85; letter-spacing: -.04em; text-transform: uppercase; }
footer .big b { color: var(--acc); font-weight: 800; }
footer .fine { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 12px; color: var(--muted); max-width: 80ch; line-height: 1.7; margin-top: 8px; }
footer .fine a { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .pile { max-width: 520px; margin: 24px auto 0; }
  .record { grid-template-columns: 1fr; }
  .cover { max-width: 460px; }
  .bio { grid-template-columns: 1fr; }
  .vid, .vid:first-child { grid-column: span 6; grid-row: auto; }
  .vid:first-child .t { font-size: 20px; font-family: var(--f-body); font-weight: 600; }
  .follow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drops { grid-template-columns: 1fr; }
  .games { grid-template-columns: 1fr; }
  .ig { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-block: 40px 56px; }
  .hero h1 { font-size: clamp(48px, 14vw, 72px); }
  .follow { grid-template-columns: 1fr; }
  .vid, .vid:first-child { grid-column: span 12; }
  .dates li { grid-template-columns: 1fr; }
  .dates .city { text-align: left; }
  .dates .note { grid-column: 1; }
  .tracks a { grid-template-columns: 36px minmax(0, 1fr); }
  .tracks .td { grid-column: 2; }
  .tracks .ts { grid-column: 2; }
  footer .wrap { grid-template-columns: 1fr; }
  .nav a { padding: 6px 8px; font-size: 11px; }
}
