@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@300;400;500;600&family=Young+Serif&display=swap');

:root {
  color-scheme: light;
  --sky: hsl(204, 60%, 92%);
  --white: #ffffff;
  --offwhite: #f6f3f2;
  --red: #b0005b;
  --red-dark: #82003f;
  --black: #110f0f;
  --pink: #ff7eb0;
  --green: #4caf50;
  --heading: 'Young Serif', Georgia, serif;
  --body: 'Bitter', Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sky);
  color: #000;
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.55;
}

h1, h2, h3 {
  margin: 0 0 0.6em;
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--black);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }

a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

.site-header, .site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 8%;
}

.site-header { background: var(--white); }
.site-footer { background: var(--black); color: var(--offwhite); }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0; }

.wordmark {
  color: var(--black);
  font-family: var(--heading);
  font-size: 1.4rem;
  text-decoration: none;
}
.wordmark:hover { color: var(--red); }
.wordmark span { color: var(--red); }
.site-footer .wordmark { color: var(--white); }

nav { display: flex; flex-wrap: wrap; gap: 8px clamp(18px, 4vw, 40px); }
nav a { color: var(--black); font-weight: 500; text-decoration: none; }
nav a:hover { color: var(--red); }
nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.eyebrow {
  margin-bottom: 0.8em;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.button {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 0 1rem;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.button:hover { background: var(--red-dark); color: var(--white); }

.text-link { font-weight: 600; }

.section-wrap, .page-heading, .band, .hero, .book-details, .book-teaser {
  padding: clamp(48px, 8vw, 96px) 8%;
}

.hero, .book-teaser, .book-details {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  grid-template-columns: 2fr 3fr;
}

.hero { grid-template-columns: 3fr 2fr; }
.hero-art { order: 2; }

.book-cover {
  display: block;
  width: 100%;
  border-radius: 0 1rem;
  box-shadow: 0 12px 30px rgb(17 15 15 / 25%);
  background: var(--pink);
  min-height: 200px;
}

.book-mockup { display: block; width: 100%; }

.cover-tagline {
  font-family: var(--heading);
  font-size: 1.25rem;
  line-height: 1.3;
  padding-left: 1rem;
  border-left: 5px solid var(--pink);
}

.book-teaser { background: var(--white); }
.band { background: var(--offwhite); border-top: 6px solid var(--green); }
.band-inner { max-width: 760px; }

.page-heading { background: var(--offwhite); }
.page-lead { max-width: 640px; font-size: 1.2rem; }

.intro { max-width: 900px; }

.status {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.3rem 1rem;
  border-radius: 0 1rem;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
}

.blurb p:first-child { font-family: var(--heading); font-size: 1.3rem; }

.about-content {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: 2fr 3fr;
  align-items: start;
}

.headshot-frame {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--offwhite);
  display: grid;
  place-items: center;
  text-align: center;
}
.headshot-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--offwhite);
}

.teaser-bio { background: var(--white); }

.contact-form, .inbox-form { max-width: 700px; }
.contact-form label, .inbox-form label { display: block; font-weight: 600; }
.contact-form input, .contact-form textarea, .inbox-form input {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.8rem;
  border: 1px solid #736d6a;
  border-radius: 0 1rem;
  background: var(--white);
  color: var(--black);
  font: inherit;
}
.contact-form input:focus-visible, .contact-form textarea:focus-visible, .inbox-form input:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 2px;
}
.contact-form .button, .inbox-form .button {
  border: 0;
  font: 600 1rem var(--body);
  cursor: pointer;
}
.contact-form .button:disabled, .inbox-form .button:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin-top: 1rem; }
.inbox-message { margin-bottom: 1rem; padding: 1.25rem; background: var(--white); border-radius: 0 1rem; }
.inbox-message-body { white-space: pre-wrap; overflow-wrap: anywhere; }

.reader-page { min-height: 100vh; }

.vote-heading { text-align: center; }
.vote-heading .page-lead { margin-inline: auto; }

.vote-panel {
  display: grid;
  gap: 1.25rem;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) 8%;
}

.consent-banner, .vote-results {
  padding: 1.25rem;
  border-radius: 0 1rem;
  background: var(--offwhite);
}

.consent-banner { border-left: 5px solid var(--green); }
.consent-banner .button { margin: 0 0.5rem 0.5rem 0; }
.consent-banner p, .vote-results { margin: 0; }

.vote-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.vote-choices .button {
  min-width: min(100%, 190px);
  border: 0;
  font: inherit;
  cursor: pointer;
}

.vote-choices .button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.reader-message { min-height: 1.55em; margin: 0; }
.vote-comments { margin: 0; }

.kit-signup-form {
  max-width: 700px;
  margin: 1.5rem 0 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--black);
  font-family: var(--body);
}

.kit-signup-form [data-style="full"] { width: 100%; }
.kit-signup-form .formkit-column { padding: 0; }
.kit-signup-form .formkit-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kit-signup-form .formkit-field { min-width: 0; margin: 0; }
.kit-signup-form .formkit-input {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid #b9b4b1;
  border-radius: 0 1rem;
  background: var(--white);
  color: var(--black);
  font: inherit;
}

.kit-signup-form .formkit-input:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 2px;
}

.kit-signup-form .formkit-submit {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  padding: 0.9rem 2.2rem;
  border: 0;
  border-radius: 0 1rem;
  background: var(--red);
  color: var(--white);
  font: 600 1rem var(--body);
  cursor: pointer;
  transition: background 0.2s;
}

.kit-signup-form .formkit-submit:hover { background: var(--red-dark); }
.kit-signup-form .formkit-submit:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.kit-signup-form .formkit-alert { width: 100%; margin: 0 0 12px; padding: 12px; }
.kit-signup-form .formkit-guarantee { margin: 12px 0 0; font-size: 0.85rem; }
.kit-signup-form .formkit-powered-by-convertkit-container { margin-top: 8px; }
.kit-signup-form .formkit-powered-by-convertkit {
  width: auto;
  height: auto;
  background: none;
  color: inherit;
  font-size: 0.75rem;
  text-indent: 0;
}

@media (max-width: 760px) {
  .hero, .book-teaser, .book-details, .about-content { grid-template-columns: 1fr; }
  .hero-art { order: 0; max-width: 320px; }
  .book-cover-wrap, .headshot-frame { max-width: 320px; }
  .site-header, .site-footer { flex-direction: column; align-items: flex-start; }
  .vote-choices { flex-direction: column; }
  .vote-choices .button { width: 100%; }
  .kit-signup-form .formkit-fields { grid-template-columns: 1fr; }
  .kit-signup-form .formkit-submit { grid-column: auto; }
}
