/* candidlyQ — recreated from the original Showit design */

@font-face {
  font-family: "Sarah Script";
  src: url("/fonts/lhf-sarah-script.woff2") format("woff2"),
       url("/fonts/lhf-sarah-script.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #3d3a3b;          /* Showit color 2: charcoal text */
  --blue: #4f86c6;         /* Showit color 3: script headings + buttons */
  --blue-dark: #3a6fae;
  --tab: #adaeae;          /* gray section tabs */
  --rule: #3d3a3b;
  --field: #f2f1ee;        /* warm gray form fields */
  --white: #ffffff;

  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;
  --script: "Sarah Script", "Brush Script MT", cursive;

  --content: 1000px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.1em;
}

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

.sr-only, .hp {
  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 {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--blue); color: var(--white);
  padding: 0.5rem 1rem; z-index: 10; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}
.nav {
  max-width: var(--content);
  margin: 0 auto;
  padding: 22px 24px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 0;
}
.nav-left { justify-content: space-around; }
.nav-right { justify-content: space-around; }
.nav a, .site-footer nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
}
.nav a:hover, .site-footer nav a:hover { color: var(--blue); }
.logo img { width: 220px; height: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
  background: var(--white) url("/images/candidlyq-blue-watercolor-background.jpg") center 58% / cover no-repeat;
  background-image: image-set(
    url("/images/candidlyq-blue-watercolor-background.webp") type("image/webp"),
    url("/images/candidlyq-blue-watercolor-background.jpg") type("image/jpeg"));
  text-align: center;
  color: var(--white);
  padding: 40px 24px;
}
.hero-text { max-width: 560px; transform: translateY(-14px); text-shadow: 0 1px 12px rgba(30, 70, 130, 0.25); }
.hero-kicker {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}
.hero-tagline {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 0 24px 80px; }
.section-tab {
  margin: 0 -24px 64px;
  height: 1px;
  background: var(--rule);
  display: flex; justify-content: center; align-items: center;
  scroll-margin-top: 0;
}
.section-tab span {
  background: var(--tab);
  color: var(--white);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1;
  padding: 7px 18px 6px 21px;
}

.two-col {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 500px);
  justify-content: center;
  gap: 56px;
  align-items: start;
}
.col-media { text-align: center; }
.book-link { display: block; transition: transform .25s ease; }
.book-link:hover { transform: translateY(-3px); }
.photo { width: 280px; aspect-ratio: 280 / 385; object-fit: cover; object-position: center 25%; }

.caption {
  margin: 14px auto 0;
  max-width: 230px;
  font-size: 11px;
  line-height: 1.9;
  text-wrap: balance;
}

.subheading {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.6;
}
.subheading.small { font-size: 9px; letter-spacing: 0.25em; }

.script-heading, .script-title {
  font-family: var(--script);
  font-weight: normal;
  color: var(--blue);
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-wrap: balance;
}
.script-heading { font-size: 38px; margin: 2px 0 14px; }
.script-title { font-size: 30px; margin: 0 0 2px; }
.script-title a { text-decoration: none; }
.script-title a:hover { color: var(--blue-dark); }

.body { margin: 0 0 1em; text-wrap: pretty; }
.body a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Downloads ---------- */
.downloads { list-style: none; margin: 20px 0 22px; padding: 0; }
.downloads li {
  border-top: 1px solid var(--rule);
  padding: 14px 0 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.downloads li:last-child { border-bottom: 1px solid var(--rule); }
.downloads .btn { width: 148px; text-align: center; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  flex-shrink: 0;
  background: var(--blue);
  color: var(--white);
  border: 0;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  padding: 8px 16px 7px;
  cursor: pointer;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--blue-dark); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Forms ---------- */
.form { margin-top: 6px; }
.form-intro { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; }
.form input, .form textarea {
  width: 100%;
  margin: 0 0 14px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;          /* 16px keeps iPhone from zooming on tap */
  letter-spacing: 0.05em;
  padding: 9px 12px;
  -webkit-appearance: none;
  appearance: none;
}
.form input::placeholder, .form textarea::placeholder {
  color: #8d8a87;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.form textarea { resize: vertical; min-height: 110px; }
.form .btn { margin-top: 2px; }
.form-status { margin: 10px 0 0; font-size: 11px; min-height: 1em; }
.form-status.error { color: #b3413a; }
.thanks:focus { outline: none; }
.form .hp { display: none !important; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  max-width: var(--content);
  margin: 0 auto;
  padding: 26px 24px 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px;
}
.footer-credit { margin: 0; font-size: 10px; letter-spacing: 0.15em; }
.footer-credit a { text-decoration: none; }
.footer-credit a:hover { color: var(--blue); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }

/* ---------- Tablet & phone ---------- */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; max-width: 520px; }
  .photo, .col-media img { margin: 0 auto; }
  .book-link img { width: 240px; margin: 0 auto; }
}

@media (max-width: 640px) {
  body { font-size: 13px; }
  .nav {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "logo logo" "left right";
    padding: 18px 16px 14px; gap: 14px 8px;
  }
  .logo { grid-area: logo; justify-self: center; }
  .logo img { width: 180px; }
  .nav-left { grid-area: left; justify-content: space-evenly; }
  .nav-right { grid-area: right; justify-content: space-evenly; }
  .nav a { font-size: 9px; letter-spacing: 0.22em; }

  .hero { min-height: 340px; background-size: 260% auto; background-position: center 55%; }
  .hero-kicker { font-size: 18px; }
  .hero-tagline { font-size: 23px; }
  .br-desktop { display: none; }

  .section { padding: 0 16px 64px; }
  .section-tab { margin: 0 -16px 44px; }
  .script-heading { font-size: 34px; }
  .script-title { font-size: 27px; }

  .downloads li { flex-direction: column; align-items: flex-start; gap: 10px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .btn { font-size: 10px; padding: 11px 18px 10px; }
  .downloads .btn { width: 180px; }

  .site-footer { flex-direction: column-reverse; text-align: center; padding: 24px 16px 36px; }
  .site-footer ul { gap: 18px; flex-wrap: wrap; justify-content: center; }
}
