/* bellinger.group */

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

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #8c8c8c;
  --rule: rgba(255, 255, 255, 0.7);      /* top line */
  --hairline: rgba(255, 255, 255, 0.16); /* bottom line: barely there */
  --underline: rgba(255, 255, 255, 0.35);
  --inset: clamp(16px, 2.6vw, 36px);     /* how far the lines stop short of the screen edges */
}

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

p {
  margin: 0;
}

/* ---------- Top and bottom lines ---------- */

.top,
.bottom {
  position: relative;
  margin-left: max(var(--inset), env(safe-area-inset-left));
  margin-right: max(var(--inset), env(safe-area-inset-right));
}

.top::after,
.bottom::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  border-radius: 999px; /* round ends */
}

.top::after {
  bottom: 0;
  background: var(--rule);
}

.bottom::before {
  top: 0;
  background: var(--hairline);
}

/* Sharp (retina) screens can draw lines thinner than one CSS pixel */
@media (min-resolution: 1.5dppx) {
  .top::after {
    transform: scaleY(0.75);
    transform-origin: bottom;
  }

  .bottom::before {
    --hairline: rgba(255, 255, 255, 0.26);
    transform: scaleY(0.5);
    transform-origin: top;
  }
}

/* ---------- Top ---------- */

.top {
  padding-top: max(clamp(18px, 2.6vw, 30px), env(safe-area-inset-top));
  padding-bottom: clamp(14px, 1.8vw, 20px);
}

.brand {
  display: block;
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--fg);
  text-decoration: none;
}

/* ---------- Center ---------- */

.center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
  text-align: center;
}

.collection {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.headline {
  margin: 0;
  width: min(100%, 600px);
  font: inherit;
}

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

/* The lying 8: deep, slightly shifting blue. Never animated. */
.signature .inf {
  fill: url(#inf-blue);
}

/* "by Colin Bellinger" is written by a pen that reveals the letters; see signature.css */

.notfound {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.soon {
  margin-top: clamp(22px, 3.2vh, 34px);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Bottom ---------- */

.bottom {
  padding-top: 16px;
  padding-bottom: max(clamp(16px, 2.2vw, 24px), env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 32px;
  font-size: 13px;
  color: var(--muted);
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--underline);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s ease;
}

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

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

/* ---------- Phones ---------- */

@media (max-width: 600px) {
  .bottom {
    flex-direction: column;
  }
}

/* Visitors who prefer less motion (signature: see signature.css) */
@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}
