/* boxberger.de
   Layout: a sticky left rail (heir of the old button column) beside one content column.
   Every page opens with a record sleeve in that page's own background colour from the
   NetObjects site of ~2000; everything around it stays in one quiet, wine-dark frame. */

:root {
  color-scheme: dark;

  /* Colour */
  --night: #1c0607;        /* page ground: the old #630707 taken down to club light */
  --night-2: #280a0b;      /* raised: inputs, current page, photo placeholders */
  --night-3: #3a1113;      /* hover */
  --wine: #630707;         /* the original home colour */
  --peach: #ffcc99;        /* the original caption-box colour: headings, ranks, focus */
  --cream: #f5e6da;        /* running text */
  --dust: #c9a796;         /* secondary text */
  --line: rgba(255, 204, 153, 0.15);
  --line-strong: rgba(255, 204, 153, 0.34);
  --vinyl: #141112;

  /* Per page, set on <body>: the sleeve colour and the ink that reads on it */
  --page: var(--wine);
  --page-ink: var(--cream);

  /* Type: system faces only, so the site loads nothing from third parties */
  --f-display: Bahnschrift, "Avenir Next Condensed", "Helvetica Neue", "Roboto Condensed",
    "Arial Narrow", sans-serif-condensed, "Liberation Sans Narrow", sans-serif;
  --f-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-voice: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;

  /* Space */
  --gutter: clamp(16px, 4vw, 48px);
  --rail: 236px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 400 1.0625rem/1.6 var(--f-text);
}

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

figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

[hidden] {
  display: none !important;
}

/* Read aloud and copied, but not shown */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 50;
  padding: 8px 14px;
  border-radius: 4px;
  background: var(--peach);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ---------- Frame ---------- */

.site {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  max-width: 1400px;
  min-height: 100vh;
  margin-inline: auto;
}

.rail {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  padding: 32px 18px 24px 24px;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--cream);
  text-decoration: none;
}

.brand-name {
  font-family: var(--f-display);
  font-size: 2rem;
  font-stretch: 75%;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.brand-name span {
  color: var(--peach);
}

.brand-line {
  color: var(--dust);
  font-family: var(--f-voice);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.3;
}

.nav ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--cream);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  background: var(--night-3);
  color: var(--peach);
}

.nav a[aria-current="page"] {
  background: var(--night-2);
  color: var(--peach);
  font-weight: 600;
}

.swatch {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.nav a[aria-current="page"] .swatch {
  box-shadow: 0 0 0 2px var(--night-2), 0 0 0 3px var(--peach);
}

.column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  padding-inline: var(--gutter);
}

.main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: clamp(32px, 5vw, 56px);
  padding-block: clamp(16px, 3vw, 32px) clamp(40px, 6vw, 72px);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 22px 30px;
  border-top: 1px solid var(--line);
  color: var(--dust);
  font-size: 0.85rem;
}

.foot p {
  margin: 0;
}

.foot i {
  font-family: var(--f-voice);
}

.foot a {
  color: var(--cream);
}

.foot a:hover {
  color: var(--peach);
}

@media (max-width: 899px) {
  .site {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: static;
    gap: 14px;
    height: auto;
    overflow: visible;
    padding: 18px 0 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    flex-flow: row wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    padding-inline: var(--gutter);
  }

  .brand-name {
    font-size: 1.75rem;
  }

  .nav ul {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px var(--gutter) 14px;
    scrollbar-width: none;
  }

  .nav ul::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    gap: 8px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .swatch {
    width: 10px;
    height: 10px;
  }

  .column {
    min-height: 0;
  }
}

/* ---------- Sleeve: the page header ---------- */

.sleeve {
  --pad: clamp(24px, 4.5vw, 56px);
  --disc: clamp(260px, 30vw, 400px);
  --peek: 0.6;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(220px, 24vw, 320px);
  overflow: hidden;
  padding: var(--pad);
  background: var(--page);
  color: var(--page-ink);
}

