/* ==========================================================================
   Lake Michigan Music — styles.css
   One stylesheet for the whole site. Every color, font and size the site
   uses is defined once in the block below ("tokens"). Change a value here
   and it changes everywhere.
   ========================================================================== */

:root {
  /* Page background */
  --color-bg: #FFFFFF;
  /* Main text color (also used for links, borders on buttons) */
  --color-text: #111111;
  /* Secondary text: captions, placeholder lines, attribution */
  --color-muted: #6B6B6B;
  /* Hairline: thin dividing lines and photo frames */
  --color-line: #E5E5E5;

  /* Display font: headings and the wordmark */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  /* Body font: everything else */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Body text size and line height */
  --text-size: 1.0625rem;      /* 17px */
  --text-leading: 1.7;
  /* Small uppercase type: navigation, captions, labels */
  --small-size: 0.8rem;
  --small-tracking: 0.12em;
  /* Page titles (inner pages) */
  --title-size: 2.5rem;
  /* Section names inside a page */
  --section-size: 1.6rem;

  /* Widths */
  --width-site: 1100px;        /* widest anything gets */
  --width-home: 1000px;        /* the homepage three-column area */
  --width-text: 640px;         /* a comfortable reading column */
  --gutter: 1.25rem;           /* side padding on small screens */

  /* Vertical space between major blocks */
  --space-section: 72px;       /* mobile; raised to 120px on desktop below */
  --space-block: 2.5rem;
}

@media (min-width: 960px) {
  :root {
    --space-section: 120px;
    --text-size: 1.125rem;     /* 18px on desktop */
    --title-size: 2.75rem;
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-size);
  line-height: var(--text-leading);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

h1 { font-size: var(--title-size); }
h2 { font-size: var(--section-size); margin-top: var(--space-block); }
h3 { font-size: 1.25rem; margin-top: 2rem; }

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 1px; opacity: 0.7; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--color-text);
  outline-offset: 3px;
}

ul, ol { padding-left: 1.2em; margin: 0 0 1.25em; }
li { margin-bottom: 0.4em; }

hr {
  border: 0;
  border-top: 1px solid var(--color-line);
  margin: 0;
}

/* Hide visually but keep for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--color-bg);
  padding: 0.5rem 0.75rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Reusable classes
   -------------------------------------------------------------------------- */

/* Centered container with side gutters */
.wrap {
  width: 100%;
  max-width: var(--width-site);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* A reading-width column for body text */
.text {
  max-width: var(--width-text);
}

/* Small uppercase letterspaced type */
.small-caps {
  font-size: var(--small-size);
  letter-spacing: var(--small-tracking);
  text-transform: uppercase;
  font-weight: 400;
}

/* Secondary grey text */
.muted { color: var(--color-muted); }

/* Grey italic "to come" line on long-form pages */
.to-come {
  color: var(--color-muted);
  font-style: italic;
}

/* A quiet text link with an arrow (the arrow is typed in the HTML) */
.quiet-link {
  text-decoration: none;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 2px;
}
.quiet-link:hover { border-bottom-color: var(--color-text); opacity: 1; }

/* Framed photo: thin hairline with a little white padding inside */
.framed {
  border: 1px solid var(--color-line);
  padding: 4px;
  background: var(--color-bg);
}
.framed img { width: 100%; }

/* Photo caption */
.caption {
  color: var(--color-muted);
  font-size: var(--small-size);
  letter-spacing: 0.02em;
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* Placeholder slot for a photo that has not arrived yet.
   Same frame as a real photo; shows a short grey note inside. */
.photo-slot {
  border: 1px solid var(--color-line);
  padding: 4px;
  background: var(--color-bg);
}
.photo-slot .photo-slot-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: color-mix(in srgb, var(--color-line) 35%, var(--color-bg));
  color: var(--color-muted);
  font-size: var(--small-size);
  letter-spacing: var(--small-tracking);
  text-transform: uppercase;
  padding: 1rem;
}
.photo-slot[data-ratio="4-5"] .photo-slot-inner { aspect-ratio: 4 / 5; }
.photo-slot[data-ratio="3-2"] .photo-slot-inner { aspect-ratio: 3 / 2; }
.photo-slot[data-ratio="21-9"] .photo-slot-inner { aspect-ratio: 21 / 9; }

/* Event / session list: one line per entry, hairline between */
.event-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--color-line);
}
.event-list li {
  padding: 0.9rem 0;
  margin: 0;
  border-bottom: 1px solid var(--color-line);
}
.event-list .event-date {
  display: block;
  font-size: var(--small-size);
  letter-spacing: var(--small-tracking);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.2rem;
}
.event-list .placeholder { color: var(--color-muted); }

