:root {
  --navy: #14213d;
  --navy-2: #1d2f57;
  --gold: #fcbf49;
  --ink: #1b1b1f;
  --muted: #4a4f5c;
  --paper: #fbfaf7;
  --band: #eef1f7;
  --line: #d5dae6;
  --link: #1f4fb5;
  --radius: 14px;
  --font: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
section.wrap, .band { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.band { background: var(--band); }

h1, h2, h3 { line-height: 1.2; color: var(--navy); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 1.5rem; }
h3 { font-size: 1.35rem; margin: 0 0 .25rem; }
h3 a { color: inherit; }
.meta { color: var(--muted); font-size: .95rem; margin: 0 0 .9rem; }
.sub { font-weight: 400; color: var(--muted); font-size: 1rem; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--gold); color: var(--navy); padding: .6rem 1rem; z-index: 100; font-weight: 700; border-radius: 6px; }
.skip:focus { left: .5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .8rem; padding-bottom: .8rem; }
.brand { color: var(--gold); font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: .02em; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; }
.nav ul a { color: #fff; text-decoration: none; font-size: 1rem; padding: .3rem 0; }
.nav ul a:hover { color: var(--gold); text-decoration: underline; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 5rem 0 4.5rem; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 4.4rem); margin: .2rem 0 1rem; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0; font-size: .95rem; }
.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 46rem; margin: 0 0 2.5rem; color: #e9edf6; }
.paths { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.paths a { display: block; height: 100%; padding: 1.1rem 1.2rem; border: 2px solid rgba(255,255,255,.25); border-radius: var(--radius); color: #fff; text-decoration: none; transition: border-color .15s, background .15s; }
.paths a:hover, .paths a:focus-visible { border-color: var(--gold); background: rgba(252,191,73,.08); }
.paths strong { display: block; color: var(--gold); font-size: 1.1rem; }
.paths span { font-size: 1rem; color: #dde3ef; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 3rem; align-items: start; }
.about figure { margin: 0; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }

.tags { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem; font-size: .95rem; }

/* Current work */
.feature { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; margin-bottom: 1.5rem; }
.note { background: #fff7e3; border-left: 4px solid var(--gold); padding: .8rem 1rem; border-radius: 6px; font-size: 1rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; align-content: start; }
.stats div { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-direction: column-reverse; }
.stats dt { font-size: .9rem; color: #dde3ef; }
.stats dd { margin: 0; font-size: 2.1rem; font-weight: 700; color: var(--gold); line-height: 1.1; }
.stats dd span { font-size: 1rem; color: #fff; font-weight: 400; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.card p:last-child { margin-bottom: 0; }

/* Projects */
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.project.solo { display: block; border-bottom: 0; margin-bottom: 0; padding-bottom: 0; max-width: 46rem; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gallery figure { margin: 0; }

/* Experience */
.timeline { list-style: none; padding: 0; margin: 0 0 2.5rem; border-left: 3px solid var(--gold); }
.timeline li { position: relative; padding: 0 0 1.8rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: .45rem; width: 15px; height: 15px; border-radius: 50%; background: var(--navy); border: 3px solid var(--gold); }
.timeline p:last-child { margin-bottom: 0; }
.skills-title { margin-bottom: .5rem; }

/* Contact */
.contact { text-align: center; max-width: 46rem; }
.email { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; margin: 1.5rem 0; }
.links { list-style: none; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 2rem; }

.site-footer { background: var(--navy); color: #dde3ef; padding: 1.5rem 0; font-size: .95rem; }
.site-footer p { margin: 0; }

@media (max-width: 800px) {
  .about, .feature, .project { grid-template-columns: 1fr; gap: 1.5rem; }
  .about figure { max-width: 380px; }
  .site-header { position: static; }
}

/* Outside of the Bots reference sheet */
.eyebrow.dark { color: var(--navy-2); }
.subtitle { color: var(--muted); font-size: 1.2rem; margin: -1rem 0 1.5rem; }
.flow { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; counter-reset: flow; }
.flow li { counter-increment: flow; background: var(--navy); color: #fff; border-radius: 999px; padding: .35rem 1rem; font-weight: 700; font-size: 1rem; }
.flow li::before { content: counter(flow) " · "; color: var(--gold); }
.callout { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin: 0 0 2rem; }
.sheet { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 1.5rem; }
.sheet-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.sheet-card h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.sheet-card h4 { font-size: 1.1rem; color: var(--navy); margin: 1rem 0 .4rem; }
.sheet-card ol { margin: 0; padding-left: 1.3rem; }
.sheet-card ol li { margin-bottom: .4rem; }
.num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 1.05rem; }
.template { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; }
.template dt { font-weight: 700; color: var(--navy); text-transform: uppercase; font-size: .85rem; letter-spacing: .06em; padding-top: .2rem; }
.template dd { margin: 0; }
.quote { margin: 0; padding-left: 1rem; border-left: 3px solid var(--gold); }

/* How-to guides */
ul.cards { list-style: none; padding: 0; margin: 0; }
.lede a { color: var(--gold); }

/* Hero photo */
.hero-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.3fr); gap: 2.5rem; align-items: center; margin-bottom: 2.5rem; }
.hero-grid .lede { margin-bottom: 0; }
.hero-photo { margin: 0; }
.hero-photo figcaption { color: #dde3ef; }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { max-width: 320px; } }

/* Peer Party Chat */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.facts div { border: 2px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.facts dt { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.facts dd { margin: .2rem 0 0; font-size: 1.2rem; font-weight: 700; color: #fff; }
.facts dd.small { font-size: 1rem; font-weight: 400; color: #dde3ef; }
.button { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 700; text-decoration: none; padding: .8rem 1.6rem; border-radius: 999px; font-size: 1.15rem; }
.button:hover { text-decoration: underline; }
.join { max-width: 46rem; text-align: center; }
.join h2, .join p { margin-left: auto; margin-right: auto; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
ul.cards { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.intro { max-width: 46rem; font-size: 1.2rem; }
.story { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.5rem; }
.story p:last-child { margin-bottom: 0; }
#numbers .stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-bottom: 1.5rem; }
.method { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.method summary { cursor: pointer; font-weight: 700; color: var(--navy); }
