:root { --max: 860px; }

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 28px 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.65;
  color: #111;
  background: #fff;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.hero {
  display: flex;
  gap: 18px;
  align-items: center;
}

.avatar {
  width: 300px;
  height: 300px;
  border-radius: 15px;
  object-fit: cover;
}

h1 {
  margin: 0 0 6px 0;
  font-size: 34px;
  line-height: 1.15;
}

.tagline {
  margin: 0 0 10px 0;
  color: #333;
}

.links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 22px 0;
}

.year {
  margin: 18px 0 10px 0;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 9px;
  border-radius: 999px;
  background: #111;
  flex: 0 0 10px;
}

details.reveal summary {
  cursor: pointer;
  display: inline;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Normal links: blue like standard web links */
a {
  color: #1a5cff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Visited links */
a:visited {
  color: #5a32c9;
}

/* Hover/focus */
a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
}

/* Keep pill buttons looking like buttons (not blue links) */
.pill {
  color: var(--text);
  text-decoration: none;
}

.pill.primary {
  color: var(--pill-primary-text);
}


details.reveal[open] summary { text-decoration: none; }

ul { margin: 8px 0 0 18px; }
section { margin: 18px 0; }

/* --- Card grid (posts / talks) --- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  display: block;                 /* makes the whole card clickable */
  text-decoration: none;          /* don’t underline the card */
  color: inherit;
}

.card:hover .thumb {
  transform: translateY(-1px);
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;           /* same “talk thumbnail” shape */
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.18);
  transition: transform 120ms ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;              /* fill nicely */
  display: block;
}

.card-title {
  margin: 10px 0 2px 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}

.card-meta {
  margin: 0;
  font-size: 13px;
  color: rgba(0,0,0,0.72);
}

/* Optional: small inline link inside meta (e.g., "slides") */
.card-meta a {
  color: #1a5cff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.byline {
  font-style: italic;
  font-size: 14px;
}

/* Fix: force consistent font rendering inside the overview block */
.cf-card,
.cf-card *{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
               "Apple Color Emoji","Segoe UI Emoji" !important;
}

/* Hard-scope fonts inside the overview block (prevents ../styles.css overrides) */
.cf-card,
.cf-card *{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* Button reset + consistent typography */
.cf-btn{
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid #d1d5db;
  background: #ffffff;
  color: var(--cf-text);

  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;

  /* Font lock */
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;

  text-align: left;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

.cf-btn:hover{ box-shadow: 0 8px 18px rgba(2,6,23,0.08); }
.cf-btn:active{ transform: translateY(1px); }

/* Avoid weird <strong> styling from global CSS */
.cf-btn strong{ all: unset; }

/* Use our own label/title spans */
.cf-flowLabel{
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.cf-btn .cf-muted{
  margin-left: auto;
  color: var(--cf-muted2);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  /* makes ellipsis work in flex containers */
  min-width: 0;
  max-width: 65%;
}

/* Bigger buttons so text fits comfortably */
#cf-overview .cf-btn{
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display:flex;
  align-items:center;
  gap:12px;

  /* was: padding 10px 12px */
  padding: 14px 16px;

  border-radius: 14px;
  border: 2px solid #d1d5db;
  background:#fff;
  cursor:pointer;
  text-align:left;

  /* enforce typography */
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji" !important;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;

  /* ensures a consistent minimum height */
  min-height: 64px;

  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

#cf-overview .cf-btn strong{
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700 !important;
}

/* Let the title wrap (instead of squeezing/cropping) */
#cf-overview .cf-btn .cf-muted{
  margin-left:auto;
  color: var(--muted2);

  /* was: white-space: nowrap */
  white-space: normal;

  font-size: 13px;
  line-height: 1.25;
  font-weight: 500 !important;

  /* improves wrapping + alignment */
  text-align: right;
  max-width: 62%;
}

/* (Optional) slightly larger icon box to match new button size */
#cf-overview .cf-icon{
  width: 38px;
  height: 38px;
}
#cf-overview .cf-icon svg{
  width: 20px;
  height: 20px;
}


.meta .prof-note,
.meta .prof-note a {
  font-style: italic;
}

