/* Fonts are stored in /fonts so the site doesn't depend on Google Fonts. */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================
   Colors and type. Change these few values to re-theme the site.
   ========================================================== */
:root {
  --umber: #17130f;      /* page background */
  --deep: #221c17;       /* raised surfaces */
  --rebate: #0d0b09;     /* contact sheet film edge */
  --rule: #3a3129;       /* lines and borders */
  --silver: #e6dfd3;     /* main text */
  --ash: #9a8f82;        /* secondary text */
  --safelight: #d9a441;  /* accent: darkroom amber */

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Newsreader", Georgia, serif;

  --pad: clamp(1.25rem, 5vw, 4rem);
  --max: 76rem;
  /* lines the header and hero up with the page content on wide screens */
  --edge: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--umber);
  color: var(--silver);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--safelight);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--safelight);
  color: var(--umber);
  padding: .5rem 1rem;
  font-family: var(--display);
  font-weight: 700;
}
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.1rem var(--edge);
  transition: background-color .3s ease;
}
.site-head.scrolled {
  background: rgba(23, 19, 15, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .01em;
  text-decoration: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.site-head.scrolled .wordmark,
.wordmark:focus-visible { opacity: 1; }
.site-head nav { display: flex; gap: 1.6rem; }
.site-head nav a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ash);
  text-decoration: none;
}
.site-head nav a:hover { color: var(--silver); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  animation: develop 3.2s cubic-bezier(.3, .1, .2, 1) both;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(23, 19, 15, .55) 0%, rgba(23, 19, 15, 0) 30%, rgba(23, 19, 15, .15) 55%, var(--umber) 100%);
}
/* The photo slowly comes up out of the dark, like a print in the developer tray. */
@keyframes develop {
  from { filter: brightness(.08) contrast(.6) sepia(.5); }
  to   { filter: none; }
}
.hero-text {
  width: 100%;
  padding: 0 var(--edge) clamp(3rem, 8vh, 6rem);
}
.hero h1 {
  margin: 0 0 1.5rem -.04em;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(4.5rem, 19vw, 17rem);
  line-height: .8;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.hero-line {
  margin: 0 0 1.75rem;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--silver);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block;
  padding: .6em 1.2em .65em;
  border: 1px solid var(--silver);
  border-radius: 2px;
  background: transparent;
  color: var(--silver);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--silver); color: var(--umber); }
.btn-solid { background: var(--safelight); border-color: var(--safelight); color: var(--umber); }
.btn-solid:hover { background: var(--silver); border-color: var(--silver); }

.text-link {
  color: var(--safelight);
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--pad) 0;
}
.section h2 {
  margin: 0 0 2.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: .85;
  letter-spacing: -.005em;
}
.section h3 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
}
.section-intro { max-width: 36em; margin: -1rem 0 2.5rem; color: var(--ash); }

/* ---------- Listen ---------- */
.release {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.release-cover { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.release-info h3 { font-family: var(--body); font-weight: 400; font-size: clamp(2rem, 3.5vw, 2.75rem); }
.release-meta { margin: 0 0 2rem; color: var(--ash); }

.tracklist {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  counter-reset: track;
}
.tracklist li {
  counter-increment: track;
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: baseline;
  padding: .55rem 0;
  border-bottom: 1px solid var(--rule);
}
.tracklist li::before {
  content: counter(track);
  font-family: var(--display);
  font-weight: 500;
  color: var(--ash);
}
.tracklist .dur { color: var(--ash); font-variant-numeric: tabular-nums; }
.tracklist .feat { color: var(--ash); font-size: .85em; }

/* discography list under Listen: the year sits quietly after each title */
.releases .yr { color: var(--ash); font-size: .8em; font-weight: 500; margin-left: .4em; }

.listen-on {
  margin: 2.5rem 0 1rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ash);
}
/* the first label sits right after the tracklist, which already adds its own gap */
.tracklist + .listen-on { margin-top: 0; }
.platforms, .socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}
.platforms a, .socials a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.platforms a:hover, .socials a:hover { color: var(--safelight); border-color: var(--safelight); }

/* ---------- Photographs: contact sheet ---------- */
/* Collapsed, the sheet shows the first 6 frames and fades out to hint at more. */
.sheet-wrap { position: relative; }
.sheet-wrap.collapsed .sheet { position: relative; }
.sheet-wrap.collapsed .sheet li:nth-child(n+7) { display: none; }
.sheet-wrap.collapsed .sheet::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  background: linear-gradient(to bottom, transparent, var(--rebate) 92%);
  pointer-events: none;
}
.sheet-toggle {
  display: block;
  margin: 1.35rem auto 0;
  padding: .5rem 1.25rem;
  background: none;
  border: 0;
  color: var(--ash);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .04em;
  cursor: pointer;
}
.sheet-toggle:hover { color: var(--safelight); }

