/* Altnull Holdings LLC — The Shifted Null.
   Obsidian ground, platinum text, one cobalt accent. One typeface (Montserrat 400);
   the logo itself is outlined SVG and needs no webfont. */

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

:root {
  color-scheme: dark;
  --obsidian: #111318;
  --obsidian-2: #1a1d24;
  --platinum: #d1d5db;
  --platinum-hi: #f3f4f6;
  --quiet: #9097a3;
  --cobalt: #1d70f7;
  --cobalt-text: #5b96ff;
  --focus: #5b96ff;
  /* lockup width, and where the wordmark starts inside it (from the SVG geometry) */
  --lockup: min(clamp(40rem, 36vw, 48rem), 100vw - 3rem);
  --indent: 0.3378;
  --sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto 1.35fr auto;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, var(--obsidian-2), transparent 70%),
    var(--obsidian);
  color: var(--platinum);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #1d3f7a;
  color: var(--platinum-hi);
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: rgb(29 112 247 / 0.75);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--platinum-hi);
  text-decoration-color: var(--cobalt);
  text-decoration-thickness: 2px;
}

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

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

/* The sheet: one centred column, the width of the lockup. */

.sheet {
  grid-row: 2;
  width: var(--lockup);
  margin: 0 auto;
}

.lockup {
  margin: 0;
  line-height: 0;
}

.lockup-art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.text {
  margin-top: clamp(2.25rem, 6vh, 3.5rem);
  max-width: 34rem;
}

.about {
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.contact {
  margin-top: 1.4em;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* Footer: low and quiet. */

.foot {
  grid-row: 4;
  width: var(--lockup);
  margin: 0 auto;
  padding: 3rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--quiet);
}

.foot p {
  text-wrap: balance;
}

.foot a {
  text-decoration-color: rgb(29 112 247 / 0.6);
}

.foot a[aria-current="page"] {
  color: var(--platinum);
}

/* Inner pages: the symbol, small, links home. */

.home-link {
  display: block;
  width: fit-content;
  border-radius: 4px;
}

.symbol-art {
  display: block;
  width: 3.25rem;
  height: auto;
}

.page .text {
  margin-top: 2.5rem;
}

.title {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--platinum-hi);
}

.page .text p {
  font-size: 1rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.page .text .updated {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--quiet);
}

/* Wider screens: the text hangs from the wordmark, the symbol stands in the margin. */

@media (min-width: 48rem) {
  .home .text {
    margin-left: calc(var(--lockup) * var(--indent));
  }

  .home .text {
    max-width: calc(var(--lockup) * (1 - var(--indent)));
  }

  .about {
    font-size: 1.125rem;
  }

  .page .sheet {
    display: grid;
    grid-template-columns: calc(var(--lockup) * var(--indent)) minmax(0, 1fr);
    align-items: start;
  }

  .page .home-link {
    margin-top: 2.6rem;
  }

  .page .text {
    margin-top: 2.6rem;
  }

  /* Footer spans the lockup: legal line at the symbol's edge, Privacy under the last L. */
  .foot {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: baseline;
  }

  .foot p {
    white-space: nowrap;
  }
}

/* One-time entrance: the two halves slide together along the shear axis. */

@media (prefers-reduced-motion: no-preference) {
  .half-s {
    animation: in-s 1.1s cubic-bezier(0.16, 0.8, 0.2, 1) 0.1s both;
  }

  .half-b {
    animation: in-b 1.1s cubic-bezier(0.16, 0.8, 0.2, 1) 0.1s both;
  }

  .word {
    animation: fade 0.9s ease-out 0.45s both;
  }

  .home .text,
  .home .foot {
    animation: fade 0.9s ease-out 0.75s both;
  }
}

@keyframes in-s {
  from {
    opacity: 0;
    transform: translate(-12.7px, 15.5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes in-b {
  from {
    opacity: 0;
    transform: translate(12.7px, -15.5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }
}
