/* pepp.co — Andrew Peppard
   Visual language borrowed from roadway plan sets: hairline rules, monospace
   annotation, highway stationing, and the diagonal buffer hatch that separates
   a managed lane from the general-purpose lanes. Square corners, flat fills,
   no shadows anywhere. */

:root {
  --asphalt:   #191C1E;
  --concrete:  #E7E9E6;
  --paper:     #FCFCFB;
  --guide:     #00654B;   /* FHWA guide-sign green */
  --marking:   #E0A02E;   /* pavement marking */

  --rule:        #C6C9C5; /* decorative hairline */
  --rule-strong: #7E847E; /* interactive borders — clears 3:1 on both grounds */
  --muted:       #575D60;

  --on-dark:       #F2F4F1;
  --muted-dark:    #A7AEA8;
  --guide-dark:    #7FC8A9;
  --rule-dark:     #363B3D;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --pad: 1.25rem;
  --maxw: 70rem;
  /* No percentage here: a percentage inside a custom property re-resolves
     against whatever element uses it, which made the bleed overshoot. */
  --gutter: max(var(--pad), calc((100vw - var(--maxw)) / 2));
  --measure: 62ch;
}

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

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

body {
  margin: 0;
  overflow-x: clip;               /* safety net for the viewport-width bleed */
  background: var(--concrete);
  color: var(--asphalt);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--guide); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

/* The guide green is nearly invisible against asphalt, so the dark bands get
   the lighter variant. */
.hero :focus-visible,
.argue :focus-visible {
  outline-color: var(--guide-dark);
}

/* Monospace annotation — the drafting layer. */
.ann {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-weight: 400;
}

.skip {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 10;
  background: var(--paper); color: var(--asphalt);
  padding: 0.6rem 1rem; border: 1px solid var(--asphalt);
  font-family: var(--mono); font-size: 0.8125rem;
  transition: top 120ms ease-out;
}
.skip:focus { top: 0.75rem; }

/* ---------- Hero — the one bold element on the page ---------- */

.hero {
  background: var(--asphalt);
  color: var(--on-dark);
  padding-top: clamp(2.5rem, 7vw, 5rem);
}

.hero__inner {
  width: min(100% - 2 * var(--pad), var(--maxw));
  margin-inline: auto;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.titleblock {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule-dark);
}

.hero__name {
  font-size: clamp(2.75rem, 11vw, 6rem);
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: clamp(1.75rem, 5vw, 3rem) 0 clamp(1rem, 2.5vw, 1.5rem);
}

.hero__summary {
  font-size: clamp(1.0625rem, 2.1vw, 1.375rem);
  line-height: 1.45;
  max-width: 46ch;
  color: var(--on-dark);
  margin: 0;
}

/* Managed-lane buffer hatch. Pure CSS, zero bytes. */
.buffer {
  height: 1.75rem;
  background:
    repeating-linear-gradient(
      -60deg,
      var(--marking) 0 2px,
      transparent 2px 12px
    ),
    var(--asphalt);
  border-top: 2px solid var(--on-dark);
  border-bottom: 2px solid var(--on-dark);
}

/* ---------- Page grid + station rail ---------- */

.page { width: min(100% - 2 * var(--pad), var(--maxw)); margin-inline: auto; }

.rail { display: none; }

.flow > .section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.flow > .section + .section,
.argue + .section { border-top: 1px solid var(--rule); }

.section > h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  margin-bottom: 1.75rem;
}

.prose, .lede { max-width: var(--measure); }
.lede { color: var(--muted); margin-bottom: 2rem; }

/* ---------- Background: career sequence strip ---------- */

.arc {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin: 2.5rem 0 0;
  padding: 0;
  background: var(--rule);
  border: 1px solid var(--rule);
  max-width: var(--measure);
}
.arc li {
  flex: 1 1 7rem;
  background: var(--paper);
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.arc__yr {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--guide);
  letter-spacing: 0.04em;
}
.arc__ph { font-size: 0.875rem; line-height: 1.25; }

/* ---------- What I'd argue about — dark, grave, unornamented ---------- */

.argue {
  background: var(--asphalt);
  color: var(--on-dark);
  margin-inline: calc(-1 * var(--gutter));
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}

.argue h2 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 18ch;
}

.argue__body {
  /* The size lives here, not on the paragraphs, so the ch-based measure
     resolves against the text it actually governs. */
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  border-left: 2px solid var(--marking);
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
  max-width: 48ch;
}

.argue__body p { margin-bottom: 1.1em; }
.argue__body p:last-child { margin-bottom: 0; }

/* ---------- Selected work ---------- */

.work { max-width: var(--measure); }
.work h3 { font-size: 1.375rem; margin-bottom: 0.4rem; }
.work h3 a { color: var(--asphalt); text-decoration-color: var(--guide); }
.work h3 a:hover { color: var(--guide); }
.work__meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

/* ---------- Press kit ---------- */

