/* Zecured's pages: the tokens, the type, the header, buttons and the footer they share. */

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

@font-face {
  font-family: "Martian Mono";
  src: url("fonts/martian-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #040907;
  --deep: #08130e;
  --panel: #0d1b15;
  --panel-2: #12241c;
  --hair: rgba(205, 230, 216, 0.1);
  --hair-2: rgba(205, 230, 216, 0.18);
  --text: #e9f1ec;
  --soft: #c3d2c9;
  --muted: #8fa699;
  --gold: #f4b728;
  --gold-hi: #ffd36e;
  --teal: #5ed3a8;
  --ice: #cfe0f2;
  --ledger: #eef2f6;
  --ink: #0f1b2a;
  --ink-muted: #4c5d70;
  --rule: rgba(15, 27, 42, 0.12);
  --usdc: #6aa6ff;
  --red: #ff5a4e;
  --leak-ground: #fbe1dc;
  --leak-text: #9a1f15;
  --leak-line: #b42318;
  --mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  --gut: clamp(20px, 5vw, 72px);
  --max: 1320px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-thickness: 2px;
}

mark {
  background: none;
  color: inherit;
}

::selection {
  background: rgba(244, 183, 40, 0.32);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 5px rgba(244, 183, 40, 0.55);
}

.mono {
  font-family: var(--mono);
  font-stretch: 100%;
  letter-spacing: -0.01em;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

/* An arrow after a link that leaves the site (the fonts draw no ↗). */
svg.ext {
  display: inline-block;
  flex: none;
  width: 0.62em;
  height: 0.62em;
  margin-left: 0.32em;
  vertical-align: 0.06em;
  opacity: 0.75;
}

/* ---------------------------------------------------------------------------------------- header */

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.top.scrolled {
  background: rgba(4, 9, 7, 0.92);
  border-bottom-color: var(--hair);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--max);
  height: 72px;
  margin: 0 auto;
  padding: 0 var(--gut);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* A compound word that must not break at its hyphen. */
.nb {
  white-space: nowrap;
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  white-space: nowrap;
  border-radius: 999px;
  color: var(--soft);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.links a:hover,
.links a[aria-current="page"] {
  color: var(--text);
  background: rgba(233, 241, 236, 0.07);
}

/* ---------------------------------------------------------------------------------------- buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, background-color 0.25s ease,
    border-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 12px 28px -14px rgba(244, 183, 40, 0.6);
}

.btn-gold:hover {
  background: var(--gold-hi);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) inset, 0 16px 34px -14px rgba(255, 211, 110, 0.75);
}

.btn-line {
  border: 1px solid var(--hair-2);
  background: rgba(4, 9, 7, 0.55);
  color: var(--text);
}

.btn-line:hover {
  border-color: rgba(233, 241, 236, 0.45);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14.5px;
}

.btn svg.ext {
  margin-left: -2px;
}

/* ---------------------------------------------------------------------------------------- chips */

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.chip-z {
  border-radius: 999px;
  background: #0b1712;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(205, 230, 216, 0.28);
}

.chip-b {
  border-radius: 3px;
  background: var(--ledger);
  color: var(--ink);
}

/* ---------------------------------------------------------------------------------------- footer */

.foot {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--hair);
  background: rgba(4, 9, 7, 0.94);
}

.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 32px 56px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gut) 48px;
  color: var(--muted);
  font-size: 14.5px;
}

.foot-id {
  display: grid;
  align-content: start;
  gap: 12px;
  max-width: 26rem;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  font-stretch: 125%;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.foot-h {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.foot-cols ul {
  display: grid;
  gap: 4px;
}

.foot-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--soft);
  text-decoration: none;
}

.foot-cols a:hover {
  color: var(--text);
  text-decoration: underline;
}

.foot-note {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}

/* ---------------------------------------------------------------------------------------- not found */

.lost-page {
  background: radial-gradient(90% 60% at 80% 0%, rgba(56, 166, 132, 0.12) 0%, rgba(4, 9, 7, 0) 60%), var(--night);
}

.lost {
  max-width: var(--max);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 168px var(--gut) 96px;
}

.lost-n {
  color: var(--muted);
  font-size: 14px;
}

.lost-t {
  max-width: 14em;
  margin-top: 14px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.98;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.02em;
}

.lost-b {
  max-width: 34rem;
  margin-top: 22px;
  color: var(--soft);
}

.lost-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 1000px) {
  .links .wide {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .top-in {
    gap: 12px;
    height: 64px;
  }

  .links a {
    padding: 0 10px;
  }

  .foot-in {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 44px;
  }
}

@media (max-width: 480px) {
  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* On the narrowest phones the header keeps its one action and drops the link out. */
@media (max-width: 420px) {
  .links .gh {
    display: none;
  }

  .top .btn-sm {
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
