/* Outside Bones — shared styles
   Palette: the inside of a mouth. Teeth and gums frame the page; everything else stays quiet. */

/* Self-hosted fonts (SIL Open Font License; see fonts/ folder) */
@font-face { font-family: "Big Shoulders Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/spectral-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/spectral-latin-400-italic.woff2") format("woff2"); }

:root {
  --pulp: #2a0b12;      /* page background */
  --root: #3d131c;      /* raised surfaces, rules */
  --gum: #b24a63;       /* gum band in the jaws */
  --gum-light: #e07a90; /* links, focus, accents */
  --enamel: #ebe7dd;    /* main text, teeth */
  --dentin: #c9b48a;    /* secondary text */

  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --text: "Spectral", Georgia, "Times New Roman", serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

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

html { background: var(--pulp); }

body {
  margin: 0;
  background: var(--pulp);
  color: var(--enamel);
  font-family: var(--text);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gum-light); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--enamel); }
:focus-visible { outline: 3px solid var(--gum-light); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--enamel); color: var(--pulp); padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0 0 0.6em;
}
h2 { font-size: clamp(2.4rem, 1.8rem + 3vw, 4rem); }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1em; max-width: var(--measure); }
.muted { color: var(--dentin); }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
section + section { border-top: 1px solid var(--root); }

/* ---------- The jaws (home hero) ---------- */

