/* Robin Sutherland Mastering - site styles
   Font: Outfit (SIL Open Font License), self-hosted in assets/fonts/. Palette taken from the logo. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Palette - same as the old (Tommy's) site: white, near-black text, logo blue + plum. */
  --bg: #ffffff;
  --fg: #151515;
  --muted: #6f6f6d;
  --faint: #878785;
  --line: #e7e7e4;
  --soft: #f3f2f2;     /* old theme "quaternary" */
  --accent: #6eb2f1;   /* logo blue (old theme "primary") */
  --plum: #463547;     /* logo plum (old theme "secondary") */
  --field: #ffffff;
  --max: 1160px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; max-width: 60ch; }
h1, h2, h3 { font-weight: 400; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.35rem; }
h2 { font-size: 1.05rem; margin-top: 2.2em; }
h2:first-child { margin-top: 0; }
strong { font-weight: 500; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Header ---------- */
.site-header {
  padding: 1.6rem 0 1.2rem;
}
.site-header .wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-right: auto;
}
.brand:hover { color: inherit; }
.brand img { width: 64px; height: 64px; border-radius: 50%; }
.brand .name { font-weight: 500; font-size: 1.05rem; letter-spacing: .01em; line-height: 1.15; }
.brand .role {
  display: block;
  font-weight: 300;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .15rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: .9rem;
  color: var(--muted);
}
.nav a { padding: .25rem 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); }
.nav .lang img { width: 20px; height: auto; border-radius: 2px; opacity: .8; }
.nav .lang:hover img { opacity: 1; }
.nav .ext::after { content: " \2197"; font-size: .8em; }

/* ---------- Main ---------- */
main { flex: 1; padding: 1rem 0 3rem; }
.lede {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.55;
  margin: 0 0 2rem;
  max-width: 62ch;
}
.lede a { color: var(--fg); border-bottom: 1px solid var(--line); }
.lede a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Credits grid ---------- */
.credits {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2rem 1.5rem;
}
.credits li { min-width: 0; }
.credits a { display: block; }
.credits .cover {
  display: block;
  position: relative; isolation: isolate;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--line);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  margin-bottom: .55rem;
}
.credits .cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: relative; z-index: -1;
  filter: saturate(.92);
  transition: filter .35s ease;
}
.credits a:hover .cover img, .credits a:focus-visible .cover img { filter: none; }
.credits .artist { display: block; font-weight: 400; font-size: .84rem; line-height: 1.3; }
.credits .title { display: block; font-size: .84rem; line-height: 1.3; color: var(--muted); }
.credits .meta  { display: block; font-size: .74rem; line-height: 1.4; color: var(--faint); margin-top: .2rem; }
.credits a:hover .artist { color: var(--accent); }
.credits-more { margin-top: 2.5rem; font-size: .88rem; color: var(--muted); }
.credits-more a { border-bottom: 1px solid var(--line); color: var(--fg); }
.credits-more a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 480px) {
  .credits { grid-template-columns: repeat(3, 1fr); gap: 1.25rem .75rem; }
  .credits .artist, .credits .title { font-size: .76rem; }
  .credits .meta { font-size: .68rem; }
}

