/* /homeschool — Joshua's letter (controllers::homeschool). The site's paper,
   ink and gold; Frank Ruhl Libre for the letter, Caveat for the signature.
   Self-hosted faces only: the CSP allows fonts from 'self'. */

@font-face { font-family: "HS Hand"; src: url("/static/fonts/Caveat-Medium.latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "HS Serif"; src: url("/static/fonts/FrankRuhlLibre-VariableFont_wght.ttf") format("truetype"); font-weight: 300 900; font-style: normal; font-display: swap; }

body.lf-homeschool {
  --hs-paper: #fffcf5;
  --hs-well: #f4ecdb;
  --hs-band: #17140f;
  --hs-ink: #1c1917;
  --hs-ink-soft: #44403c;
  --hs-mute: #6b6158;
  --hs-gold: #b08428;
  --hs-gilt: #e8c477;
  --hs-rule: rgba(176, 132, 40, 0.30);
  --hs-rule-soft: rgba(176, 132, 40, 0.14);
  --hs-pill: #fbe3a5;
  --hs-bad: #9a3412;
  --hs-serif: "HS Serif", "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --hs-ui: "Noto Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hs-hand: "HS Hand", "Segoe Script", cursive;
  background: var(--hs-paper);
  color: var(--hs-ink);
  color-scheme: light;
  font-family: var(--hs-ui);
}
.hs-main { display: block; }
.hs-in {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.hs-nav { display: flex; align-items: center; padding: 18px 0; }
.hs-logo { display: block; line-height: 0; }
.hs-logo img { display: block; width: 56px; height: 56px; }
.hs-signin {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 10px 20px;
  font-weight: 600; font-size: 15px; background: var(--hs-gilt); color: var(--hs-band); text-decoration: none;
}
.hs-signin:hover { background: #f0d38f; }

.hs-col { max-width: 780px; margin: 0 auto; padding: 44px 0 104px; }
.hs-head h1 {
  font-family: var(--hs-serif); font-weight: 500; font-size: 60px; line-height: 1.06;
  letter-spacing: -0.01em; margin: 0 0 44px; text-wrap: balance;
}
.hs-head h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--hs-pill) 62%); }
.hs-letter { font-family: var(--hs-serif); font-size: 21px; line-height: 1.72; color: var(--hs-ink); }
.hs-letter p { margin: 0 0 1.05em; }
.hs-letter strong { font-weight: 700; }
.hs-letter h2 {
  font-family: var(--hs-serif); font-weight: 500; font-size: 34px; line-height: 1.2;
  margin: 2em 0 0.55em; padding-top: 0.9em; border-top: 1px solid var(--hs-rule); text-wrap: balance;
}
.hs-letter > h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.hs-letter h3 { font-family: var(--hs-serif); font-weight: 500; font-style: italic; font-size: 25px; margin: 1.6em 0 0.45em; color: var(--hs-ink-soft); }
.hs-letter ul, .hs-letter ol { margin: 0 0 1.05em; padding-left: 1.2em; }
.hs-letter ul, .hs-card ul { list-style: disc; }
.hs-letter ol { list-style: decimal; }
.hs-letter blockquote { border-left: 3px solid var(--hs-gilt); padding-left: 18px; color: var(--hs-ink-soft); font-style: italic; margin: 0 0 1.05em; }
.hs-letter a, .hs-quote a { color: inherit; }

.hs-sign { margin-top: 30px; }
.hs-sign p { margin: 0; font-size: 15px; color: var(--hs-mute); }
.hs-sign p:first-child { font-family: var(--hs-hand); font-size: 48px; line-height: 1; color: var(--hs-ink); margin-bottom: 6px; }

.hs-card {
  margin-top: 48px; background: var(--hs-well); border: 1px solid var(--hs-rule);
  border-radius: 18px; padding: 30px 32px; scroll-margin-top: 20px;
}
.hs-card h2 { font-family: var(--hs-serif); font-weight: 500; font-size: 28px; margin: 0 0 8px; }
.hs-card ul { margin: 0 0 20px; padding-left: 1.1em; font-size: 17px; line-height: 1.6; }
.hs-result p { margin: 0; font-size: 17px; line-height: 1.6; }
.hs-result .hs-result-act { margin-top: 16px; }

.hs-cap { display: flex; flex-wrap: wrap; gap: 10px; }
.hs-cap label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hs-cap label.hs-shown {
  position: static; width: auto; height: auto; overflow: visible; clip: auto;
  flex-basis: 100%; font-size: 14px; font-weight: 600; color: var(--hs-ink-soft); margin-bottom: -4px;
}
.hs-cap input[type=email] {
  flex: 1 1 240px; min-width: 0; font: inherit; font-size: 17px; padding: 14px 20px; border-radius: 999px;
  border: 1.5px solid var(--hs-rule); background: #fff; color: var(--hs-ink);
}
.hs-cap input[type=email]:focus { outline: none; border-color: var(--hs-gold); box-shadow: 0 0 0 3px var(--hs-rule-soft); }
.hs-cap input[type=email][aria-invalid=true] { border-color: var(--hs-bad); }
.hs-cap input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff8e6 inset; -webkit-text-fill-color: var(--hs-ink); }
.hs-cap input:autofill { box-shadow: 0 0 0 40px #fff8e6 inset; }
.hs-cap button {
  flex: 0 0 auto; font: inherit; font-weight: 600; font-size: 17px; padding: 14px 26px; border-radius: 999px;
  border: 0; background: var(--hs-ink); color: var(--hs-paper); cursor: pointer;
}
.hs-cap button:hover { background: var(--hs-ink-soft); }
.hs-cap button:disabled { opacity: 0.6; cursor: default; }
.hs-cap button:focus-visible, .hs-signin:focus-visible, .hs-start-btn:focus-visible { outline: 2px solid var(--hs-gold); outline-offset: 2px; }
.hs-cap .cf-turnstile { flex-basis: 100%; }
.hs-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hs-err { margin: 10px 0 0; color: var(--hs-bad); font-size: 15px; }
.hs-fine { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--hs-mute); }
.hs-fine p { margin: 0; }

