/* Shared styles. No remote fonts, libraries, or runtime dependencies. */
:root {
  color-scheme: dark;
  --bg: #111315;
  --surface: #191c20;
  --text: #edeef0;
  --muted: #a1a7b0;
  --accent: #9bbff0;
  --line: #2b3036;
  --radius: 12px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}
a {
  color: var(--accent);
  text-underline-offset: 5px;
}
a:hover {
  color: #d0e2fc;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 2px;
}
::selection {
  background: #35537b;
  color: #fff;
}
.wrap {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.4px;
}
.brand-mark {
  font-family: Consolas, monospace;
  font-size: 18px;
  color: var(--accent);
  border: 1px solid #3b4655;
  border-radius: 7px;
  padding: 1px 8px;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.site-nav a,
.footer-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover,
.footer-links a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}
.external {
  font-size: 12px;
  margin-left: 3px;
}
.hero {
  padding: 94px 0 82px;
  max-width: 830px;
}
.eyebrow {
  font-family: Consolas, "SFMono-Regular", monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 25px;
}
.eyebrow:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 11px;
  vertical-align: 1px;
}
h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: -0.04em;
  font-weight: 600;
}
h1 {
  font-size: clamp(40px, 5.6vw, 66px);
  margin: 0 0 25px;
}
h1 .soft {
  color: var(--muted);
}
.lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 700px;
  margin: 0;
}
.hero-links {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: #111b28;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover {
  background: #bdd5f6;
  color: #111b28;
}
.quiet-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.section-head h2 {
  font-size: 25px;
  margin: 0;
}
.section-head p {
  font-family: Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}
