/* Font stack exactly like your screenshot vibe */
:root{
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
          "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  --text: #111;
  --muted: #6b7280;
  --bg: #fff;
  --pill: #f2f3f5;
  --pill-border: #e7e8ea;
  --shadow: 0 1px 0 rgba(0,0,0,.06);
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.45;
}

.page{
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 44px 72px;
}

/* Header */
.header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.name{
  font-size: 34px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.one-liner{
  margin: 0 0 10px;
  color: #111;
  font-size: 14px;
}

.linkish{
  border: 0;
  background: transparent;
  padding: 0;
  margin-left: 6px;
  font: inherit;
  color: #111;
  cursor: pointer;
  text-decoration: none;
}
.linkish:hover{ text-decoration: underline; }

.more{
  margin: 6px 0 10px;
  max-width: 720px;
}
.para{
  margin: 10px 0;
  color: #111;
  font-size: 14px;
}

.affiliation{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: #111;
  font-size: 13px;
}
.dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.12);
}

.header-right{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  min-width: 140px;
  text-align: right;
}
.ext{
  color: #111;
  text-decoration: none;
  font-size: 14px;
}
.ext:hover{ text-decoration: underline; }

/* Tabs */
.tabs{
  margin-top: 26px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.tab{
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  color: #111;
}
.tab.active{
  background: var(--pill);
  border-color: var(--pill-border);
  box-shadow: var(--shadow);
}

/* Grid */
.grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 28px;
}

.card{
  min-height: 280px;
}
.thumb {
  width: 100%;
  height: 175px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  background: #eee;
  position: relative;
}

/* Real image */
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* KEY */
  display: block;
}

/* Title row */
.card-head{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-top: 10px;
}
.card-title{
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.year{
  font-size: 12px;
  color: var(--muted);
}

.card-desc{
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 42ch;
}

/* Placeholder “image” styles */
.ph { position: relative; }
.ph::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  opacity: .1;
}
.ph-light::after{
  background: linear-gradient(135deg, #ffffff, #f1f1f1);
}
.ph-dark::after{
  background: linear-gradient(135deg, #1f2937, #0b1220);
}
.ph-neon::after{
  background: linear-gradient(135deg, #0b1220, #7c3aed, #ef4444, #22c55e);
  filter: saturate(1.2);
}
.ph-purple::after{
  background: linear-gradient(135deg, #7c3aed, #111827);
}
.ph-sketch::after{
  background: linear-gradient(135deg, #fafafa, #e5e7eb);
}
.ph-green::after{
  background: linear-gradient(135deg, #dcfce7, #86efac);
}
.ph-mosaic::after{
  background: linear-gradient(135deg, #111827, #111827 40%, #6b7280);
}
.ph-phone::after{
  background: linear-gradient(135deg, #f5f5f5, #d1d5db);
}
.ph-graph::after{
  background: linear-gradient(135deg, #0b1220, #111827, #f97316);
}

/* Hidden cards (tab filtering) */
.card[hidden] { display: none; }

/* Responsive */
@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-desc{ max-width: 50ch; }
}
@media (max-width: 680px){
  .page{ padding: 34px 18px 60px; }
  .header{ flex-direction: column; }
  .header-right{
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    padding-top: 0;
    gap: 14px;
  }
  .grid{ grid-template-columns: 1fr; }
}
