/* Shared by index.html, bio.html and gallery.html: tokens, type, links, page chrome. */
@font-face {
  font-family: "Jost"; src: url("../fonts/jost.woff2") format("woff2");
  font-weight: 200 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 400 500; font-style: italic; font-display: swap;
}

:root {
  --bg: #050403;
  --ink: #f4ede3;
  --ink-soft: rgba(244, 237, 227, 0.8);
  --ink-faint: rgba(244, 237, 227, 0.68);
  --gold: #e0b46e;
  --rose: #e3a0a8;          /* the "black widow" note: kickers and quote marks only */
  --wine: #7c1d2d;
  --line: rgba(244, 237, 227, 0.18);
  --scrim: rgba(5, 4, 3, 0.74);
  --sans: "Jost", "Helvetica Neue", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 350 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  margin: 0 0 14px; font: 400 0.75rem/1.4 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold);
}
h2 {
  margin: 0 0 20px; font: italic 400 clamp(2.9rem, 7vw, 5.6rem)/0.95 var(--serif); letter-spacing: -0.01em;
}

.links { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.links a, .mail {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
  border-bottom: 1px solid var(--line); transition: border-color 240ms var(--ease), color 240ms var(--ease);
}
.links a { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; }
.links a:hover, .mail:hover { border-bottom-color: var(--gold); color: var(--gold); }
.mail { color: var(--ink); }

/* "Listen on Spotify", "See more": small gold caps with a nudging arrow. */
.listen {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}
.listen::after {
  content: ""; width: 12px; height: 12px; flex: none; background: currentColor; transition: transform 240ms var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 9 9 3M4 3h5v5' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 9 9 3M4 3h5v5' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
a:hover > .listen::after, a.listen:hover::after { transform: translate(2px, -2px); }
a.listen { min-height: 44px; text-decoration: none; }

/* Sub-page chrome (bio, gallery): fixed top bar and closing footer. */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter); padding-top: max(10px, env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(5, 4, 3, 0.85), transparent);
}
.topbar .home { font: 300 1.05rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.topbar nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.topbar nav a { font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid transparent; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { border-bottom-color: var(--gold); }

.site-footer { padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; }
.site-footer small { font-size: 0.8rem; color: var(--ink-faint); }
.site-footer .links { margin: 0; }

@media (max-width: 480px) {
  .topbar .home { font-size: 0.9rem; letter-spacing: 0.12em; }
  .topbar nav ul { gap: 14px; }
  .topbar nav a { font-size: 0.7rem; letter-spacing: 0.16em; }
}

@media (prefers-reduced-motion: reduce) {
  .links a, .mail, .listen::after { transition: none; }
}
