/* ------------------------------------------------------------------
   John Cornish — personal site stylesheet
   Palette:
     page frame       #1A1520  (near-black with purple undertone)
     content column   #EAECEE  (soft cool gray)
     body text        #1A1A1A  (near-black)
     heading / accent #4A2545  (eggplant)
     link / hover     #B8914A  (muted gold)
------------------------------------------------------------------ */

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

html,
body {
  margin: 0;
  padding: 0;
}

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

/* Base typography -------------------------------------------------- */
body {
  font-family: "EB Garamond", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.65;
  color: #1A1A1A;
  background-color: #1A1520;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  color: #4A2545;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.75rem;
  font-weight: 500;
  margin-top: 0.2em;
}

h2 {
  font-size: 2rem;
  margin-top: 2em;
  padding-bottom: 0.25em;
  border-bottom: 1px solid #4A2545;
}

h3 {
  font-size: 1.4rem;
  margin-top: 1.6em;
  color: #4A2545;
}

p {
  margin: 0 0 1.25em;
}

/* Body-text links: muted gold, subtle underline, eggplant on hover. */
a {
  color: #B8914A;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: rgba(184, 145, 74, 0.55);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover,
a:focus {
  color: #4A2545;
  text-decoration-color: #4A2545;
}

hr {
  border: 0;
  border-top: 1px solid #4A2545;
  margin: 2em 0;
}

blockquote {
  margin: 1.5em 0;
  padding-left: 1.25em;
  border-left: 2px solid #B8914A;
  font-style: italic;
  color: #3a3a3a;
}

/* Layout shell ----------------------------------------------------- */
.site-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* The <main> element IS the centered content column, with the
   off-white background and internal padding. The dark frame is body.
   Selector is scoped to main.site-wrap so its padding beats the
   generic .site-wrap rule above. */
main.site-wrap {
  background-color: #EAECEE;
  padding: 2.5rem 1.5rem 3rem;
}

/* Header & navigation --------------------------------------------- */
.site-header {
  background-color: #4A2545;
  color: #EAECEE;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Two-line wordmark ---------------------------------------------- */
.site-title {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  color: #EAECEE;
  text-decoration: none;
  border: 0;
}

.site-title:hover,
.site-title:focus {
  color: #EAECEE;
  text-decoration: none;
}

.site-title:hover .wordmark-name,
.site-title:focus .wordmark-name {
  color: #B8914A;
}

.wordmark-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #EAECEE;
  transition: color 0.2s ease;
}

.wordmark-tag {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(234, 236, 238, 0.85);
  margin-top: 0.2em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(234, 236, 238, 0.45);
  color: #EAECEE;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  letter-spacing: 0.05em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #EAECEE;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #B8914A;
  border-bottom-color: #B8914A;
}

.site-nav a[aria-current="page"] {
  color: #EAECEE;
  border-bottom-color: #B8914A;
}

/* Home / bio page -------------------------------------------------- */
main.site-wrap.home {
  padding-top: 2rem;
}

.hero {
  text-align: center;
  padding: 0;
}

.headshot {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(62, 31, 59, 0.2);
}

.tagline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  color: #4A2545;
  margin: 0 0 2.5rem;
}

.bio {
  text-align: left;
}

.ornament {
  text-align: center;
  color: #B8914A;
  font-size: 1.05rem;
  line-height: 1;
  margin: 3rem 0;
  letter-spacing: 0.05em;
}

/* Curriculum Vitae ------------------------------------------------- */
.cv-section {
  margin-bottom: 2.75rem;
}

/* Italic subsection labels (Higher Education, Tenor/Baritone, etc.) */
.cv-subsection {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: #4A2545;
  margin: 1.5em 0 0.75em;
  letter-spacing: 0.01em;
}

.cv-entry {
  margin-bottom: 1.5rem;
}

.cv-entry.compact {
  margin-bottom: 1rem;
}

/* Title line — bold, with date pushed to the right by flex. */
.cv-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;
}

.cv-entry h3 {
  font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0;
  line-height: 1.35;
  border-bottom: 0;
  padding-bottom: 0;
}