.kit {
  display: grid;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
  max-width: 52rem;
}

.shot { margin: 0; max-width: 16rem; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
}
.shot figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.7rem;
}
.dl { font-size: 0.9375rem; }

.attr { margin: 0; display: grid; grid-template-columns: auto; gap: 0; }
.attr dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
}
.attr dd { margin: 0 0 0.7rem; }
.attr dd:last-child { margin-bottom: 0; }

.bio { margin-bottom: 2.25rem; max-width: var(--measure); }
.bio__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.bio__head h3 { font-size: 1rem; font-weight: 600; }
.bio__head .ann { margin-left: 0.5rem; }

.bio blockquote {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--asphalt);
  padding: 1.1rem 1.25rem;
  font-size: 0.96875rem;
}
.bio blockquote p + p { margin-top: 0.9em; }

.copy {
  flex: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--asphalt);
  background: transparent;
  border: 1px solid var(--rule-strong);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: background-color 120ms ease-out, color 120ms ease-out;
}
.copy:hover { background: var(--asphalt); color: var(--on-dark); border-color: var(--asphalt); }
.copy[data-state="done"] { background: var(--guide); border-color: var(--guide); color: #fff; }

.topics__h { font-size: 1rem; margin: 2.75rem 0 0.9rem; }
.topics { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.topics li { padding: 0.7rem 0; border-top: 1px solid var(--rule); }
.topics li:last-child { border-bottom: 1px solid var(--rule); }

/* ---------- Testimonial (styled and ready; markup currently commented out) ---------- */

.testimonial {
  margin: 3rem 0 0;
  max-width: var(--measure);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--marking);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote p {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.testimonial blockquote p::before { content: "\201C"; }
.testimonial blockquote p::after  { content: "\201D"; }
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
}
.testimonial__name { font-weight: 600; font-size: 0.9375rem; }
.testimonial__title {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.paths { display: grid; gap: 2.5rem; }
.path h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.path__addr { font-size: 1.25rem; margin-bottom: 0.5rem; }
.path__note { color: var(--muted); font-size: 0.9375rem; max-width: 42ch; }

.form { margin-top: 1.5rem; max-width: 34rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--asphalt);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: 0.6rem 0.7rem;
  border-radius: 0;
  -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--guide);
  outline-offset: 1px;
  border-color: var(--guide);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #9B2C1E; }

/* Honeypot — off-canvas rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.turnstile:not(:empty) { margin-bottom: 1.1rem; }

.submit {
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--on-dark);
  background: var(--asphalt);
  border: 1px solid var(--asphalt);
  padding: 0.7rem 1.75rem;
  cursor: pointer;
  transition: background-color 120ms ease-out;
}
.submit:hover { background: var(--guide); border-color: var(--guide); }
.submit[disabled] { opacity: 0.55; cursor: default; }

.status:empty { display: none; }
.status {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--rule-strong);
  max-width: 42ch;
}
.status--ok   { border-left-color: var(--guide); }
.status--err  { border-left-color: #9B2C1E; }
.status--note { border-left-color: var(--marking); }

/* ---------- Footer ---------- */

.foot {
  padding-block: 2.5rem 3.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}
.foot p { margin-bottom: 0.3rem; }

/* ---------- Wider viewports ---------- */

@media (min-width: 48rem) {
  .kit { grid-template-columns: 16rem minmax(0, 1fr); gap: 2.5rem; }
  .attr { grid-template-columns: 10rem minmax(0, 1fr); align-items: baseline; }
  .attr dt { padding-top: 0.7rem; }
  .attr dd { padding-top: 0.7rem; border-top: 1px solid var(--rule); margin-bottom: 0; }
  .paths { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 3.5rem; }
}

@media (min-width: 64rem) {
  .page {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);
    column-gap: 3rem;
    align-items: start;
  }

  .rail {
    display: block;
    position: sticky;
    top: 3rem;
    padding-top: clamp(3rem, 7vw, 5.5rem);
  }
  .rail ol { list-style: none; margin: 0; padding: 0; }
  .rail li { margin-bottom: 0.55rem; }
  .rail a {
    display: block;
    font-family: var(--mono);
    font-size: 0.75rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: var(--muted);
    text-decoration: none;
    border-left: 2px solid var(--rule);
    padding: 0.15rem 0 0.15rem 0.6rem;
    transition: color 120ms ease-out, border-color 120ms ease-out;
  }
  .rail a:hover { color: var(--asphalt); border-left-color: var(--rule-strong); }
  .rail a[aria-current] { color: var(--asphalt); border-left-color: var(--marking); }
  .rail__sta { display: block; color: var(--guide); }
  .rail a[aria-current] .rail__sta { color: var(--guide); }

  /* The dark band runs off the right edge of the sheet, like a section cut. */
  .argue {
    margin-left: -2rem;
    margin-right: calc(-1 * var(--gutter));
    padding-left: 2rem;
    padding-right: var(--gutter);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
