/* ==========================================================
   Pianist CD site – shared stylesheet
   Designed for WCAG 2.1 AA contrast and mobile-first layout.
   ========================================================== */

:root {
  --ink: #14181f;          /* dark background / text on light */
  --ink-soft: #2b3340;
  --cream: #f7f3ea;        /* light background */
  --paper: #ffffff;
  --text-on-dark: #f4efe6;
  --gold: #e6b95c;         /* use on dark backgrounds only */
  --link-on-light: #7a3b00;
  --focus: #ffbf47;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;     /* 18px base */
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.75rem); }
h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; }

a { color: var(--link-on-light); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--ink);
}

/* Screen-reader-only text */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--gold);
  color: var(--ink);
  padding: .75rem 1rem;
  font-weight: 700;
  z-index: 100;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { top: 0; }

.wrap { width: min(100% - 2rem, 62rem); margin-inline: auto; }

/* ---------- Dark areas (header, hero, footer) ---------- */
.dark { background: var(--ink); color: var(--text-on-dark); }
.dark a { color: var(--gold); }

.site-header { padding: 1rem 0; border-bottom: 1px solid var(--ink-soft); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .75rem 1.5rem;
}
.brand {
  font-size: 1.25rem; font-weight: 700;
  color: var(--text-on-dark) !important; text-decoration: none;
}

nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem 1.25rem;
}
nav a {
  display: inline-block; padding: .6rem .25rem; min-height: 44px;
  font-weight: 700; text-decoration: none;
}
nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
nav a[aria-current="page"] {
  color: var(--text-on-dark);
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px;
}

/* ---------- Hero ---------- */
.hero { padding: 4rem 0 4.5rem; }
.hero p { max-width: 38rem; font-size: 1.25rem; }
.eyebrow {
  font-family: system-ui, sans-serif; text-transform: uppercase;
  letter-spacing: .12em; font-size: .9rem; color: var(--gold); margin-bottom: .75rem;
}

.page-title { padding: 3rem 0 2.5rem; }
.page-title h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; min-height: 48px;
  padding: .8rem 1.5rem;
  font-family: system-ui, sans-serif; font-size: 1rem; font-weight: 700;
  text-align: center; text-decoration: none;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--ink) !important; }
.btn-gold:hover { background: #f2cc7d; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 3.5rem 0; }
.section-about { padding: 3.5rem 0 0 0; }
.section-alt { background: var(--paper); }
.narrow { max-width: 44rem; }

/* ---------- CD cards ---------- */
.cd-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.cd-card {
  background: var(--paper); border: 1px solid #cfc7b5;
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
}
.cd-cover { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.cd-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.cd-meta { font-family: system-ui, sans-serif; font-size: .95rem; color: #4a4a4a; margin-bottom: .75rem; }
.cd-body .btn { margin-top: 0; margin-bottom: 1rem; }
.price { font-family: system-ui, sans-serif; font-weight: 700; font-size: 1.25rem; margin-bottom: 1rem; }

/* Track list on the CDs page */
.tracks { font-size: 1rem; padding-left: 1.25rem; margin: 0 0 1.25rem; }

/* ---------- Contact ---------- */
address { font-style: normal; }
.contact-list { padding-left: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { padding: 2rem 0; font-size: 1rem; }
.site-footer p { margin: 0 0 .5rem; }
.site-footer ul { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-footer li a { display: inline-block; padding: .5rem 0; min-height: 44px; }

/* ---------- Larger screens ---------- */
@media (min-width: 40rem) {
  .hero { padding: 6rem 0 6.5rem; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 39.99rem) {
  .cd-grid { grid-template-columns: 1fr; }
}

/* ---------- User preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
}
