/* AR-WAM project page. One plain stylesheet, no framework or web fonts. */

:root {
  color-scheme: light;
  --text: #24292f;
  --heading: #16191d;
  --muted: #5a6370;
  --link: #2a6fb0;
  --band: #f5f6f8;
  --line: #d3d8df;
  --rule: #16191d;
  --ours: #e8f0f9;
  --button: #2f3237;
  --button-hover: #4b5059;
  --page: 1080px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nw { white-space: nowrap; }

/* Title block */

.hero {
  padding: 4.5rem 0 2rem;
  text-align: center;
}

.title {
  margin: 0 auto 1.6rem;
  max-width: 62rem;
  color: var(--heading);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.authors {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.author {
  display: inline-block;
  margin: 0 0.2rem;
  white-space: nowrap;
}

.affiliation {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.8rem;
}

.logos img {
  display: block;
  width: auto;
  height: 3rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--button);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background 0.15s ease;
}

.button:hover {
  background: var(--button-hover);
  text-decoration: none;
}

.button svg {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
}

.button.is-pending,
.button.is-pending:hover {
  background: #e6e9ed;
  color: #5a6370;
  cursor: default;
}

/* Sections */

.section { padding: 3.25rem 0; }

.band { background: var(--band); }

.section h2 {
  margin: 0 0 1.6rem;
  color: var(--heading);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-align: center;
  text-wrap: balance;
}

.prose p {
  margin: 0 0 1rem;
  text-align: justify;
}

.prose p:last-child { margin-bottom: 0; }

.prose b,
.prose strong { color: var(--heading); }

/* Figures */

figure { margin: 0 0 1.6rem; }

figure img {
  display: block;
  width: 100%;
  height: auto;
}

figure.card img {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.caption {
  max-width: 58rem;
  margin: 0.9rem auto 1.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: justify;
}

.caption b { color: var(--text); }

/* Result tables */

.table-wrap {
  margin-top: 1.6rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap.narrow {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

table.results {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.results th,
.results td {
  padding: 0.42rem 0.6rem;
  text-align: center;
  white-space: nowrap;
}

.results th {
  color: var(--heading);
  font-weight: 600;
}

.results .l { text-align: left; }

.results thead tr:first-child th { padding-top: 0.6rem; }

.results thead tr:last-child th {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--rule);
}

/* A rule under a header that spans a group of columns. */
.results th.u { padding-bottom: 0.15rem; }

.results th.u span {
  display: block;
  margin: 0 0.15rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #9aa3ae;
}

.results tbody tr:first-child td { padding-top: 0.6rem; }
.results tbody tr:last-child td { padding-bottom: 0.6rem; }

.results tbody tr.sep td { border-top: 1px solid var(--line); }

.results tr.group td {
  padding-top: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.results tr.ours td { background: var(--ours); }

.results tr.ours td:first-child {
  color: var(--heading);
  font-weight: 600;
}

.results b {
  color: var(--heading);
  font-weight: 700;
}

.results sup {
  font-size: 0.8em;
  line-height: 0;
  vertical-align: 0.3em;
}

/* Citation */

.bibtex {
  position: relative;
  max-width: 58rem;
  margin: 0 auto;
}

.bibtex pre {
  margin: 0;
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--band);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.55;
}

.copy {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.copy:hover { color: var(--heading); border-color: #9aa3ae; }

#citation { padding-bottom: 4.5rem; }

/* Small screens */

@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { padding: 0 1rem; }
  .hero { padding: 2.75rem 0 1.25rem; }
  .authors { font-size: 1.1rem; }
  .affiliation { font-size: 1rem; }
  .logos img { height: 2.6rem; }
  .section { padding: 2.4rem 0; }
  .prose p,
  .caption { text-align: left; }
  figure.card img { padding: 0.6rem; }
  .results th,
  .results td { padding: 0.38rem 0.5rem; }
}