.cv-date {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  color: #555;
  white-space: nowrap;
  flex-shrink: 0;
}

.cv-entry p {
  margin: 0.1em 0 0;
  line-height: 1.5;
}

.cv-entry .cv-note {
  font-style: italic;
  color: #3a3a3a;
  margin-top: 0.3em;
}

/* Compositions / performance single-line entries */
.cv-work,
.cv-perf {
  margin: 0 0 0.45em;
  line-height: 1.5;
}

.cv-entry .cv-work {
  margin-bottom: 0;
}

.cv-bullets {
  padding-left: 1.25rem;
  margin: 0.5em 0 0;
}

.cv-bullets li {
  margin-bottom: 0.4em;
  line-height: 1.5;
}

/* Videos ----------------------------------------------------------- */
.video-group {
  margin-top: 3.75rem;
}

.video-group:first-of-type {
  margin-top: 2rem;
}

.video-group-heading {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  color: #3D2E7C;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  border-bottom: 0;
  padding-bottom: 0;
}

.video-group-rule {
  width: 120px;
  height: 0;
  border: 0;
  border-top: 1px solid #B8914A;
  margin: 1rem auto 2rem;
}

.video-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 1.75rem;
  margin-top: 0;
}

.video-tile {
  margin: 0;
}

.video-tile .video-facade {
  margin: 0;
}

.video-tile-title {
  font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0.8em 0 0.2em;
  line-height: 1.35;
  border-bottom: 0;
  padding-bottom: 0;
  letter-spacing: 0.01em;
}

.video-tile-tag {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-variant: small-caps;
  font-size: 0.95em;
  letter-spacing: 0.08em;
  color: #6a5f70;
  margin-left: 0.15em;
}

.video-tile-caption {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.95rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #1A1A1A;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Compositions ---------------------------------------------------- */
.comp {
  margin: 0 0 0.5rem;
}

.comp-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #4A2545;
  margin: 0 0 0.25em;
  line-height: 1.25;
  border-bottom: 0;
  padding-bottom: 0;
  letter-spacing: 0.01em;
}

.comp-title .comp-meta {
  font-weight: 400;
  font-style: italic;
  font-size: 0.78em;
  color: #555;
  letter-spacing: 0;
}

.comp-publisher {
  font-family: "EB Garamond", Georgia, serif;
  color: #4A2545;
  font-size: 1rem;
  margin: 0 0 1.25em;
  letter-spacing: 0.02em;
}

.comp-publisher a {
  color: #4A2545;
}

.comp-note {
  margin: 0 0 1.25em;
}

.comp-buy {
  margin: 1.25em 0 0;
}

.comp-buy a {
  display: inline-block;
  background: #4A2545;
  color: #EAECEE;
  padding: 0.55em 1.2em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.comp-buy a:hover,
.comp-buy a:focus {
  background: #B8914A;
  color: #1A1A1A;
}

.comp-divider {
  width: 120px;
  height: 0;
  border: 0;
  border-top: 1px solid #B8914A;
  margin: 3.5rem auto;
}

/* Small-caps / spaced uppercase for hymn tune names
   (convention in music writing — e.g., ST. MARGARET, LAUDA ANIMA). */
.tune-name {
  letter-spacing: 0.08em;
  font-size: 0.95em;
}

/* Video facade — displays a thumbnail + play button. Clicking swaps
   the facade for a real nocookie iframe. Avoids loading 11 iframes. */
.video-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1A1A1A;
  overflow: hidden;
  border: 0;
  padding: 0;
  margin: 1.25em 0 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.video-facade .video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.video-facade:hover .video-thumb,
.video-facade:focus-visible .video-thumb {
  opacity: 0.85;
}

.video-facade .video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: #B8914A;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background 0.2s ease;
}

.video-facade:hover .video-play,
.video-facade:focus-visible .video-play {
  background: rgba(184, 145, 74, 0.75);
}

.video-facade:focus-visible {
  outline: 2px solid #B8914A;
  outline-offset: 3px;
}

.video-facade .video-play svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* Reusable section heading (deep violet, centered, muted-gold rule)
   Shared by the Performances page group headings and the Contact page
   section headings. */
