:root {
  --ink: #17212b;
  --muted: #53606d;
  --line: #d9e1e9;
  --blue: #0052d9;
  --cyan: #13b8a7;
  --orange: #ee8c2b;
  --bg: #f7f9fb;
  --panel: #ffffff;
  --soft: #eaf4ff;
  --shadow: 0 18px 50px rgba(25, 41, 61, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.56;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px min(6vw, 72px);
  background: rgba(247, 249, 251, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 232px;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}

.nav a {
  color: var(--muted);
  font-weight: 650;
}

.nav a:hover {
  color: var(--blue);
  text-decoration: none;
}

main {
  overflow: hidden;
}

.hero {
  width: min(1120px, calc(100% - 36px));
  margin: 54px auto 18px;
  text-align: center;
}

.venue {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0;
}

h1 {
  width: min(1040px, 100%);
  margin: 0 auto 34px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.authors {
  width: min(980px, 100%);
  margin: 0 auto;
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.35;
}

.authors p,
.notes p {
  margin: 4px 0;
}

sup {
  font-size: 0.62em;
  line-height: 0;
}

.notes {
  width: min(980px, 100%);
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(22, 40, 64, 0.06);
}

.button:hover {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.button.disabled {
  color: #7a8590;
  background: #eef2f6;
  cursor: default;
  box-shadow: none;
}

.button.disabled:hover {
  border-color: var(--line);
  color: #7a8590;
}

.media-section {
  width: min(1180px, calc(100% - 36px));
  margin: 40px auto 80px;
  text-align: center;
}

.teaser {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.lead {
  width: min(940px, 100%);
  margin: 28px auto 0;
  color: #2e3a45;
  font-size: clamp(21px, 2.5vw, 28px);
  line-height: 1.35;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.section.narrow {
  width: min(920px, calc(100% - 36px));
}

h2 {
  margin: 0 0 26px;
  color: var(--blue);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
}

.section p {
  margin: 0 0 18px;
}

.section-intro {
  width: min(880px, 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--muted);
}

.figure {
  margin: 0 auto 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.figure.wide {
  width: min(1080px, 100%);
}

.figure img {
  margin: 0 auto;
  border-radius: 4px;
}

figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.feature-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-grid h3 {
  margin: 0 0 10px;
  color: #0d6f6b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.25;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.figure-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.figure.compact {
  margin-bottom: 0;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.case-grid figure {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.case-grid img {
  width: 100%;
  border-radius: 4px;
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  color: #ecf4ff;
  font-size: 14px;
  line-height: 1.5;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 54px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 18px;
  }

  .brand img {
    width: 210px;
  }

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

  .hero {
    margin-top: 36px;
  }

  .authors {
    font-size: 17px;
  }

  .notes {
    font-size: 13px;
  }

  .actions {
    gap: 10px;
  }

  .button {
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }

  .media-section {
    margin-bottom: 52px;
  }

  .teaser,
  .figure,
  .case-grid figure {
    padding: 10px;
  }

  .section {
    padding: 52px 0;
  }

  .feature-grid,
  .figure-row,
  .case-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 30px;
  }

  .lead {
    font-size: 20px;
  }

  .nav {
    gap: 6px 12px;
    font-size: 14px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }
}