/* ---------- Studio ---------- */
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 2rem; }
.photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photos .wide { grid-column: 1 / -1; }
.photos .wide img { aspect-ratio: auto; }
@media (max-width: 640px) { .photos { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }
.services { list-style: none; padding: 0; margin: 0 0 1em; color: var(--muted); }
.services li::before { content: "- "; color: var(--faint); }

/* ---------- Text pages ---------- */
.prose > * { max-width: 66ch; }
.prose h2 { font-size: 1rem; font-weight: 500; }
.prose h3 { font-size: .95rem; font-weight: 500; margin: 1.8em 0 .4em; }
.prose p { max-width: 66ch; color: var(--fg); opacity: .85; }
.prose ul { padding-left: 1.1em; color: var(--fg); opacity: .85; }
.prose li { margin: .2em 0; }
.prose a { border-bottom: 1px solid var(--line); }
.prose a:hover { border-color: var(--accent); }
.prose table { border-collapse: collapse; width: 100%; font-size: .9rem; margin: .5em 0 1.5em; }
.prose th, .prose td { text-align: left; padding: .45em .6em .45em 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 500; color: var(--muted); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }
.pdf-link { font-size: .9rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-details { color: var(--muted); font-size: .95rem; }
.contact-details p { margin-bottom: 1.2em; }
.contact-details a { color: var(--fg); border-bottom: 1px solid var(--line); }
.contact-details a:hover { color: var(--accent); border-color: var(--accent); }
.contact-details .row { display: flex; align-items: center; gap: .6rem; margin: .35rem 0; }
.contact-details .row img { width: 22px; height: auto; opacity: .75; }

form { max-width: 520px; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .8rem; letter-spacing: .04em; color: var(--muted); margin-bottom: .3rem; }
.field label .req { color: var(--accent); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-weight: 300;
  color: var(--fg);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .6rem .7rem;
  outline: none;
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { display: none; margin: 0 0 1rem; padding: .6rem .8rem; font-size: .9rem; color: var(--plum); background: var(--soft); border-left: 2px solid var(--accent); }
.form-note:target { display: block; }
button.btn, .btn {
  display: inline-block;
  font: inherit; font-weight: 400; font-size: .92rem;
  color: #fff; background: var(--plum);
  border: 0; border-radius: 3px;
  padding: .65rem 1.4rem;
  cursor: pointer;
  transition: background .15s;
}
button.btn:hover, .btn:hover { background: var(--accent); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  font-size: .82rem;
  color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; align-items: center; }
.site-footer .copy { margin-right: auto; }
.site-footer a:hover { color: var(--fg); }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .site-header .wrap { gap: 1rem; }
  .brand { width: 100%; }
  .nav { gap: 1.1rem; font-size: .86rem; flex-wrap: wrap; }
  .nav .lang { position: absolute; top: .6rem; right: var(--pad); }
}

/* ---------- Utility ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* links inside studio text */
.two-col p.gear { color: var(--muted); font-size: .9rem; }
.two-col p a { border-bottom: 1px solid var(--line); }
.two-col p a:hover { border-color: var(--accent); }

/* ---------- Optional: caption-on-hover variant (not used by default) ----------
   Add "credits--hover" to the <ul> class to try it. Covers only; on hover / keyboard focus the cover dims under a solid plum overlay
   and the caption appears, centred. On touch devices (no hover) captions stay underneath.
   Remove the class again to return to captions underneath. */
@media (hover: hover) {
  .credits--hover { gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .credits--hover li { position: relative; }
  .credits--hover a { position: relative; }
  .credits--hover .cover { margin: 0; }
  .credits--hover .cover img { transition: transform .35s ease, filter .35s ease; }
  .credits--hover .caption {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: .75rem;
    background: rgba(70, 53, 71, .92);   /* logo plum */
    color: #fff;
    opacity: 0; transition: opacity .2s ease;
    pointer-events: none;
  }
  .credits--hover .artist { font-weight: 500; font-size: .92rem; line-height: 1.25; color: #fff; }
  .credits--hover .title  { font-weight: 300; font-size: .84rem; line-height: 1.3; color: rgba(255,255,255,.9); margin-top: .2rem; }
  .credits--hover .meta   { font-size: .7rem; line-height: 1.35; color: rgba(255,255,255,.6); margin-top: .55rem; }
  .credits--hover a:hover .caption, .credits--hover a:focus-visible .caption, .credits--hover a.is-hover .caption { opacity: 1; }
  .credits--hover a:hover .cover img, .credits--hover a.is-hover .cover img { transform: none; }
  .credits--hover a:hover .artist { color: #fff; }
}

.credits .caption { display: block; }
