/* careerkernel.io
 *
 * Shared by index.html and privacy.html. No web fonts and no third-party anything:
 * the pages make a claim about not phoning home, and a page that loads a font from
 * Google while saying so is not making that claim honestly. System fonts also mean
 * the page renders before it has finished loading.
 */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-raised: #ffffff;
  --ink: #14161a;
  --ink-soft: #55606e;
  --ink-faint: #8b95a3;
  --border: #e3e6eb;
  --accent: #C2410C;
  --accent-ink: #ffffff;
  --good: #0f7a53;
  --bad: #d4493f;
  --radius: 12px;
  color-scheme: light;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c0f;
    --bg-soft: #11131a;
    --bg-raised: #14171f;
    --ink: #eef1f6;
    --ink-soft: #a6b0be;
    --ink-faint: #6f7987;
    --border: #22262f;
    --accent: #F59E0B;
    --accent-ink: #07080b;
    --good: #4cc79a;
    --bad: #ff8078;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b0c0f;
  --bg-soft: #11131a;
  --bg-raised: #14171f;
  --ink: #eef1f6;
  --ink-soft: #a6b0be;
  --ink-faint: #6f7987;
  --border: #22262f;
  --accent: #F59E0B;
  --accent-ink: #07080b;
  --good: #4cc79a;
  --bad: #ff8078;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

a { color: var(--accent); }

/* ── header ───────────────────────────────────────────────── */

header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand svg { display: block; }
.brand b { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }

.tag {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-soft);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px;
  white-space: nowrap; text-decoration: none;
}

.head-right { display: flex; align-items: center; gap: 10px; }

/* ── the light and dark switch ────────────────────────────── */
/*
 * Two icons in one button. The one shown is the mode it switches to, so it reads as a
 * promise rather than a status: a sun means "make it light", not "it is light".
 */

.theme {
  display: grid; place-items: center;
  width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-raised); color: var(--ink-soft);
  cursor: pointer;
}

/* display:grid above beats the browser's own [hidden] { display: none }, so without this
   a page with scripts blocked shows a button that cannot do anything. */
.theme[hidden] { display: none; }

.theme:hover { color: var(--ink); border-color: var(--ink-faint); filter: none; }
.theme svg { display: block; width: 17px; height: 17px; }

.theme[data-mode="dark"] .i-moon,
.theme[data-mode="light"] .i-sun { display: none; }

/* ── type ─────────────────────────────────────────────────── */

h1 {
  font-size: clamp(31px, 6.2vw, 48px);
  line-height: 1.12; letter-spacing: -.024em;
  font-weight: 660; margin: 26px 0 0;
  text-wrap: balance;
}

.lede {
  font-size: clamp(17px, 2.3vw, 19.5px);
  color: var(--ink-soft); margin: 18px 0 0; max-width: 60ch;
}

section { padding: 46px 0 0; }

h2 {
  font-size: clamp(22px, 3.4vw, 27px); line-height: 1.25;
  letter-spacing: -.016em; font-weight: 640; margin: 0 0 14px;
  text-wrap: balance;
}

h3 {
  font-size: 18px; font-weight: 620; letter-spacing: -.01em;
  margin: 26px 0 10px;
}

p { margin: 0 0 15px; }
p:last-child { margin-bottom: 0; }

.divider { height: 1px; background: var(--border); border: 0; margin: 46px 0 0; }

.muted { color: var(--ink-soft); font-size: 16px; }

code {
  font-family: var(--mono); font-size: .89em;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 5px;
  overflow-wrap: anywhere;
}

/* ── signup ───────────────────────────────────────────────── */

.signup { margin: 30px 0 0; }

.row { display: flex; gap: 10px; flex-wrap: wrap; }

input[type="email"] {
  flex: 1 1 240px; min-width: 0;
  font: inherit; font-size: 16px;
  padding: 13px 15px;
  color: var(--ink); background: var(--bg-raised);
  border: 1px solid var(--border); border-radius: 10px;
}

input[type="email"]::placeholder { color: var(--ink-faint); }

input[type="email"]:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

