@font-face { font-family: "Libre Franklin"; src: url("/fonts/libre-franklin-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root { --font-body: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif; --font-head: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif; --name-weight: 700; --name-tracking: -0.035em; }
/* ansteysound.com. The typeface comes from build.py (FONTS), which writes the @font-face rule
   and the --font-body / --font-head variables in front of this file. One accent: backstage blue. */

:root {
  --paper: #f5f6f4;
  --ink: #14181d;
  --muted: #58616b;
  --rule: #d3d8dc;
  --blue: #1f3fd1;
  --blue-deep: #1a35b3;
  --on-blue: #ffffff;
  --on-blue-soft: #dbe2ff;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --label: 11rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1220;
    --ink: #e8ebf2;
    --muted: #9aa4b5;
    --rule: #283148;
    --blue: #93a8ff;
    --blue-deep: #1a35b3;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
}

a { color: inherit; text-decoration-thickness: 0.06em; text-underline-offset: 0.18em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, .brand { font-family: var(--font-head); }
ul, ol { padding: 0; list-style: none; }

.wrap { max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--on-blue); color: #14181d; padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { top: 0.75rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Top band: masthead and hero, on blue ---------- */

.band { background: #1f3fd1; color: var(--on-blue); }
.band a:hover { color: var(--on-blue); }
.band :focus-visible { outline-color: var(--on-blue); }

.masthead {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 2rem; padding-block: 1.5rem;
}
.brand { font-weight: 650; text-decoration: none; letter-spacing: 0.005em; }
.masthead nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.masthead nav a { text-decoration: none; color: var(--on-blue-soft); padding-block: 0.35rem; display: inline-block; }
.masthead nav a:hover { color: var(--on-blue); text-decoration: underline; }

.hero { padding-block: clamp(2.5rem, 9vw, 7rem) clamp(2.5rem, 7vw, 5rem); }
.hero h1 {
  font-size: clamp(3rem, 15.5vw, 8.5rem);
  line-height: 0.95;
  font-weight: var(--name-weight);
  letter-spacing: var(--name-tracking);
  margin-left: -0.04em;
}
.hero-foot {
  display: grid; gap: 2rem 4rem; margin-top: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
}
.strapline { font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.22; font-weight: 500; max-width: 24em; }
.basis { margin-top: 0.75rem; color: var(--on-blue-soft); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.button {
  display: inline-block; padding: 0.8rem 1.35rem; border-radius: 3px;
  font-weight: 600; text-decoration: none; border: 1.5px solid var(--on-blue);
}
.button.solid { background: var(--on-blue); color: #1a35b3; }
.button.solid:hover { background: var(--on-blue-soft); color: #1a35b3; }
.button.line { color: var(--on-blue); }
.button.line:hover { background: rgb(255 255 255 / 0.12); }
.button small { font-weight: 400; font-size: 0.85em; }

.reach { font-style: normal; display: grid; gap: 0.15rem; font-size: 1.0625rem; }
.reach a { text-decoration-color: rgb(255 255 255 / 0.5); }
.reach .where { color: var(--on-blue-soft); }

@media (min-width: 56rem) {
  .hero-foot { grid-template-columns: minmax(0, 1fr) auto; }
  .reach { text-align: right; padding-bottom: 0.35rem; }
}

/* ---------- Sections: label column + content, like a CV ---------- */

main > section { border-top: 1px solid var(--rule); padding-block: clamp(2.25rem, 5vw, 3.75rem); }
main > section:first-child { border-top: 0; }

.sec { display: grid; gap: 1.25rem 2.5rem; }
@media (min-width: 56rem) {
  .sec { grid-template-columns: var(--label) minmax(0, 1fr); }
}

h2 { font-size: 1.125rem; line-height: 1.3; font-weight: 650; }
.sec > h2 { padding-top: 0.15rem; }

.prose { max-width: 40rem; display: grid; gap: 1rem; }
.about { display: grid; gap: 2rem; align-items: start; }
.about img { width: 100%; max-width: 15rem; height: auto; border-radius: 3px; display: block; }
@media (min-width: 48rem) {
  .about.has-photo { grid-template-columns: minmax(0, 40rem) 15rem; justify-content: space-between; }
}

/* Services and skills: term + detail pairs */
.pairs { display: grid; gap: 0; }
.pairs > div { display: grid; gap: 0.1rem 2rem; padding-block: 0.8rem; border-top: 1px solid var(--rule); }
.pairs > div:first-child { border-top: 0; padding-top: 0; }
.pairs dt { font-weight: 600; }
.pairs dd { color: var(--muted); }
@media (min-width: 40rem) {
  .pairs > div { grid-template-columns: 15rem minmax(0, 1fr); }
}

/* Positions */
.post h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 620; }
.post .org { margin-top: 0.15rem; }
.post .dates { color: var(--muted); font-variant-numeric: tabular-nums lining-nums; }
.post .summary { margin-top: 0.75rem; max-width: 40rem; color: var(--muted); }
.post + .post { margin-top: 2rem; }

/* Selected credits */
.selected { display: grid; gap: 0 2.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.selected li { border-top: 2px solid var(--ink); padding-block: 0.9rem 1.9rem; }
.selected h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 620; }
.selected .role { color: var(--blue); font-weight: 600; margin-top: 0.3rem; }
.selected .at, .selected .note { color: var(--muted); font-size: 0.95rem; line-height: 1.4; margin-top: 0.2rem; }

/* Full credits */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.chip {
  font: inherit; font-size: 0.95rem; line-height: 1.2; color: var(--ink); cursor: pointer;
  background: none; border: 1.5px solid var(--rule); border-radius: 999px; padding: 0.5rem 0.95rem;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .n { opacity: 0.65; font-variant-numeric: tabular-nums; margin-left: 0.2em; }
.tally { color: var(--muted); font-size: 0.95rem; min-height: 1.5em; margin-bottom: 1.25rem; }

.year { border-top: 2px solid var(--ink); }
.year summary {
  display: flex; align-items: baseline; gap: 1rem; cursor: pointer;
  padding-block: 0.7rem; list-style: none;
}
.year summary::-webkit-details-marker { display: none; }
.year summary h3 { font-size: 1.6rem; line-height: 1.1; font-weight: 640; font-variant-numeric: tabular-nums lining-nums; }
.year summary .count { color: var(--muted); font-size: 0.95rem; }
.year summary::after {
  content: ""; margin-left: auto; width: 0.6rem; height: 0.6rem; flex: none; align-self: center;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-0.15rem) rotate(45deg);
}
.year[open] summary::after { transform: translateY(0.15rem) rotate(-135deg); }
.year[hidden] { display: none; }

table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.4; margin-bottom: 1.75rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 1.25rem 0.55rem 0; font-weight: 400; }
tbody tr { border-top: 1px solid var(--rule); }
tr[hidden] { display: none; }
td.production { font-weight: 600; width: 40%; }
td.company { width: 32%; }
td.role, td.designer { color: var(--muted); }
thead th { font-size: 0.875rem; color: var(--muted); padding-block: 0 0.4rem; }
.year:not(:first-of-type) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 40rem) {
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: block; padding-block: 0.65rem; }
  td { display: block; width: auto !important; padding: 0; }
  td.designer:empty { display: none; }
  td.designer:not(:empty)::before { content: "Sound designer: "; }
}

/* Training and clients */
.plain li { padding-block: 0.3rem; }
.clients { max-width: 46rem; columns: 2 14rem; column-gap: 2.5rem; }
.clients li { break-inside: avoid; padding-block: 0.25rem; }

/* Contact */
.contact { font-style: normal; display: grid; gap: 1.5rem 3rem; }
.contact .who { font-size: 1.3rem; font-weight: 620; line-height: 1.25; }
.contact .who span { display: block; font-weight: 400; color: var(--muted); font-size: 1.0625rem; }
.contact .big { font-size: clamp(1.3rem, 4.6vw, 2.1rem); line-height: 1.2; font-weight: 560; overflow-wrap: anywhere; }
.contact dt { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.15rem; }
.contact .lines > div + div { margin-top: 1.25rem; }
.contact .post-lines span { display: block; }
.contact .uk { color: var(--muted); }
@media (min-width: 48rem) {
  .contact { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}

/* Footer */
footer { border-top: 1px solid var(--rule); padding-block: 2rem 3rem; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; justify-content: space-between; }
footer address { font-style: normal; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }

/* 404 */
.lost { padding-block: clamp(3rem, 12vw, 8rem); }
.lost h1 { font-size: clamp(2.25rem, 7vw, 4.5rem); line-height: 1; font-weight: 640; letter-spacing: -0.02em; }
.lost p { margin-top: 1.25rem; max-width: 34em; }

@media print {
  .masthead nav, .actions, .filters, .tally, .skip { display: none !important; }
  .band { background: none; color: #000; }
  .basis, .reach .where { color: #333; }
  .hero h1 { font-size: 3rem; }
  .year summary::after { display: none; }
}
