/* sognata.com: a gallery at night. Warm black, cream ink, one gold; Bodoni Moda for the music's words, Science Gothic
   for labels. Work pages take their film's theme (--bg, --ink, --accent, --backdrop are set on <body>). */
@font-face { font-family: "Science Gothic"; src: url("/fonts/ScienceGothic.ttf") format("truetype"); font-weight: 100 900; font-stretch: 50% 200%; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/BodoniModa-Italic.woff2") format("woff2"); font-style: italic; font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/BodoniModa.woff2") format("woff2"); font-style: normal; font-weight: 400 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0d0c0a;
  --bg-2: #161410;
  --ink: #efe6d3;
  --ink-2: #b7ae9b;
  --ink-3: #857d6d;
  --accent: #efb43c;
  --hot: #fcf9f0;
  --rule: color-mix(in srgb, var(--ink) 14%, transparent);
  --serif: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --gothic: "Science Gothic", Bahnschrift, "DIN Alternate", sans-serif;
  --measure: 1320px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(120% 70% at 50% -10%, color-mix(in srgb, var(--accent) 9%, var(--bg)) 0%, var(--bg) 55%) var(--bg);
  color: var(--ink); font: 400 18px/1.55 var(--serif); font-kerning: normal; -webkit-font-smoothing: antialiased;
}
img, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
main { flex: 1; width: 100%; max-width: var(--measure); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* ---- type ---- */
.kicker, .disc-kicker, .masthead nav a, .colophon, .facts dt, .excerpt, .text-link, .listen, .numeral-label, .filters button, .soon-note {
  font-family: var(--gothic); font-weight: 560; font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
}
.kicker { color: var(--ink-2); margin: 0 0 14px; }
.title { font-family: var(--serif); font-style: italic; font-weight: 420; font-size: clamp(40px, 6.2vw, 92px);
  line-height: 1.02; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.tagline { font-style: italic; color: var(--ink-2); font-size: clamp(19px, 1.9vw, 25px); margin: 14px 0 0; text-wrap: balance; }
.credit { font-style: italic; color: var(--ink-3); font-size: 17px; margin: 10px 0 0; }
h2 { font-style: italic; font-weight: 420; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; margin: 0; }
.text-link { color: var(--ink); display: inline-flex; align-items: center; gap: 10px; padding: 6px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); transition: color .3s var(--ease), border-color .3s var(--ease); }
.text-link::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.note { color: var(--ink-2); font-style: italic; margin: 16px 0 0; }

/* ---- masthead and colophon ---- */
.masthead { width: 100%; max-width: var(--measure); margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: max(22px, env(safe-area-inset-top, 0px)) var(--gutter-r) 22px var(--gutter); }
.brand img { height: 33px; width: auto; }
.masthead nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.masthead nav a { color: var(--ink-2); padding: 8px 0; position: relative; transition: color .3s var(--ease); }
.masthead nav a::after { content: ""; position: absolute; left: 0; right: .26em; bottom: 2px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { color: var(--ink); }
.masthead nav a:hover::after, .masthead nav a[aria-current="page"]::after { transform: scaleX(1); }
.colophon { width: 100%; max-width: var(--measure); margin: 96px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 26px var(--gutter-r) max(30px, env(safe-area-inset-bottom, 0px)) var(--gutter); color: var(--ink-3); border-top: 1px solid var(--rule); }
.colophon p { margin: 0; }
.colophon a { color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.colophon a:hover { color: var(--accent); }

/* ---- screens: the studio's renderers, framed ---- */
.screen, .showcase { position: relative; margin: 0; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: #000;
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .85), 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.screen > *, .showcase > *, .screen-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen canvas, .showcase canvas { opacity: 0; transition: opacity .9s var(--ease); }
.screen.live canvas, .showcase.live canvas { opacity: 1; }
.showcase { cursor: pointer; }

.listen { display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 22px 0 16px; border-radius: 999px; cursor: pointer;
  color: var(--ink); background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.listen:hover { border-color: var(--accent); color: var(--hot); }
.listen-icon { width: 0; height: 0; border-left: 11px solid var(--accent); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 4px; }
.listen[aria-pressed="true"] .listen-icon { width: 11px; height: 13px; border: 0; border-left: 3.5px solid var(--accent); border-right: 3.5px solid var(--accent); }
.listen[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 14%, var(--bg)); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 26px; }
.actions.centred { justify-content: center; }

/* ---- front door ---- */
.stage { margin-top: 18px; }
.stage-caption { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 40px; margin-top: 34px; animation: rise 1.1s .2s var(--ease) both; }
.stage-caption .title { font-size: clamp(38px, 5vw, 72px); }
.stage-caption .title a { transition: color .3s var(--ease); }
.stage-caption .title a:hover { color: var(--hot); }
.stage-caption .tagline { grid-column: 1; }
.stage-caption .actions { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 30px; margin-bottom: 38px;
  padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.section-head h1, .section-head h2 { font-style: italic; font-weight: 420; font-size: clamp(34px, 4vw, 56px); margin: 0; }
.shelf { margin-top: 120px; }
.statement { margin: 140px auto 0; max-width: 900px; text-align: center; }
.statement p { font-style: italic; font-size: clamp(30px, 4.2vw, 58px); line-height: 1.15; margin: 0 0 30px; text-wrap: balance; }

/* ---- discs ---- */
.discs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 42vw), 1fr)); gap: 48px 30px; }
.disc a { display: grid; gap: 6px; }
.disc-art { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 16px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px color-mix(in srgb, var(--ink) 9%, transparent);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease); }
.disc-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.disc a:hover .disc-art { transform: translateY(-6px); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .95), 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.disc a:hover .disc-art img { transform: scale(1.06) rotate(28deg); }
.disc-kicker { color: var(--ink-3); font-size: 11px; letter-spacing: .22em; }
.disc-title { font-style: italic; font-size: 22px; line-height: 1.2; transition: color .3s var(--ease); }
.disc a:hover .disc-title { color: var(--hot); }
.discs-grid { gap: 64px 34px; }
.filters { display: flex; gap: 6px; }
.filters button { cursor: pointer; padding: 9px 16px; border-radius: 999px; color: var(--ink-2); background: transparent; border: 1px solid var(--rule); }
.filters button[aria-pressed="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.disc[hidden] { display: none; }

/* ---- a work ---- */
body.work-page { background:
  linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 46%, var(--bg) 78%),
  var(--backdrop, none) center top / 100% auto no-repeat, var(--bg); }
