/* jacobwilson.net — "status page" theme, dark graphite */

/* Geist and Geist Mono, self-hosted (SIL Open Font License, see assets/fonts/LICENSE-Geist.txt) */
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0e0f11;
  --surface: #16181b;
  --surface-hover: #1b1d21;
  --border: #25282d;
  --border-strong: #2c2f35;
  --rule: #222429;
  --text: #e8e8e5;
  --text-2: #c2c4c8;
  --text-3: #b4b7bc;
  --muted: #9a9da3;
  --link-hover: #9dbdf2;
  --ok: #4cc57f;
  --ok-strong: #2ea05a;
  --ok-bg: #132019;
  --ok-border: #1f4d33;
  --ok-text: #a9c4b2;
  --pill-bg: #173524;
  --pill-text: #6fda9c;
  --r0: #26364f;
  --r1: #36598c;
  --r2: #5b8ad3;
  --r3: #afcbf5;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: var(--text); }
a:hover { color: var(--link-hover); }

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

h1, h2, h3, p { margin: 0; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--bg); }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.brand { font-family: var(--mono); font-size: 14px; text-decoration: none; }
.top nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.top ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.top ul a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-3);
}
.top ul a:hover { background: var(--surface-hover); color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  font: 500 14px var(--font);
  text-decoration: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.btn:hover { border-color: #5b5f67; color: #fff; }
.btn-light { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--bg); }

/* Identity */
.who { display: flex; gap: 24px; align-items: center; padding: 56px 0 32px; }
.who img { width: 96px; height: 96px; border-radius: 8px; object-fit: cover; flex: none; }
.who h1 { font-size: 44px; line-height: 1.05; letter-spacing: -.025em; font-weight: 600; }
.who p { margin-top: 6px; font-size: 17px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }

.banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  flex-wrap: wrap;
  background: var(--ok-bg);
  border-color: var(--ok-border);
}
.banner .ok {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ok-strong);
  display: grid; place-items: center;
  flex: none;
}
.banner .text { flex: 1 1 320px; }
.banner strong { font-size: 18px; font-weight: 600; }
.banner p { margin-top: 2px; color: var(--ok-text); }

.section-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 56px 0 14px;
}

/* Career uptime */
.uptime { padding: 24px; }
.uphead { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.uphead .mono { font-size: 13px; }
.bars { display: flex; gap: 2px; height: 44px; align-items: stretch; }
.bar { flex: 1 1 0; border-radius: 2px; min-width: 1px; }
.bar { cursor: crosshair; transition: opacity .12s; }
.bars:hover .bar { opacity: .55; }
.bars .bar.is-active, .bars:hover .bar.is-active { opacity: 1; outline: 1px solid var(--text); outline-offset: 1px; }
.r0 { background: var(--r0); }
.r1 { background: var(--r1); }
.r2 { background: var(--r2); }
.r3 { background: var(--r3); }
.axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; }
.legend {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--text-3);
}
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; }

/* Components */
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 18px 24px;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.row:first-child { border-top: 0; }
.row h3 { font-size: 16px; font-weight: 600; }
.row p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.status {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ok);
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.row .recurring { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Incidents */
.inc { padding: 24px; border-top: 1px solid var(--rule); }
.inc:first-child { border-top: 0; }
.incmeta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 12px; margin-bottom: 8px; }
.pill { font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 4px; background: var(--pill-bg); color: var(--pill-text); }
.inc h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.01em; }
.inc p { color: var(--text-2); max-width: 680px; }
.fix { margin-top: 12px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.fix b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: #fff; }

/* Roles */
.roles { width: 100%; border-collapse: collapse; }
.roles td { padding: 16px 24px; border-top: 1px solid var(--rule); vertical-align: top; }
.roles tr:first-child td { border-top: 0; }
.roles .when { width: 170px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.roles .what { font-weight: 600; }
.roles .where { color: var(--muted); }

/* Stack */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid4 > div { padding: 20px 24px; border-left: 1px solid var(--rule); }
.grid4 > div:first-child { border-left: 0; }
.grid4 h3 { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); }
.grid4 ul { list-style: none; margin: 10px 0 0; padding: 0; line-height: 1.9; }

/* Resume page */
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 40px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--link-hover); }
.prose { padding: 8px 28px 28px; }
.prose h2 { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
.prose p, .prose li { color: var(--text-2); max-width: 720px; }
.prose p + p { margin-top: 10px; }
.prose ul { margin: 0; padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); font-weight: 600; }

