:root {
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --border: #e5e5e5;
  --accent: #1a1a1a;
  --bg: #ffffff;
  --pill-bg: #f5f5f5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 32px;
}

.embed-wrap {
  max-width: 100%;
  padding: 12px 16px 0;
}

.embed-wrap .media-section:last-child,
.embed-wrap ul.feed,
.embed-wrap .articles-grid,
.embed-wrap .events-grid {
  margin-bottom: 0;
}

.embed-wrap ul.feed li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

h1.page-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

ul.feed {
  list-style: none;
  border-top: 1px solid var(--border);
}

ul.feed li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: start;
}

.embed-wrap ul.feed li {
  padding: 12px 0;
  grid-template-columns: 78px 1fr;
  gap: 12px;
}

.item-date {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.item-body { min-width: 0; }

.item-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  display: block;
  color: var(--text);
}

.item-title:hover { text-decoration: underline; }

.item-topic {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

.item-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.media-section { margin-bottom: 28px; }
.media-section:last-child { margin-bottom: 0; }

.section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; gap: 16px; }
}

.article-card {
  display: flex;
  flex-direction: column;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px 16px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.article-card:hover {
  background: #f4f4f4;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.article-date { font-variant-numeric: tabular-nums; }

.article-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.005em;
}

.article-topic {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  flex-grow: 1;
}

.article-publisher {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.pill {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--pill-bg);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}

.see-all {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
}

.see-all a {
  border-bottom: 1px solid var(--text);
  padding-bottom: 1px;
}

.empty {
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}

@media (max-width: 760px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 480px) {
  .events-grid { grid-template-columns: 1fr; gap: 18px; }
}

.event-card {
  display: flex;
  flex-direction: column;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.event-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f2f2f2;
}

.event-image-tall {
  aspect-ratio: 3 / 4;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-image-contain img {
  object-fit: contain;
  padding: 24px;
}

.event-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 60%, #1a1a1a 100%);
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 16px;
}

.event-image-placeholder span { max-width: 80%; }

.event-body {
  display: block;
  padding: 12px 14px 14px;
}

.event-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 4px;
  display: inline-block;
  line-height: 1.3;
}

.event-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.event-description {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-talks {
  margin-top: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.event-talks-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.talk-item {
  margin-bottom: 12px;
}

.talk-item:last-child { margin-bottom: 0; }

.talk-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.talk-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: block;
  line-height: 1.4;
}

a.talk-title:hover { text-decoration: underline; }

.talk-abstract {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.event-status {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
  margin-right: 8px;
}

.event-status.upcoming { background: #e8f3ed; color: #1f6b3e; }
.event-status.past { background: var(--pill-bg); color: var(--text-muted); }

@media (max-width: 480px) {
  ul.feed li, .embed-wrap ul.feed li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .item-date { padding-top: 0; font-size: 12px; }
}
