:root {
  --cream: #fffff0;
  --slate: #5a645b;
  --orange: #f07c10;
  --sky: #46c2e4;
  --blue: hsl(210, 70%, 42%);
  --ink: #111;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}
a { color: inherit; }

/* Header: nav left, logo/wordmark centered */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 155px;
  padding: 0 4vw;
  background: var(--cream);
  border-bottom: 3px solid var(--slate);
}
.site-header nav a { text-decoration: none; color: #444; font-size: .95rem; }
.site-header nav a:hover { text-decoration: underline; }
.brand {
  grid-column: 2;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--slate);
  text-align: center;
}
.brand img { display: block; height: 100px; width: auto; }

/* Hero */
.hero {
  position: relative;
  min-height: max(41vw, 420px);
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: 6vw 6vw 0 4vw;
  background: #c8952f url("/img/hero.webp") center / cover no-repeat;
}
.hero-inner { width: 44vw; max-width: 46rem; text-align: right; }
.hero h1 {
  margin: 0 0 clamp(3rem, 6vw, 7rem);
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 3.8vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--blue);
}
.pill {
  display: inline-block;
  min-width: 15rem;
  padding: 1.35rem 2rem;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: transparent;
  text-align: center;
  text-decoration: none;
  font: inherit; font-size: 1rem;
  cursor: pointer;
}
.pill:hover { background: rgba(255,255,255,.15); }

/* Color bands */
.band { padding: 4.5rem 4vw; text-align: center; }
.band .wrap { max-width: 56rem; margin: 0 auto; }
.band h2, .band h4 { font-family: var(--serif); font-weight: 400; margin: 0; color: #000; }
.band h2 { font-size: clamp(2rem, 4.6vw, 3.9rem); line-height: 1.12; margin-bottom: 2rem; }
.band h4,
.band h2.lead { font-size: clamp(1.4rem, 2.8vw, 2.2rem); line-height: 1.2; margin-bottom: 0; }
.band p { font-size: .95rem; margin: 0 auto; max-width: 52rem; }
.band-orange { background: var(--orange); }
.band-sky { background: var(--sky); padding: 3.5rem 4vw; }

/* Contact dialog */
.contact-dialog {
  width: min(92vw, 34rem);
  max-height: 92vh;
  overflow: auto;
  padding: 3rem 2.5rem 2.5rem;
  border: 0;
  background: var(--cream);
  color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.contact-dialog::backdrop { background: rgba(35, 40, 37, .65); }
.contact-dialog h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 0 0 .5rem; }
.contact-dialog > p { margin: 0 0 1.75rem; }
.dialog-close {
  position: absolute; top: .6rem; right: .9rem;
  background: none; border: 0; cursor: pointer;
  font-size: 2rem; line-height: 1; color: var(--slate);
}
form label { display: block; font-weight: 600; margin: 0 0 1rem; }
form input, form textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .8rem;
  font: inherit; background: #fff; border: 1px solid #b9bdb9; border-radius: 0;
}
form textarea { min-height: 8rem; }
.media-choices { border: 0; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem .6rem; }
.media-choices legend { font-weight: 600; padding: 0; margin-bottom: .6rem; }
form label.check {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0; padding: .55rem 1rem;
  font-weight: 400; cursor: pointer;
  background: #fff; border: 1px solid #b9bdb9; border-radius: 999px;
}
form label.check input { width: 1.1rem; height: 1.1rem; margin: 0; padding: 0; accent-color: var(--slate); }
form label.check:has(input:checked) { border-color: var(--slate); background: #eef0ee; }
.contact-dialog .pill { color: var(--slate); border-color: var(--slate); min-width: 10rem; padding: 1rem 2rem; }
.contact-dialog .pill:hover { background: rgba(90,100,91,.1); }
.form-status { min-height: 1.5em; margin: 1rem 0 0; font-size: .9rem; }
.form-status.ok { color: #1f6b3a; }
.form-status.err { color: #a12a1b; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer {
  background: var(--slate);
  color: #fff;
  padding: 4rem max(4vw, calc((100vw - 64rem) / 2)) 5rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: .85rem; line-height: 1.6; }
.site-footer a { color: #fff; }
.site-footer .copy { margin-top: 3rem; font-size: .8rem; opacity: .75; }

@media (max-width: 760px) {
  .site-header { height: 110px; }
  .brand { font-size: 1.1rem; }
  .brand img { height: 70px; }
  .hero {
    min-height: 125vw;
    padding: 14vw 6vw 0;
    justify-content: flex-end;
    align-items: flex-start;
    background-position: 88% center;
  }
  .hero-inner { text-align: right; width: auto; max-width: 100%; }
  .hero h1 { font-size: clamp(2rem, 9vw, 3rem); margin-bottom: 22vw; }
  .pill { min-width: 11rem; padding: 1rem 1.5rem; }
  .contact-dialog { padding: 2.5rem 1.5rem 1.75rem; }
}
