/* ARCEDians Vault pages served by Caddy: /get/ and the HTML 404. Brand: arced/brand/README.md */

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/get/fonts/raleway-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/get/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --ink: #15110e;
  --charcoal: #211c18;
  --charcoal-2: #2c2520;
  --line: #3d342d;
  --text: #f6f1ea;
  --muted: #b5aa9d;
  --yellow: #f7ca18;
  --yellow-hover: #ffd94a;
  --blue: #008ec9;
  --orange: #eb8e37;
  --magenta: #e62d84;
  --accent: var(--yellow); /* yellow as text; dark gold in light mode */
  --on-accent: #15110e; /* text on yellow or orange fills, both themes */
  --panel: rgb(44 37 32 / 0.6);
  --cipher: #7f766c;
  --grain: 0.05;
  --display: "Raleway", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

/* Light mode. get/theme.js sets data-theme from the saved choice or the system setting. */
:root[data-theme="light"] {
  --ink: #f7f3ec;
  --charcoal: #fffdf9;
  --charcoal-2: #efe9df;
  --line: #e2d9cc;
  --text: #211c18;
  --muted: #6b6157;
  --accent: #8a6a00;
  --panel: #fffdf9;
  --cipher: #8c8279;
  --grain: 0.035;
  color-scheme: light;
}

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

html {
  background: var(--ink);
  color: var(--text);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgb(247 202 24 / 0.1), transparent 60%),
    radial-gradient(50rem 30rem at -10% 110%, rgb(0 142 201 / 0.08), transparent 60%), var(--ink);
}

/* grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--text);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

/* header / footer */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
}
.top img {
  height: 34px;
  width: auto;
  display: block;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.top nav a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
}
.top nav a:hover {
  color: var(--text);
}

.foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

.top .logo-on-light,
:root[data-theme="light"] .top .logo-on-dark {
  display: none;
}
:root[data-theme="light"] .top .logo-on-light {
  display: block;
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:hover {
  border-color: var(--muted);
}
.theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}
/* show the theme you'd switch to */
.theme-toggle .sun,
:root[data-theme="light"] .theme-toggle .moon {
  display: block;
}
.theme-toggle .moon,
:root[data-theme="light"] .theme-toggle .sun {
  display: none;
}

/* type */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 em {
  font-style: normal;
  font-weight: 300;
  color: var(--accent);
}
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 1.5rem 0 0;
  text-wrap: pretty;
}
code,
.mono {
  font-family: var(--mono);
  font-size: 0.88em;
  font-variant-numeric: slashed-zero;
  font-variant-ligatures: none;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.05rem 1.6rem;
  border-radius: 14px;
  border: 0;
  font: 700 1.05rem/1 var(--display);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--yellow);
  color: var(--on-accent);
  box-shadow: 0 10px 40px -12px rgb(247 202 24 / 0.6);
}
.btn-primary:hover {
  background: var(--yellow-hover);
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 50px -12px rgb(247 202 24 / 0.75);
}
.btn-primary[aria-disabled="true"] {
  background: var(--charcoal-2);
  color: var(--muted);
  box-shadow: none;
  pointer-events: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--muted);
}
.btn svg {
  width: 1.2em;
  height: 1.2em;
  flex: none;
}

.copy {
  font: 600 0.75rem/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
.copy:hover {
  border-color: var(--muted);
}

/* orbit mark: the four arcs from the ARCED symbol */
.orbit .arc {
  transform-box: view-box;
  transform-origin: 294px 294px;
  animation: orbit 5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.orbit .a2 {
  animation-delay: 0.12s;
}
.orbit .a3 {
  animation-delay: 0.24s;
}
.orbit .a4 {
  animation-delay: 0.36s;
}
@keyframes orbit {
  0% {
    transform: rotate(0deg);
  }
  80%,
  100% {
    transform: rotate(360deg);
  }
}

/* entrance */
.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.d1 {
  animation-delay: 0.08s;
}
.d2 {
  animation-delay: 0.16s;
}
.d3 {
  animation-delay: 0.24s;
}
.d4 {
  animation-delay: 0.32s;
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit .arc,
  .rise {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .btn {
    transition: none;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }
  .wrap {
    width: calc(100% - 2rem);
  }
  .top img {
    height: 28px;
  }
}
