:root {
  --ink: #0d0f0d;
  --ink-raised: #151814;
  --text: #efefe8;
  --muted: #8b9087;
  --faint: #5d625a;
  --lime: #acd477;
  --lime-deep: #7ea252;
  --paper: #eff1e9;
  --paper-muted: #73796f;
  --line: rgba(239, 239, 232, 0.13);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-width: 320px;
  background: var(--ink);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 79% 10%, rgba(172, 212, 119, 0.1), transparent 26rem),
    radial-gradient(circle at 18% 76%, rgba(126, 162, 82, 0.06), transparent 28rem),
    var(--ink);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  position: fixed;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.028;
  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='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.82'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

.atmosphere {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.atmosphere__glow {
  position: absolute;
  top: -16rem;
  right: -19rem;
  width: 40rem;
  height: 40rem;
  border: 1px solid rgba(172, 212, 119, 0.1);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(172, 212, 119, 0.13), transparent 64%);
  box-shadow:
    0 0 0 5rem rgba(172, 212, 119, 0.015),
    0 0 0 10rem rgba(172, 212, 119, 0.008);
}

.flow-field {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1100px, 130vw);
  min-width: 760px;
  height: 100%;
  min-height: 920px;
  transform: translateX(-50%);
  fill: var(--lime);
  opacity: 0.22;
}

.flow-field__path {
  fill: none;
  stroke: var(--lime);
  stroke-dasharray: 2 12;
  stroke-linecap: round;
  stroke-width: 1;
}

.flow-field__path--two {
  opacity: 0.6;
  stroke-dasharray: 1 16;
}

.flow-field__path--three {
  opacity: 0.38;
  stroke-dasharray: 1 20;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), 680px);
  min-height: 100dvh;
  margin: 0 auto;
}

.masthead {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-decoration: none;
  transition: color 180ms ease;
}

.wordmark__division {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 10px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.network-state {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.network-state > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(172, 212, 119, 0.7);
}

.intro {
  padding: clamp(64px, 11vw, 96px) 0 clamp(48px, 8vw, 72px);
}

.intro__meta,
.directory__label,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro__meta {
  margin-bottom: 28px;
}

.intro__meta p:first-child {
  color: var(--lime);
}

.intro h1 {
  max-width: 640px;
  font-size: clamp(58px, 13vw, 96px);
  font-weight: 470;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.intro h1 span {
  display: block;
  color: var(--lime-deep);
}

.intro__copy {
  max-width: 500px;
  margin-top: 34px;
  color: var(--muted);
  font-size: clamp(14px, 2.2vw, 16px);
  letter-spacing: -0.012em;
  line-height: 1.7;
}

.directory__label {
  min-height: 52px;
  border-top: 1px solid var(--line);
}

.directory__label span:first-child {
  color: var(--lime);
}

.primary-links {
  display: grid;
  gap: 12px;
}

.link-card {
  position: relative;
  display: grid;
  min-height: 184px;
  grid-template-columns: 44px 1fr 44px;
  align-items: start;
  gap: clamp(12px, 3vw, 24px);
  overflow: hidden;
  padding: clamp(24px, 5vw, 34px);
  border: 1px solid transparent;
  border-radius: 20px;
  text-decoration: none;
  isolation: isolate;
  transition:
    transform 160ms var(--ease-out),
    border-color 180ms ease,
    background-color 180ms ease;
}

.link-card::before {
  position: absolute;
  z-index: -1;
  top: -11rem;
  right: -10rem;
  width: 23rem;
  height: 23rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.08;
  transition: transform 260ms var(--ease-out);
}

.link-card::after {
  position: absolute;
  z-index: -1;
  right: 18%;
  bottom: 0;
  left: 18%;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0.15;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease-out);
}

.link-card--lime {
  background: var(--lime);
  color: #11150e;
}

.link-card--light {
  border-color: rgba(13, 15, 13, 0.08);
  background: var(--paper);
  color: #111410;
}

.link-card__index {
  padding-top: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.52;
}

.link-card__copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.link-card__eyebrow,
.link-card__url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-transform: uppercase;
}

.link-card__eyebrow {
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.15em;
  opacity: 0.58;
}