.work-head { text-align: center; max-width: 980px; margin: 34px auto 54px; animation: rise 1.1s var(--ease) both; }
.work-head .kicker { color: var(--accent); }
.work .screen { animation: rise 1.2s .15s var(--ease) both; }
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; }
.excerpt { color: var(--ink-3); }
.work-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 60px; margin-top: 90px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; align-content: start; }
.facts div { border-top: 1px solid var(--rule); padding-top: 14px; }
.facts dt { color: var(--ink-3); margin-bottom: 6px; }
.facts dd { margin: 0; font-style: italic; font-size: 26px; }
.instrumentation h2, .score h2, .film h2 { margin-bottom: 26px; }
.instrumentation ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.instrumentation li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 20px; }
.score, .film { margin-top: 110px; }
.still { margin: 0; box-shadow: 0 40px 100px -50px rgba(0, 0, 0, .9); }

/* ---- the studio ---- */
.studio-head { text-align: center; margin: 34px auto 80px; }
.acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 110px; }
.act { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 60px; align-items: center; }
.act:nth-child(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.act:nth-child(even) .act-words { order: 2; }
.numeral { font-style: italic; font-size: 64px; line-height: 1; color: var(--accent); margin: 0 0 6px; }
.act-words p:not(.numeral) { color: var(--ink-2); font-size: 20px; max-width: 34ch; }
.act-words h2 { margin-bottom: 14px; }

/* ---- about ---- */
.about { max-width: 760px; margin: 60px auto 0; text-align: center; }
.about .lede { font-size: clamp(24px, 2.6vw, 34px); font-style: italic; line-height: 1.35; margin: 34px 0; text-wrap: balance; }

/* ---- coming soon ---- */
body.soon { justify-content: center; }
.soon-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 26px; padding-block: 12vh; }
.soon-logo { width: min(720px, 86vw); height: auto; }
.soon-line { font-style: italic; color: var(--ink-2); font-size: clamp(20px, 2.4vw, 30px); margin: 10px 0 0; animation: rise 1.2s 1.2s var(--ease) both; }
.soon-note { color: var(--accent); margin: 0; animation: rise 1.2s 1.5s var(--ease) both; }
body.soon .colophon { margin-top: 0; border-top: 0; justify-content: center; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---- narrow ---- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .masthead { flex-wrap: wrap; gap: 14px; }
  .brand img { height: 28px; }
  .screen, .showcase { aspect-ratio: 4 / 5; }
  .stage-caption { grid-template-columns: 1fr; margin-top: 26px; }
  .stage-caption .actions { grid-column: 1; grid-row: auto; margin-top: 18px; }
  .shelf { margin-top: 80px; }
  .statement { margin-top: 96px; }
  .work-head { margin: 18px auto 34px; }
  .work-body { grid-template-columns: 1fr; gap: 54px; margin-top: 64px; }
  .instrumentation ul { columns: 1; }
  .score, .film { margin-top: 80px; }
  .act, .act:nth-child(even) { grid-template-columns: 1fr; gap: 26px; }
  .act:nth-child(even) .act-words { order: 0; }
  .acts { gap: 80px; }
  .discs { gap: 40px 18px; }
  .disc-title { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
