/* Experiments designed/conceived by Vijay Erramilli. Code written by Vijay Erramilli and Codex. */
:root {
  --background: #ffffff;
  --text: #202428;
  --muted: #626a71;
  --border: #d9dee2;
  --soft: #f5f7f8;
  --link: #175d78;
  --link-dark: #10465b;
  --accent: #a34835;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-dark);
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header nav,
main,
footer {
  width: min(860px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header nav {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-title {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 0.88rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

article {
  padding: 72px 0 64px;
}

.paper-header {
  padding-bottom: 54px;
  border-bottom: 1px solid var(--border);
}

.paper-type {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 650;
}

h1,
h2 {
  color: #191d20;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 3.35rem;
  line-height: 1.08;
}

.subtitle {
  max-width: 700px;
  margin: 16px 0 0;
  color: #3f474d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  line-height: 1.4;
}

.author {
  margin: 20px 0 0;
  font-weight: 600;
}

.paper-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  font-size: 0.95rem;
}

.primary-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--link);
  border-radius: 4px;
  background: var(--link);
  color: #ffffff;
  font-weight: 650;
  text-decoration: none;
}

.primary-link:hover {
  border-color: var(--link-dark);
  background: var(--link-dark);
  color: #ffffff;
}

section {
  padding: 46px 0 4px;
}

section + section {
  margin-top: 26px;
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0 0 18px;
  font-size: 1.7rem;
  line-height: 1.25;
}

p {
  margin: 0 0 18px;
}

.contributions,
.procedure {
  margin: 0;
  padding-left: 1.35rem;
}

.contributions li,
.procedure li {
  margin-bottom: 13px;
  padding-left: 6px;
}

.procedure strong {
  color: #191d20;
}

figure {
  margin: 26px 0 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

pre {
  margin: 24px 0 0;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--soft);
  color: #282d31;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.6;
}

footer {
  padding: 26px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

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

  .site-header nav,
  main,
  footer {
    width: min(100% - 30px, 860px);
  }

  .site-header nav {
    min-height: 54px;
  }

  .site-title {
    font-size: 0.9rem;
  }

  .nav-links {
    gap: 13px;
    font-size: 0.8rem;
  }

  article {
    padding-top: 48px;
  }

  .paper-header {
    padding-bottom: 42px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  section {
    padding-top: 38px;
  }

  section + section {
    margin-top: 20px;
  }

  footer {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 430px) {
  .nav-links a:not(:last-child) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
