/* voltaic.gg stopgap page: the new site's tokens (purple-slate neutrals, cyan accent), fonts and cut corner. */

@font-face {
  font-family: 'Geom Graphic';
  src: url('/fonts/GeomGraphic-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Geom Graphic';
  src: url('/fonts/GeomGraphic-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Blinker';
  src: url('/fonts/blinker-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Blinker';
  src: url('/fonts/blinker-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Blinker';
  src: url('/fonts/blinker-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #13111c;
  --sunken: #0e0c16;
  --panel: #1b1828;
  --raise: #252137;
  --line: #2f2a43;
  --line-strong: #463f60;
  --text: #efedf8;
  --muted: #b1abc9;
  --faint: #8e88aa;
  --accent: #33dcff;
  --on-accent: #03161d;
  --discord: #5865f2;
  --display: 'Geom Graphic', 'Arial Black', Arial, sans-serif;
  --body: 'Blinker', Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: max(32px, env(safe-area-inset-left, 0px));
}

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

html {
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: max(32px, env(safe-area-inset-right, 0px));
}
@media (max-width: 599px) {
  :root {
    --gutter: max(16px, env(safe-area-inset-left, 0px));
  }
  .wrap {
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}

/* The cut corner: top-left and bottom-right cut by --cut (same polygon as the new site's .site-cut). */
.cut {
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}
/* A 1px line around a fill, following the same cut. */
.frame {
  position: relative;
  isolation: isolate;
  background: var(--frame-line, var(--line));
  transition: background-color 150ms ease;
}
.frame::before {
  content: '';
  position: absolute;
  inset: var(--frame-w, 1px);
  z-index: -1;
  background: var(--frame-fill, var(--panel));
  transition: background-color 150ms ease;
}
/* Copied from the new site (site.css .site-frame.site-cut): straight edges come from snapped boxes, the
   polygons only cut the corners, and the fill's cut is the outer one moved in by the line width. */
.frame.cut {
  clip-path: polygon(
    var(--cut) 0,
    var(--cut) -1px,
    calc(100% + 1px) -1px,
    calc(100% + 1px) calc(100% - var(--cut)),
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    calc(100% - var(--cut)) calc(100% + 1px),
    -1px calc(100% + 1px),
    -1px var(--cut),
    0 var(--cut)
  );
}
.frame.cut::before {
  --cut-ci: calc(var(--cut) - 0.58579 * var(--frame-w, 1px));
  clip-path: polygon(
    var(--cut-ci) 0,
    var(--cut-ci) -1px,
    calc(100% + 1px) -1px,
    calc(100% + 1px) calc(100% - var(--cut-ci)),
    100% calc(100% - var(--cut-ci)),
    calc(100% - var(--cut-ci)) 100%,
    calc(100% - var(--cut-ci)) calc(100% + 1px),
    -1px calc(100% + 1px),
    -1px var(--cut-ci),
    0 var(--cut-ci)
  );
}

/* Header */
.top {
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: block;
  flex: none;
}
.brand img {
  width: auto;
  height: 20px;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 4px;
  /* The last link's text lines up with the gutter; its padding (the 44px target) sits in it. */
  margin-right: -12px;
}
.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  font: 600 14px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 150ms ease;
}
@media (hover: hover) {
  .top nav a:hover {
    color: var(--text);
  }
}
@media (max-width: 480px) {
  .brand img {
    height: 16px;
  }
  .top .wrap {
    gap: 12px;
  }
  .top nav {
    margin-right: -8px;
  }
  .top nav a {
    padding-inline: 8px;
    font-size: 13px;
  }
}
/* Small phones: Blog stays reachable from its card below. */
@media (max-width: 400px) {
  .top nav .opt {
    display: none;
  }
}

/* Type */
.k {
  margin: 0;
  font: 600 12px/1.2 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.h1,
.h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  text-wrap: balance;
  letter-spacing: 0.005em;
}
.h1 {
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 0.98;
}
.h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.04;
}
@media (max-width: 360px) {
  .h1 {
    font-size: 30px;
  }
}
.lead {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 19px;
  text-wrap: pretty;
}

/* Buttons */
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  --cut: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 15px 22px;
  font: 600 15px/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 140ms var(--ease-out),
    filter 150ms ease;
}
.btn:active {
  transform: scale(0.97);
  transition-duration: 70ms, 150ms;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-discord {
  background: var(--discord);
  color: #fff;
}
.btn-line {
  --frame-line: var(--accent);
  --frame-fill: var(--canvas);
  --frame-w: 1.5px;
  color: var(--accent);
}
@media (hover: hover) {
  .btn-primary:hover,
  .btn-discord:hover {
    filter: brightness(1.1);
  }
  .btn-line:hover {
    --frame-fill: var(--panel);
  }
}

/* Hero */
main {
  flex: 1;
}
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 11vw, 160px) clamp(56px, 8vw, 112px);
}
.hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(51 220 255 / 0.1), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  gap: 28px;
  justify-items: start;
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.soon::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(51 220 255 / 0.16);
}
.hero .btns {
  margin-top: 8px;
}

/* Link cards */
.links {
  padding-bottom: clamp(56px, 7vw, 96px);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.card {
  --cut: 14px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-height: 200px;
  padding: 24px;
  text-decoration: none;
}
.card h3 {
  margin: 0;
  font: 700 22px/1.1 var(--display);
  text-transform: uppercase;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.card .go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.card .go svg {
  width: 16px;
  height: 16px;
  transition: translate 200ms var(--ease-out);
}
@media (hover: hover) {
  .card:hover {
    --frame-line: var(--line-strong);
    --frame-fill: var(--raise);
  }
  .card:hover .go svg {
    translate: 2px -2px;
  }
}

/* Amped */
.amped {
  padding-bottom: clamp(64px, 8vw, 120px);
  scroll-margin-top: 24px;
}
.amped-box {
  --cut: 18px;
  --frame-fill: var(--sunken);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  padding: clamp(28px, 4vw, 56px);
}
.amped-box .copy {
  display: grid;
  gap: 18px;
}
.amped-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.amped-box li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.amped-box li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--accent);
  translate: 0 -2px;
}
.amped-box .act {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.amped-box .note {
  margin: 0;
  color: var(--faint);
  font-size: 15px;
}
@media (max-width: 900px) {
  .amped-box {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  background: var(--sunken);
  padding-block: 40px max(40px, env(safe-area-inset-bottom, 0px));
}
.foot .wrap {
  display: grid;
  gap: 28px;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 0 -10px;
  padding: 0;
  list-style: none;
}
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--muted);
  transition: color 150ms ease;
}
.socials svg {
  width: 22px;
  height: 22px;
}
.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin: 0;
  color: var(--faint);
  font-size: 15px;
}
.partners a,
.legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}
.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  color: var(--faint);
  font-size: 15px;
}
@media (hover: hover) {
  .socials a:hover,
  .partners a:hover,
  .legal a:hover {
    color: var(--text);
  }
}

/* Policy page */
.doc {
  padding-block: clamp(48px, 7vw, 96px);
}
.doc .wrap {
  display: grid;
  gap: 16px;
}
.doc .wrap > * {
  min-width: 0;
}
.doc article {
  max-width: 76ch;
  margin-top: 24px;
  color: #dcd8ec;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.doc article h2 {
  margin: 2.2em 0 0.6em;
  font: 700 22px/1.2 var(--display);
  text-transform: uppercase;
  color: var(--text);
  scroll-margin-top: 24px;
}
.doc article h3 {
  margin: 1.8em 0 0.5em;
  font: 700 18px/1.3 var(--body);
  color: var(--text);
  scroll-margin-top: 24px;
}
.doc article p {
  margin: 0 0 1em;
}
.doc article ul {
  margin: 0 0 1em;
  padding-left: 1.3em;
}
.doc article li {
  margin-bottom: 0.4em;
}
.doc article li::marker {
  color: var(--accent);
}
.doc article a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.doc article strong {
  color: var(--text);
}
.doc .table {
  overflow-x: auto;
  margin: 0 0 1.4em;
}
.doc table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.doc td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.doc tr:first-child td {
  background: var(--panel);
}
.doc .updated {
  margin: 0;
  color: var(--faint);
}
