/* Paolo Aralla — site.css
   One stylesheet for the whole site (replaces bootstrap, animate, icomoon, owl, style). */

:root {
  --ink: #16181d;
  --paper: #ffffff;
  --stage: #060606;          /* the black of the hero photograph */
  --stage-text: #c7ccd8;
  --stage-dim: #7d8496;
  --accent: #4b5a8c;         /* the cold blue of the stage light */
  --accent-soft: #a3b0d6;
  --muted: #676d7a;
  --rule: #e2e4ea;
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --side: 17rem;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, iframe, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }

/* ───────── Side / top bar ───────── */
.site-head {
  background: var(--stage);
  color: var(--stage-text);
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.25rem;
}
.brand { color: #fff; text-decoration: none; display: block; line-height: 1.1; }
.brand:hover { color: #fff; }
.brand-name { font-weight: 300; font-size: 1.35rem; letter-spacing: -.01em; display: block; }
.brand-role { font-weight: 300; font-size: .72rem; letter-spacing: .42em; color: var(--stage-dim); display: block; margin-top: .3rem; }

.menu-btn {
  appearance: none; background: none; border: 1px solid #3a3e48; color: var(--stage-text);
  font: 400 .85rem var(--sans); letter-spacing: .08em; padding: .45rem .8rem; border-radius: 2px; cursor: pointer;
}
.menu-btn:hover { border-color: var(--stage-text); }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--stage-text); text-decoration: none; font-weight: 300; letter-spacing: .06em;
  display: inline-block; padding: .35rem 0; position: relative;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: -1.1rem; top: 50%; width: .55rem; height: 1px; background: var(--accent-soft);
}
.nav .ext::after { content: " ↗"; font-size: .75em; color: var(--stage-dim); }
.site-foot { font-size: .75rem; color: var(--stage-dim); letter-spacing: .04em; }

/* phones: collapsible menu */
@media (max-width: 767px) {
  .nav { position: fixed; inset: 0; top: var(--bar, 4.2rem); background: var(--stage); padding: 2rem 1.75rem; transform: translateY(-110%); visibility: hidden; transition: transform .28s ease, visibility .28s; }
  .nav.open { transform: none; visibility: visible; }
  .nav li { border-bottom: 1px solid #1d2027; }
  .nav a { font-size: 1.6rem; padding: .7rem 0; }
  .nav a[aria-current="page"]::before { display: none; }
  .nav a[aria-current="page"] { color: var(--accent-soft); }
  .site-head .site-foot { display: none; }
}
/* tablets: horizontal bar */
@media (min-width: 768px) and (max-width: 1099px) {
  .menu-btn { display: none; }
  .site-head { padding: 1rem 2rem; }
  .nav ul { display: flex; gap: 1.6rem; }
  .nav a[aria-current="page"]::before { left: 0; top: auto; bottom: 0; width: 100%; }
  .site-head .site-foot { display: none; }
}
/* desktop: fixed sidebar */
@media (min-width: 1100px) {
  .menu-btn { display: none; }
  .site-head {
    position: fixed; inset: 0 auto 0 0; width: var(--side);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 3rem 2.5rem 2rem;
  }
  .brand-name { font-size: 1.6rem; }
  .nav { margin-top: 4.5rem; }
  .nav a { font-size: 1.05rem; padding: .4rem 0; }
  .site-head .site-foot { margin-top: auto; }
  .page { margin-left: var(--side); }
}

/* ───────── Content ───────── */
.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 60rem; padding: 2.5rem 1.25rem 4rem; }
@media (min-width: 768px) { main { padding: 4rem 3rem 6rem; } }
@media (min-width: 1100px) { main { padding: 5.5rem 5rem 7rem; } }
.page > .site-foot { padding: 0 1.25rem 2rem; }
@media (min-width: 768px) { .page > .site-foot { padding: 0 3rem 2.5rem; } }
@media (min-width: 1100px) { .page > .site-foot { display: none; } }

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 400; line-height: 1.15; margin: 0; }
.page-title, main h1 {
  font-weight: 300; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); letter-spacing: -.02em;
  margin: 0 0 2.5rem; max-width: 22ch;
}
main h2 { font-size: 1.45rem; font-weight: 400; margin: 3.5rem 0 1rem; letter-spacing: -.005em; }
main h3, main h4 { font-size: 1.1rem; font-weight: 500; margin: 2rem 0 .6rem; }
main p.subtitle { font-family: var(--sans); font-size: 1.2rem; color: var(--muted); margin: -1.75rem 0 2.5rem; font-weight: 300; }

