/* Alex Kendall — personal site
   A single, small stylesheet. No framework, no build step. */

:root {
  --bg: #f0efeb;
  --text: #1c1c1a;
  --muted: #6b6b66;
  --accent: #a8562f;
  --link: #1c1c1a;
  --venue: #3f6b45;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  font-size: 17px;
}

header.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header.site-header .logo {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

header.site-header nav a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
}

header.site-header nav a:hover {
  color: var(--accent);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 40px;
}

/* Hero: two-column on wider screens, stacked on mobile */
.hero {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-bottom: 40px;
}

img.avatar {
  flex: 0 0 168px;
  width: 168px;
  height: 168px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-text h1 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 32px;
  margin: 0 0 6px;
}

.role {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 14px;
}

.inline-icon {
  vertical-align: -2px;
  margin-right: 5px;
}

.social-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-row a {
  color: var(--muted);
  display: inline-flex;
}

.social-row a:hover {
  color: var(--accent);
}

p {
  margin: 0 0 20px;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent);
}

header.site-header nav a,
footer.site-footer a {
  text-decoration: none;
}

figure {
  margin: 40px 0;
}

figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* Two-up photo row */
.photo-row {
  display: flex;
  gap: 16px;
  margin: 40px 0;
}

.photo-row figure {
  margin: 0;
  flex: 1;
}

.photo-row video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  background: #000;
}

/* Trio row: three photos/videos at equal size */
.photo-row.trio img,
.photo-row.trio video {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* On wider screens, let the trio row breathe past the text column */
@media (min-width: 561px) {
  .photo-row.trio {
    max-width: 900px;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

section {
  margin-top: 64px;
}

.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 20px;
}

.eyebrow .num {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
}

h2 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
}

.publications {
  list-style: none;
  padding: 0;
  margin: 0;
}

.publications li {
  font-size: 14.5px;
  margin-bottom: 14px;
  padding-left: 0;
}

.publications .venue {
  color: var(--venue);
}

/* Orals, spotlights and best-paper awards get a touch more emphasis */
.publications .honour {
  color: var(--accent);
  font-weight: 500;
}

/* Selected media — grid of cards */
.media-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
}

@media (min-width: 561px) {
  .media-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.media-list li {
  display: flex;
  flex-direction: column;
}

.media-list img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.media-list .media-body {
  font-size: 14px;
}

.media-list .media-title {
  font-weight: 500;
  display: block;
  margin-bottom: 3px;
}

.media-list .venue {
  color: var(--muted);
  font-size: 13px;
}

footer.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 80px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

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

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

/* Blog post article */
article h1 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 8px;
}

article ul,
article ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

article li {
  margin-bottom: 8px;
}

article h2 {
  margin: 40px 0 16px;
}

article h3 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  margin: 32px 0 12px;
}

article code {
  font-size: 0.92em;
  background: rgba(0, 0, 0, 0.04);
  padding: 1px 5px;
  border-radius: 4px;
}

article .equation {
  text-align: center;
  margin: 24px 0;
}

.gif-stack {
  margin: 40px 0;
  display: block;
  font-size: 0;
}

.gif-stack img {
  width: 100%;
  display: block;
}

.gif-stack img:first-child {
  border-radius: 10px 10px 0 0;
}

.gif-stack img:last-child {
  border-radius: 0 0 10px 10px;
}

article blockquote {
  margin: 32px 0;
  padding-left: 16px;
  border-left: 2px solid #d8d5cc;
  color: var(--muted);
  font-style: italic;
}

article .standalone-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: -28px;
  margin-bottom: 40px;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
}

.table-wrap table {
  border-collapse: collapse;
  font-size: 14px;
  width: 100%;
}

.table-wrap th,
.table-wrap td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e0d9;
}

.table-wrap th {
  font-weight: 500;
}


/* Blog page */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e2e0d9;
}

.post-list li:last-child {
  border-bottom: none;
}

.post-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 19px;
  display: block;
  margin-bottom: 6px;
}

.post-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
  display: block;
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  header.site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  header.site-header nav {
    display: flex;
    gap: 16px;
    margin-left: 0;
  }
  header.site-header nav a {
    margin-left: 0;
  }
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 28px;
  }
  .social-row {
    justify-content: center;
  }
  .photo-row {
    flex-direction: column;
  }
}
