/* chadbaniecki.com: clean, minimal, no external assets. */
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #5f6368;
  --line: #e6e3de;
  --accent: #1f5f8b;
  --accent-ink: #ffffff;
  --todo: #b3261e;
  --serif: "Iowan Old Style", "Charter", "Source Serif Pro", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 46rem;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121315;
    --surface: #1a1c1f;
    --text: #ececec;
    --muted: #a3a7ad;
    --line: #2c2f33;
    --accent: #7db7e0;
    --accent-ink: #0f1a22;
    --todo: #ff8a80;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 var(--sans);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; overflow-wrap: anywhere; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; margin: 0 0 1.5rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }
p { margin: 0 0 1rem; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip { position: absolute; left: 1rem; top: -3rem; background: var(--accent); color: var(--accent-ink); padding: 0.5rem 0.9rem; border-radius: 6px; z-index: 10; }
.skip:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.mark { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: 0.04em; padding: 0.5rem 0; }
.site-header ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a { display: inline-block; padding: 0.6rem 0.6rem; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-header nav a:hover { color: var(--text); }

/* Intro */
.intro { padding: clamp(3.5rem, 12vw, 7rem) 0 clamp(2.5rem, 8vw, 4.5rem); }
.intro h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 8vw, 3.6rem); letter-spacing: -0.01em; margin: 0 0 0.6rem; }
.headline { font-size: 1.2rem; color: var(--muted); margin-bottom: 1.5rem; }
.lede { font-size: 1.125rem; max-width: 38rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.2rem;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; border: 1px solid var(--accent);
}
.button.ghost { background: transparent; color: var(--accent); }

/* Sections */
.section { padding: 3rem 0; border-top: 1px solid var(--line); }
.subhead { margin-top: 2.25rem; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.timeline > li { display: grid; grid-template-columns: 9rem 1fr; gap: 1.25rem; }
.timeline > li > * { min-width: 0; }
.when { color: var(--muted); font-size: 0.95rem; padding-top: 0.05rem; font-variant-numeric: tabular-nums; }
.timeline p { color: var(--muted); margin: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0.75rem 0 0; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.8rem; font-size: 0.9rem; background: var(--surface); }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; min-width: 0; }
.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.card .note { margin-top: 0.75rem; font-size: 0.85rem; }

.link-list { list-style: none; padding: 0; margin: 1.25rem 0 0; border-top: 1px solid var(--line); }
.link-list a {
  display: flex; justify-content: space-between; align-items: center; min-height: 52px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 500;
}
.link-list a:hover .arrow { transform: translateX(4px); color: var(--accent); }
.arrow { color: var(--muted); transition: transform 0.15s ease; }
@media (prefers-reduced-motion: reduce) { .arrow { transition: none; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.92rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.footer-row p { margin: 0; }

/* Draft marker: text Chad still needs to supply. The release check fails while any remain. */
.placeholder { color: var(--todo) !important; font-style: italic; }

@media (max-width: 34rem) {
  .timeline > li { grid-template-columns: 1fr; gap: 0.25rem; }
  .site-header nav a { padding: 0.6rem 0.4rem; font-size: 0.9rem; }
}

/* Experience details and project groups */
.role { color: var(--text) !important; font-weight: 500; }
.role-sub { font-size: 0.92rem; margin-top: 0.15rem !important; }
.points { margin: 0.6rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.points li { margin-bottom: 0.3rem; }
.section-lede { color: var(--muted); margin-top: -0.75rem; }
.section .subhead:first-of-type { margin-top: 1.5rem; }
.cards + .subhead { margin-top: 2.5rem; }
h4 { font-size: 1.02rem; margin: 0 0 0.4rem; line-height: 1.25; }
.card .status { margin-top: 0.75rem; font-size: 0.8rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.card a { font-weight: 600; }
.card p + p { margin-top: 0.75rem; }
.link-list small { color: var(--muted); font-weight: 400; margin-left: 0.4rem; }
.points + .role { margin-top: 1.5rem; }
