/* The public website's shared styles (build step 13). Same logo, fonts and purple + gold as the Library.
   Fonts come from our own site, like every other page: no outside requests. */
@font-face {
  font-family:'Baloo 2';
  src:url('/app/fonts/Baloo2-Variable400-800.woff2') format('woff2');
  font-weight:400 800; font-style:normal; font-display:swap;
}
:root {
  --plum:#3A184A; --plum-deep:#1C0A28; --plum-soft:#5B3A73;
  --gold:#FFC93C; --gold-light:#FFE08A; --gold-deep:#E8A92A;
  --cream:#FBF6EC; --cream-deep:#F8ECD2; --line:#EAD9C4; --white:#fff;
  --wrap:1120px;
}
* { 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(--cream); color:var(--plum);
  font-family:'Nunito', sans-serif; font-size:1.0625rem; line-height:1.6;
  min-height:100vh; display:flex; flex-direction:column;   /* short pages keep the footer at the bottom */
}
main { flex:1; }
h1, h2, h3 { font-family:'Baloo 2', sans-serif; line-height:1.15; margin:0; font-weight:800; }
h2 { font-size:clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size:1.3rem; font-weight:700; }
p { margin:0; }
img, video { max-width:100%; display:block; }
a { color:inherit; }
:focus-visible { outline:3px solid var(--gold-deep); outline-offset:3px; border-radius:4px; }
.wrap { width:100%; max-width:var(--wrap); margin:0 auto; padding:0 24px; }
.skip {
  position:absolute; left:16px; top:-60px; z-index:10; padding:8px 16px; border-radius:8px;
  background:var(--gold); color:var(--plum); font-weight:800;
}
.skip:focus { top:12px; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

/* Buttons */
.btn {
  display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:10px 24px;
  border-radius:999px; font-family:'Baloo 2', sans-serif; font-weight:700; font-size:1.1rem; line-height:1.15;
  text-decoration:none; text-align:center; border:2px solid transparent;
}
.btn-gold { color:var(--plum); background:linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-deep) 100%); border-color:var(--gold-deep); }
.btn-gold:hover { background:var(--gold-light); }
.btn-ghost { color:#fff; border-color:var(--gold-light); }
.btn-ghost:hover { background:rgba(255,224,138,.16); }

/* Header */
.site-header { background:var(--plum-deep); color:#fff; }
.site-header .wrap { display:flex; align-items:center; gap:12px 24px; flex-wrap:wrap; padding-top:10px; padding-bottom:10px; }
.site-logo { display:block; flex:none; }
.site-logo img { width:150px; height:50px; }
.site-nav { display:flex; align-items:center; gap:4px 20px; flex-wrap:wrap; margin-left:auto; }
.site-nav a:not(.btn) { display:inline-block; padding:8px 2px; color:#fff; font-weight:700; text-decoration:none; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color:var(--gold); }
.site-nav .btn { min-height:44px; font-size:1rem; padding:8px 18px; }

/* Footer */
.site-footer { background:var(--plum-deep); color:#fff; padding:40px 0; font-size:.98rem; }
.site-footer .wrap { display:flex; justify-content:space-between; gap:24px 48px; flex-wrap:wrap; }
.site-footer a { color:var(--gold-light); font-weight:700; }
.site-footer ul { list-style:none; margin:0; padding:0; display:flex; gap:4px 20px; flex-wrap:wrap; }
.footer-free { font-weight:800; margin-top:4px; }
.footer-note { font-size:.9rem; opacity:.85; margin-top:2px; }

/* Sections */
.section { padding:64px 0; }
.section-alt { background:var(--cream-deep); }
.section-dark { background:var(--plum); color:#fff; }
.section-head { max-width:760px; margin-bottom:32px; }
.section-head p { margin-top:12px; }

/* Home: hero */
.hero { background:radial-gradient(circle at 50% 0, var(--plum-soft) 0, var(--plum) 45%, var(--plum-deep) 100%); color:#fff; text-align:center; padding:48px 0 64px; }
.hero-logo { width:min(520px, 100%); height:auto; margin:0 auto 20px; }
.hero h1 { font-size:clamp(2rem, 5.2vw, 3.4rem); color:var(--gold); max-width:900px; margin:0 auto; }
.hero p { max-width:780px; margin:18px auto 0; font-size:1.15rem; }
.hero-actions { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; margin-top:28px; }

/* Home: reel */
.reel { padding:0 0 64px; background:var(--plum-deep); }
.reel video { width:100%; max-width:900px; aspect-ratio:16/9; margin:0 auto; border-radius:14px; background:#000; box-shadow:0 12px 40px rgba(0,0,0,.45); }

/* Home: three points */
.points { display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; }
.point { background:var(--white); border:1px solid var(--line); border-radius:16px; padding:24px; }
.point-icon { width:72px; height:72px; border-radius:50%; background:var(--plum); border:2px solid var(--gold-deep); margin-bottom:12px; object-fit:cover; }
.point h3 { margin-bottom:8px; }

/* Home: the books */
.books { --cols:4; --gap:24px; list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; justify-content:center; gap:28px var(--gap); }
.book { width:calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.book img { width:100%; height:auto; border-radius:8px; }
.book h3 { margin:14px 0 6px; }
.book p { font-size:1rem; }

/* Home: the AASL table */
.table-wrap { overflow-x:auto; background:var(--white); border:1px solid var(--line); border-radius:14px; }
.aasl { width:100%; border-collapse:collapse; font-size:1rem; }
.aasl th, .aasl td { padding:14px 16px; text-align:left; vertical-align:top; border-top:1px solid var(--line); }
.aasl thead th { background:var(--plum); color:#fff; border-top:0; font-family:'Baloo 2', sans-serif; font-size:1.05rem; }
.aasl tbody th { font-family:'Baloo 2', sans-serif; font-weight:700; font-size:1.1rem; white-space:nowrap; }
.aasl p + p { margin-top:8px; }
.aasl strong { font-weight:800; }

/* Home: free + private, closing */
/* Privacy policy + Terms of use */
.legal { max-width:820px; }
.legal h2 { font-size:clamp(1.4rem, 3.4vw, 1.8rem); margin:36px 0 10px; }
.legal h2:first-child { margin-top:0; }
.legal p { margin-top:12px; }
.legal ul { margin:12px 0 0; padding-left:24px; }
.legal li + li { margin-top:6px; }
.legal a { font-weight:700; overflow-wrap:anywhere; }
.legal .table-wrap { margin-top:14px; }
.legal-table { width:100%; border-collapse:collapse; }
.legal-table th, .legal-table td { padding:12px 14px; text-align:left; vertical-align:top; border-top:1px solid var(--line); }
.legal-table thead th { background:var(--plum); color:#fff; border-top:0; font-family:'Baloo 2', sans-serif; }

/* Inner pages */
.page-intro { background:radial-gradient(circle at 50% 0, var(--plum-soft) 0, var(--plum) 60%, var(--plum-deep) 100%); color:#fff; text-align:center; padding:56px 0; }
.page-intro h1 { color:var(--gold); font-size:clamp(2rem, 5vw, 3.1rem); max-width:860px; margin:0 auto; }
.page-intro p { max-width:720px; margin:14px auto 0; font-size:1.15rem; }
.steps { list-style:none; counter-reset:step; margin:0; padding:0; display:grid; grid-template-columns:repeat(4, 1fr); gap:24px; }
.steps li { counter-increment:step; }
.steps li::before { content:counter(step); display:flex; align-items:center; justify-content:center; width:48px; height:48px; margin-bottom:12px; border-radius:50%; background:var(--gold); color:var(--plum); font-family:'Baloo 2', sans-serif; font-weight:800; font-size:1.5rem; }
.steps h3 { margin-bottom:6px; }
.cards { --cols:3; --gap:24px; display:flex; flex-wrap:wrap; justify-content:center; gap:var(--gap); }
.cards-2 { --cols:2; }
.cards > .point { width:calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.cards .point h3 { margin-bottom:8px; }
.point a { font-weight:800; }
.faq { max-width:820px; }
.faq h3 { margin:28px 0 6px; }
.faq blockquote { margin:12px 0 0; padding:16px 20px; background:var(--cream-deep); border-left:4px solid var(--gold-deep); border-radius:8px; overflow-wrap:anywhere; }
.contact-email { display:inline-block; margin-top:20px; color:var(--gold-light); font-family:'Baloo 2', sans-serif; font-weight:800; font-size:clamp(1.25rem, 5.2vw, 2.25rem); line-height:1.2; overflow-wrap:anywhere; }
.contact-note { margin-top:32px; font-weight:800; }
@media (max-width:900px) { .steps { grid-template-columns:repeat(2, 1fr); } .cards { --cols:2; } }
@media (max-width:560px) { .steps { grid-template-columns:1fr; } .cards { --cols:1; } }

.statement p { max-width:760px; margin-top:14px; font-size:1.15rem; }
/* the poster art, darkened so the words stay easy to read */
.closing { text-align:center; }
.closing-art { background:linear-gradient(rgba(28,10,40,.8), rgba(28,10,40,.8)), url('/site/closing-bg.jpg') center 45% / cover no-repeat; }
.closing h2 { color:var(--gold); }
.closing h2 + .btn { margin-top:20px; }
.closing p { max-width:680px; margin:14px auto 24px; font-size:1.15rem; }

@media (max-width:900px) {
  .points { grid-template-columns:1fr; }
  }
@media (max-width:900px) { .books { --cols:3; } }
@media (max-width:560px) { .books { --cols:2; } }
@media (max-width:720px) {
  .section { padding:44px 0; }
  .wrap { padding:0 16px; }
  .site-header .wrap { justify-content:center; }
  .site-nav { margin:0; justify-content:center; }
  /* phones: each book's row becomes its own stacked card instead of a table that scrolls sideways */
  .table-wrap { background:none; border:0; overflow:visible; }
  .aasl, .aasl tbody, .aasl tr, .aasl th, .aasl td { display:block; width:100%; }
  .aasl thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .aasl tr { background:var(--white); border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin-bottom:12px; }
  .aasl th, .aasl td { padding:0; border:0; }
  .aasl tbody th { white-space:normal; }
  .aasl td { margin-top:6px; }
  .aasl td[data-label]::before { content:attr(data-label) ": "; font-weight:800; }
}
@media (max-width:440px) {
  .books { --gap:14px; row-gap:20px; }
  .site-nav { gap:2px 14px; }
}