/* Quote block (homepage words column). Thin rule on the left edge. */
.quote {
  border-left: 1px solid var(--color-line);
  padding-left: 1.25rem;
  margin: 0 0 2rem;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.65;
}
.quote p { margin-bottom: 0.6rem; }
.quote .attribution {
  color: var(--color-muted);
  font-size: var(--small-size);
  letter-spacing: 0.04em;
}
.quote.is-template { color: var(--color-muted); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header { background: var(--color-bg); }

/* Row 1: logo (home) or wordmark (inner pages) */
.masthead {
  text-align: center;
  padding: 2.5rem var(--gutter) 2rem;
}
.masthead .logo-link { display: inline-block; text-decoration: none; }
.masthead .logo {
  width: 85%;
  max-width: 420px;
  margin: 0 auto;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
}
.wordmark:hover { opacity: 1; }

/* Homepage fallback used only until the script logo is placed: a larger wordmark and the tagline */
.wordmark--home {
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}
.tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0.9rem 0 0;
}
@media (min-width: 600px) {
  .wordmark--home { font-size: 2rem; letter-spacing: 0.2em; }
}
@media (min-width: 960px) {
  .wordmark--home { font-size: 2.4rem; }
}

@media (min-width: 960px) {
  .masthead { padding: 4rem var(--gutter) 3rem; }
  .masthead--home { padding: 5rem var(--gutter) 4rem; }
}

/* Row 2: navigation. Hairline above and below; sticks to the top on scroll. */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
}

/* Mobile "Menu" toggle (plain text, no icon) */
.menu-toggle {
  appearance: none;
  background: none;
  border: 0;
  font: inherit;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.75rem 0;
  font-size: var(--small-size);
  letter-spacing: var(--small-tracking);
  text-transform: uppercase;
  font-weight: 400;
}

/* The menu itself */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  text-decoration: none;
  display: block;
}
.nav-list > li > a,
.nav-list > li > button {
  font-size: var(--small-size);
  letter-spacing: var(--small-tracking);
  text-transform: uppercase;
  font-weight: 400;
  color: var(--color-text);
}
.nav-list button {
  appearance: none;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.nav-list a:hover { opacity: 0.6; }
.nav-list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px; }

/* Subpage list under a section */
.sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- Mobile menu: full-screen white panel ---- */
@media (max-width: 899px) {
  .nav-list {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    padding: 5rem var(--gutter) 6rem;
    overflow-y: auto;
    z-index: 60;
  }
  .nav-list.is-open { display: block; }
  .nav-list > li { margin: 0 0 1.5rem; }
  .nav-list > li > a,
  .nav-list > li > button { font-size: 0.95rem; }
  /* On mobile the section button is just a label; subpages are always shown */
  .nav-list > li > button { pointer-events: none; }
  .nav-list > li > button .chevron { display: none; }
  .sub-list { margin: 0.75rem 0 0 1.25rem; }
  .sub-list a {
    font-size: 1rem;
    font-weight: 300;
    padding: 0.35rem 0;
  }
  /* While the panel is open the toggle pins to the top corner, above the panel, reading "Close" */
  .site-nav .menu-toggle { position: relative; z-index: 70; }
  body.menu-open .site-nav .menu-toggle {
    position: fixed;
    top: 0.75rem;
    right: var(--gutter);
  }
  body.menu-open { overflow: hidden; }
}