.link-card strong {
  font-size: clamp(24px, 5.4vw, 34px);
  font-weight: 540;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.link-card__url {
  margin-top: 21px;
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0.48;
}

.link-card__arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.55;
  transition:
    transform 180ms var(--ease-out),
    opacity 180ms ease;
}

.link-card__arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.directory__label--network {
  margin-top: 50px;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.social-link {
  display: grid;
  min-width: 0;
  min-height: 124px;
  grid-template-columns: 1fr auto;
  align-content: space-between;
  align-items: end;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(21, 24, 20, 0.82);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition:
    transform 160ms var(--ease-out),
    border-color 180ms ease,
    background-color 180ms ease;
}

.social-link__icon {
  display: grid;
  width: 34px;
  height: 34px;
  grid-column: 1 / -1;
  place-items: center;
  border: 1px solid rgba(172, 212, 119, 0.25);
  border-radius: 50%;
  color: var(--lime);
}

.social-link__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.social-link__icon--youtube svg {
  width: 18px;
}

.social-link__icon--youtube svg:first-child {
  fill: none;
}

.social-link__icon .social-link__icon-fill {
  fill: currentColor;
  stroke: none;
}

.social-link > span:nth-child(2) {
  min-width: 0;
}

.social-link strong,
.social-link small {
  display: block;
}

.social-link strong {
  color: #d9dcd4;
  font-size: 15px;
  font-weight: 580;
}

.social-link small {
  overflow: hidden;
  margin-top: 4px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-link__arrow {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--faint);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  transition:
    transform 180ms var(--ease-out),
    stroke 180ms ease;
}

.footer {
  min-height: 112px;
  margin-top: 52px;
  border-top: 1px solid var(--line);
}

.reveal {
  animation: reveal 460ms var(--ease-out) both;
}

.reveal--one {
  animation-delay: 60ms;
}

.reveal--two {
  animation-delay: 110ms;
}

.reveal--three {
  animation-delay: 160ms;
}

.reveal--four {
  animation-delay: 205ms;
}

.reveal--five {
  animation-delay: 250ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.link-card:active,
.social-link:active,
.wordmark:active {
  transform: scale(0.97);
}

.link-card:focus-visible,
.social-link:focus-visible,
.wordmark:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .wordmark:hover {
    color: var(--lime);
  }

  .link-card:hover {
    transform: translateY(-2px);
  }

  .link-card:hover::before {
    transform: scale(1.06);
  }

  .link-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .link-card:hover .link-card__arrow {
    opacity: 0.9;
    transform: translate(2px, -2px);
  }

  .social-link:hover {
    border-color: rgba(172, 212, 119, 0.32);
    background: rgba(27, 32, 25, 0.95);
    transform: translateY(-2px);
  }

  .social-link:hover .social-link__arrow {
    stroke: var(--lime);
    transform: translate(2px, -2px);
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(calc(100% - 32px), 680px);
  }

  .masthead {
    min-height: 72px;
  }

  .network-state {
    letter-spacing: 0.09em;
  }

  .intro {
    padding-top: 54px;
  }

  .intro__meta p:last-child {
    display: none;
  }

  .intro h1 {
    font-size: clamp(56px, 19vw, 82px);
  }

  .link-card {
    min-height: 166px;
    grid-template-columns: 30px 1fr 38px;
    gap: 10px;
    padding: 23px 20px;
    border-radius: 18px;
  }

  .link-card__arrow {
    width: 36px;
    height: 36px;
  }

  .link-card__eyebrow {
    margin-bottom: 14px;
  }

  .link-card__url {
    margin-top: 17px;
  }

  .directory__label--network {
    margin-top: 42px;
  }

  .social-links {
    grid-template-columns: 1fr;
  }

  .social-link {
    min-height: 78px;
    grid-template-columns: 38px 1fr auto;
    align-content: center;
    align-items: center;
    padding: 15px 16px;
  }

  .social-link__icon {
    width: 34px;
    height: 34px;
    grid-column: auto;
  }

  .footer {
    min-height: 96px;
    margin-top: 42px;
  }

  .footer p:last-child {
    display: none;
  }
}

@media (max-width: 370px) {
  .network-state {
    font-size: 9px;
  }

  .link-card {
    grid-template-columns: 24px 1fr 34px;
    padding-inline: 16px;
  }

  .link-card__arrow {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}
