/* HomeschoolProof site. Plain CSS, no build step. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/BricolageGrotesque-normal-400-800.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/AtkinsonHyperlegible-normal-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/AtkinsonHyperlegible-normal-700.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/AtkinsonHyperlegible-italic-400.woff2") format("woff2"); }

:root {
  --paper: #FAF9F7;      /* brand off-white */
  --ink: #2C2A26;        /* brand charcoal */
  --ink-soft: #5E5A53;   /* secondary text, 6.6:1 on paper */
  --pen: #E85D3F;        /* brand orange: checks, marks */
  --pen-deep: #B8432A;   /* buttons and links: white text 5.4:1, on paper 5.0:1 */
  --manila: #EBD9B4;     /* folder */
  --manila-edge: #D9C293;
  --grid: #D7E4EC;       /* graph paper */
  --card: #FFFFFF;
  --rule: #E7E1D8;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;

  --step--1: 0.889rem;   /* 16px at 18px root */
  --step-0: 1rem;
  --step-1: 1.333rem;
  --step-2: 1.777rem;
  --step-3: 2.369rem;
  --step-4: clamp(2.4rem, 5.2vw, 3.6rem);

  --measure: 34em;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: var(--step-0); line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--pen-deep); text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-variation-settings: "opsz" 96; font-weight: 720; letter-spacing: -0.015em; }
h2 { font-size: var(--step-3); font-variation-settings: "opsz" 72; }
h3 { font-size: var(--step-1); font-variation-settings: "opsz" 24; }
p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { width: min(72rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

/* Header */
.site-header { padding-block: 1.1rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: var(--step-1); letter-spacing: -0.01em; }
.brand img { width: 2.1rem; height: 2.1rem; }
.site-nav { display: flex; gap: 1.4rem; font-size: var(--step--1); }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem;
  padding: 0.7rem 1.4rem; border-radius: 0.6rem; background: var(--pen-deep); color: #fff;
  font-family: var(--display); font-weight: 650; font-size: var(--step-0); text-decoration: none;
  border: 0; cursor: pointer;
}
.button:hover { background: #9E3822; text-decoration: none; }

/* Hero */
.hero { position: relative; padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 92%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 92%);
}
.hero .wrap { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 60rem) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } }
.hero-lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 27em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; margin-top: 1.8rem; }
.hero-note { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }

/* The portfolio folder */
.folder { position: relative; margin: 0; padding: 2.6rem 1.2rem 1.4rem; max-width: 30rem; justify-self: center; width: 100%; }
.folder-back {
  position: absolute; inset: 1.2rem 0 0; background: var(--manila); border-radius: 0 0.9rem 0.9rem 0.9rem;
  border: 1px solid var(--manila-edge);
}
.folder-tab {
  position: absolute; top: 0; left: 0; height: 1.7rem; padding: 0.2rem 1.1rem 0; background: var(--manila);
  border: 1px solid var(--manila-edge); border-bottom: 0; border-radius: 0.6rem 0.6rem 0 0;
  font-family: var(--display); font-weight: 650; font-size: var(--step--1); color: var(--ink);
}
.folder ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.entry {
  display: grid; grid-template-columns: 3.4rem 1fr 2.4rem; gap: 0.9rem; align-items: center;
  background: var(--card); border-radius: 0.5rem; padding: 0.8rem 0.9rem;
  box-shadow: 0 1px 0 var(--manila-edge), 0 6px 14px -10px rgba(60, 45, 20, 0.45);
}
.entry:nth-child(2) { transform: rotate(-0.6deg); }
.entry:nth-child(3) { transform: rotate(0.5deg); }
.entry .thumb { width: 3.4rem; height: 3.4rem; border-radius: 0.35rem; background: #F4F0E8; }
.entry .meta { font-size: var(--step--1); color: var(--ink-soft); display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.entry .title { font-family: var(--display); font-weight: 650; font-size: 1.02rem; line-height: 1.25; margin: 0.1rem 0 0; }
.subject { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; color: var(--ink); }
.subject::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--dot); }
.subject.math { --dot: #E85D3F; } .subject.reading { --dot: #FF8B94; } .subject.science { --dot: #4ECDC4; }
.check { width: 2.4rem; height: 2.4rem; }
.check path { fill: none; stroke: var(--pen); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  .check path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.42s cubic-bezier(.6,.05,.3,1) forwards; }
  .entry:nth-child(1) .check path { animation-delay: 0.55s; }
  .entry:nth-child(2) .check path { animation-delay: 0.95s; }
  .entry:nth-child(3) .check path { animation-delay: 1.35s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* Sections */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--rule); }
.section-intro { max-width: 36rem; margin-bottom: 2.4rem; }
.section-intro p { color: var(--ink-soft); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 1rem;
  border: 2.5px solid var(--pen); border-radius: 50%; color: var(--pen-deep);
  font-family: var(--display); font-weight: 750; font-size: var(--step-1);
}
.steps p { color: var(--ink-soft); }

.features { display: grid; gap: 1.8rem 3rem; margin: 0; }
@media (min-width: 52rem) { .features { grid-template-columns: 1fr 1fr; } }
.features div { padding-left: 1.1rem; border-left: 3px solid var(--manila-edge); }
.features dt { font-family: var(--display); font-weight: 700; font-size: var(--step-1); line-height: 1.25; margin-bottom: 0.3rem; }
.features dd { margin: 0; color: var(--ink-soft); max-width: 30em; }

