/* learn.security.science shared styles */

:root {
  --bg: #ffffff;
  --surface: #f2f4f3;
  --text: #0d1110;
  --muted: #5d6763;
  --line: #e1e5e3;
  --accent: #15803d;
  --accent-text: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d0c;
    --surface: #171a19;
    --text: #eef2f0;
    --muted: #97a29d;
    --line: #232826;
    --accent: #4ade80;
    --accent-text: #0b0d0c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d0c;
  --surface: #171a19;
  --text: #eef2f0;
  --muted: #97a29d;
  --line: #232826;
  --accent: #4ade80;
  --accent-text: #0b0d0c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.5 "Segoe UI", "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
}
a { color: inherit; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* header */
.bar { border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.logo { font-weight: 700; font-size: 17px; text-decoration: none; }
.logo span { color: var(--accent); }

.theme-toggle {
  font: 600 14px "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--muted);
  background: var(--surface);
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--text); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* main */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 16px;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 48px;
  font-weight: 700;
  letter-spacing: -.02em;
  max-width: 18ch;
}
.note { color: var(--muted); margin: -28px 0 0; }
.note a { color: var(--accent); }

.choices { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 560px; }
.choice {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  padding: 22px 24px;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 14px;
  text-decoration: none;
}
.choice:hover, .choice:focus-visible { border-color: var(--accent); outline: none; }
.num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.choice h2 { font-size: 1.3rem; margin: 0; }
.choice p { margin: 2px 0 0; color: var(--muted); font-size: 15.5px; }

/* footer */
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 20px; }
footer p { margin: 0; }
