/* Layout adapted from christhetree/mod_discovery (docs/styles.css, MPL-2.0). */
:root {
  color-scheme: light;
  --ink: #182033;
  --muted: #5c6473;
  --paper: #fbfaf7;
  --panel: #f1f3f7;
  --line: #c9ced8;
  --accent: #263451;
  --planned: #715b26;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: #244c83;
  text-underline-offset: 0.15em;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  background: transparent;
  font: 600 0.95rem/1.2 inherit;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover {
  color: white;
  background: var(--accent);
}

.button.muted {
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

.hero {
  padding: 4rem max(1.25rem, calc((100vw - 1120px) / 2));
  text-align: center;
  color: white;
  background: linear-gradient(135deg, #192238, #3d5278);
}

.hero a {
  color: inherit;
}

.hero .button {
  border-color: #d9e3f5;
  color: white;
}

.hero .button:hover {
  color: var(--accent);
  background: white;
}

.hero .button.muted {
  color: #d9deea;
  background: rgb(255 255 255 / 7%);
}

.hero h1 {
  max-width: 950px;
  margin: 0.5rem auto;
  font: 750 clamp(2.4rem, 7vw, 5.2rem)/1.02 Georgia, serif;
  letter-spacing: -0.035em;
}

.eyebrow,
.kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.subtitle {
  margin: 1rem 0 0.35rem;
  font: italic clamp(1.15rem, 3vw, 1.6rem)/1.4 Georgia, serif;
}

.author {
  margin: 0 0 1.5rem;
}

nav,
.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

main,
footer {
  width: min(1120px, calc(100% - 2.5rem));
  margin: auto;
}

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

.abstract {
  width: min(820px, 100%);
  margin: auto;
  font: 1.08rem/1.75 Georgia, serif;
}

h2,
h3 {
  font-family: Georgia, serif;
  line-height: 1.2;
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.columns,
.figure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

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

.columns article,
.application-card,
.forthcoming {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: white;
}

.planned {
  border-left: 0.35rem solid var(--planned);
}

.figure-placeholder {
  display: flex;
  min-height: 180px;
  margin-top: 1.5rem;
  padding: 1.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px dashed #9ca5b5;
  border-radius: 0.5rem;
  color: var(--muted);
  background: var(--panel);
  text-align: center;
}

.caption {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.demo-panel {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #151923;
}

.demo-consent {
  display: grid;
  min-height: 220px;
  place-content: center;
  justify-items: center;
  padding: 1.5rem;
  color: white;
  text-align: center;
}

.demo-consent button {
  border-color: white;
  color: white;
}

.demo-frame {
  display: block;
  width: 100%;
  min-height: 960px;
  border: 0;
  background: #151923;
}

.demo-actions {
  margin-top: 0.8rem;
  justify-content: flex-end;
}

.demo-actions[hidden] {
  display: none;
}

.forthcoming {
  border-style: dashed;
  color: var(--muted);
}

pre {
  padding: 1.25rem;
  overflow-x: auto;
  border-radius: 0.5rem;
  background: var(--panel);
}

footer {
  display: flex;
  padding: 2rem 0 4rem;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  main,
  footer {
    width: min(100% - 1.25rem, 1120px);
  }

  section {
    padding: 2.75rem 0;
  }

  .columns,
  .columns.two,
  .figure-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  footer {
    align-items: start;
    flex-direction: column;
  }

  .demo-frame {
    min-height: 1100px;
  }

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

  .demo-actions > * {
    flex: 1 1 100%;
  }
}
