/* isaacmaple.com
   Type: Overpass (display, after US highway signs) + Public Sans (body, US government web type).
   Signature: the eight wires of a network cable in T568B order, top and bottom of every page.
   Each line of work keeps one wire color: orange TokForge, green Elevated Marketing,
   blue Bank of America, brown everything else. Striped wire = side project of that line. */

@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Overpass";
  src: url("/assets/fonts/overpass-var-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f6f7;
  --tint: #e8ecef;
  --ink: #142231;
  --ink-hover: #26384b;
  --muted: #4a5867;
  --rule: #cfd6dc;
  --rule-strong: #808e9b;
  --wire-white: #ffffff;
  --band-bg: #142231;
  --c-orange: #db6814;
  --c-green: #2c8a45;
  --c-blue: #2563b8;
  --c-brown: #7a4e2d;
  --link-line: #2563b8;
  --focus: #2563b8;
  --hover-tint: rgba(37, 99, 184, 0.09);

  --font-display: "Overpass", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --measure: 34em;
  --gutter: clamp(16px, 4vw, 48px);
  --rail: 12.5rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1a24;
    --tint: #172533;
    --ink: #e6ecf1;
    --ink-hover: #ffffff;
    --muted: #a9b6c2;
    --rule: #2a3a49;
    --rule-strong: #4f6273;
    --wire-white: #e6ecf1;
    --band-bg: #060c12;
    --c-orange: #f08a3c;
    --c-green: #4cb46a;
    --c-blue: #6a9be0;
    --c-brown: #b5835c;
    --link-line: #6a9be0;
    --focus: #8db8f5;
    --hover-tint: rgba(106, 155, 224, 0.14);
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

@media (min-width: 40rem) {
  body { font-size: 1.125rem; }
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; }

p, ul, ol, dl { margin: 0; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

a:hover { text-decoration-thickness: 3px; color: var(--ink-hover); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 0.6em 1em;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 2.25rem; }

.wrap {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The cable: eight wires, pin 1 at the top. */

.band {
  display: grid;
  gap: 1px;
  padding-block: 1px;
  background: var(--band-bg);
}

.band span {
  display: block;
  height: 3px;
  background: var(--c);
  transform-origin: left center;
  animation: pull 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i) * 70ms);
}

.band .striped {
  background: repeating-linear-gradient(90deg, var(--wire-white) 0 22px, var(--c) 22px 34px);
}

.site-footer .band span { animation: none; }

@keyframes pull {
  from { transform: scaleX(0); }
}

.w1, .w2 { --c: var(--c-orange); }
.w3, .w6 { --c: var(--c-green); }
.w4, .w5 { --c: var(--c-blue); }
.w7, .w8 { --c: var(--c-brown); }
.w1 { --i: 0; } .w2 { --i: 1; } .w3 { --i: 2; } .w4 { --i: 3; }
.w5 { --i: 4; } .w6 { --i: 5; } .w7 { --i: 6; } .w8 { --i: 7; }
.band .w3 { background-position: -13px 0; }
.band .w5 { background-position: -25px 0; }
.band .w7 { background-position: -6px 0; }

/* Header */

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem 1.5rem;
  list-style: none;
  padding: 0;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-top: 3px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--rule-strong); }

.site-nav a[aria-current="page"] { border-bottom-color: var(--c-blue); }

/* Home hero */

.hero { padding-block: clamp(2.25rem, 7vw, 6rem) clamp(2.75rem, 6vw, 5rem); }

.hero h1 {
  font-weight: 800;
  font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem);
  line-height: 1.1;
  margin-bottom: 0.7em;
}

.tagline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.125rem, 0.9rem + 4.8vw, 4.625rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  max-width: 12em;
  text-wrap: balance;
}

.roles {
  list-style: none;
  padding: 0;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 1.125rem;
}

