/* Music City Piano
   ---------------------------------------------------------------------------
   Rebuilt 2026-11-19. Replaces the page builder's exported stylesheet.
   Copy is unchanged; this file changes type, colour and layout only.

   Type. Optima is the brand face, the one the logo is drawn in, and it is a
   system font rather than a webfont: Monotype licenses it for the desktop and
   a webfont licence is a separate purchase. So it is asked for first and the
   stack degrades deliberately rather than by accident:

       Optima      macOS and iOS, the real thing
       Candara     Windows, humanist with a comparable flare
       Alegreya Sans  self hosted, SIL OFL, for everything else

   Without that third step a Linux or Android visitor falls through to Arial,
   which is the one outcome a premium room cannot afford.

   Colour is taken off the instruments rather than invented: ebony, the warm
   off white of old ivory, and a single brass note for links and rules.
   --------------------------------------------------------------------------- */

@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/alegreya-sans-400-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/alegreya-sans-500-latin.woff2) format("woff2");
}

:root {
  color-scheme: light;

  --ink: #14110f;
  --ink-2: #4a443c;
  --ink-3: #7d7569;
  --paper: #f6f3ed;
  --paper-2: #ebe6dc;
  --card: #fffdf8;
  --rule: #ded7c9;
  --brass: #8a6a2f;
  --ebony: #14110f;

  --face: Optima, "Optima nova", Candara, "Alegreya Sans", "Gill Sans",
          "Lucida Grande", sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 66ch;
  --band: clamp(52px, 7vw, 104px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--face);
  font-size: clamp(16px, 0.95rem + 0.25vw, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--brass); }
a:hover { color: var(--ink); }

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

h1, h2, h3, h4 {
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

p { margin: 0 0 1.1em; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--rule);
}

/* The frosted backing is drawn by a pseudo-element rather than by the header
   itself. backdrop-filter makes an element the containing block for every
   position:fixed descendant, and the phone menu is one: on the header it
   measured the slide-in panel against the 72px header instead of the screen,
   so the panel's background was a strip at the top, its links fell outside
   it onto the page, and the panel parked off the right edge added 292px of
   horizontal scroll to every page. A pseudo-element has no descendants, so
   the blur cannot capture the menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 15px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 25px; width: auto; }

.nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  border-radius: 2px;
}
.nav a:hover { color: var(--brass); }
.nav .active a { color: var(--ink); }

/* The round button only exists on the phone layout. */
.burger { display: none; }
.menu-overlay { display: none; }

/* ------------------------------------------------------------------ main */

.site-main { padding-bottom: var(--band); }

.section { padding-top: var(--band); }
.section-tight { padding-top: clamp(28px, 4vw, 52px); }

.eyebrow {
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0;
}

.band {
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
  padding-block: var(--band);
  margin-top: var(--band);
}
.band + .band { margin-top: 0; border-top: 0; }

/* Home: the room on one side, the words on the other. */
.hero { padding-top: clamp(30px, 4vw, 56px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 60px);
  /* Top aligned, not centred: the copy column is much taller than the photo,
     and centring leaves a gap above the picture that reads as a mistake. */
  align-items: start;
}
.hero-grid img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 30px 60px -38px rgba(20, 17, 15, 0.55);
}
.hero-copy p { color: var(--ink-2); }
.hero-copy p:first-of-type {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  color: var(--ink);
}

/* About: the three things the room is used for. */
.three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(26px, 3.4vw, 50px);
}
.three > div { min-width: 0; }
.three h2 {
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  /* Two of the three headings wrap to two lines and one does not, so the rules
     landed at different heights. Reserve the taller of the two. */
  min-height: calc(2 * 1.15em + 12px);
}
.three p { font-size: 15.5px; color: var(--ink-2); }

/* About: who runs it. */
.bio {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}
.bio img { width: 100%; border-radius: 2px; }
.bio p { color: var(--ink-2); }

/* Contact. */
.page-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 8px;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: clamp(26px, 3.4vw, 44px);
}
.contact-aside { font-size: 15.5px; color: var(--ink-2); line-height: 2; }

/* ------------------------------------------------------------------ form */

.contact-form {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: clamp(22px, 3.2vw, 38px);
}

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 8px;
}
.form-field .required { margin-left: 3px; }

.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 12px 14px;
}
.form-field textarea { min-height: 128px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; }

.field-error {
  margin: 7px 0 0;
  font-size: 13.5px;
  color: #8c2f1e;
  min-height: 0;
}
.field-error:empty { display: none; }

.turnstile-slot:not(:empty) { margin-bottom: 20px; }

.form-actions { margin-top: 4px; }

.btn-send {
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.06em;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 2px;
  padding: 14px 32px;
  cursor: pointer;
}
.btn-send:hover:not(:disabled) { background: var(--brass); }
.btn-send:disabled { opacity: 0.45; cursor: not-allowed; }

.form-status { margin: 16px 0 0; font-size: 15px; color: var(--brass); }
.form-status.error { color: #8c2f1e; }

.contact-fallback { margin-top: 18px; font-size: 15px; color: var(--ink-2); }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--ebony);
  color: #ece7dd;
  padding-block: clamp(40px, 5.5vw, 68px);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}
.site-footer img { height: 62px; width: auto; }
.footer-details { font-size: 14.5px; line-height: 1.95; color: #9b9284; }
.footer-details a { color: #ece7dd; text-decoration: none; }
.footer-details a:hover { color: #fff; text-decoration: underline; }
.footer-details .fine { font-size: 13px; }

/* ----------------------------------------------------------- phone layout */

@media (max-width: 768px) {
  /* The one line lockup is about nine times as wide as it is tall, so at the
     header height used on a desktop it runs into the edge beside the button. */
  .logo img { height: 19px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid figure { order: -1; margin: 0; }
  .bio { grid-template-columns: 1fr; }
  .bio img { max-width: 190px; }
  .contact-grid { grid-template-columns: 1fr; }

  .burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    order: -1;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 50%;
    cursor: pointer;
  }
  .burger span {
    display: block;
    height: 1.5px;
    background: var(--ink);
    border-radius: 1px;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    padding: 88px 28px 28px;
    background: var(--card);
    border-left: 1px solid var(--rule);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.32s;
    z-index: 40;
  }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a { font-size: 18px; padding: 13px 4px; }

  .menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20, 17, 15, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s, visibility 0.32s;
    z-index: 30;
  }

  .menu-open .nav { transform: translateX(0); visibility: visible; }
  .menu-open .menu-overlay { opacity: 1; visibility: visible; }
  .menu-open body { overflow: hidden; }

  .footer-inner { flex-direction: column; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------- page level specifics */

.hero-grid { margin-top: clamp(26px, 3.4vw, 46px); }

.page-missing { text-align: center; padding-bottom: var(--band); }
.page-missing p { margin: 22px auto 0; max-width: none; }

.btn-home {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--brass);
  border-radius: 2px;
  padding: 13px 28px;
}
.btn-home:hover { background: var(--brass); color: var(--paper); }

.hero-grid figure { margin: 0; }
