/* ClassTimer website: same identity as the extension — chalkboard slate, school-bus yellow,
   Atkinson Hyperlegible (SIL OFL, fonts/OFL.txt). */
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/next-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/next-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url("fonts/mono-700.woff2") format("woff2"); font-weight: 700; font-display: block; }

:root {
  --bg: #213029;
  --surface: #273830;
  --surface-2: #2e4138;
  --line: #4a5f54;
  --text: #eef1ea;
  --muted: #b2bfb6;
  --accent: #f2b705;
  --ink: #231b00;
  --screen: #111316;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--text); font: 18px/1.6 "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid #8ec5ff; outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 16px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }

/* Home: the countdown itself is the hero. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding: 56px 0 88px; }
.hero p { margin-top: 20px; font-size: 22px; color: var(--muted); max-width: 30ch; }
.hero .note { margin-top: 28px; font-size: 16px; }
.floating { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.floating .bar { height: 30px; background: var(--surface-2); }
.floating .face { aspect-ratio: 2 / 1; background: var(--screen); display: flex; align-items: center; justify-content: center; color: #fff;
  font: 700 clamp(64px, 12vw, 150px)/1 "Atkinson Hyperlegible Mono", Consolas, monospace; font-variant-numeric: tabular-nums; transition: color .6s; }
.floating .face .colon { margin: 0 -.17em; }
.floating .face.warn { color: #fbbf24; }
.floating .face.critical { color: #f87171; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.feature:nth-of-type(even) .shot { order: -1; }
.feature p { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.shot { border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 16px 50px rgba(0, 0, 0, .35); }

.closing { padding: 64px 0 88px; border-top: 1px solid var(--line); max-width: 60ch; }
.closing p { margin-top: 14px; color: var(--muted); }

/* Support */
.page { padding: 40px 0 88px; max-width: 760px; }
.page > p { margin-top: 16px; color: var(--muted); }
.contact { margin: 32px 0 8px; padding: 22px 24px; border-radius: 12px; background: var(--surface); border-left: 4px solid var(--accent); }
.contact p + p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.qa { margin-top: 44px; }
.qa h2 { margin-bottom: 8px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "−"; }
details > div { padding: 0 0 20px; color: var(--muted); }
details > div p + p { margin-top: 10px; }
kbd { font: 700 15px/1 "Atkinson Hyperlegible Next", system-ui, sans-serif; padding: 3px 7px; border-radius: 5px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--surface-2); color: var(--text); }
table { border-collapse: collapse; width: 100%; }
td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
td:first-child { width: 42%; padding-right: 16px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 16px; display: flex; flex-wrap: wrap; gap: 12px 28px; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero, .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature:nth-of-type(even) .shot { order: 0; }
  .hero { padding: 24px 0 56px; }
  .top nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .floating .face { transition: none; } }