.section-heading {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  color: #3D2E7C;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  border-bottom: 0;
  padding-bottom: 0;
}

.section-rule {
  width: 120px;
  height: 0;
  border: 0;
  border-top: 1px solid #B8914A;
  margin: 1rem auto 2rem;
}

/* Contact ---------------------------------------------------------- */
.contact-section {
  margin-top: 3.75rem;
}

.contact-intro {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.contact-intro a {
  color: #3D2E7C;
  text-decoration-color: rgba(61, 46, 124, 0.45);
}

.contact-intro a:hover,
.contact-intro a:focus {
  color: #4A2545;
  text-decoration-color: #4A2545;
}

/* Form ------------------------------------------------------------- */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.contact-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.contact-field label {
  font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.35em;
  letter-spacing: 0.01em;
}

.contact-field input,
.contact-field textarea {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.05rem;
  color: #1A1A1A;
  background: #FBFAF8;
  border: 1px solid #B8B2B8;
  padding: 0.55em 0.7em;
  line-height: 1.5;
  border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field textarea {
  resize: vertical;
  min-height: 9em;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #3D2E7C;
  box-shadow: 0 0 0 2px rgba(61, 46, 124, 0.18);
}

.contact-submit {
  display: inline-block;
  background: #3D2E7C;
  color: #EAECEE;
  padding: 0.65em 1.6em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-submit:hover,
.contact-submit:focus {
  background: #B8914A;
  color: #1A1A1A;
  outline: none;
}

.contact-thanks {
  max-width: 560px;
  margin: 1rem auto 0;
  padding: 1.25em 1.25em;
  border-left: 2px solid #B8914A;
  font-style: italic;
  color: #3a3a3a;
  background: rgba(184, 145, 74, 0.08);
}

/* Elsewhere list --------------------------------------------------- */
.elsewhere-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.elsewhere-list li {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

.elsewhere-list .elsewhere-label {
  font-family: "EB Garamond", Georgia, serif;
  color: #555;
  margin-right: 0.35em;
}

.elsewhere-list a {
  color: #3D2E7C;
  text-decoration-color: rgba(61, 46, 124, 0.45);
}

.elsewhere-list a:hover,
.elsewhere-list a:focus {
  color: #4A2545;
  text-decoration-color: #4A2545;
}

/* Page closing (church line) -------------------------------------- */
.page-closing {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  font-style: italic;
  margin: 0 0 1rem;
  line-height: 1.55;
}

.page-closing a {
  color: #555;
  text-decoration-color: rgba(85, 85, 85, 0.45);
  font-style: italic;
}

.page-closing a:hover,
.page-closing a:focus {
  color: #3D2E7C;
  text-decoration-color: #3D2E7C;
}

/* Footer ----------------------------------------------------------- */
.site-footer {
  background-color: #4A2545;
  color: #EAECEE;
  padding: 1.5rem 0;
  font-size: 0.95rem;
  text-align: center;
  font-style: italic;
  margin-top: 0;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #EAECEE;
  text-decoration-color: rgba(234, 236, 238, 0.5);
}

.site-footer a:hover,
.site-footer a:focus {
  color: #B8914A;
  text-decoration-color: #B8914A;
}

/* Responsive ------------------------------------------------------ */
@media (max-width: 640px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.2rem; }

  .header-inner {
    padding: 0.9rem 0;
  }

  .wordmark-name { font-size: 1.68rem; }
  .wordmark-tag  { font-size: 0.86rem; letter-spacing: 0.2em; }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    flex-basis: 100%;
    display: none;
    margin-top: 0.75rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0;
  }

  .site-nav li {
    border-bottom: 1px solid rgba(234, 236, 238, 0.12);
  }

  .site-nav li:last-child {
    border-bottom: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.6rem 0;
  }

  .headshot {
    width: 240px;
    height: 240px;
  }

  .contact-list .label {
    display: block;
    margin-bottom: 0.15em;
  }

  .video-tiles {
    grid-template-columns: 1fr;
  }

  .video-group-heading { font-size: 1.6rem; }
}