.sheet {
  list-style: none;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 2rem);
  background: var(--rebate);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem clamp(.75rem, 2vw, 1.5rem);
  counter-reset: frame;
}
.sheet li { counter-increment: frame; }
.sheet li::after {
  /* caption for each occupied slot, set like the edge printing on a film strip */
  content: attr(data-label);
  display: block;
  margin-top: .4rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: .95rem;
  color: #8a6a2c;
}
.frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  aspect-ratio: 3 / 2;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
/* grease-pencil circle a photographer uses to mark a keeper */
.frame::after {
  content: "";
  position: absolute;
  inset: -12% -8%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' preserveAspectRatio='none'%3E%3Cpath d='M46 34 C 110 8, 232 12, 272 44 C 300 70, 292 150, 248 172 C 186 200, 72 194, 32 162 C 4 136, 12 64, 58 38 C 88 22, 124 16, 160 20' fill='none' stroke='%23d9a441' stroke-width='4' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: 0;
  transform: rotate(-2deg) scale(.94);
  transition: opacity .18s ease, transform .25s ease;
  pointer-events: none;
}
.frame:hover::after,
.frame:focus-visible::after { opacity: 1; transform: rotate(-2deg) scale(1); }
.frame:focus-visible { outline: none; }

/* ---------- Shows ---------- */
.show-list { list-style: none; margin: 0; padding: 0; }
.show {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.show:last-child { border-bottom: 1px solid var(--rule); }
.show time { display: flex; flex-direction: column; line-height: 1; }
.show .d { font-family: var(--display); font-weight: 700; font-size: 2.4rem; }
.show .y { margin-top: .3rem; font-size: 1rem; color: var(--ash); }
.show .where { display: flex; flex-direction: column; }
.show .where strong { font-weight: 500; font-size: 1.3rem; }
.show .where span { color: var(--ash); }
.show .sold { font-style: italic; color: var(--ash); }

.empty { color: var(--ash); max-width: 36em; }
.empty a { color: var(--safelight); }

.past { margin-top: 2.5rem; }
.past summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ash);
}
.past summary:hover { color: var(--silver); }
.past .show { opacity: .6; padding: 1rem 0; }
.past .show .d { font-size: 1.6rem; }
.past .btn, .past .sold { display: none; }

/* ---------- Shop ---------- */
.shop-group + .shop-group { margin-top: 4.5rem; }

/* Product grid + jewel-case treatment (front cover, back on hover) */
.record-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 19rem));
  gap: clamp(2rem, 4vw, 3rem);
}
.product { margin: 0; }
.jewel {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 20px 45px -20px rgba(0, 0, 0, .85);
  background: #000;
}
.jewel .face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .45s ease;
}
.jewel .back { opacity: 0; }
.jewel:hover .front,
.jewel:focus-visible .front { opacity: 0; }
.jewel:hover .back,
.jewel:focus-visible .back { opacity: 1; }
/* left spine — the case hinge */
.jewel::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 7%;
  z-index: 3;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,.55) 0%,
      rgba(255,255,255,.10) 30%,
      rgba(0,0,0,.55) 46%,
      rgba(255,255,255,.06) 62%,
      rgba(0,0,0,.35) 100%);
  border-right: 1px solid rgba(0, 0, 0, .5);
  pointer-events: none;
}
/* diagonal plastic gloss */
.jewel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(118deg,
    rgba(255,255,255,.16) 0%,
    rgba(255,255,255,0) 24%,
    rgba(255,255,255,0) 82%,
    rgba(255,255,255,.05) 100%);
  pointer-events: none;
}
.product .item-title { margin: 1rem 0 .1rem; }
.product .item-note { margin: 0 0 1rem; }
.buy-note { margin: .85rem 0 0; color: var(--ash); font-size: .95rem; max-width: 22em; }
.buy-note a { color: var(--safelight); text-decoration: underline; text-underline-offset: .15em; }

