/* ==========================================================================
   Aidan Boyce — pianist & vocalist
   Palette: stage black / piano ivory / tungsten brass
   Type: Bodoni Moda (display) + Manrope (body)
   ========================================================================== */

:root {
  --ink:    #0d0b09;   /* stage black, warm undertone */
  --coal:   #17130f;   /* raised surfaces */
  --seam:   #2b241d;   /* hairlines, borders */
  --smoke:  #a89c8c;   /* muted warm-gray text */
  --ivory:  #f2ead9;   /* piano-key ivory, primary text */
  --brass:  #c9973f;   /* tungsten spotlight accent */
  --brass-bright: #e3b667;

  --font-display: "Bodoni Moda", "Didot", serif;
  --font-name: "Uncial Antiqua", "Bodoni Moda", serif; /* Aidan's name only */
  --font-body: "Manrope", system-ui, sans-serif;

  --container: 68rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

::selection { background: var(--brass); color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: -100vw;
  top: 0.5rem;
  background: var(--brass);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 0.5rem; }

/* ---------- shared ---------- */

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vh, 7.5rem) var(--gutter) 0;
}

.section-head { margin-bottom: clamp(2rem, 5vh, 3.5rem); }

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
}

.section-head h2 em {
  font-style: italic;
  color: var(--brass-bright);
}

.text-link {
  color: var(--brass-bright);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}
.text-link:hover { border-bottom-color: var(--brass-bright); }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border-radius: 2px;
  border: 1px solid var(--brass);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn-solid {
  background: var(--brass);
  color: var(--ink);
}
.btn-solid:hover { background: var(--brass-bright); border-color: var(--brass-bright); }

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: var(--seam);
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-bright); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  z-index: 50;
  background: linear-gradient(to bottom, rgba(13, 11, 9, 0.92), rgba(13, 11, 9, 0));
}

.nav-name {
  font-family: var(--font-name);
  font-size: 1.35rem;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav-dot { color: var(--brass); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--smoke);
  transition: color 160ms ease;
}
.nav-links a:hover { color: var(--ivory); }

.nav-links .nav-cta {
  color: var(--brass-bright);
  border: 1px solid var(--seam);
  padding: 0.5rem 1rem;
  border-radius: 2px;
}
.nav-links .nav-cta:hover { border-color: var(--brass); }

@media (max-width: 40rem) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0 var(--gutter);
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 8%, rgba(201, 151, 63, 0.16), transparent 65%),
    radial-gradient(ellipse 90% 40% at 50% 100%, rgba(0, 0, 0, 0.6), transparent 70%);
}

.hero-inner {
  position: relative;
  text-align: center;
  z-index: 1;
  padding: 6rem 0 4rem;
}

.hero-name {
  font-family: var(--font-name);
  font-weight: 400;
  font-size: clamp(2.8rem, 10.5vw, 7.5rem);
  line-height: 1.04;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-last {
  color: var(--brass-bright);
}

.hero-line {
  max-width: 30rem;
  margin: 1.75rem auto 0;
  color: var(--smoke);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 46rem) {
  .about-grid { grid-template-columns: 1fr; }
}

.portrait { margin: 0; }

.portrait img,
.portrait-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.portrait-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(201, 151, 63, 0.12), transparent 70%),
    var(--coal);
  border: 1px solid var(--seam);
}

.portrait-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 4rem;
  color: var(--brass);
}

.portrait-note {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
}

.about-copy p { color: var(--smoke); }
.about-copy p:first-child { color: var(--ivory); }

/* ---------- listen ---------- */

.listen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.media-wide { grid-column: 1 / -1; }

@media (max-width: 46rem) {
  .listen-grid { grid-template-columns: 1fr; }
}

.media-card video,
.media-card iframe,
.media-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--seam);
  border-radius: 2px;
  display: block;
}

.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(201, 151, 63, 0.08), transparent 70%),
    var(--coal);
}

.media-placeholder span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
}

/* ---------- shows ---------- */

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

.show {
  display: grid;
  grid-template-columns: 8rem 1fr auto auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.4rem 0.25rem;
  border-bottom: 1px solid var(--seam);
}

.show-date b { color: var(--brass); font-weight: 700; margin-right: 0.4rem; }
.show-venue { font-weight: 700; }
.show-city, .show-time { color: var(--smoke); }

@media (max-width: 40rem) {
  .show { grid-template-columns: 1fr auto; }
}

.show-empty {
  padding: 3rem 0.25rem;
  border-bottom: 1px solid var(--seam);
  text-align: center;
}

.show-empty p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.show-empty .show-empty-sub {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 1rem;
  color: var(--smoke);
}

/* ---------- book ---------- */

.section-book .book-lede {
  color: var(--smoke);
  max-width: 34rem;
}

.book-form {
  background: var(--coal);
  border: 1px solid var(--seam);
  border-radius: 2px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 40rem) {
  .field-row { grid-template-columns: 1fr; }
}

.field {
  display: block;
  margin-bottom: 1.25rem;
}

.field span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 0.45rem;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--seam);
  border-radius: 2px;
  color: var(--ivory);
  font: inherit;
  padding: 0.8rem 0.95rem;
  transition: border-color 160ms ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
}

.field textarea { resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: #5f564a; }

/* honeypot — visually gone, still in the DOM for bots */
.hp {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.book-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.form-status { color: var(--smoke); font-size: 0.9375rem; }
.form-status.ok { color: var(--brass-bright); }
.form-status.err { color: #d98873; }

/* ---------- footer & piano ---------- */

.footer {
  margin-top: clamp(4.5rem, 10vh, 7.5rem);
  border-top: 1px solid var(--seam);
  padding-top: 3rem;
}

.piano-invite {
  text-align: center;
  margin-bottom: 1.5rem;
}

.piano {
  position: relative;
  display: flex;
  justify-content: center;
  height: clamp(7rem, 16vw, 10.5rem);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.key {
  position: relative;
  border: none;
  cursor: pointer;
  padding: 0;
}

.key-white {
  flex: 1 1 0;
  max-width: 4.5rem;
  background: linear-gradient(to bottom, #e9e1cf, var(--ivory) 12%);
  border: 1px solid #1a150f;
  border-radius: 0 0 4px 4px;
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.12);
}

.key-white.down,
.key-white:active {
  background: linear-gradient(to bottom, #d8ccae, #e4d9bd 12%);
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 24px rgba(201, 151, 63, 0.45);
}

.key-black {
  position: absolute;
  top: 0;
  width: 2.6%;
  height: 62%;
  background: linear-gradient(to bottom, #211c15, #0a0805);
  border: 1px solid #000;
  border-radius: 0 0 3px 3px;
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.key-black.down,
.key-black:active {
  background: #2e2115;
  box-shadow: 0 0 20px rgba(201, 151, 63, 0.5);
}

.footer-row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-name {
  font-family: var(--font-name);
  font-size: 1.15rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--smoke);
}
.footer-links a:hover { color: var(--brass-bright); }

.footer-fine {
  font-size: 0.8125rem;
  color: var(--smoke);
}

/* ---------- motion ---------- */

/* Hidden-until-scrolled applies only when JS is running (html.js);
   without JS everything stays visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .text-link, .nav-links a { transition: none; }
}
