@font-face {
  font-family: Archivo;
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 400 720;
  font-stretch: 100% 125%;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ground: #f3f4f0;
  --ink: #14141a;
  --second: #45484b;
  --third: #5a5d60;
  --tile: #14141a;
  --tile-ring: #f4efe6;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #131412;
    --ink: #eef0ea;
    --second: #babeb6;
    --third: #989c94;
    --tile: #f4efe6;
    --tile-ring: #14141a;
  }
}

* { box-sizing: border-box; margin: 0; }

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

body {
  font-family: Archivo, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  padding: max(24px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  display: grid;
  grid-template-rows: 1fr auto;
}

.centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0;
}

.centre > :first-child { margin-top: -6vh; }

.logo { display: block; font-size: inherit; line-height: 0; }
.lockup { display: block; width: clamp(220px, 30vw, 440px); height: auto; color: var(--ink); }
.lockup__tile { fill: var(--tile); }
.lockup__ring { stroke: var(--tile-ring); }
.logo--small .lockup { width: clamp(160px, 18vw, 240px); }

.note { margin-top: 40px; font-size: 17px; font-weight: 500; }
.note--link { margin-top: 8px; font-weight: 400; }

.foot {
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  color: var(--third);
}

.nw { white-space: nowrap; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.logo:focus-visible { outline-offset: 8px; }

.logo--enter .lockup__ring {
  stroke-dasharray: 1 1.2;
  animation: ring-draw 820ms cubic-bezier(.45, 0, .2, 1) 160ms both;
}
.logo--enter .lockup__dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: dot-land 360ms cubic-bezier(.2, .7, .2, 1) 860ms both;
}
.logo--enter .lockup__word {
  animation: word-rise 480ms cubic-bezier(.2, .7, .2, 1) 980ms both;
}
.page:has(.logo--enter) .foot {
  animation: fade-in 450ms ease-out 1100ms both;
}

@keyframes ring-draw {
  from { stroke-dashoffset: 1.2; }
  to { stroke-dashoffset: 0; }
}
@keyframes dot-land {
  from { opacity: 0; transform: scale(.55); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes word-rise {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .logo--enter .lockup__ring,
  .logo--enter .lockup__dot,
  .logo--enter .lockup__word,
  .page:has(.logo--enter) .foot { animation: none; }
  .logo--enter .lockup__ring { stroke-dasharray: none; }
}

@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .page { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
}
.foot a { color: inherit; }
