/* Lilia Peterson, Austin Harpist: site styles (draft, landing page) */

/* Fonts: all self-hosted. League Spartan is SIL Open Font License; Autolova is 100% Free per its author (see fonts/). */
@font-face {
  font-family: "League Spartan";
  src: url("../fonts/league-spartan-vf.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Autolova";   /* 100% Free per the author; see fonts/AUTOLOVA-LICENSE-NOTE.txt */
  src: url("../fonts/autolova.woff2") format("woff2");
  font-display: swap;
}

:root {
  --cream: #F8DABC;   /* background */
  --brown: #41261C;   /* text */
  --rust:  #994B2A;   /* deeper rust (option B), passes contrast with cream text */
  --green: #2B5D11;   /* accent */
  --taupe: #CDB096;   /* frame behind the placeholder harp drawings (a brown tint of the cream) */

  --font-body: "League Spartan", "Futura", "Century Gothic", system-ui, sans-serif;
  --gutter: 16px;
  --radius: 28px;
  --column: 600px;    /* content width on larger screens */
  --name-width: min(72vw, 420px);
}

/* Header font: Autolova, sized so the name spans the header like the mockup.
   "Lilia Peterson" runs 5.17 font-sizes wide in Autolova; "Austin Harpist" runs 5.85.
   The tagline takes 43% of the name's width, leaving room for the Rates link on one line. */
:root {
  --font-display: "Autolova", var(--font-body);
  --name-size: calc(var(--name-width) / 5.17);
  --tag-size: calc(var(--name-width) * 0.43 / 5.85);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.5;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px; }

/* ---------- Header (stays at the top while scrolling) ---------- */
.site-header {
  --pad-x: max(var(--gutter), calc((100% - var(--column)) / 2 + var(--gutter)));
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "name . menu"
    "tag  . menu";
  align-items: center;
  padding: 14px var(--pad-x) 12px;
  background: var(--cream);
}

.site-name {
  grid-area: name;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--name-size);
  font-weight: 400;
  line-height: 1.05;
}
.site-name a { text-decoration: none; }

.tagline {
  grid-area: tag;
  justify-self: end;     /* lines up with the end of the name */
  margin: 0.15em 0 0;
  font-family: var(--font-display);
  font-size: var(--tag-size);
  line-height: 1.1;
}

/* "Rates and Availability" link: always visible, left of the tagline as in the mockup,
   on one line and underlined so it reads as a link. The padding makes it easier to tap. */
.rates-link {
  grid-area: tag;
  justify-self: start;
  padding: 6px 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.rates-link:hover { text-decoration-thickness: 2.5px; }

/* Menu: a built-in disclosure element (<details>), so the ☰ opens and closes
   on its own, even where scripts don't run. */
.site-menu {
  grid-area: menu;
  align-self: start;
  /* Lines the ☰'s top bar up with the top of the "Lilia Peterson" lettering:
     Autolova's tallest letter (P) starts 0.0643 font-sizes below the top of the name's line,
     and the top bar starts 12.25px down inside the 48px button. */
  margin-top: calc(var(--name-size) * 0.0643 - 12.25px);
}

/* ☰ drawn with CSS so it looks the same on every device; turns into an × when open */
.menu-button {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  color: var(--brown);
  cursor: pointer;
  list-style: none;
}
.menu-button::-webkit-details-marker { display: none; }
.menu-button::before,
.menu-button::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 3.5px;
  margin-top: -1.75px;
  border-radius: 2px;
  background: currentColor;
}
.menu-button::before { box-shadow: 0 -10px 0 currentColor, 0 10px 0 currentColor; }
.menu-button::after { display: none; }
.site-menu[open] .menu-button::before { box-shadow: none; transform: rotate(45deg); }
.site-menu[open] .menu-button::after { display: block; transform: rotate(-45deg); }

