:root {
  --ink: #131313;
  --paper: #f2eddf;
  --orange: #ff5b35;
  --blue: #3456ff;
  --acid: #dfff4f;
  --muted: rgba(19, 19, 19, .58);
  --line: rgba(19, 19, 19, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", sans-serif;
}
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.topbar {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50%;
  width: min(92vw, 1480px);
  height: 84px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(242, 237, 223, .24);
  color: var(--paper);
}
.wordmark { display: flex; gap: 9px; align-items: center; text-decoration: none; font: 18px/1 "Archivo Black", sans-serif; letter-spacing: -.04em; }
.wordmark span { color: var(--orange); }
.wordmark i { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); }
.top-meta { display: flex; gap: 28px; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.top-meta b { color: var(--acid); }
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 150px max(4vw, calc((100vw - 1480px) / 2)) 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, .55fr);
  align-items: end;
  gap: 6vw;
  color: var(--paper);
  background: var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background: linear-gradient(90deg, transparent 49.85%, rgba(255,255,255,.12) 50%, transparent 50.15%), linear-gradient(transparent 49.85%, rgba(255,255,255,.1) 50%, transparent 50.15%);
  background-size: 180px 180px;
}
.hero-copy, .hero-side { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 22px; color: var(--acid); font-size: 11px; font-weight: 900; letter-spacing: .17em; }
.eyebrow.dark { color: var(--blue); }
h1 {
  margin: 0;
  font: clamp(86px, 11.5vw, 190px)/.76 "Archivo Black", sans-serif;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
h1 span { color: var(--orange); }
.hero-side { padding-bottom: 12px; }
.identity-card { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid rgba(242,237,223,.3); }
.monogram { width: 70px; height: 70px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: var(--paper); font: 35px/1 "Archivo Black"; transform: rotate(-8deg); }
.identity-card p { margin: 0; font-size: 10px; font-weight: 900; letter-spacing: .11em; }
.identity-card p + p { margin-top: 9px; color: rgba(242,237,223,.55); }
.manifesto { margin: 30px 0 44px; max-width: 360px; color: rgba(242,237,223,.7); font-size: 16px; line-height: 1.85; }
.github-link { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid rgba(242,237,223,.3); border-bottom: 1px solid rgba(242,237,223,.3); color: var(--paper); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-decoration: none; transition: color .2s, padding .2s; }
.github-link:hover { padding-left: 12px; color: var(--acid); }
.orbit { position: absolute; border: 1px solid rgba(242,237,223,.15); border-radius: 50%; pointer-events: none; }
.orbit i { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--orange); }
.orbit-a { width: 42vw; aspect-ratio: 1; right: -18vw; top: -15vw; animation: rotate 16s linear infinite; }
.orbit-a i { left: 12%; bottom: 13%; }
.orbit-b { width: 24vw; aspect-ratio: 1; left: 41vw; bottom: -18vw; animation: rotate 11s linear reverse infinite; }
.orbit-b i { right: 10%; top: 18%; background: var(--acid); }
.directory { width: min(92vw, 1480px); margin: auto; padding: 120px 0 150px; }
.directory-head { display: flex; justify-content: space-between; align-items: end; padding-bottom: 52px; border-bottom: 3px solid var(--ink); }
h2 { margin: 0; font: clamp(56px, 7vw, 108px)/.85 "Archivo Black"; letter-spacing: -.07em; }
.count { margin: 0; display: flex; align-items: end; gap: 12px; }
.count strong { font: 72px/.75 "Archivo Black"; color: var(--orange); }
.count span { max-width: 55px; font-size: 9px; font-weight: 900; line-height: 1.25; letter-spacing: .12em; }
.toolbar { padding: 24px 0; display: grid; grid-template-columns: minmax(260px, 1fr) auto; align-items: center; gap: 30px; border-bottom: 1px solid var(--ink); }
.search { display: flex; align-items: center; gap: 12px; }
.search span { font-size: 27px; }
.search input { width: 100%; max-width: 430px; padding: 8px 0; border: 0; outline: none; background: transparent; font-size: 16px; }
.search input::placeholder { color: rgba(19,19,19,.35); }
.filters { display: flex; gap: 7px; }
.filters button { padding: 8px 14px; border: 1px solid var(--ink); border-radius: 100px; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; transition: .2s; }
.filters button:hover, .filters button.active { background: var(--ink); color: var(--paper); }
.link-grid { display: grid; grid-template-columns: repeat(12, 1fr); }
.link-card {
  position: relative;
  min-height: 340px;
  padding: 25px;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  transition: background .25s, color .25s;
  animation: cardIn .55s both;
}
.link-card:nth-child(3n + 1) { border-left: 1px solid var(--ink); }
.link-card.featured { grid-column: span 8; background: var(--blue); color: white; }
.link-card.featured + .link-card { border-left: 0; }
.link-card:hover { background: var(--orange); color: var(--ink); }
.card-head { display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.card-head span:first-child { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.card-icon { position: absolute; right: 18px; top: 60px; opacity: .12; font: 140px/.8 "Archivo Black"; transform: rotate(-8deg); }
.link-card h3 { position: relative; margin: auto 0 15px; max-width: 94%; font: clamp(35px, 4vw, 66px)/.9 "Archivo Black"; letter-spacing: -.06em; overflow-wrap: anywhere; }
.link-card:not(.featured) h3 { font-size: clamp(30px, 3vw, 48px); }
.link-card p { position: relative; margin: 0 0 24px; max-width: 540px; min-height: 44px; color: currentColor; opacity: .68; font-size: 13px; line-height: 1.7; }
.card-foot { position: relative; display: flex; justify-content: space-between; align-items: end; padding-top: 16px; border-top: 1px solid currentColor; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.card-foot b { font-size: 24px; }
.empty { padding: 100px 0; text-align: center; font: 30px/1 "Archivo Black"; }
footer { padding: 75px 4vw 40px; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: end; gap: 40px; color: var(--paper); background: var(--orange); }
.footer-logo { font: 110px/.7 "Archivo Black"; color: var(--ink); }
.footer-logo span { color: var(--blue); }
footer p { margin: 0; font: clamp(31px, 4vw, 58px)/.9 "Archivo Black"; letter-spacing: -.055em; color: var(--ink); }
.footer-links { display: flex; justify-content: flex-end; gap: 22px; }
.footer-links a { font-size: 11px; font-weight: 900; letter-spacing: .1em; text-decoration: none; }
footer small { grid-column: 1 / -1; padding-top: 40px; border-top: 1px solid rgba(19,19,19,.35); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; align-items: end; padding-top: 145px; }
  .hero-side { max-width: 500px; }
  .orbit-b { display: none; }
  .link-card, .link-card.featured { grid-column: span 6; border-left: 0; }
  .link-card:nth-child(odd) { border-left: 1px solid var(--ink); }
  footer { grid-template-columns: 1fr 2fr; }
  .footer-links { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .topbar { height: 68px; width: 88vw; }
  .top-meta span:first-child { display: none; }
  .hero { min-height: auto; padding: 130px 6vw 75px; }
  h1 { font-size: 22vw; }
  .hero-side { margin-top: 55px; }
  .orbit-a { width: 90vw; right: -54vw; top: 12vh; }
  .directory { width: 88vw; padding: 90px 0 100px; }
  .directory-head { align-items: start; }
  .count { display: none; }
  .toolbar { grid-template-columns: 1fr; gap: 15px; }
  .filters { overflow-x: auto; padding-bottom: 4px; }
  .filters button { flex: none; }
  .link-card, .link-card.featured { grid-column: 1 / -1; min-height: 310px; border-left: 1px solid var(--ink); }
  .link-card.featured + .link-card { border-left: 1px solid var(--ink); }
  footer { grid-template-columns: 1fr; padding: 65px 6vw 35px; }
  footer p { font-size: 40px; }
}
