/* SPDX-License-Identifier: CC0-1.0 */
/* honsic.ch - colours from the Undertow cover; contrast >= 7:1 for text, >= 4.5:1 for muted text */

:root {
  color-scheme: dark;
  --bg: #061820;
  --bg-raised: #0b2630;
  --line: #1d4652;
  --text: #e3f0f1;
  --muted: #a9c6ca;
  --accent: #74d4da;
  --accent-strong: #b5eef0;
  --focus: #ffd479;
  --radius: 0.5rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 40rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

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

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(120% 60% at 75% 0%, #0d3644 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent-strong); }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 1.6rem + 4vw, 4.2rem); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 300; }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); letter-spacing: 0.02em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--focus);
  color: #10161a;
  font-weight: 600;
  border-radius: var(--radius);
}
.skip:focus { top: 0.75rem; }

/* header / footer */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
}
.brand { display: inline-block; padding: 0.4rem 0; }
.brand img { width: auto; height: 1.5rem; }

.site-header ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header nav a {
  display: inline-block;
  padding: 0.5rem 0;               /* touch target >= 24 px (WCAG 2.5.8) */
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.site-header nav a:hover { color: var(--text); text-decoration: underline; }

.site-footer {
  max-width: 72rem;
  margin: 4rem auto 0;
  padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0.25rem 0; }

/* main */

main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.album {
  display: grid;
  gap: 2rem 3.5rem;
  padding-block: 1.5rem 2rem;
}

@media (min-width: 56rem) {
  .album {
    grid-template-columns: 28rem 1fr;
    align-items: start;
  }
  .cover { grid-row: span 2; position: sticky; top: 1.5rem; }
  .tracks, .listen { grid-column: 2; }
}

.cover img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 0.45);
  background: var(--bg-raised);   /* placeholder colour while the image loads */
}

.kicker {
  margin: 0 0 0.5rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.artist {
  display: block;
  margin-top: 0.35em;
  font-size: 0.32em;
  letter-spacing: 0.3em;
  color: var(--muted);
}
.lead { font-size: 1.15em; max-width: var(--measure); }
.album-text p { max-width: var(--measure); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  margin: 1.75rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}
.facts dt { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.facts dd { margin: 0.15rem 0 0; }
.facts + p { margin-top: 1.75rem; }   /* the Bandcamp button, clear of the facts */

.hint { color: var(--muted); font-size: 0.9rem; }

.tracks ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: track;
}
.tracks li {
  counter-increment: track;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.tracks li:first-child { border-top: 1px solid var(--line); }
.track-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.track-head::before {
  content: counter(track, decimal-leading-zero);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}
.track-title { flex: 1; font-weight: 600; }
.track-time { color: var(--muted); font-variant-numeric: tabular-nums; }
audio { display: block; width: 100%; height: 2.5rem; }

.button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.button:hover { background: var(--bg-raised); color: var(--accent-strong); }

.prose {
  max-width: 48rem;
  padding-block: 3rem 0;
}
main.prose { margin-inline: auto; padding-inline: var(--gutter); max-width: calc(48rem + 2 * var(--gutter)); }
.prose > p, .prose li p { max-width: var(--measure); }

.timeline {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}
.timeline li {
  position: relative;
  padding: 0 0 1.5rem 1.5rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0.35rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.era {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

address { font-style: normal; line-height: 1.7; }

@media (forced-colors: active) {
  .timeline li::before { forced-color-adjust: none; background: Canvas; border-color: CanvasText; }
  .button { border-color: ButtonText; }
}

@media print {
  body { background: #fff; color: #000; }
  .skip, .site-header nav, audio { display: none; }
  a { color: #000; }
}
