/* maxsbennett.com
   Typography and palette follow the PT Serif / PT Sans academic style:
   serif body, bold uppercase sans headings, no accent color — links
   inherit the text color and are underlined. */

:root {
  --ink: #222;
  --muted: #777;
  --rule: #e2e2e2;
  --hover: #f7f7f7;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
a:hover { color: #000; text-decoration-thickness: 2px; }

img { max-width: 100%; display: block; }

/* --- Intro --- */

.intro {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.intro-text { flex: 1; min-width: 0; }

.intro-photo { flex: none; width: 190px; }
.intro-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
}

h1 {
  font-family: "PT Sans", Helvetica, Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0 0 0.6rem;
}

.contact-links {
  font-size: 0.95rem;
  margin: 0;
}
.contact-links a { white-space: nowrap; }

/* --- Sections --- */

section { margin-bottom: 2.75rem; }

h2 {
  font-family: "PT Sans", Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1.1rem;
}

p { margin: 0 0 0.9rem; }

/* --- Entry rows: text left, media right --- */

.entry {
  display: flex;
  flex-direction: row-reverse;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: 3px;
  transition: background-color 0.13s ease;
}
.entry:hover { background: var(--hover); }

.entry-media { flex: none; width: 175px; }
.entry-media img { border-radius: 2px; }

.entry-body { flex: 1; min-width: 0; }

.title {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.authors {
  font-size: 0.88rem;
  margin-bottom: 0.05rem;
}
.authors .me { font-weight: 700; }

.venue {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.entry-links { font-size: 0.88rem; }
.entry-links span { color: #c4c4c4; margin: 0 0.15rem; }

.desc {
  font-size: 0.92rem;
  color: #444;
  margin: 0.4rem 0 0;
}

.aside {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0.6rem 0 0 0.75rem;
}

/* Paper figures: show the whole figure, boxed. */
.entry-media-fig img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--rule);
  padding: 3px;
}

/* Video stills: crop YouTube's letterbox bars to 16:9. */
.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eee;
  transition: opacity 0.15s ease;
}
a:hover .thumb { opacity: 0.8; }

/* --- Footer --- */

footer {
  border-top: 1px solid var(--rule);
  padding-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
}
footer p { margin: 0; }

/* --- Responsive --- */

@media (max-width: 620px) {
  .container { padding-top: 2.5rem; }
  .intro {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1.4rem;
    margin-bottom: 2.5rem;
  }
  .intro-photo { width: 145px; }
  .entry {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.9rem;
  }
  .entry-media { width: 170px; }
}
