:root {
  --ink: #17130f;
  --ink-2: #2a241d;
  --paper: #f5f0e6;
  --paper-2: #ebe3d4;
  --brass: #c9973a;
  --brass-deep: #8a5f17;   /* brass dark enough for text on paper */
  --muted: #6b6155;
  --muted-on-ink: #b5aa98;
  --line: #d8cdb9;

  --display: "Fraunces", Georgia, serif;
  --body: "Instrument Sans", system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-deep); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; }
em { font-style: italic; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--paper); padding: .5rem 1rem; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem var(--gutter);
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(8px);
  color: var(--paper);
}
.nav a { color: inherit; text-decoration: none; }
.nav__name { font-family: var(--display); font-size: 1.15rem; font-weight: 600; white-space: nowrap; }
.nav nav { display: flex; gap: clamp(.8rem, 2.5vw, 2rem); font-size: .9rem; letter-spacing: .04em; overflow-x: auto; }
.nav nav a { opacity: .8; }
.nav nav a:hover { opacity: 1; color: var(--brass); }

/* ---- buttons / small bits ---- */
.btn {
  display: inline-block; padding: .6rem 1.25rem;
  border: 1.5px solid currentColor; border-radius: 999px;
  color: inherit; text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--brass { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn--brass:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600; color: var(--brass); margin: 0 0 1rem; }
.meta { display: block; color: var(--muted); font-size: .9rem; margin: .15rem 0 0; }
.tag { font-family: var(--body); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
       color: var(--brass-deep); border: 1px solid var(--line); border-radius: 4px; padding: .1rem .35rem; vertical-align: middle; }
.plain { list-style: none; margin: 0 0 2rem; padding: 0; }
.plain li { padding: .55rem 0; border-top: 1px solid var(--line); }
.plain li:last-child { border-bottom: 1px solid var(--line); }

/* ---- hero ---- */
.hero {
  background: var(--ink); color: var(--paper);
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: var(--gutter);
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  overflow: hidden;
}
.hero > * { min-width: 0; }
.hero h1 { font-size: clamp(3.2rem, 10vw, 7.5rem); font-weight: 400; letter-spacing: -.02em; line-height: .95; }
.hero h1 em { color: var(--brass); font-weight: 300; }
.hero__lede { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 32ch; color: var(--muted-on-ink); margin: 1.75rem 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__actions .btn:not(.btn--brass):hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero__photo { position: relative; margin: 0; justify-self: center; width: min(100%, 26rem); }
.hero__photo img { position: relative; border-radius: 50% 50% 4px 4px / 34% 34% 4px 4px; }
.rings {
  position: absolute; width: 150%; left: -25%; top: -12%;
  fill: none; stroke: var(--brass); stroke-width: .6; opacity: .45;
}

/* ---- sections ---- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter); max-width: var(--max); margin: 0 auto; }
.section__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1rem;
}
.section__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section__title--sub { margin-top: 4rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section__intro { max-width: 60ch; margin: -1rem 0 2.5rem; color: var(--muted); }
.more { margin: 1.5rem 0 0; font-weight: 600; }

/* about */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about__photo img { border-radius: 4px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.about__text p { max-width: 62ch; }
.lead { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.4; margin-top: 0; }

/* listen */
.listen { max-width: none; background: var(--paper-2); }
.listen > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); gap: 1.5rem; }
.track { background: var(--paper); padding: 1.25rem 1.25rem 1rem; border-radius: 6px; }
.track h3 { font-size: 1.4rem; }
.track__player { width: 100%; height: 120px; border: 0; margin-top: .9rem; }
.track audio { width: 100%; margin-top: .9rem; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.5rem; }
.video { margin: 0; }
.video__play, .video iframe {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; padding: 0; border-radius: 6px; overflow: hidden; background: var(--ink); cursor: pointer;
}
.video__play img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; opacity: .85; }
.video__play:hover img { transform: scale(1.03); opacity: 1; }
.video__icon {
  position: absolute; inset: 0; margin: auto; width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--brass);
}
.video__icon::after {
  content: ""; position: absolute; left: 1.6rem; top: 1.25rem;
  border-style: solid; border-width: .75rem 0 .75rem 1.2rem; border-color: transparent transparent transparent var(--ink);
}
.video figcaption { margin-top: .7rem; line-height: 1.35; }

/* works */
.worklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.work {
  display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1rem; align-items: baseline;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.work__year { font-family: var(--display); color: var(--brass-deep); font-size: 1.05rem; }
.work h3 { font-size: 1.35rem; }
.work__note { margin: .35rem 0 0; font-size: .95rem; max-width: 65ch; }
.work__links { display: flex; gap: 1rem; font-weight: 600; font-size: .9rem; }

/* cv */
.cv__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; }
.cv__head .section__title { flex: 1; }
.cv__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4.5rem); }
.cv__label { font-family: var(--body); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.timeline { list-style: none; margin: 0 0 2rem; padding: 0; }
.timeline li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__year { font-family: var(--display); color: var(--brass-deep); }

/* contact */
.contact { max-width: none; background: var(--ink); color: var(--paper); text-align: center; }
.contact .section__title { justify-content: center; }
.contact .section__title::after, .contact .section__title::before { content: ""; flex: 0 1 6rem; height: 1px; background: var(--brass); }
.contact__lede { color: var(--muted-on-ink); margin: 0; }
.contact__email { font-family: var(--display); font-size: clamp(1.4rem, 4.5vw, 2.6rem); margin: .5rem 0 2.5rem; overflow-wrap: anywhere; }
.contact__email a { color: var(--brass); text-decoration-thickness: 1px; }
.contact__email a:hover { color: var(--paper); }
.contact__social { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.contact .btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* footer */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding: 1.5rem var(--gutter); background: var(--ink); color: var(--muted-on-ink);
  border-top: 1px solid var(--ink-2); font-size: .85rem;
}
.footer p { margin: 0; }
.footer__links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--brass); }

/* ---- responsive ---- */
@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero__photo { order: -1; width: min(80%, 20rem); }
  .about, .cv__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 22rem; }
  .nav__name { display: none; }
  .nav { justify-content: center; }
}
@media (max-width: 36rem) {
  .work { grid-template-columns: 1fr; gap: .2rem; }
  .work__year:empty { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