.project-card:hover {
  border-color: #52647d;
  transform: translateY(-3px);
}
.project-art {
  height: 156px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #25304066, transparent 70%);
}
.art-inbox {
  width: 108px;
  height: 66px;
  border: 1px solid #71859f;
  border-radius: 8px;
  position: relative;
  transform: rotate(-7deg);
  box-shadow:
    7px -8px 0 -1px #191c20,
    7px -8px 0 0 #3b4655;
}
.art-inbox:before {
  content: "";
  position: absolute;
  inset: 12px 16px auto;
  height: 24px;
  border-bottom: 1px solid #71859f;
  transform: rotate(-24deg);
}
.art-inbox:after {
  content: "✓";
  position: absolute;
  right: -13px;
  bottom: -12px;
  background: #263a50;
  border: 1px solid #71859f;
  color: #b9d4f8;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
}
.art-codes {
  display: grid;
  grid-template-columns: repeat(3, 18px);
  gap: 7px;
  padding: 17px;
  border: 1px solid #71859f;
  border-radius: 8px;
  transform: rotate(7deg);
}
.art-codes i {
  width: 18px;
  height: 18px;
  border: 2px solid #92aac9;
  border-radius: 2px;
}
.art-codes i:nth-child(2),
.art-codes i:nth-child(6),
.art-codes i:nth-child(8) {
  border: 0;
  background: #52657e;
}
.art-radar {
  width: 114px;
  height: 114px;
  border: 1px solid #495d77;
  border-radius: 50%;
  position: relative;
  background: repeating-radial-gradient(
    circle,
    transparent 0 18px,
    #364557 19px 20px
  );
}
.art-radar:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.5%, #495d77 50%, transparent 50.5%),
    linear-gradient(transparent 49.5%, #495d77 50%, transparent 50.5%);
}
.art-radar:after {
  content: "✈";
  position: absolute;
  top: 17px;
  right: 15px;
  font-size: 26px;
  color: #b5d0f5;
  transform: rotate(-25deg);
}
.card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 17px;
}
.tag {
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  padding: 4px 8px;
  border: 1px solid #39414b;
  border-radius: 4px;
  color: #bbc5d3;
}
.tag.status {
  color: var(--muted);
  border-color: var(--line);
}
.project-card h3 {
  font-size: 23px;
  margin: 0 0 13px;
}
.project-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 26px;
  line-height: 1.8;
}
.card-link {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  font-size: 14px;
  color: var(--text);
}
.card-link:hover {
  color: var(--accent);
}
.home-note {
  margin: 52px 0 76px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 25px;
  align-items: baseline;
  justify-content: space-between;
}
.home-note p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.home-note a {
  white-space: nowrap;
  font-size: 14px;
  text-decoration: none;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.footer-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 7px;
}
.footer-copy {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  max-width: 420px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.copyright {
  font-size: 11px;
  color: var(--muted);
  margin: 24px 0 0;
}
.page-header {
  padding: 65px 0 45px;
  max-width: 800px;
}
.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.page-header h1 {
  font-size: clamp(38px, 5vw, 56px);
}
.page-header .tags {
  margin-bottom: 22px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 70px;
  padding-bottom: 80px;
}
.prose {
  max-width: 760px;
}
.prose section {
  margin-bottom: 36px;
}
.prose h2 {
  font-size: 25px;
  margin: 0 0 17px;
}
.prose h3 {
  font-size: 19px;
  margin: 25px 0 12px;
}
.prose p,
.prose li {
  color: #b5bac2;
}
.prose p {
  margin: 0 0 18px;
}
.prose ul {
  padding-left: 22px;
}
.prose li {
  padding-left: 4px;
  margin: 8px 0;
}
.prose strong {
  color: var(--text);
  font-weight: 600;
}
.aside-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 20px;
}
.aside-box h2 {
  font-size: 17px;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.facts {
  margin: 0;
}
.facts dt {
  color: var(--muted);
  font-size: 12px;
  margin-top: 18px;
}
.facts dt:first-child {
  margin-top: 0;
}
.facts dd {
  font-size: 14px;
  margin: 3px 0 0;
}
.aside-box p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.callout {
  padding: 22px 25px;
  background: var(--surface);
  border-left: 2px solid var(--accent);
  border-radius: 0 7px 7px 0;
}
.prose .callout p:last-child {
  margin-bottom: 0;
}
.affiliation {
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.download-verification {
  margin-top: 18px;
}
.oauth-scopes code {
  overflow-wrap: anywhere;
}
.download-verification summary {
  color: var(--accent);
  cursor: pointer;
}
.download-verification summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
.download-verification p {
  margin-top: 16px;
}
.download-verification code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  user-select: all;
}
.reading-page {
  padding-bottom: 60px;
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  border-block: 1px solid var(--line);
  padding: 20px 0;
  margin-bottom: 35px;
}
.toc a {
  font-size: 13px;
}
.not-found {
  min-height: 60vh;
  padding: 90px 0;
}
.not-found p {
  color: var(--muted);
  max-width: 520px;
}
.not-found .button {
  margin-top: 15px;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 110px;
    padding-bottom: 95px;
  }
}
@media (max-width: 900px) {
  .project-grid {
    gap: 14px;
  }
  .card-body {
    padding: 20px;
  }
  .project-card h3 {
    font-size: 20px;
  }
  .detail-layout {
    gap: 35px;
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .site-nav {
    gap: 22px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header-inner {
    min-height: 105px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding-block: 18px;
  }
  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 15px;
  }
  .site-nav a {
    font-size: 13px;
  }
  .hero {
    padding: 58px 0 55px;
  }
  .lead {
    font-size: 16px;
  }
  .hero-links {
    gap: 20px;
    flex-wrap: wrap;
  }
  .hero-links a {
    white-space: nowrap;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .project-art {
    height: 145px;
  }
  .card-body {
    padding: 25px;
  }
  .project-card h3 {
    font-size: 24px;
  }
  .section-head {
    gap: 12px;
    flex-direction: column;
  }
  .section-head p {
    font-size: 11px;
  }
  .home-note {
    margin: 35px 0 45px;
    flex-direction: column;
    gap: 14px;
  }
  .footer-main {
    flex-direction: column;
  }
  .footer-links {
    gap: 23px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 45px;
  }
  .page-header {
    padding: 38px 0;
  }
  .page-header h1 {
    overflow-wrap: break-word;
  }
  .prose h2 {
    font-size: 23px;
  }
  .aside-box {
    padding: 22px;
  }
  .not-found {
    padding: 60px 0;
  }
  .hero h1 {
    font-size: clamp(36px, 8.4vw, 56px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
  }
  .project-card:hover {
    transform: none;
  }
}
