/* PNSFR LLC — placeholder
   Palette and geometry are taken from the logo: the gradient runs
   blue (bottom-left) to mint (top-right), and the cut through the
   letterform sits at 39 degrees. That angle is the only device on
   the page. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  --paper: #f7f8f9;
  --ink: #181d26;
  --ink-soft: #5e6877;
  --rule: #e2e6ea;

  --blue: #0357bc;
  --azure: #067deb;
  --cyan: #18bbbf;
  --mint: #22dda2;

  --gutter: clamp(1.5rem, 8vw, 7.5rem);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow-x: clip;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

/* The logo's cut, at the scale of the page. It is one band at the
   logo's own 39 degrees, drawn as a masked gradient so it always runs
   off two edges whatever the viewport does. Only device on the page. */
.field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.slash {
  --cut-at: 80%;
  --cut-width: 2.5px;

  position: absolute;
  inset: 0;
  display: block;
  background-image: linear-gradient(
    39deg,
    var(--blue) 12%,
    var(--azure) 38%,
    var(--cyan) 66%,
    var(--mint) 90%
  );
  -webkit-mask-image: linear-gradient(
    129deg,
    transparent calc(var(--cut-at) - var(--cut-width)),
    #000 calc(var(--cut-at) - var(--cut-width)),
    #000 calc(var(--cut-at) + var(--cut-width)),
    transparent calc(var(--cut-at) + var(--cut-width))
  );
  mask-image: linear-gradient(
    129deg,
    transparent calc(var(--cut-at) - var(--cut-width)),
    #000 calc(var(--cut-at) - var(--cut-width)),
    #000 calc(var(--cut-at) + var(--cut-width)),
    transparent calc(var(--cut-at) + var(--cut-width))
  );
}

.stage {
  position: relative;
  z-index: 1;
  align-self: center;
  text-align: center;
  padding: clamp(3rem, 9vh, 6rem) var(--gutter) clamp(2rem, 6vh, 4rem);
}

.logo {
  display: block;
  width: clamp(9.25rem, 15vw, 13rem);
  height: auto;
  margin: 0 auto clamp(2rem, 5vh, 3.25rem);
}

.headline {
  max-width: 15ch;
  margin-inline: auto;
  font-size: clamp(2.5rem, 6.6vw, 5rem);
  font-weight: 430;
  line-height: 1.02;
  letter-spacing: -0.034em;
  text-wrap: balance;
}

.lead {
  max-width: 39ch;
  margin: clamp(1.5rem, 3.5vh, 2.25rem) auto 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---- Error page (404.html) --------------------------------------- */

.brand {
  display: inline-block;
  border-radius: 2px;
}

.brand:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 8px;
}

.wordmark {
  display: block;
  width: clamp(9.25rem, 15vw, 13rem);
  height: auto;
}

/* The artwork carries the number and the heading says the same thing in
   words, so the markup hides it from assistive tech and this rule only
   sets size and spacing. */
.oops {
  display: block;
  width: clamp(13rem, 24vw, 18.5rem);
  height: auto;
  margin: clamp(2rem, 5vh, 3.25rem) auto clamp(1.5rem, 3.5vh, 2.25rem);
}

.lost .lead {
  text-wrap: balance;
}

/* Here the artwork is the focal point, not the line of type. */
.lost .headline {
  font-size: clamp(2.125rem, 4.6vw, 3.25rem);
  letter-spacing: -0.028em;
}

.action {
  margin: clamp(1.75rem, 4vh, 2.5rem) 0 0;
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  font-weight: 500;
}

.action a {
  color: inherit;
  text-decoration: none;
  padding-bottom: 0.18em;
  background-image: linear-gradient(to right, var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 220ms ease, background-image 220ms ease,
    color 220ms ease;
}

.action a:hover,
.action a:focus-visible {
  color: var(--blue);
  background-image: linear-gradient(
    to right,
    var(--blue),
    var(--azure) 40%,
    var(--cyan) 75%,
    var(--mint)
  );
  background-size: 100% 3px;
}

.action a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 6px;
  border-radius: 2px;
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 2.5rem;
  align-items: baseline;
  text-align: center;
  margin: 0 var(--gutter);
  padding: 1.35rem 0 clamp(1.35rem, 4vh, 2.25rem);
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.footer address {
  font-style: normal;
}

.footer .copy {
  margin: 0;
}

/* One orchestrated entrance, then the page is still. */
@media (prefers-reduced-motion: no-preference) {
  .slash {
    animation: cut 1000ms cubic-bezier(0.22, 0.8, 0.28, 1) both;
  }

  .logo,
  .brand,
  .oops,
  .headline,
  .lead,
  .action,
  .footer {
    animation: rise 700ms cubic-bezier(0.22, 0.8, 0.28, 1) both;
  }

  .logo    { animation-delay: 120ms; }
  .brand   { animation-delay: 120ms; }
  .oops    { animation-delay: 200ms; }
  .headline{ animation-delay: 280ms; }
  .lead    { animation-delay: 360ms; }
  .action  { animation-delay: 430ms; }
  .footer  { animation-delay: 480ms; }

  @keyframes cut {
    from { clip-path: inset(0 0 0 100%); }
    to   { clip-path: inset(0 0 0 0); }
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(9px); }
    to   { opacity: 1; transform: none; }
  }
}

@media (max-width: 860px) {
  .slash {
    --cut-at: 91%;
    --cut-width: 2px;
  }
}

/* On phones the page is all content and no margin to spare, so the
   cut is dropped rather than squeezed into the corner. */
@media (max-width: 560px) {
  .field {
    display: none;
  }
}

@media (max-width: 520px) {
  .headline {
    max-width: 18ch;
    letter-spacing: -0.028em;
  }

  .footer {
    display: block;
  }

  .footer .copy {
    margin-top: 0.35rem;
  }
}
