/* ==========================================================
   COLORS & BASICS
   Change the colors here and the whole site updates.
   ========================================================== */
:root {
  --ink:    #13294f;   /* page background */
  --ink2:   #1c3a6b;   /* card background */
  --bone:   #f3f8ff;   /* main text */
  --dim:    #b7c9e6;   /* secondary text */
  --accent: #5cb4ff;   /* accent (links, highlights) */
  --sky:    #8fe0ff;   /* secondary accent (dates) */
  --line:   #36588f;   /* borders */
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--bone);
  font: 19px/1.65 'Newsreader', Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


/* ==========================================================
   TYPOGRAPHY
   ========================================================== */
h1, h2, h3, nav {
  font-family: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
}

h1 {
  font-size: clamp(3rem, 10vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
}

h2 {
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin: 72px 0 22px;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  max-width: 62ch;
  margin-bottom: 1em;
}

.lede {
  font-size: 1.35rem;
  margin-top: 28px;
}

.muted {
  color: var(--dim);
}


/* ==========================================================
   LAYOUT & NAVIGATION
   ========================================================== */
.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 17px;
}

nav .logo {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--dim);
  padding-bottom: 4px;
}

nav a:hover {
  color: var(--bone);
}

/* The page you're currently on gets a blue underline */
nav a[aria-current="page"] {
  color: var(--bone);
  border-bottom: 2px solid var(--accent);
}

footer {
  margin-top: 110px;
  padding: 34px 0 60px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}


/* ==========================================================
   HOMEPAGE
   ========================================================== */
.hero {
  padding: 12vh 0 14vh;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

/* The two big links to Performance and Programming */
.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.door {
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink2);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.door:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.door p {
  margin: 8px 0 0;
  color: var(--dim);
}


/* ==========================================================
   PROGRAMMING PAGE
   ========================================================== */

/* Skill pills */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.tags li {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 14px;
  font-size: 0.9rem;
  font-family: 'Bricolage Grotesque', sans-serif;
}

/* Project and info cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
}

.card p {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 1rem;
}

.card a {
  color: var(--accent);
}

/* Experience timeline */
.tl {
  border-left: 2px solid var(--line);
  padding-left: 26px;
}

.tl article {
  position: relative;
  margin-bottom: 34px;
}

/* The dot on the timeline line */
.tl article::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--accent);
}

.tl .when {
  color: var(--sky);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.95rem;
}


/* ==========================================================
   PERFORMANCE PAGE
   ========================================================== */

/* Reel on the left, headshot on the right */
.split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

/* The self tape: a 16:9 box the YouTube player fills */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-note {
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: var(--dim);
}

.video-note a {
  color: var(--accent);
}

.headshot {
  display: grid;
  place-items: center;
  background: var(--ink2);
  border: 1px dashed var(--dim);
  color: var(--dim);
  text-align: center;
  padding: 20px;
  aspect-ratio: 4 / 5;
}

/* Credits lists: title | role | year */
.credits {
  list-style: none;
  padding: 0;
}

.credits li {
  display: grid;
  grid-template-columns: 1fr 1fr 70px;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.credits .yr {
  color: var(--dim);
  text-align: right;
}


/* ==========================================================
   MOBILE
   ========================================================== */
@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .doors,
  .split {
    grid-template-columns: 1fr;
  }

  .credits li {
    grid-template-columns: 1fr 60px;
  }

  /* Hide the role column on small screens */
  .credits li span:nth-child(2) {
    display: none;
  }

  nav ul {
    gap: 16px;
  }
}

/* Respect visitors who turn off animations */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto;
  }
}