:root {
  color-scheme: dark;
  --background: #090b0f;
  --surface: #0d1015;
  --text: #f2f3f5;
  --muted: #858c97;
  --line: rgb(255 255 255 / 8%);
  --line-strong: rgb(255 255 255 / 18%);
  --accent: #9fb8bd;
  --page-gutter: clamp(1.25rem, 4vw, 4.5rem);
}

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

html {
  background: var(--background);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
}

body {
  isolation: isolate;
  margin: 0;
  background:
    radial-gradient(circle at 50% 42%, rgb(159 184 189 / 6%), transparent 32rem),
    var(--background);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: clamp(3.5rem, 8vw, 7.5rem) clamp(3.5rem, 8vw, 7.5rem);
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
  content: "";
  opacity: .34;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration-color: rgb(242 243 245 / 38%);
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
}

a:hover {
  text-decoration-color: currentColor;
}

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

.site-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-rows: minmax(0, 1fr) auto;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    max(var(--page-gutter), env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom))
    max(var(--page-gutter), env(safe-area-inset-left));
  overflow: hidden;
}

.hero {
  display: grid;
  place-items: center;
  min-height: 0;
}

.identity {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100%, 92rem);
  padding: clamp(2.5rem, 8vh, 7rem) 0;
  text-align: center;
  animation: reveal .8s cubic-bezier(.22, 1, .36, 1) both;
}

.identity::before,
.identity::after {
  position: absolute;
  top: 50%;
  width: clamp(1.5rem, 8vw, 8rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
  content: "";
}

.identity::before {
  right: calc(50% + min(38vw, 36rem));
}

.identity::after {
  left: calc(50% + min(38vw, 36rem));
  transform: rotate(180deg);
}

.identity h1 {
  margin: 0;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.75rem, 16vw, 13.5rem);
  font-stretch: condensed;
  font-weight: 600;
  letter-spacing: clamp(.08em, 1.2vw, .16em);
  line-height: .82;
  text-indent: clamp(.08em, 1.2vw, .16em);
  text-wrap: nowrap;
}

.domain {
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: clamp(.68rem, 1vw, .8rem);
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: lowercase;
}

.domain::before {
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  margin: 0 .75rem .25em 0;
  background: var(--line-strong);
  content: "";
}

.site-footer {
  color: var(--muted);
  font-size: clamp(.7rem, 1.5vw, .78rem);
  letter-spacing: .035em;
  line-height: 1.5;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer span {
  margin-inline: .35rem;
  color: var(--line-strong);
}

.site-footer a {
  color: #aeb3bb;
}

.legal-page {
  min-height: 100vh;
  min-height: 100svh;
}

.legal-shell {
  width: min(100%, 58rem);
  margin-inline: auto;
  padding:
    max(2rem, env(safe-area-inset-top))
    max(var(--page-gutter), env(safe-area-inset-right))
    max(3rem, env(safe-area-inset-bottom))
    max(var(--page-gutter), env(safe-area-inset-left));
}

.legal-header {
  padding-bottom: clamp(4rem, 10vw, 8rem);
}

.back-link {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link span {
  display: inline-block;
  margin-right: .6rem;
  transition: transform .18s ease;
}

.back-link:hover span {
  transform: translateX(-.2rem);
}

.legal-content h1 {
  max-width: 12ch;
  margin: 0 0 1rem;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.75rem, 8vw, 5.75rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: .95;
}

.legal-intro {
  max-width: 38rem;
  margin: 0 0 clamp(4rem, 10vw, 7rem);
  color: var(--muted);
  font-size: clamp(.95rem, 2vw, 1.05rem);
  line-height: 1.7;
}

.legal-content section {
  display: grid;
  grid-template-columns: minmax(11rem, .55fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 6vw, 5rem);
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0;
  color: #d9dce0;
  font-size: .82rem;
  font-weight: 550;
  letter-spacing: .055em;
  line-height: 1.55;
  text-transform: uppercase;
}

.legal-content h2 span {
  display: block;
  margin-bottom: .7rem;
  color: #626974;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .68rem;
  font-weight: 400;
}

.legal-content section > p {
  margin: 0;
  color: #aeb3bb;
  font-size: clamp(.92rem, 1.6vw, 1rem);
  line-height: 1.8;
}

.legal-content section a {
  overflow-wrap: anywhere;
}

.legal-footer {
  padding-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(.4rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 42rem) {
  .legal-content section {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .legal-content h2 span {
    display: inline;
    margin: 0 .7rem 0 0;
  }
}

@media (max-height: 32rem) {
  .identity {
    padding-block: 1.5rem;
  }

  .identity h1 {
    font-size: clamp(1.75rem, min(16vw, 18vh), 6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #b8bdc5;
    --line: rgb(255 255 255 / 24%);
    --line-strong: rgb(255 255 255 / 42%);
  }

  body::before {
    opacity: .55;
  }

  a:focus-visible {
    outline-width: 3px;
  }
}
