/* Portfolio — matches Figma node 1:20 (Kelly Dern) */

/* ES Peak: licensed Bold (Desktop Licences); Bold Italic still trial until you add retail */
@font-face {
  font-family: "ES Peak";
  src:
    url("fonts/ESPeak-Bold.ttf") format("truetype"),
    url("fonts/ESPeak-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ES Peak";
  src: url("fonts/ESPeakTRIAL-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #e3e6ea;
  --ink: #383838;
  --link-hover: #5369f1;
  --black: #000000;
  --white: #ffffff;
  --radius-pill: 40px;
  --radius-photo: 24px;
  --radius-thumb: 24px;
  --page-pad: 36px;
  /* 12 columns × 92px + 11 gutters × 24px = 1368px */
  --grid-cols: 12;
  --grid-col-width: 92px;
  --grid-gutter: 24px;
  --grid-width: calc(
    var(--grid-cols) * var(--grid-col-width) + (var(--grid-cols) - 1) * var(--grid-gutter)
  );
  --font-display: "ES Peak", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

main {
  display: contents;
}

.page {
  min-height: 100vh;
  max-width: var(--grid-width);
  margin-inline: auto;
  padding: 20px clamp(20px, 4vw, var(--page-pad)) 120px;
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  row-gap: 0;
  align-content: start;
}

/* Footer */
.site-footer {
  grid-column: 1 / -1;
  margin-top: 100px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.site-footer__line {
  margin: 0 0 0.35em;
}

.site-footer__line:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--link-hover);
}

/* Section shells: 12-col grid aligned to page */
.intro,
.section,
.video-block {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  row-gap: 0;
  align-content: start;
}

/* Intro */
.intro-head {
  grid-column: 1 / -1;
  margin-bottom: 72px;
}

.hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 15rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-tagline {
  margin: calc(0.35em + 20px) 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  align-items: start;
}

.hero-copy {
  grid-column: span 7;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bio {
  margin: 0 0 1em;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.bio:last-of-type {
  margin-bottom: 46px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 27px;
  align-items: center;
}

/* Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 20px 16px 16px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-pill:hover {
  background: #f5f6f8;
  color: var(--link-hover);
  border-color: var(--link-hover);
}

.btn-pill:active {
  transform: scale(0.99);
}

.btn-icon {
  display: flex;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.btn-icon svg {
  display: block;
  width: 48px;
  height: 48px;
  color: inherit;
}

.btn-pill--solo {
  margin-top: 0;
  align-self: flex-start;
}

.col-right {
  display: flex;
  flex-direction: column;
  gap: 37px;
}

/* Hero photo */
.hero-photo {
  grid-column: span 5;
  margin: 0;
  border-radius: var(--radius-photo);
  overflow: hidden;
  width: 100%;
  min-width: 0;
  aspect-ratio: 666 / 684;
  justify-self: end;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* Sections */
.section {
  margin-top: 100px;
}

.section-title {
  grid-column: 1 / -1;
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.link-list {
  grid-column: span 6;
  list-style: none;
  margin: 0 0 100px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 19px;
  min-width: 0;
}

.link-list a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-list a:hover {
  color: var(--link-hover);
}

.talk-images {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  margin-bottom: 0;
}

.talk-images__item {
  grid-column: span 6;
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  max-height: 520px;
}

.talk-images__item img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Previous talks */
.two-col-lists {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  align-items: start;
}

.plain-list {
  grid-column: span 6;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.two-col-lists .col-right {
  grid-column: span 6;
}

.plain-list li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 21px;
  min-height: 2.75rem;
}

.plain-list li:last-child {
  margin-bottom: 0;
}

/* Video */
.video-block {
  margin-top: 100px;
}

.video-section-title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  font-synthesis: none;
}

.video-wrap {
  grid-column: 1 / -1;
  width: 100%;
  border-radius: var(--radius-thumb);
  overflow: hidden;
  background: #ccc;
  aspect-ratio: 1926 / 1080;
}

.featured-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

/* Teaching */
.teaching-entries {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 46px;
}

.teaching-entry {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.teaching-inst {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.teaching-detail {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.teaching-detail .role {
  font-style: italic;
  font-weight: 700;
}

.teaching-detail a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.teaching-detail a:hover {
  color: var(--link-hover);
}

.teaching-detail--italic {
  font-weight: 700;
  font-style: italic;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-copy {
    grid-column: 1 / -1;
  }

  .hero-photo {
    grid-column: 1 / -1;
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .page {
    padding: 16px 20px 80px;
  }

  .hero-name {
    font-size: clamp(2.5rem, 14vw, 4.5rem);
  }

  .btn-pill {
    font-size: 22px;
    padding: 12px 16px 12px 12px;
  }

  .btn-icon,
  .btn-icon svg {
    width: 40px;
    height: 40px;
  }

  .section-title,
  .link-list a,
  .plain-list li,
  .teaching-detail {
    font-size: 22px;
  }

  .link-list {
    grid-column: 1 / -1;
  }

  .talk-images__item {
    grid-column: 1 / -1;
  }

  .plain-list,
  .two-col-lists .col-right {
    grid-column: 1 / -1;
  }
}