/* ---- Desktop nav: one centered row with hover/focus dropdowns ---- */
@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
  }
  .nav-list > li { position: relative; }
  .nav-list > li > a,
  .nav-list > li > button { padding: 1rem 0; }
  .nav-list > li > button .chevron {
    display: inline-block;
    font-size: 0.6em;
    margin-left: 0.4em;
    transform: translateY(-0.1em);
  }
  .sub-list {
    display: none;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    min-width: 15rem;
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    padding: 0.75rem 0;
    text-align: center;
    z-index: 55;
  }
  .nav-list > li:hover > .sub-list,
  .nav-list > li:focus-within > .sub-list,
  .nav-list > li.is-open > .sub-list { display: block; }
  .sub-list a {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 300;
    white-space: nowrap;
  }
  .sub-list a:hover { opacity: 0.6; }
}

/* --------------------------------------------------------------------------
   Homepage: one third photo (left), two thirds words (right).
   The right side is split: the statement above, Upcoming Events below.
   -------------------------------------------------------------------------- */

.home-grid {
  max-width: var(--width-home);
  margin: 0 auto;
  padding: var(--space-section) var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}
.home-photo { max-width: 420px; }
.home-photo a { text-decoration: none; display: block; }
.home-right {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}
.home-statement .statement-title {
  font-size: 2rem;
  margin: 0 0 1rem;
}
.home-statement p {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.65;
  max-width: 34em;
}
.home-upcoming {
  border-top: 1px solid var(--color-line);
  padding-top: 2.5rem;
}
.home-upcoming h2 {
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
}
.home-upcoming h3 {
  font-family: var(--font-body);
  font-size: var(--small-size);
  letter-spacing: var(--small-tracking);
  text-transform: uppercase;
  font-weight: 400;
  margin: 1.5rem 0 0.5rem;
}
.home-upcoming h3:first-of-type { margin-top: 0; }
.home-upcoming .event-list { margin-bottom: 0.5rem; max-width: 34em; }
.home-upcoming .links { margin-top: 1.5rem; }
.home-upcoming .links a { display: inline-block; margin-right: 1.5rem; }

/* Tablet and up: photo left, words right */
@media (min-width: 600px) {
  .home-grid { grid-template-columns: 1fr 1.6fr; gap: 3rem; }
}
@media (min-width: 900px) {
  .home-grid { grid-template-columns: 1fr 2fr; gap: 4.5rem; }
  .home-statement .statement-title { font-size: 2.4rem; }
}

/* The row of section links beneath the columns */
.home-sections {
  max-width: var(--width-home);
  margin: var(--space-section) auto 0;
  padding: 2.5rem var(--gutter) 0;
  border-top: 1px solid var(--color-line);
  text-align: center;
}
.home-sections a {
  text-decoration: none;
  font-size: var(--small-size);
  letter-spacing: var(--small-tracking);
  text-transform: uppercase;
  font-weight: 400;
  margin: 0 0.9rem;
  display: inline-block;
  padding: 0.25rem 0;
}
.home-sections a:hover { text-decoration: underline; text-underline-offset: 0.35em; opacity: 1; }

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */

.page {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}
.page-title { margin-bottom: 2rem; }
.page-photo { margin: 0 0 var(--space-block); max-width: 720px; }
.page-photo--wide { max-width: var(--width-site); }
.page-photo--portrait { max-width: 520px; }

/* Grey small-caps line beneath a page title (e.g. a job title) */
.subtitle {
  font-size: var(--small-size);
  letter-spacing: var(--small-tracking);
  text-transform: uppercase;
  color: var(--color-muted);
  margin: -1.25rem 0 2rem;
}

/* Photo caption spacing inside page figures */
.page-photo .caption { margin-top: 0.75rem; }

