@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: oklch(97.5% 0.008 265);
  --ink: oklch(19% 0.03 265);
  --muted: oklch(42% 0.03 265);
  --accent: oklch(46% 0.24 270);
  --rule: oklch(86% 0.02 265);
  --stage: oklch(91% 0.06 275);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 38rem;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
  accent-color: var(--accent);
  scrollbar-color: var(--rule) var(--bg);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(16% 0.025 265);
    --ink: oklch(95% 0.01 265);
    --muted: oklch(75% 0.03 265);
    --accent: oklch(77% 0.15 275);
    --rule: oklch(32% 0.03 265);
    --stage: oklch(23% 0.075 272);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  font-optical-sizing: auto;
}

::selection { background: var(--accent); color: var(--bg); }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--accent);
}
a:hover { color: var(--accent); }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* Header + hero share one tinted band */
.top, .hero { background: var(--stage); }

/* Header */
.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--gutter);
  font-size: 0.95rem;
  font-weight: 500;
}
.top p { margin: 0; white-space: nowrap; }
.where { color: var(--muted); }

/* Hero */
.hero { padding: clamp(3rem, 12vh, 8rem) var(--gutter) clamp(4rem, 12vh, 9rem); }

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 1rem + 10.4vw, 8.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 .line { display: block; }
h1 .accent { color: var(--accent); }

.lede {
  max-width: var(--measure);
  margin: clamp(1.75rem, 4vw, 3rem) 0 0;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.cta { margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; }
.mail {
  font-size: clamp(1.25rem, 0.9rem + 1.8vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

/* Sections */
.block {
  display: grid;
  gap: 1rem 3rem;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter);
  border-top: 1px solid var(--rule);
}
.block h2 {
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.body { max-width: var(--measure); margin: 0; }
.body h3 {
  margin: 1.75rem 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.body h3:first-child { margin-top: 0; }
.body p { margin: 0; color: var(--muted); text-wrap: pretty; }
p.body { color: var(--muted); }

@media (min-width: 52rem) {
  .block { grid-template-columns: minmax(10rem, 1fr) 2.2fr; }
}

/* Education */
.edu { list-style: none; padding: 0; margin: 0; }
.edu li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.edu li:first-child { padding-top: 0; }
.edu li:last-child { border-bottom: 0; padding-bottom: 0; }
.edu h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.inst {
  display: block;
  margin-top: 0.1rem;
  color: var(--accent);
  font-weight: 550;
  font-size: 0.95em;
}
.edu p { margin-top: 0.6rem; }

/* Why Rodeo */
.block.rodeo { display: block; padding-bottom: clamp(4rem, 10vw, 7rem); }
.rodeo .mark {
  margin: 1.25rem 0 0;
  font-size: clamp(2.25rem, 0.6rem + 7.4vw, 6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--muted);
  text-wrap: balance;
}
.rodeo .mark b { font-weight: 800; color: var(--accent); }

/* Contact */
.contact { padding-bottom: clamp(4rem, 10vw, 8rem); }
.body .big {
  color: var(--ink);
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 0.9rem + 2.6vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.body .note { margin-top: 1.25rem; }

.foot {
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
.foot p { margin: 0; }

/* One authored moment: hero lines rise in, content visible by default */
@media (prefers-reduced-motion: no-preference) {
  h1 .line, .lede, .cta {
    animation: rise 0.9s var(--ease) backwards;
  }
  h1 .line:nth-child(2) { animation-delay: 0.08s; }
  .lede { animation-delay: 0.2s; }
  .cta { animation-delay: 0.3s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(0.4em); }
  }
}