main p, main ul, main ol, .prose { max-width: var(--measure); }
.prose, .prose p { font-family: var(--serif); font-size: 1.16rem; line-height: 1.68; }
main p { margin: 0 0 1.1em; }
main hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; max-width: var(--measure); }
main strong { font-weight: 500; }
blockquote { margin: 0; }

/* video & embeds */
.embed { position: relative; width: 100%; max-width: 48rem; aspect-ratio: 16 / 9; margin: 1.5rem 0 2.5rem; background: #0d0e11; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-tall { width: 100%; height: min(80vh, 50rem); border: 0; }

/* score images */
.figure { margin: 2rem 0 2.5rem; max-width: 40rem; }
.figure a { display: block; border: 1px solid var(--rule); cursor: zoom-in; }
.figure img { width: 100%; }
.figure figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* work facts */
.facts { font-family: var(--sans); display: grid; grid-template-columns: 1fr; gap: 0; margin: 2.5rem 0 0; max-width: var(--measure); border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 1fr; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dt::first-letter { text-transform: uppercase; }
.facts dt { text-transform: lowercase; }
.facts dd { margin: .15rem 0 0; }
@media (min-width: 600px) { .facts > div { grid-template-columns: 12rem 1fr; gap: 1.5rem; } .facts dd { margin: 0; } }

/* ───────── Timelines (news, works) ───────── */
.timeline { width: 100%; border-collapse: collapse; font-size: 1rem; }
.timeline td { padding: .75rem 1.25rem .75rem 0; vertical-align: baseline; border-top: 1px solid var(--rule); }
.timeline tr.y td { border-top-color: var(--ink); }
.timeline td:first-child { width: 6.5rem; font-weight: 300; font-size: 2rem; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.timeline tr.y td:first-child { padding-top: .9rem; }
.timeline td:last-child { padding-right: 0; }
.timeline.news td:nth-child(2) { width: 9rem; color: var(--muted); white-space: nowrap; }
.timeline.news td:nth-child(3) { width: 34%; }
.timeline.works td:nth-child(2) { width: 40%; font-weight: 500; }
.timeline.works td:nth-child(3) { color: var(--muted); }
.timeline.cat td:first-child { font-size: .95rem; font-weight: 500; letter-spacing: .02em; padding-top: 1rem; }
.timeline tr:hover td:not(:first-child) { background: #f6f7f9; }
.timeline a { text-decoration: none; border-bottom: 1px solid #c9cfe0; }
.timeline a:hover { border-color: var(--ink); }

@media (max-width: 699px) {
  .timeline, .timeline tbody, .timeline tr, .timeline td { display: block; width: auto !important; }
  .timeline tr { padding: .7rem 0; border-top: 1px solid var(--rule); }
  .timeline tr.y { border-top: 0; }
  .timeline td { border: 0; padding: 0; }
  .timeline td:first-child:empty { display: none; }
  .timeline tr.y td:first-child { border-top: 1px solid var(--ink); padding: 2.2rem 0 .6rem; margin-bottom: .6rem; }
  .timeline.news td:nth-child(2) { font-size: .9rem; }
  .timeline.news td:nth-child(3) { font-weight: 500; }
  .timeline tr:hover td:not(:first-child) { background: none; }
}

/* ───────── Bio ───────── */
.bio-head { display: grid; gap: 2rem; align-items: end; margin-bottom: 3rem; }
.bio-head img { width: 11rem; filter: grayscale(1); }
@media (min-width: 700px) { .bio-head { grid-template-columns: 13rem 1fr; } .bio-head img { width: 13rem; } }
.lang-switch { display: flex; gap: .4rem; margin: 0 0 2.5rem; }
.lang-switch a { font-family: var(--sans); font-size: .9rem; text-decoration: none; padding: .3rem .8rem; border: 1px solid var(--rule); border-radius: 99px; color: var(--muted); }
.lang-switch a:hover { border-color: var(--ink); color: var(--ink); }
.bio-section { scroll-margin-top: 6rem; }
.bio-section + .bio-section { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--rule); }
.collab { list-style: none; padding: 0; margin: 1.5rem 0 1.8rem; font-family: var(--sans); font-size: 1rem; }
.collab li { padding: .45rem 0; border-top: 1px solid var(--rule); }

/* ───────── Media index ───────── */
.big-links { list-style: none; padding: 0; margin: 0; max-width: 40rem; }
.big-links li { border-top: 1px solid var(--rule); }
.big-links li:last-child { border-bottom: 1px solid var(--rule); }
.big-links a { display: flex; justify-content: space-between; align-items: baseline; padding: 1.4rem 0; text-decoration: none; color: var(--ink); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 300; letter-spacing: -.01em; }
.big-links a span { font-size: .95rem; color: var(--muted); letter-spacing: 0; }
.big-links a:hover { color: var(--accent); }

/* ───────── Audio player ───────── */
.player { position: sticky; top: 4.2rem; z-index: 5; background: var(--stage); color: var(--stage-text); padding: 1.1rem 1.25rem 1rem; margin: 0 0 2rem; border-radius: 3px; max-width: 44rem; }
@media (min-width: 1100px) { .player { top: 1.5rem; } }
@media (min-width: 768px) and (max-width: 1099px) { .player { top: 5.6rem; } }
.player-now { font-size: 1.05rem; color: #fff; margin: 0 0 .7rem; min-height: 1.6em; }
.player-now small { display: block; color: var(--stage-dim); font-size: .85rem; }
.player audio { width: 100%; height: 40px; color-scheme: dark; }
.player-keys { font-size: .75rem; color: var(--stage-dim); margin: .5rem 0 0; }
@media (hover: none) { .player-keys { display: none; } }
.tracks { list-style: none; padding: 0; margin: 0; max-width: 44rem; counter-reset: t; }
.tracks li { border-top: 1px solid var(--rule); }
.tracks button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 2.4rem 1fr auto; gap: .2rem 1rem; padding: .95rem .5rem .95rem 0;
}
.tracks button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tracks .n { color: var(--muted); font-size: .85rem; padding-top: .2rem; font-variant-numeric: tabular-nums; }
.tracks .t { font-weight: 500; }
.tracks .yr { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.tracks .d { grid-column: 2 / 4; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.tracks button:hover .t { color: var(--accent); }
.tracks li.playing button { background: #f3f4f8; }
.tracks li.playing .n { color: var(--accent); }
.tracks li.playing .n::before { content: "▶ "; font-size: .7em; }

/* ───────── Lightbox ───────── */
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(6, 6, 6, .92); }
dialog.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; background: #fff; }
dialog.lightbox p { color: #aaa; font-size: .85rem; margin: .5rem 0 0; text-align: center; }
dialog.lightbox button { position: fixed; top: 1rem; right: 1rem; background: none; border: 1px solid #555; color: #ddd; font: inherit; padding: .3rem .8rem; cursor: pointer; }

/* ───────── Landing ───────── */
.landing { background: var(--stage); color: var(--stage-text); min-height: 100vh; min-height: 100svh; margin: 0; overflow: hidden; }
.landing .hero { position: fixed; inset: 0; }
.landing .hero img { width: 100%; height: 100%; object-fit: cover; object-position: 18% 50%; animation: light 2.4s ease-out both; }
@keyframes light { from { opacity: 0; filter: brightness(.4); } to { opacity: 1; filter: none; } }
.landing .intro {
  position: relative; z-index: 2; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem 1.5rem 2.5rem;
  background: linear-gradient(to top, rgba(6,6,6,.92) 0%, rgba(6,6,6,.55) 32%, rgba(6,6,6,0) 60%);
}
.landing h1 { font-weight: 300; color: #fff; font-size: clamp(2.6rem, 1.6rem + 5vw, 6rem); letter-spacing: -.03em; line-height: .95; margin: 0; }
.landing .role { font-weight: 300; letter-spacing: .55em; font-size: clamp(.8rem, .7rem + .4vw, 1.05rem); color: var(--stage-dim); margin: 1rem 0 2.2rem; }
.landing nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.landing nav a { color: var(--stage-text); text-decoration: none; font-weight: 300; font-size: 1.15rem; letter-spacing: .05em; padding: .3rem 0; display: inline-block; }
.landing nav a:hover { color: #fff; }
.landing .enter { color: #fff; border-bottom: 1px solid var(--accent-soft); }
@media (min-width: 900px) {
  .landing .intro { justify-content: center; padding: 4rem 6vw; margin-left: 42vw; background: none; }
  .landing .hero img { object-position: 0 50%; }
}
@media (min-width: 900px) and (max-aspect-ratio: 4/3) {
  .landing .intro { margin-left: 48vw; }
}

/* press: source line above each review */
.prose p > strong:only-child { display: block; font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--muted); line-height: 1.45; }

/* audio recording on work pages */
.audio { margin: 2rem 0 2.5rem; max-width: 40rem; padding: 1rem 1.1rem; background: var(--stage); border-radius: 3px; }
.audio figcaption { font-family: var(--sans); font-size: .9rem; line-height: 1.45; color: var(--stage-text); margin-bottom: .7rem; }
.audio audio { width: 100%; height: 40px; color-scheme: dark; display: block; }