/* Resume page: site theme on screen, plain ATS layout in print/PDF */
.resume-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 16px; }
.resume { padding: 28px; }
.resume h1 { font-size: 32px; letter-spacing: -.02em; font-weight: 600; color: var(--text); }
.resume h1 + p { margin-top: 4px; }
.resume h2 { margin-top: 32px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.resume h3 { font-size: 16px; font-weight: 600; margin: 22px 0 2px; }
.resume h3 + p { color: var(--muted); font-size: 14px; }
.resume h4 { font-size: 14px; font-weight: 600; margin: 16px 0 0; color: var(--text); }
.resume a { color: var(--text-2); }
.resume ul { margin-top: 6px; }

@media print {
  @page { size: Letter; margin: 0.5in 0.55in; }
  html, body.resume-page { background: #fff; color: #111; }
  body.resume-page { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 9.5pt; line-height: 1.28; }
  body.resume-page .wrap { max-width: none; padding: 0; }
  body.resume-page .top, body.resume-page .foot, body.resume-page .crumbs,
  body.resume-page .resume-actions, body.resume-page .skip-link { display: none; }
  body.resume-page .card { background: none; border: 0; border-radius: 0; }
  body.resume-page .resume { padding: 0; }
  body.resume-page .resume * { color: #111; }
  body.resume-page .resume a { text-decoration: none; }
  body.resume-page .resume h1 { font-size: 20pt; margin: 0 0 2pt; letter-spacing: 0; font-family: inherit; }
  body.resume-page .resume h1 + p { margin: 0; }
  body.resume-page .resume h2 { font-family: inherit; font-size: 10.5pt; font-weight: 700; letter-spacing: .06em; border-bottom: 1px solid #999; padding-bottom: 2pt; margin: 8pt 0 3pt; }
  body.resume-page .resume h3 { font-size: 10pt; font-weight: 700; margin: 6pt 0 0; }
  body.resume-page .resume h3 + p { font-size: inherit; }
  body.resume-page .resume p { margin: 2pt 0; max-width: none; }
  body.resume-page .resume h4 { font-size: inherit; font-weight: 700; margin: 2pt 0 0; }
  body.resume-page .resume strong { font-weight: 700; }
  body.resume-page .resume ul { margin: 1pt 0 3pt; padding-left: 14pt; }
  body.resume-page .resume li { margin: 1pt 0; max-width: none; }
  body.resume-page .resume h2, body.resume-page .resume h3, body.resume-page .resume h4 { break-after: avoid; page-break-after: avoid; }
  body.resume-page .resume li { break-inside: avoid; }
}

/* Footer */
.foot { margin-top: 72px; padding: 40px 0 56px; border-top: 1px solid var(--border); }
.foot .label { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.foot .mail { font-size: 32px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; word-break: break-word; }
.foot .links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.foot .copy { margin-top: 48px; font-size: 13px; color: var(--muted); }

.copy-btn[data-copied="true"] { border-color: var(--ok); color: var(--ok); }

/* 404 */
.notfound { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
.notfound .code { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.notfound h1 { font-size: 44px; line-height: 1.1; letter-spacing: -.025em; font-weight: 600; margin: 12px 0 12px; }
.notfound .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.pill-warn { background: #3a2a12; color: #f5c46b; }

/* Phone */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .who { padding: 32px 0 24px; gap: 16px; }
  .who img { width: 72px; height: 72px; }
  .who h1 { font-size: 30px; }
  .who p { font-size: 15px; }
  .section-title { margin-top: 40px; }
  .bars { gap: 0; height: 36px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px; }
  .inc, .uptime { padding: 18px 16px; }
  .banner { padding: 18px 16px; }
  .roles td { display: block; padding: 2px 16px; border-top: 0; }
  .roles .when { width: auto; }
  .roles tr td:first-child { padding-top: 16px; border-top: 1px solid var(--rule); }
  .roles tr:first-child td:first-child { border-top: 0; }
  .roles tr td:last-child { padding-bottom: 16px; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid4 > div { border-left: 0; border-top: 1px solid var(--rule); padding: 16px; }
  .grid4 > div:nth-child(-n+2) { border-top: 0; }
  .foot .mail { font-size: 24px; }
  .prose { padding: 4px 16px 20px; }
  .notfound h1 { font-size: 32px; }
}