.jaws {
  position: relative;
  min-height: min(100svh, 60rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
}
.jaw { display: block; width: 100%; overflow: visible; }
.jaw-drawn.jaw-upper { height: max(23vw, 7rem); }
.jaw-drawn.jaw-lower { height: max(21vw, 6.5rem); }
.jaw-upper { position: relative; z-index: 2; }
.jaw-lower { position: relative; z-index: 1; }

/* letters carved into the teeth */
.tooth-letter { font-family: var(--display); font-weight: 800; }
.tl-light { fill: #fffaf2; fill-opacity: 0.55; }
.tl-ink { fill: #4a2a24; fill-opacity: 0.88; mix-blend-mode: multiply; }
.tl-carve { fill: #1f0a0c; fill-opacity: 0.6; }

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

.mouth {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 1.25rem var(--gutter);
}
.tagline {
  margin: 0 auto;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem);
  font-style: italic;
  color: var(--enamel);
  max-width: 28rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}
.mouth nav { margin-top: 1rem; }

/* optional scream photo behind the open mouth, tinted to your gums */
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: grayscale(1) contrast(1.2);
  z-index: -2;
  opacity: 0;
}
.jaws.has-photo .hero-photo { opacity: 1; }
.jaws.has-photo::before,
.jaws.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.jaws.has-photo::before { background: var(--tint, var(--gum)); mix-blend-mode: multiply; }
.jaws.has-photo::after {
  background: radial-gradient(ellipse at 50% 50%,
    color-mix(in srgb, var(--mouth, #1c060b) 20%, transparent) 0%,
    color-mix(in srgb, var(--mouth, #1c060b) 58%, transparent) 75%,
    color-mix(in srgb, var(--mouth, #1c060b) 82%, transparent) 100%);
}

/* when your teeth photo is set, hold everything until it has loaded */
.photo-jaws .jaws:not(.ready) .jaw-drawn,
.photo-jaws .jaws:not(.ready) .mouth { visibility: hidden; }
.photo-jaws .jaw-small.jaw-drawn { visibility: hidden; }

/* one load moment: the mouth opens. The upper jaw barely moves; the lower jaw drops and settles. */
@media (prefers-reduced-motion: no-preference) {
  .jaws.play .jaw-upper { animation: jaw-up 1.25s 0.2s cubic-bezier(.3, .7, .2, 1) both; }
  .jaws.play .jaw-lower { animation: jaw-down 1.25s 0.2s cubic-bezier(.3, .7, .2, 1) both; }
  .jaws.play .mouth { animation: reveal 0.8s 0.8s ease-out both; }
}
@keyframes jaw-up { from { transform: translateY(12vh); } to { transform: none; } }
@keyframes jaw-down { 0% { transform: translateY(-34vh); } 72% { transform: translateY(1.2vh); } 100% { transform: none; } }
@keyframes reveal { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Album ---------- */

.album { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 52rem) {
  .album { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .album:has(> figure[hidden]) { grid-template-columns: minmax(0, 1fr); }
}
.album figure { margin: 0; }
.album img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.button {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  padding: 0.55rem 1.3rem 0.6rem;
  background: var(--enamel);
  color: var(--pulp);
  text-decoration: none;
  border-radius: 0 0 1.2rem 1.2rem; /* tooth-shaped */
}
.button:hover { background: var(--gum-light); color: var(--pulp); }

/* ---------- Tracks ---------- */

.tracks {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.track { margin: 0; }
@media (min-width: 52rem) { .tracks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.track-art {
  position: relative;
  aspect-ratio: 1;
  background: var(--root);
  overflow: hidden;
}
.track-art img { width: 100%; height: 100%; object-fit: cover; }
.track-art .fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 1rem;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 0.9; text-align: center;
  color: var(--gum);
}
.track-art img + .fallback { display: none; }
.track-art.missing .fallback { display: grid; }
.track p { margin: 0.7rem 0 0; font-size: 1.05rem; }
.track .num { font-family: var(--display); font-weight: 700; color: var(--dentin); margin-right: 0.45em; }
.track.pending .track-art { background: transparent; outline: 1px dashed var(--root); outline-offset: -1px; }
.track.pending p { color: var(--dentin); }
.track a { color: inherit; text-decoration: none; }
.track a:hover .title, .track a:focus-visible .title { text-decoration: underline; }

/* ---------- Shorts ---------- */

.shorts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 20rem));
  gap: clamp(1rem, 3vw, 2rem);
}
.short { margin: 0; aspect-ratio: 9 / 16; background: var(--root); }
.short iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Producer band ---------- */

.band { background: var(--enamel); color: var(--pulp); border-top: 0; }
.band + section { border-top: 0; }
.band a { color: var(--pulp); }
.band .button { background: var(--pulp); color: var(--enamel); }
.band .button:hover { background: var(--gum); color: var(--enamel); }
.band p { font-size: 1.15em; }

/* ---------- Profile picture ---------- */

.avatar {
  width: clamp(4.5rem, 10vw, 6rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--enamel);
  flex: none;
}
.avatar-large { width: clamp(5.5rem, 14vw, 9rem); }
.follow { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2rem); flex-wrap: wrap; }
.intro { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.intro .page-title { margin: 0; }

/* ---------- Work in progress (producer page) ---------- */

.desk { margin: 0 0 clamp(1rem, 2.5vw, 1.75rem); background: var(--root); }
.desk img { width: 100%; }
.desk a:focus-visible { outline-offset: 4px; }

.notebook { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (min-width: 52rem) { .notebook { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.notebook .page { margin: 0; background: var(--root); }
.notebook img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- Links + contact ---------- */

.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; }
.links a {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  color: var(--enamel); text-decoration: none;
}
.links a:hover, .links a:focus-visible { color: var(--gum-light); }

.email {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.7rem, 1rem + 4vw, 3.6rem);
  line-height: 1; word-break: break-word;
  color: var(--enamel); text-decoration: none;
}
.email:hover, .email:focus-visible { color: var(--gum-light); }

footer { padding: 2rem 0 3rem; color: var(--dentin); font-size: 0.9rem; }

/* ---------- Inner page (producers) ---------- */

.jaw-small { height: clamp(3rem, 6vw, 4.5rem); position: relative; z-index: 1; }

.masthead { padding: 1.4rem 0; border-bottom: 1px solid var(--root); }
.masthead a {
  font-family: var(--display); font-weight: 900; font-size: 1.7rem;
  text-transform: uppercase; color: var(--enamel); text-decoration: none; letter-spacing: 0.01em;
}
.masthead a:hover { color: var(--gum-light); }

.page-title { font-size: clamp(3.6rem, 2rem + 8vw, 8rem); margin: 0 0 0.35em; }
.lede { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); line-height: 1.5; max-width: 36rem; }

.facts { display: grid; gap: clamp(2rem, 4vw, 4rem); }
@media (min-width: 52rem) { .facts { grid-template-columns: repeat(2, minmax(0, 30rem)); } }
.facts p { font-size: 1rem; }

[hidden] { display: none !important; }