.shop-group h3 { margin-bottom: 1.5rem; }
.shop-group h3 + .section-intro { margin-top: 0; }
.record {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
.item-title { margin: 0; font-size: 1.3rem; font-weight: 500; }
.item-note { margin: .15rem 0 1rem; color: var(--ash); }

.prints {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(1.25rem, 3vw, 2.5rem);
}
.mat {
  padding: 7%;
  margin-bottom: 1rem;
  background: var(--deep);
  border: 1px solid var(--rule);
}
.mat img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.print .item-note { margin-bottom: .5rem; }

/* ---------- About ---------- */
.about-body {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.about-mark {
  width: clamp(120px, 15vw, 190px);
  height: auto;
  flex: none;
  opacity: .92;
}
.about-lead {
  max-width: 22em;
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.4;
  color: var(--silver);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-info p { margin: 0 0 1.25rem; max-width: 30em; }
.contact-info .socials { margin-top: 2rem; }

.contact-form { display: grid; gap: 1.25rem; }
.contact-form label { display: grid; gap: .4rem; color: var(--ash); font-size: 1.05rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .7rem .85rem;
  background: var(--deep);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--silver);
  font: inherit;
  font-size: 1.1rem;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid var(--safelight); outline-offset: 0; border-color: transparent; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.6em; }
.form-status.ok { color: var(--safelight); }
.form-status.err { color: #e59a86; }

/* ---------- Footer ---------- */
.site-foot {
  max-width: var(--max);
  margin: clamp(5rem, 11vw, 9rem) auto 0;
  padding: 2rem var(--pad) 3rem;
  border-top: 1px solid var(--rule);
  color: var(--ash);
  font-size: 1rem;
}
.foot-links { margin: 0 0 1rem; }
.foot-links a {
  color: var(--ash);
  font-family: var(--display);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.foot-links a:hover { color: var(--safelight); border-color: var(--safelight); }

/* ---------- Discography (separate /discography page) ---------- */
.disco {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
.song .cover {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  background: var(--deep);
  border: 1px solid var(--rule);
  box-shadow: 0 20px 40px -22px rgba(0, 0, 0, .7);
}
.song .cover--ph { display: grid; place-items: center; text-align: center; padding: 1rem; }
.song .cover--ph span { font-family: var(--display); font-weight: 700; font-size: 1.4rem; line-height: 1.05; color: var(--ash); letter-spacing: .01em; }
.song .song-title { margin: .95rem 0 .1rem; font-family: var(--body); font-weight: 500; font-size: 1.35rem; }
.song .song-title em { font-style: italic; }
.song .song-meta { margin: 0 0 .65rem; color: var(--ash); font-size: 1rem; }
.song .on {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .9rem;
}
.song .on a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.song .on a:hover { color: var(--safelight); border-color: var(--safelight); }
.disco-intro { max-width: 40em; margin: -1rem 0 3rem; color: var(--ash); }

/* ---------- Photo viewer ---------- */
.viewer {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(13, 11, 9, .97);
  color: var(--silver);
}
.viewer::backdrop { background: rgba(13, 11, 9, .9); }
.viewer[open] { display: grid; place-items: center; }
.viewer figure { margin: 0; padding: 4rem 4.5rem; text-align: left; }
.viewer img { max-width: min(92vw, 1800px); max-height: 80vh; width: auto; margin: 0 auto; }
.viewer figcaption { margin-top: 1rem; font-style: italic; color: var(--ash); }
.viewer-btn {
  position: fixed;
  background: none;
  border: 0;
  color: var(--silver);
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  padding: .5rem 1rem;
  cursor: pointer;
}
.viewer-btn:hover { color: var(--safelight); }
.viewer .prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.viewer .next { right: .5rem; top: 50%; transform: translateY(-50%); }
.viewer .close { top: 1rem; right: 1rem; font-size: 1.3rem; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .site-head { flex-direction: column; gap: .35rem; padding-block: .8rem; }
  .site-head nav { gap: 1.1rem; overflow-x: auto; width: 100%; padding-bottom: .15rem; }
  .site-head nav a { font-size: 1.1rem; }
  .wordmark { font-size: 1.3rem; }
  .hero h1 { font-size: clamp(4rem, 27vw, 9rem); }
  .release, .contact-grid, .record { grid-template-columns: 1fr; }
  .record img { max-width: 16rem; }
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prints { grid-template-columns: 1fr; }
  .show { grid-template-columns: 5.5rem minmax(0, 1fr); padding: 1.25rem 0; }
  .show .d { font-size: 1.8rem; }
  .show .btn, .show .sold { grid-column: 2; justify-self: start; }
  .viewer figure { padding: 3.5rem 1rem 5rem; }
  .viewer .prev, .viewer .next { top: auto; bottom: 1rem; transform: none; }
}

/* ---------- Respect reduced-motion settings ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo { animation: none; }
  .frame::after, .site-head, .wordmark { transition: none; }
}