/* The open menu drops down over the page, lined up with the content column */
.site-menu nav {
  position: absolute;
  top: calc(100% - 4px);
  left: var(--pad-x);
  right: var(--pad-x);
  border: 2px solid var(--brown);
  border-radius: var(--radius);
  background: #FBEBCD;   /* buttercream card, so it doesn't blend into the rust boxes */
}
.site-menu ul { margin: 0; padding: 10px 24px 16px; list-style: none; }
.site-menu a {
  display: block;
  padding: 8px 0;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--brown);
  text-decoration: none;
}
.site-menu a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

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

/* ---------- Landing page ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  padding: 4px var(--gutter) 0;
}

.hero { margin: 0; }

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Rust box overlapping the bottom of the photo, set in from the left as in the mockup */
.intro {
  position: relative;
  margin: -64px 8px 0 36px;
  padding: 22px 22px 24px;
  border-radius: var(--radius);
  background: var(--rust);
  color: var(--cream);
  font-size: 1.125rem;
  line-height: 1.55;
  text-align: center;
}

.page-links {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin: 40px 0 36px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.75rem);
  line-height: 1;
}
.page-links a { text-decoration: none; }
.page-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* ---------- Text pages (About) ---------- */
.page-title {
  margin: 14px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 11vw, 3.25rem);
  font-weight: 400;
  line-height: 1.05;
}
.page p,
.page li { font-size: 1.125rem; line-height: 1.55; }
.page p { margin: 0 0 1em; }
.page h2 {
  margin: 40px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 8vw, 2.25rem);
  font-weight: 400;
  line-height: 1.1;
}
.page a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* Rust box, echoing the intro box on the landing page */
.panel {
  margin: 30px 0 8px;
  padding: 20px 22px 22px;
  border-radius: var(--radius);
  background: var(--rust);
  color: var(--cream);
}
.page .panel-title { margin: 0 0 10px; font-size: 1.9rem; }
.panel-list { margin: 0; padding-left: 1.1em; }
.page-title + .panel { margin-top: 6px; }
.panel-center { text-align: center; }
.panel-center p { text-wrap: balance; }   /* evens out the centered lines */
.page .panel-center p { margin: 0 0 0.7em; }
.page .panel-center p:last-child { margin-bottom: 0; }
.panel-list li { margin: 0 0 6px; }

.two-col {
  margin: 0;
  padding-left: 1.1em;
  columns: 2;
  column-gap: 22px;
}
.two-col li { margin: 0 0 6px; break-inside: avoid; }
.towns { margin-bottom: 8px; }
.towns li::marker { color: var(--green); }   /* small green bullets, a nod to the hills below */

/* ---------- Rates: the two harps, picture beside the details as in the mockup ---------- */
.harp {
  display: grid;
  grid-template-columns: 38% 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 16px;
  margin: 34px 0;
}
/* The frame hugs the drawing, so there's no empty space around it */
.harp-art {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  padding: 14px 6px;
  border-radius: 22px;
  background: var(--taupe);
}
.harp-art img { width: 100%; height: auto; }
.page .harp h2 {
  grid-column: 2;
  margin: 2px 0 4px;
  font-size: clamp(1.45rem, 6.6vw, 1.9rem);
}
.page .price {
  grid-column: 2;
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 700;
}
.harp ul { grid-column: 2; margin: 0; padding-left: 1em; }
.page .harp li { margin: 0 0 8px; font-size: 0.9375rem; line-height: 1.4; }

/* ---------- Rates: Travis County discount, in the green accent so it stands apart from the rust boxes ---------- */
.discount {
  margin: 8px 0 36px;
  padding: 20px 22px 22px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--cream);
}
.page .discount h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 7vw, 2rem);
}
.page .discount p { margin: 0; text-wrap: pretty; }   /* avoids a lone word on the last line */