/* The record half out of its sleeve */
.sleeve::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: calc(var(--disc) * (var(--peek) - 1));
  width: var(--disc);
  aspect-ratio: 1;
  border-radius: 50%;
  translate: 0 -50%;
  background:
    radial-gradient(circle closest-side, var(--page) 0 3.6%, var(--peach) 4.2% 31%,
      rgba(0, 0, 0, 0.5) 31.6% 33%, transparent 33.6%),
    conic-gradient(from 200deg, transparent 0 6%, rgba(255, 255, 255, 0.12) 11%,
      transparent 17% 50%, rgba(255, 255, 255, 0.08) 59%, transparent 66%),
    repeating-radial-gradient(circle, var(--vinyl) 0, #221d1e 1.5px, var(--vinyl) 3px),
    var(--vinyl);
  box-shadow: inset 0 0 0 3px #0b0909, 0 18px 40px rgba(0, 0, 0, 0.35);
}

.sleeve-text {
  max-width: calc(100% - var(--disc) * var(--peek) + var(--pad) - 20px);
}

.sleeve-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(2.75rem, 7.5vw, 6.5rem);
  font-stretch: 75%;
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.sleeve-title-voice {
  display: block;
  margin-top: 0.5em;
  font-family: var(--f-voice);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-stretch: normal;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.sleeve-voice {
  max-width: 34ch;
  margin: 0.7em 0 0;
  font-family: var(--f-voice);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic;
  line-height: 1.35;
  text-wrap: balance;
}

.sleeve-meta {
  margin: 1.6em 0 0;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.78;
}

@media (max-width: 599px) {
  .sleeve {
    --disc: 200px;
    --peek: 0.38;
    min-height: 200px;
  }
}

/* ---------- Shared pieces ---------- */

.section-title {
  margin: 0 0 16px;
  color: var(--peach);
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-stretch: 75%;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
}

.side-photo {
  position: sticky;
  top: 24px;
}

.side-photo img,
.hero-photo img,
.gallery img {
  border-radius: 2px;
  background: var(--night-2);
  outline: 1px solid rgba(255, 255, 255, 0.06);
  outline-offset: -1px;
}

@media (max-width: 1099px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .side-photo {
    position: static;
  }
}

.prose {
  max-width: 62ch;
}

.prose p {
  margin: 0 0 1em;
}

.prose section + section {
  margin-top: 40px;
}

.lead {
  font-family: var(--f-voice);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-style: italic;
  line-height: 1.35;
}

.lead a {
  color: var(--peach);
}

/* Justified photo rows: each photo is as wide as its proportions need for one row height */
.gallery {
  --row: 210px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery::after {
  content: "";
  flex: 1000 1 0px;
}

.gallery figure {
  flex-grow: calc(var(--r) * 100);
  flex-shrink: 1;
  flex-basis: calc(var(--r) * var(--row));
  min-width: 0;
}

.gallery img {
  width: 100%;
}

@media (max-width: 599px) {
  .gallery {
    --row: 130px !important;
    gap: 6px;
  }
}

/* ---------- Home ---------- */

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 48px);
}

.hero-photo img {
  width: 100%;
}

.hero-photo figcaption {
  margin-top: 14px;
  color: var(--peach);
  font-family: var(--f-voice);
  font-size: 1.3rem;
  font-style: italic;
}

.shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 104px;
  padding: 14px 16px;
  border-radius: 3px;
  background: var(--c);
  color: var(--ci);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tile:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.tile-name {
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-stretch: 75%;
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
}

.tile-note {
  font-size: 0.85rem;
  line-height: 1.35;
  opacity: 0.86;
}

@media (max-width: 1099px) {
  .home-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-photo {
    max-width: 480px;
  }
}

@media (max-width: 420px) {
  .tile-name {
    font-size: 1.3rem;
  }
}

