:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #5a6761;
  --line: #d9e2db;
  --paper: #fbfcf8;
  --soft: #eef4ec;
  --forest: #123c2d;
  --leaf: #2d7a4f;
  --water: #1d6672;
  --gold: #c79b46;
  --clay: #a85f3b;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(18, 60, 45, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(251, 252, 248, 0.88);
  border-bottom: 1px solid rgba(217, 226, 219, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--forest);
  color: var(--white);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 650;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 8px;
}

.main-nav a:hover {
  background: var(--soft);
  color: var(--forest);
}

.icon-link,
.text-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--forest);
  color: var(--white);
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(18, 60, 45, 0.18);
}

.header-cta:hover {
  background: #0d3024;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: clamp(620px, 82vh, 820px);
  overflow: hidden;
  isolation: isolate;
}

.page-hero {
  display: grid;
  min-height: 420px;
  align-items: end;
  padding: clamp(100px, 16vw, 170px) clamp(18px, 4vw, 54px) clamp(54px, 8vw, 90px);
  background:
    linear-gradient(90deg, rgba(18, 60, 45, 0.92), rgba(29, 102, 114, 0.82)),
    url("image.png") center / cover;
  color: var(--white);
}

.page-hero > div {
  max-width: 900px;
}

.page-hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.8rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.13rem;
  line-height: 1.6;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 30, 22, 0.82), rgba(9, 30, 22, 0.52) 44%, rgba(9, 30, 22, 0.12)),
    linear-gradient(0deg, rgba(18, 60, 45, 0.56), transparent 42%);
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  padding: clamp(124px, 18vh, 190px) 0 120px;
  margin-left: clamp(18px, 6vw, 82px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions,
.book-actions,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.button.primary {
  background: var(--gold);
  color: #231807;
}

.button.secondary,
.import-button {
  background: var(--white);
  border-color: var(--line);
  color: var(--forest);
}

.button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.metrics article {
  padding: clamp(24px, 4vw, 38px);
  background: var(--paper);
}

.metrics span {
  display: block;
  color: var(--forest);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 0.9;
}

.metrics p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.section-shell,
.feature-band {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 54px);
}

.feature-band {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.55;
}

.toolbar,
.certificate-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 280px);
  gap: 12px;
  margin-top: 24px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

select {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.result-meta,
.split-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
}

.result-meta span {
  color: var(--muted);
  font-weight: 800;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--water);
  cursor: pointer;
  font-weight: 850;
}

.research-grid,
.symposium-grid,
.speaker-grid,
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.research-card,
.symposium-card,
.speaker-card,
.event-card,
.award-card,
.certificate-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(18, 60, 45, 0.06);
}

.research-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 210px;
  padding: 18px;
}

.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #edf6f1;
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 850;
}

.research-card h3 {
  margin-top: 16px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.certificate-panel {
  max-width: 1100px;
}

.certificate-controls {
  grid-template-columns: minmax(0, 1fr) auto;
}

.import-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.certificate-results {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.doi-list {
  display: grid;
  gap: 12px;
}

.doi-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(18, 60, 45, 0.06);
}

.doi-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.work-index {
  padding-top: clamp(34px, 6vw, 64px);
}

.work-list {
  display: grid;
  gap: 14px;
}

.work-card {
  align-items: start;
}

.work-card h3 {
  margin-top: 8px;
  font-size: clamp(1.28rem, 2.4vw, 1.8rem);
  line-height: 1.18;
}

.work-track {
  margin-top: 12px;
  color: var(--water);
  font-weight: 850;
}

.work-subtitle {
  max-width: 980px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.45;
}

.work-doi {
  color: var(--water);
  font-size: 0.9rem;
  font-weight: 900;
}

.author-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.author-list span,
.author-list a {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--soft);
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 760;
}

.author-list a:hover {
  background: #dfece4;
  color: var(--water);
}

.certificate-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.certificate-item p,
.speaker-card p,
.symposium-card p,
.award-card p,
.book-layout p {
  color: var(--muted);
  line-height: 1.5;
}

.certificate-code {
  color: var(--water);
  font-weight: 900;
}

.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
}

.book-card {
  padding: 34px;
  background: var(--forest);
  color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.book-card span {
  display: block;
  color: var(--gold);
  font-size: 5rem;
  font-weight: 950;
  line-height: 0.9;
}

.book-card p {
  margin: 10px 0 22px;
  color: rgba(255, 255, 255, 0.78);
}

.symposium-card,
.speaker-card,
.event-card,
.award-card {
  padding: 20px;
}

.event-card > svg {
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  color: var(--water);
}

.event-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.symposium-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.symposium-card li {
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--soft);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 780;
}

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

.award-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--clay);
}

.certificate-dialog {
  width: min(920px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.certificate-dialog::backdrop {
  background: rgba(15, 34, 28, 0.62);
}

.certificate-sheet {
  margin: 18px;
  padding: clamp(28px, 6vw, 64px);
  background: var(--white);
  border: 10px solid var(--forest);
  outline: 2px solid var(--gold);
  outline-offset: -20px;
  text-align: center;
}

.certificate-sheet .cert-label {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.certificate-sheet h2 {
  margin-top: 18px;
  color: var(--forest);
}

.certificate-sheet .cert-name {
  margin: 28px 0 10px;
  color: var(--water);
  font-size: clamp(1.8rem, 5vw, 3.3rem);
  font-weight: 950;
}

.certificate-sheet .cert-title {
  max-width: 700px;
  margin: 16px auto;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
}

.dialog-actions {
  justify-content: flex-end;
  padding: 0 18px 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 4vw, 54px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--water);
  font-weight: 850;
}

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .main-nav {
    display: none;
  }

  .metrics,
  .research-grid,
  .symposium-grid,
  .speaker-grid,
  .event-grid,
  .award-list,
  .book-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .site-header {
    gap: 10px;
    padding-inline: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 11px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-left: 14px;
    padding-top: 112px;
  }

  .hero .eyebrow {
    max-width: 330px;
    font-size: 0.68rem;
    line-height: 1.4;
  }

  .hero-copy {
    max-width: 330px;
  }

  .metrics,
  .research-grid,
  .symposium-grid,
  .speaker-grid,
  .award-list,
  .book-layout,
  .certificate-controls,
  .certificate-item,
  .doi-item {
    grid-template-columns: 1fr;
  }

  .doi-actions {
    justify-content: stretch;
  }

  .doi-actions .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
    width: min(100%, 310px);
  }

  .hero-actions .button {
    width: 100%;
  }

  .result-meta,
  .split-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  .certificate-dialog,
  .certificate-dialog *,
  .certificate-sheet,
  .certificate-sheet * {
    visibility: visible;
  }

  .certificate-dialog {
    position: static;
    width: 100%;
    box-shadow: none;
  }

  .certificate-sheet {
    margin: 0;
    min-height: 95vh;
  }

  .dialog-actions {
    display: none;
  }
}
