:root {
  color-scheme: light;
  --bg: #050710;
  --surface: #0f1424;
  --surface-alt: #151c31;
  --accent: #4cd8ff;
  --accent-strong: #7bffd8;
  --text: #f5f7ff;
  --muted: #9ba5c6;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 50px rgba(5, 7, 16, 0.6);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

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

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 0.5rem 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(5, 7, 16, 0.8);
  z-index: 10;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.logo img {
  width: 160px;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.btn {
  border: 1px solid transparent;
  background: none;
  color: var(--text);
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #050710;
}

.btn.ghost {
  border-color: var(--border);
  color: var(--muted);
}

.btn:hover:not(.disabled) {
  transform: translateY(-1px);
}

main {
  padding: 4rem clamp(1.5rem, 6vw, 5rem);
}

.landing-split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.intro {
  background: var(--surface);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.intro-grid {
  display: block;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.intro h1 {
  color: var(--text);
  margin: 0 0 0.5rem 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.intro ul {
  margin: 0;
  padding-left: 1.25rem;
}

.intro li + li {
  margin-top: 0.25rem;
}

.intro-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-top: 1rem;
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
}

.intro-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 16, 0) 20%, rgba(5, 7, 16, 0.65) 90%);
}

.intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.06);
}

.intro-photo figcaption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 20px rgba(5, 7, 16, 0.8);
  z-index: 1;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.pub-frame {
  margin-top: 0;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 200px;
  background: var(--surface-alt);
  padding: clamp(1rem, 4vw, 2rem);
}

.pub-frame .section-head {
  margin-bottom: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.pub-frame .section-head .eyebrow {
  margin-bottom: 0.35rem;
}

.pub-groups {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pub-year-group {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
}

.pub-year-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease;
}

.pub-year-summary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.pub-year-summary::before {
  content: '▸';
  color: #60a5fa;
  font-size: 0.78rem;
  line-height: 1;
  transform: translateY(-1px);
}

.pub-year-group[open] .pub-year-summary::before {
  content: '▾';
}

.pub-year-summary::-webkit-details-marker {
  display: none;
}

.pub-year-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #60a5fa;
  letter-spacing: 0.01em;
}

.pub-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pub-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: start;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
}

.pub-main {
  min-width: 0;
}

.pub-title {
  margin: 0;
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.35;
}

.pub-authors {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.pub-journal {
  margin: 0.22rem 0 0;
  color: #c7d1eb;
  font-size: 0.82rem;
}

.pub-links {
  display: flex;
  align-items: center;
  margin-top: 0.08rem;
  font-size: 0.82rem;
}

.pub-links a {
  color: var(--accent);
  text-decoration: none;
}

.pub-placeholder,
.pub-error {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}

.pub-error {
  color: #ff8c8c;
}

.iframe-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.site-footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 960px) {
  .landing-split {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    gap: 1rem;
  }
  .site-nav {
    order: 3;
  }
  .header-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .pub-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .pub-links {
    margin-top: 0.2rem;
  }
}
