/* arvedui.com. Colours, type and proportions from logicplanes/arvedui-brand (Eagle).
 *
 * The wordmark alone, at the optical centre, with nothing near it. Live vector, so it is sharp at any size.
 */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Ink ground is the brand default; the system's light mode turns it to paper. */
:root {
  color-scheme: dark light;
  --ground: #0a0a0a;
  --mark: #ffffff;
  --mark-muted: #a3a3a3;

  /* Wordmark width: under half a wide screen, most of a narrow one, never crowding a short one. */
  --wordmark: clamp(220px, min(44vw, 110dvh), 840px);
  /* A touch above the geometric centre, where the eye puts the middle. */
  --optical-centre: 48dvh;
}

/* Portrait screens: wider. */
@media (max-aspect-ratio: 1/1) {
  :root {
    --wordmark: 72vw;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --ground: #ffffff;
    --mark: #0a0a0a;
    --mark-muted: #5c5c5c;
  }
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  position: fixed;
  inset: 0;
  background: var(--ground);
  color: var(--mark);
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.name {
  margin: 0;
}

.name a {
  color: inherit;
}

.wordmark {
  position: absolute;
  left: 50%;
  top: var(--optical-centre);
  width: var(--wordmark);
  height: auto;
  transform: translate(-50%, -50%);
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.name a:focus-visible {
  outline: none;
}

.name a:focus-visible .wordmark {
  opacity: 0.6;
}

/* The not-found line, at the foot of the screen. */
.tagline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(max(28px, 5dvh) + env(safe-area-inset-bottom));
  margin: 0;
  padding: 0 16px;
  text-align: center;
  color: var(--mark-muted);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.01em;
}

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