/* ctf.wail.ly: the palette and fonts of the course slides ("Ring 0"). */
:root {
  --bg: #0E1522;
  --surface: #182131;
  --surface-2: #212C3E;
  --rule: #2E3A4E;
  --text: #E8EAED;
  --muted: #8A93A3;
  --accent: #F2A63B;
  --accent-dark: #C77E22;
  --danger: #E5645E;
  --info: #63B4D1;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 3px solid var(--info);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface-2);
  color: var(--text);
}
.skip:focus { top: 0.5rem; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.brand {
  font-family: var(--mono);
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
}
.brand::before { content: "$ "; color: var(--accent); }
.switch { font-size: 0.9375rem; }

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
}

h1, h2, h3 { line-height: 1.25; font-weight: 600; }
h1 { font-size: 2rem; margin: 1rem 0 1.25rem; }
h2 {
  font-size: 1.25rem;
  margin: 2.25rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--rule);
}

code, pre { font-family: var(--mono); font-size: 0.9375em; }
:not(pre) > code {
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
pre {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  overflow-x: auto;
  border-radius: 3px;
}

.muted, .crumbs, .skills, .user { color: var(--muted); }
.crumbs { font-size: 0.9375rem; margin-top: 1rem; }

.connect {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.75rem 1rem;
}
.connect .user { margin: 0 0 0.5rem; }
.connect .user code { color: var(--text); }
.connect pre { margin: 0; background: var(--bg); }

.commands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.lecture { border-left: 3px solid var(--info); padding-left: 0.75rem; }
/* The notice of the home page while the server is reached through a tunnel. */
.notice { border-left: 3px solid var(--info); margin: 1rem 0; padding: 0.25rem 1rem; background: var(--surface); border-radius: 3px; }

.hint {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin: 0.5rem 0;
}
.hint summary {
  cursor: pointer;
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: var(--accent);
}
.hint[open] summary { border-bottom: 1px solid var(--rule); }
.hint > div { padding: 0.5rem 1rem 0.75rem; }
.hint > div > :first-child { margin-top: 0; }
.hint > div > :last-child { margin-bottom: 0; }

.levels li, .themes li { margin: 0.5rem 0; }
.levels code { margin-left: 0.5rem; }
.skills { display: block; font-size: 0.9375rem; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.pager a[rel="next"] { margin-left: auto; text-align: right; }

.privacy {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0 1rem 0.5rem;
  margin-top: 2.25rem;
}
.privacy h2 { margin-top: 1rem; }
