/* Shared styles for the Teacher Features site. System fonts, no external resources. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #5c5c63;
  --link: #0a58ca;
  --rule: #d8d8de;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --text: #f2f2f4;
    --muted: #a9a9b2;
    --link: #7db4ff;
    --rule: #34343a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 2px; }

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header {
  padding-top: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.site-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

main {
  flex: 1;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 0.75rem; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 2rem 0 0.5rem; }
p { margin: 0 0 1rem; }

.lead { font-size: 1.25rem; color: var(--text); }
.meta { color: var(--muted); }

.links { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.links a {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--link);
  border-radius: 0.6rem;
  text-decoration: none;
  font-weight: 600;
}

.site-footer {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