/* ---------- Top Ten ---------- */

.chart {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  counter-reset: rank;
  list-style: none;
}

.chart li {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  column-gap: 8px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  counter-increment: rank;
}

.chart li::before {
  content: counter(rank, decimal-leading-zero);
  grid-row: span 2;
  align-self: center;
  color: var(--peach);
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-stretch: 75%;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
}

.chart .artist {
  color: var(--dust);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chart .album {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}

/* ---------- Favourites ---------- */

.years-index {
  display: grid;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.decade {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  align-items: baseline;
  gap: 4px;
}

.decade-name {
  color: var(--dust);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.decade-years {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
}

.years-index a {
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--cream);
  font-size: 0.95rem;
  text-decoration: none;
}

.years-index a:hover {
  background: var(--night-3);
  color: var(--peach);
}

.years-index a.is-empty {
  color: var(--dust);
  opacity: 0.35;
  pointer-events: none;
}

.fav-tools {
  display: grid;
  gap: 40px;
}

.regulars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.regular,
.toggle {
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--night-2);
  color: var(--cream);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.regular {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.regular b {
  font-weight: 600;
}

.regular span {
  color: var(--peach);
  font-variant-numeric: tabular-nums;
}

.regular:hover,
.toggle:hover {
  border-color: var(--peach);
}

.regular[aria-pressed="true"],
.toggle[aria-pressed="true"] {
  border-color: var(--peach);
  background: var(--peach);
  color: var(--night);
}

.regular[aria-pressed="true"] span {
  color: var(--night);
}

.finder {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--night);
}

.finder label {
  color: var(--dust);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.finder input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--night-2);
  color: var(--cream);
  font: inherit;
  font-size: 1rem;
}

.finder input::placeholder {
  color: var(--dust);
  opacity: 0.8;
}

.finder input:focus-visible {
  outline-offset: 1px;
}

.finder-status {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  color: var(--dust);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.reset {
  padding: 0;
  border: 0;
  background: none;
  color: var(--peach);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

@media (max-width: 599px) {
  .finder label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .finder input {
    flex-basis: 150px;
  }
}

.lists {
  columns: 3 260px;
  column-gap: clamp(28px, 4vw, 48px);
  scroll-margin-top: 140px;
}

.list-block {
  margin: 0 0 34px;
  break-inside: avoid;
  scroll-margin-top: 140px;
}

.year {
  margin: 0 0 8px;
  color: var(--peach);
  font-family: var(--f-display);
  font-size: 2.1rem;
  font-stretch: 75%;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
}

.records {
  margin: 0;
  padding-left: 1.9em;
  font-size: 0.95rem;
  line-height: 1.45;
}

.records li {
  padding-block: 2px;
}

.records li::marker {
  color: var(--dust);
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
}

.records b {
  font-weight: 600;
}

.note {
  color: var(--dust);
  font-style: italic;
}

mark {
  padding: 0 1px;
  border-radius: 2px;
  background: var(--peach);
  color: var(--night);
}

/* ---------- Links ---------- */

.link-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.link-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.link-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.link-host {
  grid-column: 1;
  color: var(--dust);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.link-list a::after {
  content: "↗";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--peach);
  font-size: 1.1rem;
}

.link-list a:hover .link-name {
  color: var(--peach);
}

/* ---------- Contact ---------- */

.mail-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 1em 0 0;
}

.mail {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-stretch: 75%;
  font-weight: 700;
  line-height: 1.05;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.14em;
  overflow-wrap: anywhere;
}

.copy {
  padding: 5px 13px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.copy:hover {
  background: rgba(0, 0, 0, 0.08);
}

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 20px;
  margin: 0;
}

.facts dt {
  color: var(--dust);
}

.facts dd {
  margin: 0;
}

@media (max-width: 520px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .facts dd {
    margin-bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile {
    transition: none;
  }

  .tile:hover {
    transform: none;
  }
}