/* Florida section */
.law { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .law { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; } }
.law-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 0.8rem; }
.law-list li { display: grid; grid-template-columns: 1.8rem 1fr; gap: 0.8rem; padding: 1.2rem 1.3rem; }
.law-list li + li { border-top: 1px dashed var(--rule); }
.law-list svg { width: 1.6rem; height: 1.6rem; margin-top: 0.15rem; }
.law-list svg path { fill: none; stroke: var(--pen); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.law-list strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.law-list span { color: var(--ink-soft); }
.fine { font-size: var(--step--1); color: var(--ink-soft); }

/* Privacy */
.privacy-points { display: grid; gap: 1rem 2.5rem; padding: 0; margin: 0 0 1.5rem; list-style: none; }
@media (min-width: 52rem) { .privacy-points { grid-template-columns: 1fr 1fr; } }
.privacy-points li { padding-left: 1.6rem; position: relative; max-width: 30em; }
.privacy-points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--pen); }

/* FAQ */
.faq { max-width: 44rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-family: var(--display); font-weight: 650; font-size: 1.12rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 0.9rem; font-size: 1.5rem; color: var(--pen-deep); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-soft); }

/* Closing band */
.closing { background: var(--ink); color: var(--paper); }
.closing h2 { color: var(--paper); }
.closing p { color: #D9D4CA; }
.closing .button { background: var(--paper); color: var(--ink); }
.closing .button:hover { background: var(--manila); }

/* Footer */
.site-footer { padding-block: 2.2rem 3rem; font-size: var(--step--1); color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.site-footer a { color: var(--ink-soft); }
.site-footer p { margin: 0; }

/* Legal and support pages */
.doc { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5rem); }
.doc .wrap { max-width: 44rem; }
.doc h1 { font-size: var(--step-3); margin-bottom: 0.3em; }
.doc h2 { font-size: var(--step-1); margin-top: 2.2em; font-variation-settings: "opsz" 24; }
.doc h3 { font-size: 1.05rem; margin-top: 1.4em; }
.doc p, .doc li { max-width: none; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.4em; }
.doc .updated { color: var(--ink-soft); margin-bottom: 2rem; }
.doc .summary { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--pen); border-radius: 0.6rem; padding: 1.1rem 1.3rem; margin-bottom: 2rem; }
.doc .summary p:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: var(--step--1); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--rule); }
.doc th { font-family: var(--display); font-weight: 700; }

/* Comparison and state pages */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.doc table.compare thead th { border-bottom: 2px solid var(--ink); }
.doc table.compare tbody th { width: 24%; font-family: var(--display); }
.doc table.compare td { width: 38%; }
.doc table.map tbody th { width: 42%; font-family: var(--text); font-weight: 400; }
.doc table.map tbody th b { display: block; font-family: var(--display); font-weight: 700; }
@media (min-width: 40.01rem) { .doc table.map.narrow tbody th { width: 26%; font-family: var(--display); font-weight: 700; } }
.choose { display: grid; gap: 0 2.5rem; }
@media (min-width: 40rem) { .choose { grid-template-columns: 1fr 1fr; } }
.choose h2 { margin-top: 1.6em; }
.doc .lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }
.doc .closing-note { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.doc .closing-note .button { margin: 0.4rem 0 1.4rem; }
.doc .law-list { margin: 1rem 0 1.5rem; }
.doc dl.features { margin: 1.2rem 0 2rem; }
.doc dl.features dt a { color: var(--ink); }
@media (max-width: 40rem) {
  .doc table.compare, .doc table.compare tbody, .doc table.compare tr,
  .doc table.compare th, .doc table.compare td,
  .doc table.map, .doc table.map tbody, .doc table.map tr,
  .doc table.map th, .doc table.map td { display: block; width: auto; }
  .doc table.compare thead, .doc table.map thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc table.compare tr, .doc table.map tr { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
  .doc table.compare th, .doc table.compare td,
  .doc table.map th, .doc table.map td { border: 0; padding: 0.15rem 0; }
  .doc table.compare tbody th, .doc table.map tbody th { width: auto; }
  .doc table.compare td { padding-top: 0.5rem; }
  .doc table.compare td::before, .doc table.map td::before { content: attr(data-label); display: block; font-family: var(--display); font-weight: 700; color: var(--ink-soft); }
}

/* Small phones */
.site-header .wrap { flex-wrap: wrap; }
.entry .meta { gap: 0 0.55rem; }
@media (max-width: 30rem) {
  .brand { font-size: var(--step-0); gap: 0.5rem; }
  .brand img { width: 1.8rem; height: 1.8rem; }
  .site-nav { gap: 1rem; }
  .folder { padding-inline: 0.7rem; }
  .entry { grid-template-columns: 2.6rem 1fr 1.8rem; gap: 0.7rem; padding: 0.7rem; }
  .entry .thumb { width: 2.6rem; height: 2.6rem; }
  .check { width: 1.8rem; height: 1.8rem; }
  .entry .title { font-size: 0.95rem; }
}
