:root {
  color-scheme: light;
  --paper: #faf9f5;
  --ink: #1d252b;
  --muted: #5f6b72;
  --line: #d8d5cc;
  --panel: #ffffff;
  --accent: #176c72;
  --accent-dark: #0f4c51;
  --soft: #eef5f4;
  --warm: #f2eadc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.authors {
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.affiliations {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.authors sup,
.affiliations sup {
  font-size: 0.7em;
  vertical-align: super;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}

.header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 56px 0 36px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.7rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 4px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.authors {
  margin-bottom: 0;
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.links a,
button {
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 9px 16px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.links a[aria-disabled="true"] {
  background: transparent;
  color: var(--accent-dark);
}

.links a:hover,
button:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}

.section {
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

.lead {
  max-width: 980px;
  margin-bottom: 0;
  color: #303a40;
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  font-size: 1rem;
  line-height: 1.48;
  text-align: justify;
}

.framework-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.paper-figure {
  margin: 0;
}

.paper-figure img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.paper-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.subsection + .subsection {
  margin-top: 48px;
}

.subsection-heading {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.subsection-heading p {
  margin-bottom: 0;
  color: var(--muted);
  text-align: right;
}

.demo-list {
  display: grid;
  gap: 18px;
}

.demo-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.demo-card-header {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #fffdfa;
}

.demo-title {
  margin: 0;
  font-weight: 800;
}

.prompt {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.prompt {
  color: #344149;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.track {
  min-width: 0;
  background: var(--panel);
  padding: 14px;
}

.track-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #253138;
}

audio {
  width: 100%;
  height: 38px;
}

.citation-box {
  display: grid;
  gap: 14px;
}

pre {
  margin: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11181c;
  color: #f5f0e8;
  padding: 18px;
  font-size: 0.94rem;
  line-height: 1.55;
}

#copy-bibtex {
  justify-self: start;
}

.placeholder {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .header-grid,
  .subsection-heading {
    grid-template-columns: 1fr;
    display: grid;
  }

  .links {
    justify-content: flex-start;
  }

  .subsection-heading p {
    text-align: left;
  }

  .lead {
    text-align: left;
  }

  .framework-figures {
    grid-template-columns: 1fr;
  }

  .paper-figure img {
    height: auto;
    padding: 8px;
  }

  .track-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 821px) and (max-width: 1040px) {
  .track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