button {
  font: inherit; font-size: 16px; font-weight: 560;
  padding: 13px 22px; border: 1px solid transparent; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  cursor: pointer; white-space: nowrap;
}
button:hover { filter: brightness(1.07); }
button:disabled { opacity: .6; cursor: default; filter: none; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.fineprint { font-size: 14px; color: var(--ink-faint); margin: 11px 0 0; }

.note { font-size: 15.5px; margin: 13px 0 0; min-height: 1.2em; }
.note.ok { color: var(--good); }
.note.bad { color: var(--bad); }

/* Off-screen rather than hidden: a bot reads the DOM, and display:none is the
   first thing it learns to skip. */
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── who they are ─────────────────────────────────────────── */
/*
 * One tap, and skippable. It is worth knowing whether the list is mostly undergrads
 * looking for internships or mostly graduate students, because those want different
 * things, but not at the cost of the signup itself. Anyone who ignores this still joins.
 */

.chips {
  border: 0; margin: 14px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}

.chips legend {
  padding: 0; margin: 0 0 9px;
  font-size: 13.5px; color: var(--ink-faint);
}

.chips label { cursor: pointer; }

/* Clipped rather than display:none, so it still takes keyboard focus. */
.chips input {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.chips span {
  display: inline-block;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-raised);
  font-size: 14.5px; color: var(--ink-soft);
}

.chips label:hover span { border-color: var(--ink-faint); }

.chips input:checked + span {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.chips input:focus-visible + span {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

.opt-in {
  display: flex; align-items: center; gap: 9px;
  margin: 13px 0 0; cursor: pointer;
  font-size: 14.5px; color: var(--ink-soft);
}

.opt-in input {
  width: 17px; height: 17px; margin: 0;
  accent-color: var(--accent); flex: none;
}

.opt-in:hover { color: var(--ink); }

/* ── blocks ───────────────────────────────────────────────── */

.card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 20px 46px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  background: var(--bg-raised); color: var(--accent);
  border: 1px solid var(--border);
}
.steps strong { font-weight: 620; }
.steps span { display: block; color: var(--ink-soft); font-size: 16px; }

.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
  position: relative; padding: 0 0 13px 27px;
  color: var(--ink-soft); font-size: 16.5px;
}
.facts li:last-child { padding-bottom: 0; }
.facts li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}
.facts b { color: var(--ink); font-weight: 600; }

/* The list of repetitive questions. Two columns where there is room, because the
   length of the list is the argument. */
.qgrid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 1px 28px;
}

@media (min-width: 600px) {
  .qgrid { grid-template-columns: 1fr 1fr; }
}

.qgrid li {
  position: relative; padding: 4px 0 4px 24px;
  color: var(--ink-soft); font-size: 16px;
}

.qgrid li::before {
  content: ""; position: absolute; left: 3px; top: 15px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.after-card { margin-top: 15px; font-size: 16px; color: var(--ink-soft); }

/* ── the closing ask ──────────────────────────────────────── */

.closer { padding-top: 46px; }
.closer h2 { margin-bottom: 12px; }
.closer p { max-width: 58ch; }

.cta {
  display: inline-block; margin-top: 18px;
  padding: 13px 24px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 16px; font-weight: 560; text-decoration: none;
}
.cta:hover { filter: brightness(1.07); }
.cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.limits { font-size: 16px; color: var(--ink-soft); }
.limits b { color: var(--ink); font-weight: 600; }

/* ── tables, used on the privacy page ─────────────────────── */

.table-scroll { overflow-x: auto; margin: 0 0 15px; }

table {
  border-collapse: collapse; width: 100%; font-size: 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
}
th, td {
  text-align: left; padding: 10px 13px;
  border-bottom: 1px solid var(--border);
}
th { font-weight: 620; font-size: 14px; color: var(--ink-soft); }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }

/* ── footer ───────────────────────────────────────────────── */

footer {
  margin: 52px 0 0; padding: 22px 0 40px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  align-items: center; justify-content: space-between;
  font-size: 14.5px; color: var(--ink-faint);
}
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
