/* Ben Mader Piano — single page.
 *
 * The token block below is the design system's `tokens/` directory, inlined.
 * A five-block page is not worth five extra requests, and the tokens change
 * only when the design system does. Source of truth:
 * `ben-mader-piano-design-system-57d15741-7d71-484f-bc74-31c295e21d4f`.
 */

:root {
  /* Colour — a gallery palette: warm-tinted neutrals, never cool grey. */
  --green-900: #0a1f16;
  --green-800: #0f2b1f;
  --green-700: #163d2a;
  --green-600: #1f5238;
  --terracotta-700: #7e4229;
  --terracotta-600: #a4573a;
  --terracotta-500: #bf6f4e;
  --warm-white: #faf7f2;
  --warm-100: #f2ede4;
  --warm-200: #ede6d9;
  --warm-300: #ded5c5;
  --warm-400: #c7bca8;
  --warm-600: #8a8375;
  --warm-800: #5c574c;
  --warm-950: #1c1a16;
  --ink: #12100d;
  --white: #ffffff;

  --surface-page: var(--warm-white);
  --surface-sunken: var(--warm-100);
  --border-subtle: var(--warm-300);
  --border-default: var(--warm-400);
  --text-primary: var(--warm-950);
  --text-secondary: var(--warm-800);
  --text-muted: var(--warm-600);
  --text-inverse: var(--warm-white);
  --accent-primary: var(--green-800);
  --accent-secondary: var(--terracotta-600);
  --focus-ring: var(--green-700);

  /* Type — geometric sans for display, humanist sans for body, and a
   * classical serif reserved for composer names and the tagline. */
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --font-accent: "Petrona", Georgia, serif;
  --tracking-tight: -0.02em;
  --tracking-eyebrow: 0.18em;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Spacing — 4px base scale. */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --container-max: 1200px;

  --duration-fast: 120ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);

  /* Page gutter. Tracks the two widths the mockup pins down — 28px at 390px,
   * 96px at 1180px — and interpolates between them. */
  --gutter: clamp(28px, 8vw, 96px);
}

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

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

p {
  margin: 0;
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard);
}

/* Hover shifts colour only — no fades, no scaling. */
a:hover {
  color: var(--accent-secondary);
}

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

/* The evergreen fields need a ring that is visible against them. */
.band--evergreen :focus-visible {
  outline-color: var(--terracotta-500);
}

.band {
  padding: clamp(48px, 8vw, 96px) var(--gutter);
}

.band--evergreen {
  background: var(--accent-primary);
  color: var(--text-inverse);
}

.band--sunken {
  background: var(--surface-sunken);
  border-block: 1px solid var(--border-subtle);
}

/* The content column. Named explicitly rather than `.band > *` so the 404
 * page, whose children are laid out directly by the band, is left alone. */
.hero__inner,
.about__inner,
.repertoire__inner,
.venues__inner,
.contact__inner {
  max-width: var(--container-max);
  margin-inline: auto;
}

/* The small uppercase label that opens each block. */
.eyebrow {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}

.band--evergreen .eyebrow {
  color: var(--terracotta-500);
}

/* Hero */

.hero {
  padding-block: clamp(64px, 10vw, 112px) clamp(56px, 8vw, 96px);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vw, 28px);
}

.hero__name {
  font-size: clamp(3.25rem, 9vw, 6.5rem);
  font-weight: var(--weight-extrabold);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

/* The name sits on two lines on a phone, one line from tablet up. */
@media (min-width: 700px) {
  .hero__break {
    display: none;
  }
}

.hero__tagline {
  max-width: 640px;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.1875rem, 2.2vw, 1.625rem);
  line-height: 1.45;
  color: var(--warm-200);
}

/* Why I play */

.about__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* The measure is set on the paragraphs, not the wrapper, so that a narrow
 * column still starts at the page gutter instead of centring itself. */
.about__lead,
.about__note {
  max-width: 600px;
}

.about__lead {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.6;
}

.about__note {
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* What I play */

.repertoire__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.repertoire__body {
  max-width: 820px;
  font-size: clamp(1.1875rem, 2vw, 1.5rem);
  line-height: 1.6;
}

/* Composer names carry the accent serif, as the design system reserves it
 * for piece titles and program notes. */
.composer {
  font-family: var(--font-accent);
  font-style: italic;
}

/* Where I play */

.venues__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.venues__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-subtle);
}

.venues__item {
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}

.venues__name {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.3;
}

.venues__role {
  margin-top: var(--space-2);
  font-size: clamp(0.875rem, 1.3vw, 1rem);
  color: var(--text-secondary);
}

.venues__rest {
  max-width: 720px;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* The two churches sit side by side once there is room for both names. */
@media (min-width: 860px) {
  .venues__list {
    grid-template-columns: 1fr 1fr;
  }

  .venues__item {
    padding-block: 28px;
  }

  .venues__item:first-child {
    padding-right: var(--space-6);
    border-right: 1px solid var(--border-subtle);
  }

  .venues__item:last-child {
    padding-left: var(--space-6);
  }
}

/* Get in touch */

.contact__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact__prompt {
  max-width: 560px;
  font-weight: var(--weight-bold);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: var(--tracking-tight);
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* On a phone the two details are full-width tap targets; from tablet up they
 * become underlined type set beside the prompt. */
.contact__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 20px;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 1.0625rem;
}

.contact__link--email {
  background: var(--warm-white);
  color: var(--accent-primary);
}

.contact__link--email:hover {
  background: var(--terracotta-500);
  color: var(--warm-white);
}

.contact__link--phone {
  border: 1px solid rgb(250 247 242 / 0.4);
}

.contact__link--phone:hover {
  color: var(--terracotta-500);
  border-color: var(--terracotta-500);
}

@media (min-width: 860px) {
  .contact__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-8);
    flex-wrap: wrap;
  }

  .contact__intro {
    gap: 20px;
  }

  .contact__links {
    gap: 14px;
  }

  .contact__link {
    display: inline-block;
    min-height: 0;
    padding: 0 0 6px;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    border: 0;
    border-bottom: 1px solid rgb(250 247 242 / 0.35);
  }

  .contact__link--email,
  .contact__link--email:hover,
  .contact__link--phone:hover {
    background: none;
    color: var(--terracotta-500);
    border-bottom-color: var(--terracotta-500);
  }

  .contact__link--email {
    color: var(--warm-white);
    border-bottom-color: rgb(250 247 242 / 0.35);
  }
}

/* Footer */

.footer {
  padding: clamp(22px, 3vw, 28px) var(--gutter);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: var(--container-max);
  margin-inline: auto;
}

/* Not found */

.notfound {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-5);
  min-height: 100vh;
}

.notfound__heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--weight-extrabold);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
}

.notfound__body {
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  color: var(--warm-200);
}

.notfound__link {
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  padding-bottom: 6px;
  border-bottom: 1px solid rgb(250 247 242 / 0.35);
}

.notfound__link:hover {
  color: var(--terracotta-500);
  border-bottom-color: var(--terracotta-500);
}

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