/* Lessons With Patrick — piano teacher site styles */

:root {
  --color-bg: #f7f5f0;
  --color-surface: #ffffff;
  --color-text: #1f1f1f;
  --color-text-muted: #4a4a4a;
  --color-accent: #2f3d4a;
  --color-accent-soft: #4a6278;
  --color-highlight: #7a5c3e;
  --color-border: #ddd8ce;
  --color-key-white: #faf9f7;

  --font-heading: Georgia, "Times New Roman", Times, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 42rem;
  --radius: 0.5rem;
  --shadow: 0 2px 12px rgba(26, 26, 26, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--color-text);
  background:
    linear-gradient(180deg, var(--color-key-white) 0%, var(--color-bg) 100%);
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem 5rem;
}

.site-header {
  position: relative;
  text-align: center;
  padding: 1.25rem 1.25rem;
  margin-bottom: 0.75rem;
  background:
    linear-gradient(rgba(26, 32, 40, 0.72), rgba(26, 32, 40, 0.72)),
    url("images/pianoHeader.webp") center / cover no-repeat;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-header h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-key-white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.tagline {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.75vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.highlight {
  margin: 0.5rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.75vw, 1.25rem);
  font-weight: 600;
  color: #e0dbd2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.5rem 0.85rem;
  margin: -0.25rem 0 0;
  padding: 0.7rem 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.06);
}

.section-nav a {
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--color-accent);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  color: var(--color-highlight);
  text-decoration: underline;
}

section {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about::after {
  content: "";
  display: table;
  clear: both;
}

.about__portrait {
  float: left;
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 1.25rem 0.75rem 0;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow);
}

.about p {
  margin: 0;
}

.recordings {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recordings li + li {
  margin-top: 1.25rem;
}

.recordings .recording-title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--color-text);
}

.recordings audio {
  display: block;
  width: 100%;
}

.feature-photo {
  margin: 0 auto 2rem;
  max-width: 18rem;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-photo img {
  display: block;
  width: 100%;
  height: auto;
}

section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-accent);
}

section h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: 0.5rem auto 0;
  background: var(--color-highlight);
}

section p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

section p:last-child {
  margin-bottom: 0;
}

section[id] {
  scroll-margin-top: 3.25rem;
}

.contact-details {
  text-align: center;
  margin: 0;
}

.contact-details + .contact-details {
  margin-top: 0.75rem;
}

.contact-label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
}

.contact-value {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
}

.contact-value a {
  overflow-wrap: anywhere;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-highlight);
}

.schedule-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 12px rgba(26, 26, 26, 0.08);
}

.schedule-cta {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  background: var(--color-highlight);
  color: var(--color-key-white);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.schedule-cta:hover,
.schedule-cta:focus-visible {
  background: var(--color-accent);
  color: var(--color-key-white);
}

@media (min-width: 48rem) {
  .page {
    padding: 2rem 1.25rem 5rem;
  }

  .site-header {
    padding: 1.75rem 1.25rem;
  }

  .section-nav {
    justify-content: center;
    gap: 0.75rem 1.25rem;
    padding: 0.85rem 1.25rem;
  }

  .section-nav a {
    font-size: 1.125rem;
  }

  section[id] {
    scroll-margin-top: 3.75rem;
  }

  section {
    padding: 1.75rem 2rem;
  }

  .about__portrait {
    width: 8.5rem;
    height: 8.5rem;
  }
}