.hs-quote { margin-top: 60px; border-top: 1px solid var(--hs-rule); padding-top: 30px; font-family: var(--hs-serif); font-size: 19px; color: var(--hs-ink-soft); line-height: 1.6; }
.hs-quote blockquote { margin: 0; }
.hs-quote mark, .hs-letter mark { background: var(--hs-pill); color: inherit; padding: 0 0.15em; border-radius: 3px; }

.hs-sticky { display: none; }

.hs-start { max-width: 420px; margin: 12vh auto 0; text-align: center; display: grid; gap: 22px; }
.hs-start-email { margin: 0; font-size: 16px; color: var(--hs-mute); }
.hs-start-btn {
  font: inherit; font-weight: 600; font-size: 18px; padding: 16px 40px; border-radius: 999px; border: 0;
  background: var(--hs-ink); color: var(--hs-paper); cursor: pointer;
}
.hs-start-btn:hover { background: var(--hs-ink-soft); }

@media (max-width: 640px) {
  .hs-logo img { width: 46px; height: 46px; }
  .hs-col { padding: 12px 0 40px; }
  .hs-head h1 { font-size: 38px; margin-bottom: 28px; }
  .hs-letter { font-size: 19px; }
  .hs-letter h2 { font-size: 27px; }
  .hs-letter h3 { font-size: 22px; }
  .hs-card { padding: 22px 20px; }
  .hs-cap button { flex: 1 1 100%; }
  .hs-sticky {
    display: block; position: sticky; bottom: 0; z-index: 5;
    background: rgba(255, 252, 245, 0.96); border-top: 1px solid var(--hs-rule);
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: transform 0.2s ease;
  }
  .hs-sticky.hs-sticky-off { transform: translateY(110%); }
  .hs-sticky .hs-cap { flex-wrap: nowrap; }
  .hs-sticky .hs-cap input[type=email] { padding: 11px 16px; flex: 1 1 auto; }
  .hs-sticky .hs-cap button { padding: 11px 14px; flex: 0 0 auto; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .hs-sticky { transition: none; } }