/* Gallery of photos with caption lines (artist name, topic, year) */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  margin: var(--space-block) 0 0;
}
.gallery figure { margin: 0; }
.gallery .caption { margin-top: 0.6rem; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

/* A gallery placed at the top of a page, above the text */
.gallery--top { margin: 0 0 var(--space-block); }

/* One webinar or workshop: title and description */
.program { margin: 0 0 2rem; }
.program h3 { margin: 0 0 0.4rem; font-weight: 500; }
.program p { margin: 0; }

/* One event: date line, title, description */
.event { margin: 0 0 var(--space-block); }
.event-meta {
  font-size: var(--small-size);
  letter-spacing: var(--small-tracking);
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 0.5rem;
}
.event h2 { margin-top: 0; }

/* A simple list with modest spacing */
.plain-list li { margin-bottom: 0.6em; }

/* Proof list on the About page */
.proof-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  border-top: 1px solid var(--color-line);
}
.proof-list li {
  padding: 0.75rem 0;
  margin: 0;
  border-bottom: 1px solid var(--color-line);
}
/* A smaller grey line beneath an organization: a role, office, or year */
.proof-list .proof-detail {
  display: block;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.2rem;
}

/* "In this section" subnav at the bottom of inner pages */
.section-nav {
  margin-top: var(--space-section);
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.95rem;
}
.section-nav a { margin-right: 0.25rem; }

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

.form { max-width: var(--width-text); margin-top: 2rem; }
.form-row { margin-bottom: 1.75rem; }
.form label {
  display: block;
  font-size: var(--small-size);
  letter-spacing: var(--small-tracking);
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.form label .optional {
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-muted);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-text);
  border-radius: 0;
  padding: 0.75rem 0.9rem;
}
.form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111111' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.form textarea { min-height: 10rem; resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus { outline: 1px solid var(--color-text); outline-offset: 2px; }

/* Submit: black text, 1px black border, inverts on hover */
.button {
  appearance: none;
  display: inline-block;
  font: inherit;
  font-size: var(--small-size);
  letter-spacing: var(--small-tracking);
  text-transform: uppercase;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-text);
  padding: 0.85rem 2rem;
  cursor: pointer;
  text-decoration: none;
}
.button:hover,
.button:focus-visible {
  background: var(--color-text);
  color: var(--color-bg);
  opacity: 1;
}

.form-thanks { margin-top: 2rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--color-line);
  margin-top: var(--space-section);
  padding: 2.5rem var(--gutter) 2.5rem;
  text-align: center;
  color: var(--color-muted);
  font-size: var(--small-size);
  letter-spacing: 0.04em;
}
.site-footer a {
  color: var(--color-text);
  text-decoration: none;
  margin-left: 1.5rem;
  letter-spacing: var(--small-tracking);
  text-transform: uppercase;
}
.site-footer a:hover { text-decoration: underline; text-underline-offset: 0.35em; opacity: 1; }

/* On phones leave room for the sticky Inquire bar below the footer */
@media (max-width: 767px) {
  .site-footer { padding-bottom: 5.5rem; }
}

/* --------------------------------------------------------------------------
   Mobile sticky "Inquire" bar (phones only)
   -------------------------------------------------------------------------- */

.inquire-bar {
  display: none;
}
@media (max-width: 767px) {
  .inquire-bar {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-line);
    text-align: center;
    padding: 0.9rem var(--gutter);
    padding-bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
    z-index: 40;
  }
  .inquire-bar a {
    text-decoration: none;
    font-size: var(--small-size);
    letter-spacing: var(--small-tracking);
    text-transform: uppercase;
    font-weight: 400;
  }
  .inquire-bar a:hover { text-decoration: underline; text-underline-offset: 0.35em; opacity: 1; }
  body.menu-open .inquire-bar { display: none; }
}

/* --------------------------------------------------------------------------
   Motion: there is essentially none, and none at all if the visitor asks
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
