/* Anticone. IBM Plex fonts: SIL Open Font License 1.1, see fonts/OFL.txt. */

@font-face {
  font-family: "Plex Sans Condensed";
  src: url("fonts/plex-sans-condensed-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Sans Condensed";
  src: url("fonts/plex-sans-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #07090d;
  --ground: #11161d;
  --rule: #1a222c;
  --ivory: #e9e2d2;
  --label: #d9d4c7;
  --dim: #7c8590;
  --amber: #f2a541;
  --teal: #3fb8af;
  --sans: "Plex Sans Condensed", "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --mono: "Plex Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 5vw, 48px);
  --measure: 1040px;
  color-scheme: dark;
}

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

html {
  background: var(--void);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--label);
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(17px, 1.05rem + 0.2vw, 19px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--amber);
  color: var(--void);
}

h1,
h2,
p,
ul,
figure {
  margin: 0;
}

/* Hero: the lockup on a void plate; the cone edges of the mark run out to the page edges. */

.hero {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: clamp(520px, 78vh, 820px);
  min-height: clamp(520px, 78svh, 820px);
  padding: clamp(56px, 10vh, 128px) var(--gutter);
}

.plate {
  background: var(--void);
  padding: clamp(20px, 3vw, 36px) clamp(12px, 3vw, 44px);
  text-align: center;
  max-width: 100%;
}

.lockup {
  position: relative;
  display: block;
  width: min(640px, 80vw);
  max-width: 100%;
  margin: 0 auto;
}

.lockup img {
  display: block;
  width: 100%;
  height: auto;
}

/* The apex of the cones is the centre of the neck block: (72.33, 117.52) in the 1216 x 235 lockup. */
.cones {
  position: absolute;
  left: 5.948%;
  top: 50.009%;
  z-index: -1;
  width: 1px;
  height: 1px;
  overflow: visible;
  pointer-events: none;
}

.cones path {
  stroke: var(--rule);
  stroke-width: 1.5;
  fill: none;
}

.tagline {
  margin-top: clamp(28px, 4.5vw, 48px);
  color: var(--ivory);
  font-size: clamp(21px, 1rem + 1.1vw, 30px);
  line-height: 1.25;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 28px);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label);
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(63, 184, 175, 0.14);
}

/* Sections: a catalogue column on the left, the content on the right. */

.sections {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.entry {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0 2rem;
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--rule);
}

.index {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

h2 {
  color: var(--ivory);
  font-weight: 600;
  font-size: clamp(25px, 1.1rem + 1vw, 32px);
  line-height: 1.2;
  letter-spacing: 0.005em;
}

.entry p {
  max-width: 36em;
  margin-top: 16px;
}

.entry p + p {
  margin-top: 12px;
}

em.term {
  font-style: normal;
  color: var(--amber);
}

.definition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 24px clamp(32px, 5vw, 64px);
  align-items: start;
}

.definition figure {
  justify-self: center;
  width: 100%;
  max-width: 340px;
  margin-top: 8px;
}

.dag {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.dag .edge {
  stroke: #3a4452;
  stroke-width: 1.5;
}

.dag .cone {
  stroke: #26303c;
  stroke-width: 1.25;
  fill: none;
}

.dag .now {
  stroke: #26303c;
  stroke-width: 1.25;
  stroke-dasharray: 2 6;
}

.dag .seen {
  fill: var(--ground);
  stroke: var(--dim);
  stroke-width: 1.5;
}

.dag .focus {
  fill: var(--ivory);
}

.dag .peer {
  fill: var(--amber);
}

.dag text {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  fill: var(--dim);
}

.dag .peer-label {
  fill: var(--amber);
}

.dag .block-name {
  fill: var(--void);
  font-size: 14px;
  letter-spacing: 0;
}

figcaption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--dim);
  text-align: center;
}

.channels {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  max-width: 36em;
  border-top: 1px solid var(--rule);
}

.channels li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.platform,
.soon {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.platform {
  color: var(--dim);
}

.handle {
  color: var(--ivory);
  overflow-wrap: anywhere;
}

a.handle {
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-underline-offset: 0.2em;
}

a.handle:hover,
a.handle:focus-visible {
  color: var(--teal);
}

.soon {
  color: var(--teal);
}

footer {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 28px var(--gutter) 48px;
}

footer p {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--dim);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* 404 page */

.lost {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  padding: 48px var(--gutter);
  text-align: center;
}

.lost img {
  width: 72px;
  height: auto;
}

.lost p {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 1000px) {
  .definition {
    grid-template-columns: minmax(0, 1fr);
  }

  .definition figure {
    margin-top: 16px;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: clamp(440px, 64svh, 620px);
  }

  .entry {
    grid-template-columns: minmax(0, 1fr);
  }

  .index {
    margin-bottom: 10px;
  }

  .definition figure {
    max-width: 320px;
  }
}

@media (max-width: 420px) {
  .status {
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .channels li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 16px;
  }

  .channels .platform {
    grid-column: 1 / -1;
  }
}
