/* network.tavi.ceo landing, in tavi.ceo's theme: its Inter, #fafafa, neutral text, #0015ff accent, 640px column.
   Inter is the latin subset tavi.ceo serves (SIL Open Font License 1.1, https://rsms.me/inter). Light only, like
   tavi.ceo. Sizes below are its Tailwind classes; the second value applies from 640px (sm). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Arial sized to Inter's metrics (next/font's fallback), so the swap does not move the text. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0%;
  size-adjust: 107.06%;
}

:root {
  --bg: #fafafa;
  --ink: #171717; /* neutral-900 */
  --muted: #737373; /* neutral-500 */
  --quiet: #a3a3a3; /* neutral-400 */
  --faint: #d4d4d4; /* neutral-300 */
  --accent: #0015ff;
  --accent-30: rgb(0 21 255 / 0.3);
  --accent-60: rgb(0 21 255 / 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Inter Fallback", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
p,
ol {
  margin: 0;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  font-size: 13px;
  color: var(--muted);
}

.status .quiet {
  color: var(--quiet);
}

.dot {
  position: relative;
  display: flex;
  width: 0.5rem;
  height: 0.5rem;
}

.dot .ping,
.dot .core {
  display: inline-flex;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: var(--accent);
}

.dot .ping {
  position: absolute;
  opacity: 0.6;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.dot .core {
  position: relative;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

h1 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.lede {
  margin-top: 0.75rem;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

section {
  margin-top: 2.5rem;
}

.label {
  margin-bottom: 1rem;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.rules {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.rules li {
  display: flex;
  gap: 0.75rem;
  font-size: 15px;
  line-height: 1.6;
  counter-increment: rule;
}

.rules li::before {
  content: counter(rule);
  min-width: 0.75em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.rules li > span {
  flex: 1;
}

strong {
  font-weight: 600;
}

.links p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.links p + p {
  margin-top: 0.5rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-30);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  text-decoration-color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.arrow {
  color: var(--accent-60);
  font-size: 0.85em;
}

.end {
  margin-top: 3.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--faint);
}

@media (min-width: 640px) {
  main {
    padding: 5rem 1.5rem;
  }

  h1 {
    font-size: 24px;
  }

  .lede,
  .label,
  .rules li,
  .links p {
    font-size: 16px;
  }

  section {
    margin-top: 3rem;
  }

  .rules {
    gap: 0.75rem;
  }

  .end {
    margin-top: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot .ping {
    animation: none;
    opacity: 0;
  }
}
