:root {
  --ink: #101820;
  --ink-2: #24313b;
  --paper: #f7f8f4;
  --white: #ffffff;
  --mist: #e8edf0;
  --line: #ced8dd;
  --cyan: #00a6c8;
  --cyan-dark: #067790;
  --amber: #d88928;
  --leaf: #4a7c59;
  --shadow: 0 16px 42px rgba(16, 24, 32, 0.14);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(206, 216, 221, 0.8);
  background: rgba(247, 248, 244, 0.94);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.section__inner,
.footer__inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 166, 200, 0.36);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0;
}

.brand__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand__text strong {
  font-size: 0.98rem;
  white-space: nowrap;
}

.brand__text span {
  color: #53616a;
  font-size: 0.78rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
}

.nav-toggle::before {
  content: "";
  display: block;
  width: 18px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 18px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 7px / 18px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 14px / 18px 2px no-repeat;
}

.nav-toggle span {
  display: none;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  text-decoration: none;
  color: #34434c;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #e3f3f6;
  color: var(--cyan-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  font-size: 0.95rem;
}

.button:hover {
  background: #1d2b35;
}

.button--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.button--ghost:hover {
  background: var(--white);
}

.button--quiet {
  color: var(--cyan-dark);
  background: #e3f3f6;
  border-color: #b9dce3;
}

.button--quiet:hover {
  background: #d3ecf1;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 16, 21, 0.88), rgba(10, 16, 21, 0.58) 38%, rgba(10, 16, 21, 0.16) 72%),
    linear-gradient(0deg, rgba(10, 16, 21, 0.85), rgba(10, 16, 21, 0.08) 42%),
    url("conference-hero.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  z-index: -1;
  background: var(--paper);
  clip-path: polygon(0 70%, 100% 20%, 100% 100%, 0 100%);
}

.hero__inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 92px;
}

.hero__content {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.55rem, 6.8vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__subtitle {
  margin: 22px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  overflow-wrap: break-word;
}

.hero__actions,
.page-hero__actions,
.toolbar,
.form-actions,
.paper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero__actions {
  margin-top: 30px;
}

.hero .button--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.hero .button--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  gap: 1px;
  width: min(520px, 100%);
  margin-top: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero__stats div {
  padding: 18px;
}

.hero__stats strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.hero__stats span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.85rem;
}

.section {
  padding: 72px 0;
}

.section--compact {
  padding: 44px 0;
}

.section--dark {
  color: var(--white);
  background: var(--ink);
}

.section--white {
  background: var(--white);
}

.section__header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section__header h2,
.page-hero h1,
.paper-detail__main h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section__header p,
.page-hero p {
  margin: 0;
  color: #596871;
}

.section--dark .section__header p,
.section--dark .muted {
  color: rgba(255, 255, 255, 0.72);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-panel,
.track-card,
.paper-card,
.empty-state,
.form-panel,
.committee-card,
.notice,
.mini-record {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.info-panel,
.track-card,
.paper-card,
.form-panel,
.committee-card,
.notice {
  padding: 24px;
}

.track-card {
  min-height: 188px;
}

.track-card h3,
.paper-card h3,
.info-panel h3,
.committee-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.22;
}

.track-card p,
.info-panel p,
.paper-card p,
.committee-card p {
  margin: 0;
  color: #53616a;
}

.track-card__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: #e3f3f6;
  color: var(--cyan-dark);
  font-weight: 850;
}

.timeline {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.timeline__item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  background: var(--white);
}

.timeline__item time {
  color: var(--cyan-dark);
  font-weight: 800;
}

.timeline__item strong {
  display: block;
  margin-bottom: 4px;
}

.page-hero {
  padding: 64px 0 44px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.48fr);
  gap: 44px;
  align-items: end;
}

.page-hero__actions {
  margin-top: 24px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.metric-strip div {
  padding: 18px;
  background: var(--paper);
}

.metric-strip strong {
  display: block;
  font-size: 1.8rem;
}

.metric-strip span {
  color: #596871;
  font-size: 0.86rem;
}

.toolbar {
  justify-content: space-between;
  padding: 18px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.field-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bfcbd1;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  resize: vertical;
  min-height: 138px;
}

label {
  display: grid;
  gap: 8px;
  color: #2e3c45;
  font-size: 0.92rem;
  font-weight: 720;
}

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

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.paper-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.paper-card {
  display: grid;
  gap: 14px;
  min-height: 300px;
}

.paper-card h3 a {
  text-decoration: none;
}

.paper-card h3 a:hover,
.text-link:hover {
  color: var(--cyan-dark);
}

.paper-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.paper-card__meta span,
.keyword-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: var(--radius);
  background: #edf2f4;
  color: #3f515b;
  font-size: 0.82rem;
  font-weight: 700;
}

