:root {
  --bg: #f5f5f5;
  --text: #111111;
  --muted: #242424;
  --line: #2d2d2d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, sans-serif;
}

.menu-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-bottom: clamp(0.7rem, 2.1vw, 1.4rem);
}

.menu-toggle {
  border: 1px solid rgba(17, 17, 17, 0.35);
  background: var(--bg);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.12rem 0.35rem 0.24rem;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.menu-toggle:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.5);
  outline-offset: 2px;
}

.site-nav {
  display: grid;
  gap: 0.2rem;
  max-width: 430px;
  margin: 1rem auto 0;
  padding: 0;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  line-height: 1.2;
  padding: 0.4rem 0.55rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(17, 17, 17, 0.08);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.shell {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.5rem) 0 clamp(1.5rem, 3vw, 3rem);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.1rem, 3.2vw, 2rem);
  align-items: start;
}

.lorenz-canvas {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  display: block;
  margin: 0 auto;
}

.hero-copy {
  max-width: 66ch;
  margin: 0 auto;
  text-align: left;
}

h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 8.5vw, 5rem);
  letter-spacing: -0.01em;
  line-height: 1;
}

.welcome-line,
.hero-subtitle,
.landing-note {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 3.8vw, 1.35rem);
  line-height: 1.6;
}

.welcome-line {
  margin-top: 0.8rem;
}

.hero-subtitle {
  margin-top: 0.85rem;
}

.landing-note {
  margin-top: 0.85rem;
}

.content-shell {
  width: min(900px, 92vw);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.5rem) 0 clamp(2rem, 5vw, 4rem);
}

.menu-shell {
  width: min(1120px, 92vw);
  margin: 0 auto;
  min-height: 100svh;
  padding: clamp(1rem, 3vw, 2.5rem) 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.menu-shell .menu-wrap {
  margin-bottom: 0;
}

.menu-shell .site-nav {
  margin: 0;
  place-self: center;
  justify-items: center;
  text-align: center;
  gap: 0.45rem;
}

.page-header {
  max-width: 72ch;
  margin: 0 auto;
}

.page-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 7vw, 3.2rem);
  line-height: 1.05;
}

.page-intro {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: clamp(1rem, 3.3vw, 1.2rem);
  line-height: 1.6;
}

.section-card {
  max-width: 72ch;
  margin: 1.2rem auto 0;
}

.section-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.25rem, 4.2vw, 1.7rem);
  line-height: 1.25;
}

.item-list {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.8;
}

.publication-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.publication-item {
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.72);
}

.publication-title,
.publication-authors,
.publication-venue,
.publication-links {
  margin: 0;
}

.publication-title {
  font-weight: 600;
  line-height: 1.45;
}

.publication-authors {
  margin-top: 0.42rem;
  color: var(--muted);
  line-height: 1.55;
}

.publication-venue {
  margin-top: 0.35rem;
  font-style: italic;
  line-height: 1.45;
}

.publication-links {
  margin-top: 0.4rem;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
}

.publication-links a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.blog-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.8;
}

.blog-list a {
  color: var(--text);
}

.video-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.2rem, 4.2vw, 1.8rem);
  line-height: 1.2;
}

.video-meta {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 3.2vw, 1.08rem);
  line-height: 1.6;
}

.conference-card {
  max-width: 980px;
}

.conference-media-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.conference-video {
  display: block;
  width: min(100%, 900px);
  margin-top: 0.9rem;
  border-radius: 0.35rem;
  background: #000;
}

.media-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.media-item {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.75);
}

.media-embed {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 0.45rem;
  background: #000;
}

.media-embed-spotify {
  aspect-ratio: auto;
  height: 152px;
  background: transparent;
}

.media-caption {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.9vw, 1.02rem);
  line-height: 1.55;
}

.media-caption a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

@media (min-width: 900px) {
  .shell {
    width: min(1180px, 94vw);
    min-height: 100svh;
    display: grid;
    align-content: center;
  }

  .hero {
    width: 100%;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
    gap: clamp(1.8rem, 4vw, 4rem);
    align-items: center;
    transform: translateY(1.2rem);
  }

  .lorenz-canvas {
    max-width: 500px;
    margin: 0;
  }

  .hero-copy {
    margin: 0;
    max-width: 74ch;
  }

  .menu-wrap {
    margin-bottom: 1.1rem;
  }
}
