/* Scribebot public site.
 *
 * Deliberately one stylesheet with no external requests of any kind: no web
 * fonts, no CDN, no analytics, no JavaScript. These pages exist to be read by
 * school web filters, search crawlers and school IT officers, and a classifier
 * that has to fetch a second origin — or run a script — to see the content will
 * not see the content. The palette is fe-manager's sage/mint scale by hand
 * (tailwind.config.ts), because importing the app's build here would reintroduce
 * exactly the dependency this file avoids.
 */

:root {
  --sage-50: #f5fbf7;
  --sage-100: #ebf7ef;
  --sage-200: #d3ecda;
  --sage-300: #b5dec0;
  --sage-500: #62ae7c;
  --sage-600: #428f5e;
  --sage-700: #2f724a;
  --sage-800: #285c3d;
  --sage-900: #234c34;
  --mint-100: #defced;
  --ink: var(--sage-900);
  --muted: #4b6b57;
  --measure: 68ch;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background-color: var(--sage-50);
  background-image:
    radial-gradient(circle at 12% 14%, rgba(109, 174, 122, 0.16), transparent 40%),
    radial-gradient(circle at 86% 16%, rgba(158, 223, 189, 0.22), transparent 35%),
    linear-gradient(180deg, #f5fbf7 0%, #eef8f2 55%, #e4f1e8 100%);
  background-attachment: fixed;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- header ---------------------------------------------------------------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sage-900);
  text-decoration: none;
}

.brand span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-700);
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.masthead nav a {
  color: var(--sage-700);
  text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a:focus {
  text-decoration: underline;
}

/* --- type ------------------------------------------------------------------ */

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  margin: 2.75rem 0 0.85rem;
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.08rem;
}

p,
li {
  max-width: var(--measure);
}

.lede {
  font-size: 1.16rem;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-700);
}

a {
  color: var(--sage-700);
}

strong {
  font-weight: 650;
}

/* --- layout blocks --------------------------------------------------------- */

.hero {
  padding: 3.5rem 0 1rem;
}

main section {
  padding-bottom: 0.5rem;
}

.panel {
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(35, 76, 52, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 56px rgba(35, 76, 52, 0.08);
}

.panel > :first-child {
  margin-top: 0;
}

.panel > :last-child {
  margin-bottom: 0;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.cards li {
  max-width: none;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(35, 76, 52, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.6);
}

.cards h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.cards p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

dl.facts {
  display: grid;
  grid-template-columns: minmax(9rem, auto) 1fr;
  gap: 0.5rem 1.5rem;
  margin: 1.25rem 0 0;
  font-size: 0.96rem;
}

dl.facts dt {
  font-weight: 650;
  color: var(--sage-800);
}

dl.facts dd {
  margin: 0;
  color: var(--muted);
}

.notice {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--sage-300);
  border-left: 4px solid var(--sage-500);
  border-radius: 0.6rem;
  background: var(--sage-100);
  font-size: 0.95rem;
}

.notice p {
  margin: 0.4rem 0;
}

.notice > :first-child {
  margin-top: 0;
}

.notice > :last-child {
  margin-bottom: 0;
}

.cta {
  display: inline-block;
  margin: 1.5rem 0 0;
  padding: 0.7rem 1.4rem;
  border: 1px solid rgba(40, 92, 61, 0.25);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, var(--sage-500), var(--sage-600));
  color: #fff;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
}

.cta:hover,
.cta:focus {
  background: linear-gradient(180deg, #89c69d, var(--sage-600));
}

/* --- footer ---------------------------------------------------------------- */

footer {
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(35, 76, 52, 0.12);
  font-size: 0.9rem;
  color: var(--muted);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

footer p {
  margin: 0.35rem 0;
  max-width: none;
}

/* --- legal documents ------------------------------------------------------- */

.doc-meta {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* The legal pages have no .hero, so their h1 would otherwise sit flush against
   the masthead. */
.legal {
  padding-top: 2.75rem;
}

.legal h2 {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(35, 76, 52, 0.1);
}

.legal ul,
.legal ol {
  max-width: var(--measure);
  padding-left: 1.35rem;
}

.legal li {
  margin: 0.35rem 0;
}