.authors,
.affiliations {
  color: #53616a;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.text-link {
  color: var(--cyan-dark);
  font-weight: 760;
  text-decoration: none;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 40px;
  min-height: 260px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
}

.empty-state h1,
.empty-state h2,
.empty-state p {
  margin: 0;
}

.layout-two {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.38fr);
  gap: 24px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 18px;
}

.notice {
  border-color: #cfe6d4;
  background: #f1f8f2;
}

.notice p {
  margin: 0 0 14px;
}

.muted {
  color: #64727b;
}

.mini-record {
  padding: 14px;
  display: grid;
  gap: 3px;
}

.mini-record span {
  color: #64727b;
  font-size: 0.9rem;
}

.publication-saved .site-header {
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.22);
}

.paper-detail {
  padding: 50px 0 82px;
}

.paper-detail__layout {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.paper-detail__aside,
.paper-detail__main {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.paper-detail__aside {
  padding: 22px;
  position: sticky;
  top: 94px;
  display: grid;
  gap: 22px;
}

.paper-detail__aside dl {
  margin: 0;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.paper-detail__aside div {
  padding: 12px;
  background: var(--paper);
}

.paper-detail__aside dt {
  color: #64727b;
  font-size: 0.76rem;
  text-transform: uppercase;
  font-weight: 820;
}

.paper-detail__aside dd {
  margin: 2px 0 0;
}

.paper-detail__main {
  padding: clamp(24px, 4vw, 48px);
}

.paper-detail__main h2 {
  margin: 32px 0 10px;
  font-size: 1.18rem;
}

.paper-detail__main p {
  max-width: 76ch;
}

.source-note {
  max-width: 76ch;
  margin: 24px 0 0;
  padding: 16px;
  border: 1px solid #c9e4eb;
  border-radius: var(--radius);
  background: #eef8fa;
  color: #31444d;
}

.citation {
  padding: 16px;
  border-left: 4px solid var(--amber);
  background: #fff7ec;
}

.article-section {
  max-width: 78ch;
  padding-top: 4px;
}

.article-section h2 {
  color: var(--ink);
}

.article-section p {
  text-align: left;
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.committee-card {
  min-height: 176px;
}

.role-tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 18px;
  padding: 4px 9px;
  border-radius: var(--radius);
  color: var(--leaf);
  background: #edf5ee;
  font-size: 0.8rem;
  font-weight: 820;
}

.site-footer {
  color: rgba(255, 255, 255, 0.74);
  background: var(--ink);
}

.footer__inner {
  padding: 34px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.site-footer strong {
  color: var(--white);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: none !important;
  }

  .site-header__inner {
    flex-wrap: wrap;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 10px;
    gap: 10px;
  }

  .site-nav {
    position: static;
    display: flex !important;
    flex: 1 0 100%;
    width: 100%;
    overflow-x: visible;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 0 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scrollbar-width: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 8px 9px;
    white-space: nowrap;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .section__header,
  .page-hero__grid,
  .layout-two,
  .paper-detail__layout {
    grid-template-columns: 1fr;
  }

  .grid--3,
  .grid--2,
  .paper-list,
  .committee-grid {
    grid-template-columns: 1fr;
  }

  .paper-detail__aside {
    position: static;
  }
}

@media (max-width: 680px) {
  .brand__text span {
    display: none;
  }

  .site-header__inner,
  .section__inner,
  .footer__inner,
  .hero__inner,
  .paper-detail__layout {
    width: calc(100% - 28px);
  }

  .site-header__inner {
    width: 100%;
    padding: 0 14px;
  }

  .hero {
    min-height: 740px;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(10, 16, 21, 0.92), rgba(10, 16, 21, 0.46)),
      url("conference-hero.png") 62% center / cover no-repeat;
  }

  .hero__inner {
    padding: 56px 0 84px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 13vw, 4.2rem);
  }

  .hero__subtitle {
    max-width: 92%;
    font-size: 0.98rem;
  }

  .hero__actions .button {
    flex: 1 1 100%;
    width: 100%;
    max-width: 320px;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 52px 0;
  }

  .timeline__item,
  .form-grid,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
  }

  .field-inline {
    width: 100%;
  }
}
