:root {
  color-scheme: dark;
  --ink: #f0eee8;
  --muted: #a5aaa7;
  --paper: #0d100f;
  --card: #171b19;
  --surface: #131715;
  --line: #303633;
  --brand: #999999;
  --brand-light: #c0c0c0;
  --orange: #d27652;
  --shadow: 0 18px 50px rgba(0, 0, 0, .3);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; }
.skip-link { position: fixed; z-index: 20; top: 1rem; left: 1rem; padding: .6rem 1rem; color: #101312; background: var(--brand-light); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header, main, footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-header { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-size: 1.08rem; font-weight: 800; text-decoration: none; letter-spacing: -.03em; }
.brand-mark { width: 31px; height: 31px; position: relative; display: inline-block; transform: rotate(-30deg); }
.brand-mark i { position: absolute; display: block; width: 11px; height: 11px; border-radius: 3px; background: var(--brand); }
.brand-mark i:nth-child(1) { left: 10px; top: 0; }
.brand-mark i:nth-child(2) { left: 0; top: 15px; }
.brand-mark i:nth-child(3) { right: 0; top: 15px; background: var(--orange); }
nav { display: flex; align-items: center; gap: 2rem; }
nav a { color: #b8bcba; font-size: .91rem; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--ink); }
.nav-github { padding: .55rem .9rem; border: 1px solid #3c423f; border-radius: 9px; }

.hero { min-height: 630px; padding: 88px 5%; display: grid; grid-template-columns: 1.22fr .78fr; align-items: center; overflow: hidden; background: var(--surface); color: var(--ink); border: 1px solid #282d2a; border-radius: 28px; position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(153,153,153,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(153,153,153,.09) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, transparent, black); }
.hero-copy { position: relative; z-index: 2; max-width: 700px; }
.eyebrow { margin: 0 0 1rem; color: var(--brand-light); font-size: .73rem; font-weight: 800; letter-spacing: .15em; line-height: 1.3; text-transform: uppercase; }
.hero .eyebrow { color: var(--brand-light); display: flex; align-items: center; gap: .6rem; }
.hero .eyebrow span { width: 28px; height: 2px; background: var(--brand); }
h1, h2, h3 { margin-top: 0; line-height: 1.06; letter-spacing: -.055em; }
h1 { max-width: 770px; margin-bottom: 1.6rem; font-size: clamp(3rem, 6.3vw, 5.6rem); }
h1 em { color: var(--brand-light); font-family: Georgia, serif; font-weight: 400; }
.hero-lede { max-width: 640px; margin-bottom: 2.2rem; color: #b8bdb9; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; align-items: center; gap: .75rem; padding: .82rem 1.08rem; border-radius: 9px; font-size: .9rem; font-weight: 750; text-decoration: none; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--brand); color: #101312; }
.button-primary:hover { background: var(--brand-light); }
.button-secondary { border: 1px solid #454b48; color: var(--ink); }
.hero-visual { position: relative; z-index: 1; aspect-ratio: 1; }
.orbit { position: absolute; inset: 18%; border: 1px solid rgba(153,153,153,.4); border-radius: 50%; }
.orbit-two { inset: 3%; border-color: rgba(255,255,255,.1); }
.hero-glyph { position: absolute; inset: 37%; transform: rotate(-30deg); }
.hero-glyph span { position: absolute; width: 38%; height: 38%; border-radius: 14px; background: var(--brand); box-shadow: 0 0 45px rgba(153,153,153,.18); }
.hero-glyph span:nth-child(1) { left: 31%; top: 0; }
.hero-glyph span:nth-child(2) { left: 0; bottom: 0; }
.hero-glyph span:nth-child(3) { right: 0; bottom: 0; background: var(--orange); box-shadow: 0 0 45px rgba(210,118,82,.2); }
.node { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-light); box-shadow: 0 0 0 7px rgba(153,153,153,.1); }
.node-one { top: 15%; left: 48%; }.node-two { right: 12%; bottom: 34%; }.node-three { bottom: 12%; left: 28%; background: var(--orange); }

.project-section, .release-section { padding: 120px 0 30px; scroll-margin-top: 30px; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 440px); align-items: end; gap: 3rem; margin-bottom: 2.6rem; }
.section-heading h2, .closing h2 { margin-bottom: 0; font-size: clamp(2.4rem, 5vw, 4rem); }
.section-heading > p { margin: 0; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.filter { appearance: none; padding: .56rem .95rem; border: 1px solid #3b413e; border-radius: 999px; color: #b0b5b2; background: transparent; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 700; }
.filter:hover, .filter[aria-pressed="true"] { border-color: var(--brand); color: #101312; background: var(--brand); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.project-card { min-height: 310px; padding: 1.55rem; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: transform .2s, box-shadow .2s, border-color .2s; }
.project-card:hover { transform: translateY(-4px); border-color: #565d59; box-shadow: var(--shadow); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.category { color: var(--brand-light); font-size: .68rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.featured { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(210,118,82,.13); }
.project-card h3 { margin-bottom: .8rem; font-size: 1.55rem; }
.project-card h3 a { text-decoration: none; }
.project-card h3 a:hover { color: var(--brand-light); }
.description { margin: 0 0 1.5rem; color: var(--muted); font-size: .92rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: .45rem .9rem; margin-top: auto; color: #979d99; font-size: .76rem; }
.project-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.language-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.card-links { display: flex; flex-wrap: wrap; gap: 1.15rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid #2c322f; }
.card-links a { color: var(--brand-light); font-size: .79rem; font-weight: 750; text-decoration: none; }
.card-links a:hover { text-decoration: underline; }
.topic-list { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.topic { padding: .18rem .48rem; border-radius: 999px; color: #b4b9b6; background: #242a27; font-size: .66rem; }
.loading-card { min-height: 310px; border-radius: var(--radius); background: linear-gradient(110deg, #171b19 8%, #242925 18%, #171b19 33%); background-size: 200% 100%; animation: shine 1.4s linear infinite; }
@keyframes shine { to { background-position-x: -200%; } }
.data-error { padding: 1rem; border-left: 3px solid var(--orange); background: #211b18; }

.release-section { margin-top: 80px; padding: 90px 6%; color: var(--ink); background: var(--surface); border: 1px solid #282d2a; border-radius: 28px; }
.release-heading .eyebrow { color: var(--brand-light); }
.release-heading > p { color: var(--muted); }
.release-list { border-top: 1px solid #343a37; }
.release-row { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(120px, .7fr) minmax(130px, .7fr) 34px; gap: 1rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid #343a37; text-decoration: none; }
.release-row:hover .release-project, .release-row:hover .release-arrow { color: var(--brand-light); }
.release-project { font-weight: 780; }
.release-version { color: var(--brand-light); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.release-date { color: var(--muted); font-size: .82rem; }
.release-arrow { justify-self: end; font-size: 1.2rem; }
.text-link { display: inline-block; margin-top: 2rem; color: var(--brand-light); font-size: .88rem; font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.closing { max-width: 750px; margin: 0 auto; padding: 145px 0; text-align: center; }
.closing p:not(.eyebrow) { max-width: 610px; margin: 1.4rem auto 1.8rem; color: var(--muted); }
.closing .button { background: var(--brand); color: #101312; }
footer { min-height: 125px; padding: 28px 0 22px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.footer-brand { color: var(--ink); }.footer-brand .brand-mark { transform: rotate(-30deg) scale(.82); }
footer p { margin: 0; text-align: center; }.freshness { text-align: right; }
.memorial { grid-column: 1 / -1; padding-top: .4rem; color: #7f8581; font-family: Georgia, serif; font-size: .8rem; font-style: italic; letter-spacing: .03em; }
.memorial span { color: #aeb2af; }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 70px; }
  .hero-visual { display: none; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { height: 72px; }
  nav a:not(.nav-github) { display: none; }
  .hero { padding: 58px 24px 64px; border-radius: 20px; }
  h1 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .section-heading { grid-template-columns: 1fr; gap: 1rem; }
  .project-section { padding-top: 90px; }
  .project-grid { grid-template-columns: 1fr; }
  .release-section { margin-top: 55px; padding: 65px 24px; border-radius: 20px; }
  .release-row { grid-template-columns: 1fr auto; gap: .2rem 1rem; }
  .release-version { grid-column: 1; }.release-date { grid-column: 1; }.release-arrow { grid-column: 2; grid-row: 1 / 4; }
  .closing { padding: 110px 10px; }
  footer { padding: 28px 0 24px; grid-template-columns: 1fr; justify-items: center; }
  footer p, .freshness { text-align: center; }
  .memorial { grid-column: 1; padding-top: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
