/* Travis Thornburg brand
   Ink navy carries trust and ties the site to the PDF resume.
   Review green is reserved for the one thing Travis does: confirm a record is right. */

@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #16324F;        /* Ink navy: primary, hero, headings */
  --steel: #2E5C82;      /* Steel blue: roles, links, rails */
  --verify: #2F7D5B;     /* Review green: check marks only */
  --paper: #F4F7FA;      /* Record white: page background */
  --surface: #FFFFFF;
  --text: #1B2633;
  --muted: #566476;
  --rule: #D3DCE6;
  --tag-bg: #E3EBF3;

  --on-ink: #F4F7FA;
  --on-ink-muted: #B5C4D4;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101A26;
    --surface: #16212F;
    --text: #E4EAF1;
    --muted: #9AAABB;
    --rule: #26354A;
    --tag-bg: #22344A;
    --steel: #8DB5DB;
    --verify: #4FAE85;
    --ink: #0B1622;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

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

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); color: var(--text); padding: 8px 12px; z-index: 10; }

a { color: var(--steel); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--verify); outline-offset: 3px; border-radius: 4px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--on-ink);
  padding: 64px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.mark { display: block; margin-bottom: 22px; }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.hero .title {
  margin: 8px 0 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--on-ink-muted);
}
.lede {
  margin: 22px 0 26px;
  max-width: 34em;
  font-size: 1.1rem;
  color: var(--on-ink);
}
.contact {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 0.98rem;
  color: var(--on-ink-muted);
}
.contact a { color: var(--on-ink); }
.btn {
  display: inline-block;
  background: var(--on-ink);
  color: #16324F;
  padding: 11px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.btn:hover { background: #ffffff; }

/* The review card: the one bold element */
.review {
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 26px 26px 22px;
  border-top: 6px solid var(--verify);
  box-shadow: 0 18px 40px rgba(5, 15, 28, 0.35);
}
.review-head {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
}
.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative;
  padding: 11px 0 11px 40px;
  border-top: 1px solid var(--rule);
  line-height: 1.4;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--verify) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat;
}
.review-foot {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */
main { padding: 24px 20px 8px; }
.block {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}
.block:last-child { border-bottom: 0; }
.block > h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ink);
}
@media (prefers-color-scheme: dark) { .block > h2 { color: var(--text); } }
.block > *:not(h2) { grid-column: 2; }
.summary { margin: 0; max-width: 40em; }

h3 { font-size: 1.12rem; margin: 0; font-weight: 600; }

/* Timeline: experience is a real sequence */
.timeline { list-style: none; margin: 0; padding: 0; }
.job {
  position: relative;
  padding: 0 0 34px 30px;
  border-left: 2px solid var(--rule);
}
.job:last-child { padding-bottom: 0; }
.job::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--steel);
}
.job-head, .role-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 16px;
}
.dates { margin: 0; color: var(--muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.role { margin: 4px 0 6px; font-weight: 600; color: var(--steel); }
.role-block { margin-top: 14px; }
.role-block + .role-block { padding-top: 14px; border-top: 1px dashed var(--rule); }

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--tag-bg);
  font-size: 0.78rem;
  font-weight: 500;
  vertical-align: 2px;
}

.duties { margin: 6px 0 0; padding: 0; list-style: none; }
.duties li { position: relative; padding-left: 20px; margin: 6px 0; max-width: 42em; }
.duties li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  background: var(--steel);
  border-radius: 1px;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.skills h3 { font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
@media (prefers-color-scheme: dark) { .skills h3 { color: var(--text); } }
.skills ul { margin: 0; padding: 0; list-style: none; }
.skills li { padding: 5px 0; border-bottom: 1px solid var(--rule); font-size: 0.98rem; }

.footer { background: var(--ink); color: var(--on-ink-muted); margin-top: 32px; }
.footer-row { display: flex; align-items: center; gap: 12px; padding-top: 20px; padding-bottom: 20px; font-size: 0.9rem; }
.footer p { margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .hero { padding: 40px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .block { grid-template-columns: 1fr; gap: 14px; padding: 30px 0; }
  .block > *:not(h2) { grid-column: 1; }
  main { padding-top: 8px; }
}