/* ---------- Forms (Contact; the booking form will reuse these) ---------- */
.page .page-intro { margin: 0 0 26px; }
.page .form-field { margin: 0 0 18px; }
.form-field label {
  display: block;
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 600;
}
.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--brown);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);   /* a lighter tint of the cream so fields read as fields */
  color: var(--brown);
  font: inherit;
  font-size: 1.0625rem;                     /* 16px or more keeps iPhones from zooming in on tap */
  line-height: 1.4;
}
.form-field textarea { min-height: 9.5em; resize: vertical; }
.form-field input:focus-visible,
.form-field textarea:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; border-radius: 14px; }

.page .form-actions { margin: 6px 0 36px; }
.button {
  display: inline-block;
  padding: 14px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--rust);
  color: var(--cream);
  font: 600 1.125rem/1.1 var(--font-body);
  cursor: pointer;
}
.button:hover { background: var(--brown); }
.button:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; border-radius: 999px; }
/* The same button as a link (Contact page: "Book Your Event Here") */
.page a.button { text-decoration: none; }
.page .page-cta { margin: 0 0 22px; }

.placeholder { font-style: italic; opacity: 0.75; }

/* Spam trap on the forms: off-screen, so people never see it or tab to it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Booking form: split into parts, each with a small heading */
.form-part {
  min-width: 0;          /* lets fields shrink to the screen width */
  margin: 0 0 30px;
  padding: 0;
  border: 0;
}
.form-part > legend {
  float: left;           /* makes the legend behave like an ordinary heading */
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 6vw, 1.7rem);
  line-height: 1.15;
}
.form-part > legend + * { clear: both; }
/* Questions answered by picking a choice */
.question {
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
.question > legend {
  float: left;
  width: 100%;
  margin: 0 0 4px;
  padding: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}
.question > legend + * { clear: both; }
/* Small print under a question (song-request fee and deadline) */
.page .question-note { margin: 0 0 6px; font-size: 0.9375rem; line-height: 1.45; }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;            /* comfortable to tap */
  font-size: 1.0625rem;
  line-height: 1.3;
  cursor: pointer;
}
.choice input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--rust);
}
.time-range { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.page .time-range .form-field { margin-bottom: 0; }
.follow-up { margin-top: 10px; }
.venue-contact-fields { margin-top: 10px; }
[hidden] { display: none !important; }

/* Date and time fields: same height as the text fields, text on the left */
.form-field input[type="date"],
.form-field input[type="time"] { min-height: 52px; text-align: left; }
.form-field input::-webkit-date-and-time-value { text-align: left; }

.page .form-note { margin: -8px 0 22px; }

/* "Reserve your date now!" a step bigger than the part headings, so the levels read clearly */
.page #book-heading { margin-bottom: 18px; font-size: clamp(2.1rem, 9.5vw, 2.75rem); }
/* Links to rates.html#book (from the Contact page) land with the heading just below the sticky header,
   which grows with the name size (about 100px tall on a small phone, 150px on a desktop) */
#book { scroll-margin-top: calc(var(--name-size) * 1.5 + 50px); }

/* ---------- Footer: green hills with the Rates & Availability link ---------- */
.site-footer {
  position: relative;
  margin-top: 34px;
  padding: 6px var(--gutter) calc(22px + env(safe-area-inset-bottom, 0px));
  background: var(--green);
  color: var(--cream);
  text-align: center;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: 30px;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 30'%3E%3Cpath d='M0 30V17C18 17 26 6 56 6S96 17 122 17 150 9 178 9 212 19 244 19 282 3 318 3 360 16 390 17V30Z'/%3E%3C/svg%3E") left bottom / 390px 30px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 30'%3E%3Cpath d='M0 30V17C18 17 26 6 56 6S96 17 122 17 150 9 178 9 212 19 244 19 282 3 318 3 360 16 390 17V30Z'/%3E%3C/svg%3E") left bottom / 390px 30px repeat-x;
}
.site-footer p { margin: 0; }
.site-footer a {
  font-weight: 600;
  font-size: 1.0625rem;
  text-underline-offset: 4px;
}
