/* Plain hand-written CSS. No framework, no utility classes. */

:root {
  --bg: #ffffff;
  --fg: #191512;
  --muted: #6b6560;
  --rule: #e3ded8;
  --primary: #a4551f;
  --accent: #17605c;
  --surface: #f7f4f0;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }

.page { max-width: 62rem; margin: 0 auto; padding: 0 1.5rem; }

/* header + footer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}
.site-header .bar {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.brand .dot { color: var(--primary); }
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.site-nav a:hover { color: var(--fg); }
.site-nav a.is-active { color: var(--primary); }

.site-footer { border-top: 1px solid var(--rule); margin-top: 2rem; }
.site-footer .bar {
  max-width: 62rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* shared bits */
.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.rule { height: 1px; width: 10rem; background: linear-gradient(to right, var(--primary), transparent); border: 0; margin: 2rem 0 0; }
.section { padding: 4rem 0; border-bottom: 1px solid var(--rule); }
.section:last-child { border-bottom: 0; }
.section-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .section-grid { grid-template-columns: 10rem 1fr; } }
.lede { color: var(--muted); }

/* home */
.hero { padding: 5rem 0; border-bottom: 1px solid var(--rule); }
.hero h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); font-weight: 700; margin-top: 1.5rem; }
.hero .tagline { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--primary); margin-top: 1.5rem; max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
.btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.65rem 1rem;
  border: 1px solid var(--rule);
  color: var(--muted);
}
.btn:hover { border-color: var(--fg); color: var(--fg); }
.btn-primary { border-color: var(--primary); color: var(--primary); }
.btn-primary:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.prose > p + p { margin-top: 1.25rem; }
.prose { color: var(--muted); font-size: 1.08rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tag { background: var(--surface); padding: 0.25rem 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg); }

.numbered li { display: flex; gap: 1.25rem; }
.numbered li + li { margin-top: 1.5rem; }
.numbered .num { font-family: var(--font-mono); font-size: 0.9rem; color: var(--primary); }
.numbered p { color: var(--muted); }

.edu li + li { margin-top: 1.25rem; }
.edu .school { font-family: var(--font-display); font-size: 1.1rem; }
.edu .degree { color: var(--muted); font-size: 0.95rem; }

/* experience */
.page-head { padding: 5rem 0 0; }
.page-head h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 700; margin-top: 1rem; }
.timeline { border-left: 1px solid var(--rule); margin: 3.5rem 0 4rem; }
.timeline li { position: relative; padding: 0 0 3.5rem 2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.55rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}
.timeline .period { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--primary); }
.timeline h2 { font-size: 1.5rem; font-weight: 700; margin-top: 0.75rem; }
.timeline .role { font-family: var(--font-display); color: var(--accent); margin-top: 0.25rem; }
.timeline .role span { color: var(--muted); }
.timeline .desc { color: var(--muted); margin-top: 1rem; max-width: 42rem; }

/* contact */
.contact-body { padding: 5rem 0 4rem; }
.contact-body h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 700; margin-top: 1rem; max-width: 34rem; }
.contact-body .lede { margin-top: 1.5rem; max-width: 32rem; font-size: 1.1rem; }
.cards { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 3rem; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--bg); padding: 2rem; display: block; }
.card:hover { background: var(--surface); }
.card .value { font-family: var(--font-display); font-size: 1.25rem; margin-top: 0.75rem; }

/* status pages */
.status { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem 1.5rem; }
.status h1 { font-size: 3rem; font-weight: 700; }
.status p { color: var(--muted); margin-top: 0.75rem; }
.status .actions { justify-content: center; }
.status button.btn { background: none; cursor: pointer; }
