/* Dustin Crain — personal site. No trackers, no frameworks. */
:root {
  --bg: #f6f3ee;
  --ink: #1a1d21;
  --muted: #5c6570;
  --teal: #0f4c5c;
  --teal-dark: #0b3a46;
  --copper: #c45c26;
  --card: #fffcf8;
  --rule: #d9d3c9;
  --focus: #0f4c5c;
  --max: 44rem;
  --wide: 68rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--copper); }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }
.wrap { width: min(var(--wide), calc(100% - 2rem)); margin-inline: auto; }
.wrap-narrow { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

header.site {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f6f3eef2;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.wordmark {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--teal); }
nav ul {
  display: flex;
  gap: 0.2rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
nav a:hover { color: var(--teal); }

.hero {
  padding: 3.25rem 0 2.4rem;
  border-bottom: 1px solid var(--rule);
}
.hero h1 {
  margin: 0 0 0.35rem;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.headline {
  margin: 0 0 1.15rem;
  color: var(--teal);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.lede {
  margin: 0 0 1.6rem;
  color: var(--ink);
  font-size: 1.12rem;
  max-width: 40rem;
}
.btns { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid var(--teal);
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; border-color: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: #e7efef; color: var(--teal-dark); }

.featured {
  padding: 2.4rem 0 0.5rem;
}
.featured h2, .exp h2, .skills h2, .contact h2 {
  margin: 0 0 1rem;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 1.55rem;
  font-weight: 600;
}
.story {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--copper);
  padding: 1.3rem 1.4rem 1.35rem;
  box-shadow: 0 1px 0 rgba(26, 29, 33, 0.03);
}
.story p { margin: 0 0 0.9rem; }
.story p:last-child { margin-bottom: 0; }
.kicker {
  display: inline-block;
  margin: 0 0 0.65rem;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.exp { padding: 2.4rem 0 0.8rem; }
.job { margin: 0 0 2.1rem; padding-bottom: 1.7rem; border-bottom: 1px solid var(--rule); }
.job:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.job h3 {
  margin: 0 0 0.15rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.meta {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.role { color: var(--ink); font-weight: 600; }
.job .intro { margin: 0 0 0.7rem; }
.job ul { margin: 0; padding: 0 0 0 1.15rem; }
.job li { margin: 0 0 0.45rem; padding-left: 0.15rem; }
.job li::marker { color: var(--copper); }

.skills { padding: 0.6rem 0 2rem; }
.skill-group { margin: 0 0 1.15rem; }
.skill-group h3 {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips span {
  background: #efeae2;
  color: var(--ink);
  border: 1px solid #e2dbd1;
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.86rem;
  line-height: 1.45;
}

.contact {
  padding: 2rem 0 2.6rem;
  border-top: 1px solid var(--rule);
}
.contact p { margin: 0 0 1rem; max-width: 36rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin: 0 0 0.45rem; }

footer.site {
  border-top: 1px solid var(--rule);
  padding: 1.15rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}
footer.site p { margin: 0; }

@media (max-width: 640px) {
  header.site .bar { flex-direction: column; align-items: flex-start; gap: 0.35rem; padding: 0.65rem 0; }
  .hero { padding-top: 2.2rem; }
  nav ul { gap: 0.2rem 0.9rem; }
}
@media print {
  header.site { position: static; border: 0; }
  .btn, nav { display: none; }
  body { background: #fff; }
  .story { break-inside: avoid; }
}
