/* School Alert Hub — editorial theme
   Warm paper, ink, single brick accent. Deliberately unlike ClassWatcher branding. */

:root {
  --paper: #faf6ef;
  --paper-deep: #f3ecdf;
  --ink: #23201a;
  --ink-soft: #57503f;
  --ink-faint: #8a8271;
  --brick: #b3402a;
  --brick-deep: #8e3221;
  --rule: #e0d6c2;
  --card: #fffdf8;
  --good: #3e6b3a;
  --bad: #a03c2b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.075rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  /* faint paper grain */
  background-image: radial-gradient(rgba(35, 32, 26, 0.028) 1px, transparent 1px);
  background-size: 26px 26px;
}

h1, h2, h3, .masthead, .kicker, .site-name {
  font-family: "Fraunces", Georgia, serif;
}

/* ---------- Masthead ---------- */

.topbar {
  border-bottom: 3px double var(--rule);
  background: var(--paper);
}

.topbar-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}

.site-name .dot { color: var(--brick); }

.topnav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.95rem;
  margin-left: 1.25rem;
}

.topnav a:hover { color: var(--brick); }

/* ---------- Homepage hero ---------- */

.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.5rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--brick);
}

.hero p {
  margin-top: 1.1rem;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

/* ---------- Article index ---------- */

.article-list {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

.kicker {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brick);
  border-top: 3px double var(--rule);
  padding-top: 1.4rem;
  margin-bottom: 1.4rem;
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--brick);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translate(2px, -2px);
  box-shadow: -4px 4px 0 var(--paper-deep), -4px 4px 0 1px var(--rule);
}

.card h2 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.card p {
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.card .meta {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-family: "Fraunces", Georgia, serif;
}

/* ---------- Article pages ---------- */

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
}

.article .kicker { border-top: 0; padding-top: 0; }

.article h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}

.article .byline {
  color: var(--ink-faint);
  font-size: 0.92rem;
  font-family: "Fraunces", Georgia, serif;
  margin-bottom: 2.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}

.article h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.4rem 0 0.8rem;
}

.article h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.8rem 0 0.5rem;
}

.article p { margin: 0.9rem 0; }

.article ul, .article ol { margin: 0.9rem 0 0.9rem 1.4rem; }

.article li { margin: 0.35rem 0; }

.article a { color: var(--brick-deep); }

.article a:hover { color: var(--brick); }

.article strong { font-weight: 600; }

/* Disclosure box — shown near the top of review/comparison articles */
.disclosure {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ink-soft);
  padding: 0.85rem 1.1rem;
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin: 1.4rem 0;
}

/* Verdict / summary box */
.verdict {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--brick);
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
}

.verdict .label {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brick);
  margin-bottom: 0.4rem;
}

/* ---------- Figures ---------- */

.article figure {
  margin: 1.6rem auto;
  max-width: 440px;
}

.article figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  box-shadow: -5px 5px 0 var(--paper-deep), -5px 5px 0 1px var(--rule);
}

.article figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-faint);
  font-family: "Fraunces", Georgia, serif;
  text-align: center;
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  margin: 1.4rem 0;
  border: 1px solid var(--rule);
  background: var(--card);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.93rem;
  line-height: 1.45;
}

th {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  color: var(--ink-soft);
  background: var(--paper-deep);
  padding: 0.6rem 0.8rem;
  border-bottom: 2px solid var(--rule);
  white-space: nowrap;
}

td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

tr:last-child td { border-bottom: 0; }

td.yes { color: var(--good); font-weight: 600; }
td.no  { color: var(--bad); }

/* ---------- CTA ---------- */

.cta {
  display: inline-block;
  background: var(--brick);
  color: #fffdf8;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--brick-deep);
  box-shadow: -3px 3px 0 var(--paper-deep), -3px 3px 0 1px var(--rule);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.cta:hover {
  transform: translate(-1px, 1px);
  box-shadow: -1px 1px 0 var(--paper-deep);
  color: #fffdf8;
}

/* ---------- Footer ---------- */

footer {
  border-top: 3px double var(--rule);
  margin-top: 2rem;
}

.footer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.8rem 1.25rem 2.4rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.footer-inner .disclosure-line {
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.footer-inner a { color: var(--ink-soft); }

.footer-inner a:hover { color: var(--brick); }