/* Separators sit on each item's left edge; the one that starts a wrapped line is clipped. */
@media (min-width: 48rem) {
  .roles {
    display: flex;
    flex-wrap: wrap;
    row-gap: 0.25rem;
    margin-left: -0.9em;
    overflow: hidden;
    font-size: 1.1875rem;
  }
  .roles li {
    margin-left: -1px;
    padding-inline: 0.9em;
    border-left: 1px solid var(--rule-strong);
    line-height: 1.35;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-block;
  padding: 0.7em 1.15em;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.button:hover { background: var(--ink-hover); border-color: var(--ink-hover); color: var(--paper); }

.button-quiet { background: transparent; color: var(--ink); }

.button-quiet:hover { background: var(--hover-tint); border-color: var(--ink); color: var(--ink); }

/* Sections: heading in a left rail on wide screens */

.section {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
}

.section > h2 {
  font-weight: 800;
  font-size: 1.375rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 60rem) {
  .section {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    column-gap: 3rem;
  }
  .section > h2 {
    position: sticky;
    top: 1.5rem;
    align-self: start;
    margin-bottom: 0;
    padding-top: 0.15rem;
  }
}

.section-body { min-width: 0; }

.prose p { max-width: var(--measure); }
.prose p + p { margin-top: 1em; }

.after-link { margin-top: 1.75rem; font-weight: 700; }

/* By the numbers */

.figures {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

@media (min-width: 48rem) {
  .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.figures li { max-width: 14em; }

.figure {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.3rem + 2vw, 2.875rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.figure-label { display: block; font-size: 1rem; line-height: 1.45; }

/* Runs: one wire color per line of work */

.run {
  position: relative;
  padding-left: 1.5rem;
}

.run + .run { margin-top: 2.75rem; }

.run::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 6px;
  background: var(--c);
}

.run.striped::before {
  background: repeating-linear-gradient(180deg, var(--c) 0 18px, var(--wire-white) 18px 28px);
  box-shadow: inset 0 0 0 1px var(--c);
}

.c-orange { --c: var(--c-orange); }
.c-green { --c: var(--c-green); }
.c-blue { --c: var(--c-blue); }
.c-brown { --c: var(--c-brown); }

.run li::marker { color: var(--c); }

.bullets { padding-left: 1.15em; }
.bullets li { max-width: var(--measure); padding-left: 0.2em; }
.bullets li + li { margin-top: 0.55em; }

/* Tap targets: every stand-alone link is at least 48px tall */

.link-list a,
.after-link a,
.contact-line a,
.site-footer a,
.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

/* Status marks: shape carries the meaning, not color */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
}

.status::before {
  content: "";
  flex: none;
  width: 0.8em;
  height: 0.8em;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.status-live::before, .status-running::before { background: currentColor; }
.status-pilot::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.status-pre-alpha::before { border-style: dotted; border-width: 2.5px; }
.status-open-source::before { border-radius: 2px; background: currentColor; }

/* Featured projects and current roles on the home page */

.feature { display: grid; gap: 0.75rem 2.5rem; }

@media (min-width: 66rem) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

.feature h3 { font-weight: 800; font-size: 1.75rem; }
.feature .status { margin-top: 0.55rem; }
.lede { font-size: 1.25rem; line-height: 1.45; margin-top: 0.6rem; max-width: 24em; }
.feature .prose p { max-width: 32em; }

.link-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.job-head h3 { display: flex; flex-direction: column; gap: 0.2rem; }
.job-title { font-weight: 800; font-size: 1.375rem; }
.job-org { font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; line-height: 1.35; }

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 1rem;
}

.job-meta span { white-space: nowrap; }

.now .run + .run { margin-top: 2rem; }
.now .job-line { margin-top: 0.5rem; max-width: var(--measure); }

/* Contact */

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.375rem, 0.9rem + 2.2vw, 2.25rem);
  line-height: 1.2;
  word-break: break-word;
}

.contact .link-list { margin-top: 1rem; }

/* Inner pages */

.page-head { padding-block: clamp(2.25rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }

.page-head h1 {
  font-weight: 800;
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.page-head .roles { margin-top: 1rem; }

.contact-line {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin-top: 0.5rem;
}

.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  padding: 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  max-width: 46rem;
}

.download p { flex: 1 1 16rem; max-width: 30em; }

/* Resume */

.skills div + div { margin-top: 1.1rem; }
.skills dt { font-weight: 700; }
.skills dd { margin: 0.15rem 0 0; max-width: var(--measure); }

.job .summary { margin-top: 0.9rem; max-width: var(--measure); }
.job .bullets { margin-top: 0.9rem; }

.more {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem 1.15rem;
  background: var(--tint);
  max-width: calc(var(--measure) + 2.5rem);
}

.more h4 { font-weight: 700; font-size: 1.125rem; margin-bottom: 0.6rem; }

.earlier-list { list-style: none; padding: 0; }
.earlier-list li + li { margin-top: 1.6rem; }
.earlier-list h3 { font-weight: 700; font-size: 1.1875rem; }
.earlier-list .job-org { display: block; margin-top: 0.15rem; }
.earlier-list p { max-width: var(--measure); margin-top: 0.4rem; }

.plain-list { list-style: none; padding: 0; }
.plain-list li + li { margin-top: 0.6rem; }
.plain-list strong { display: block; }

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

/* Projects */

.project-index {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
  gap: 0.75rem 2rem;
  margin-top: 2rem;
  max-width: 60rem;
}

.project-index a { font-weight: 700; display: flex; align-items: center; min-height: 48px; }
.project-index .status { font-size: 0.875rem; color: var(--muted); }

.project {
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 1rem;
}

.project .run { display: grid; gap: 1.5rem 3rem; }

@media (min-width: 62rem) {
  .project .run { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

.project-name { font-weight: 800; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.05; }
.project .status { margin-top: 0.7rem; }
.project-sub { font-weight: 700; font-size: 1.125rem; margin: 1.6rem 0 0.6rem; }
.project-body > p:first-child { max-width: var(--measure); }

.index-label { margin-top: 1.25rem; color: var(--muted); font-size: 1rem; font-weight: 700; }
.index-label + .project-index { margin-top: 0.25rem; }

.other-projects {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 3px solid var(--ink);
}

.other-heading { font-weight: 800; font-size: 1.375rem; color: var(--muted); }
.other-projects .project { border-top: 0; padding-top: 1.75rem; }
.tech { max-width: var(--measure); }
.not-public { color: var(--muted); font-weight: 700; margin-top: 1rem; }

/* Footer */

.site-footer { margin-top: clamp(2rem, 5vw, 4rem); }

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 2rem;
  padding-block: 1rem 1.5rem;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .band span { animation: none; }
  html { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Print: black on white, the resume only */

@media print {
  :root {
    --paper: #fff; --tint: #fff; --ink: #000; --muted: #000;
    --rule: #000; --rule-strong: #000; --wire-white: #fff;
    --c-orange: #000; --c-green: #000; --c-blue: #000; --c-brown: #000;
  }
  @page { margin: 15mm 16mm; }
  html, body { background: #fff; color: #000; }
  body { font-size: 10.5pt; line-height: 1.4; }
  .band, .site-header, .site-footer, .skip-link, .download .button, .actions { display: none !important; }
  a { color: #000; text-decoration: none; }
  .wrap { max-width: none; padding: 0; }
  .page-head { padding: 0 0 8pt; }
  .page-head h1 { font-size: 22pt; }
  .roles { display: block; margin-top: 2pt; font-size: 11pt; }
  .roles { margin-left: 0; overflow: visible; }
  .roles li { display: inline; border: 0; margin: 0; padding: 0; }
  .roles li + li::before { content: " | "; }
  .contact-line { margin-top: 4pt; gap: 0 14pt; }
  .download { display: block; border: 0; padding: 0; margin-top: 4pt; }
  .section { display: block; padding: 8pt 0 2pt; border-top: 0; }
  .section > h2 { position: static; font-size: 12.5pt; padding-bottom: 2pt; border-bottom: 1px solid #000; margin-bottom: 6pt; }
  .run { padding-left: 0; }
  .run::before { display: none; }
  .run + .run { margin-top: 10pt; }
  .job-title { font-size: 12pt; }
  .job-org, .job-meta { font-size: 10.5pt; }
  .job .summary, .job .bullets { margin-top: 4pt; }
  .bullets li + li { margin-top: 2pt; }
  .more { padding: 0; margin-top: 6pt; }
  .more h4 { font-size: 10.5pt; margin-bottom: 2pt; }
  .earlier-list li + li { margin-top: 6pt; }
  .earlier-list h3 { font-size: 11pt; }
  .skills div + div { margin-top: 4pt; }
  .job-head, .earlier-list li, .skills div, .more h4 { break-inside: avoid; }
  h2, h3, h4 { break-after: avoid; }
  p, li { orphans: 2; widows: 2; }
}
