/* ==========================================================================
   About — intro grid, field-guide blocks and the speaking list.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Intro grid
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.78fr;
  gap: 48px;
  align-items: start;
}

.about-photo-wrap {
  margin-top: 12px;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.about-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-lede {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 24px;
  color: var(--ink);
}

.about-body {
  margin: 0 0 18px;
  color: var(--muted);
}

.about-body:last-child {
  margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   Field guide blocks
   -------------------------------------------------------------------------- */

.fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.field {
  border: 1px solid var(--rule);
  border-top: 2px solid color-mix(in srgb, var(--accent) 20%, var(--rule));
  background: var(--nb-bg);
  padding: 14px 16px 16px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.field:hover {
  border-top-color: var(--accent);
  transform: translateY(-2px);
}

.field h4 {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 8px;
  line-height: 1.1;
  transition: color 0.2s;
}

.field:hover h4 {
  color: var(--accent);
}

.field p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Speaking — talks
   -------------------------------------------------------------------------- */

.talk-label {
  display: block;
  margin-top: 52px;
  margin-bottom: 18px;
}

.talk-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.talk-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr 170px;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  color: inherit;
  text-decoration: none;
  transition: background 0.24s ease, border-color 0.24s ease;
}

.talk-row::after {
  content: "↗";
  position: absolute;
  right: 0;
  top: 30px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.talk-row:hover {
  background: color-mix(in srgb, var(--highlight) 65%, var(--paper));
  border-bottom-color: color-mix(in srgb, var(--accent) 40%, var(--rule));
}

.talk-row:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.talk-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  line-height: 1.55;
  padding-top: 4px;
  transition: color 0.24s ease;
}

.talk-row:hover .talk-date {
  color: var(--ink);
}

.talk-time {
  display: block;
  margin-top: 5px;
  opacity: 0.7;
}

.talk-title {
  display: block;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  transition: color 0.24s ease;
}

.talk-row:hover .talk-title {
  color: var(--accent);
}

.talk-sub {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 7px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.talk-logo {
  display: block;
  width: 100%;
  max-width: 170px;
  height: auto;
  align-self: start;
  justify-self: start;
  filter: grayscale(1);
  transition: filter 0.24s ease;
}

.talk-row:hover .talk-logo {
  filter: grayscale(0);
}

html.dark .talk-logo {
  filter: grayscale(1) invert(1);
}

html.dark .talk-row:hover .talk-logo {
  filter: grayscale(1) invert(1) brightness(1.15);
}

.talk-venue {
  display: block;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.62;
  color: color-mix(in srgb, var(--ink) 90%, var(--muted));
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-photo-wrap {
    aspect-ratio: 3 / 2;
    max-width: 100%;
  }

  .about-lede {
    font-size: 19px;
  }

  .fields {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Two columns: the logo sits top-right as a badge beside the date/venue,
     with the talk itself running full width underneath. */
  .talk-row {
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
    padding: 24px 0;
  }

  .talk-meta {
    grid-column: 1;
    grid-row: 1;
  }

  .talk-logo {
    grid-column: 2;
    grid-row: 1;
    max-width: 104px;
    align-self: start;
    justify-self: end;
    opacity: 0.75;
  }

  .talk-main {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 4px;
  }

  .talk-venue {
    margin-top: 10px;
  }

  .talk-row::after {
    display: none;
  }

  .talk-date {
    padding-top: 0;
    margin-bottom: 4px;
  }

  .talk-time {
    display: inline;
    margin-left: 10px;
  }
}
