/* passcub.com — blueberry and honey, in the same Recursive voice as the app.
   Casual axis for headings, linear for reading, monospace only for sealed bytes and codes. */

@font-face {
  font-family: "Recursive";
  font-style: normal;
  font-display: swap;
  font-weight: 300 1000;
  src: url(/fonts/recursive-latin-full-normal.woff2) format("woff2-variations"),
    url(/fonts/recursive-latin-full-normal.woff2) format("woff2");
  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: "Recursive";
  font-style: normal;
  font-display: swap;
  font-weight: 300 1000;
  src: url(/fonts/recursive-latin-ext-full-normal.woff2) format("woff2-variations"),
    url(/fonts/recursive-latin-ext-full-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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 {
  --blueberry: #262a5b;
  --blueberry-2: #343a7a;
  --honey: #f2b33d;
  --honey-deep: #c98a16;
  --honey-ear: #d69126;
  --comb: #fcebc2;
  --lichen: #eef1ea;
  --paper: #fbfcf9;
  --bark: #2b2522;
  --bark-2: #625952;
  --line: #d3d9cc;

  --wide: 72rem;
  --measure: 62ch;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Recursive", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-variation-settings: "CASL" 0, "MONO" 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--bark);
  background: var(--lichen);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  color: var(--blueberry);
  font-variation-settings: "CASL" 1, "MONO" 0;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.6rem + 4vw, 4.5rem); font-weight: 860; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 1.5rem + 1.4vw, 2.5rem); font-weight: 820; letter-spacing: -0.015em; }
h3 { font-size: 1.3125rem; font-weight: 760; line-height: 1.3; }
p, li { max-width: var(--measure); }
p { margin: 0; }
a { color: var(--blueberry-2); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--blueberry); text-decoration-color: var(--honey-deep); }
:focus-visible { outline: 3px solid var(--honey-deep); outline-offset: 3px; border-radius: 4px; }
code, .mono { font-family: inherit; font-variation-settings: "MONO" 1, "CASL" 0; font-size: 0.92em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--paper); padding: 0.5rem 1rem; z-index: 2; }
.skip:focus { top: 1rem; }

.wrap { width: min(var(--wide), 100% - 2.5rem); margin-inline: auto; }

/* ---------------------------------------------------------------- header */
.site-head { padding-block: 1.25rem; }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-right: auto;
  color: var(--blueberry); text-decoration: none;
  font-variation-settings: "CASL" 1, "MONO" 0; font-weight: 840; font-size: 1.5rem; letter-spacing: -0.02em;
}
.brand svg { width: 2.25rem; height: 2.25rem; flex: none; }
.site-head nav { display: flex; align-items: center; gap: 1.5rem; font-size: 1rem; }
.site-head nav a:not(.btn) { color: var(--bark); text-decoration: none; font-weight: 560; }
.site-head nav a:not(.btn):hover, .site-head nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--honey-deep);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.7em 1.3em; border-radius: 999px; border: 2px solid var(--honey-deep);
  background: var(--honey); color: var(--bark); text-decoration: none;
  font-weight: 720; font-size: 1.0625rem; line-height: 1.2;
}
.btn:hover { background: #f6c25d; color: var(--bark); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn.small { padding: 0.5em 1.05em; font-size: 0.9375rem; }

/* ---------------------------------------------------------------- hero */
.hero { padding-block: clamp(2rem, 5vw, 4rem) 1rem; }
.hero h1 { max-width: 15ch; }
.lede { margin-top: 1.5rem; font-size: 1.3125rem; line-height: 1.55; max-width: 54ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 2rem; }
.cta .note { font-size: 1rem; color: var(--bark-2); }

/* The one bold thing: a login, the cub's keyhole, and the bytes the relay actually holds. */
.seal {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 7.5rem minmax(0, 1.3fr);
  grid-template-areas: "plain hinge sealed" "cap-plain . cap-sealed";
  align-items: stretch;
  row-gap: 0.9rem;
}
.plain {
  grid-area: plain;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.25rem 1.4rem 1.4rem;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgb(38 42 91 / 0.45);
}
.plain .item-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.plain .avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--blueberry); color: var(--paper);
  font-variation-settings: "CASL" 1, "MONO" 0; font-weight: 800; font-size: 1.15rem;
}
.plain .item-title { font-weight: 760; font-size: 1.1875rem; color: var(--blueberry); line-height: 1.2; }
.plain .item-site { font-size: 0.9375rem; color: var(--bark-2); }
.plain dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.55rem 1.25rem; font-size: 1rem; }
.plain dt { color: var(--bark-2); }
.plain dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.plain dd.dots { letter-spacing: 0.12em; font-variation-settings: "MONO" 1, "CASL" 0; }

.hinge { grid-area: hinge; position: relative; display: grid; place-items: center; height: 100%; min-height: 6rem; }
.hinge::before {
  content: ""; position: absolute; left: -0.5rem; right: -0.5rem; top: 50%;
  border-top: 3px dashed var(--honey-deep);
}
.hinge svg { position: relative; width: 5.25rem; height: auto; }

.sealed {
  grid-area: sealed;
  background: var(--blueberry); border-radius: 18px; padding: 1.25rem 1.4rem;
  height: 15.25rem; overflow: hidden; position: relative;
}
.sealed::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4.5rem;
  background: linear-gradient(to bottom, rgb(38 42 91 / 0), var(--blueberry));
}
.sealed code {
  display: block; color: var(--honey); font-size: 0.8125rem; line-height: 1.6;
  word-break: break-all; letter-spacing: 0.02em;
}
.cap-plain { grid-area: cap-plain; }
.cap-sealed { grid-area: cap-sealed; }
.seal figcaption, .seal .cap { font-size: 0.9375rem; color: var(--bark-2); max-width: 46ch; }
.seal .cap strong { color: var(--bark); font-weight: 680; }

/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section > .wrap > h2 { max-width: 22ch; }
.section-lede { margin-top: 1rem; font-size: 1.1875rem; color: var(--bark-2); }

.points { margin-top: 2.5rem; }
.point {
  display: grid; grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); gap: 0.75rem 3.5rem;
  padding-block: 1.9rem; border-top: 1px solid var(--line);
}
.point:last-child { border-bottom: 1px solid var(--line); }
.point p + p { margin-top: 0.75rem; }

.move {
  background: var(--comb); border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.5rem);
}
.steps { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 1.75rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1.25rem; max-width: none; }
.steps li::before {
  content: counter(step);
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--blueberry); color: var(--honey);
  font-variation-settings: "CASL" 1, "MONO" 0; font-weight: 820; font-size: 1.25rem;
}
.steps h3 { margin-top: 0.55rem; }
.steps p { margin-top: 0.4rem; }
.move .fine { margin-top: 2rem; font-size: 1rem; color: var(--bark-2); }

.get { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; margin-top: 2.5rem; }
.get h3 { margin-bottom: 0.6rem; }
.get .btn { margin-top: 1.25rem; }
.get .fine { margin-top: 1rem; font-size: 1rem; color: var(--bark-2); }

/* ---------------------------------------------------------------- long-form pages */
.doc { padding-block: clamp(2rem, 6vw, 4rem) 0; }
.doc .wrap { width: min(46rem, 100% - 2.5rem); }
.doc h1 { font-size: clamp(2.25rem, 1.9rem + 2.4vw, 3.5rem); max-width: 18ch; }
.doc .updated { margin-top: 1rem; color: var(--bark-2); font-size: 1rem; }
.doc .lede { margin-top: 1.25rem; }
.doc h2 { font-size: clamp(1.5rem, 1.35rem + 0.8vw, 1.875rem); margin-top: 3rem; scroll-margin-top: 1.5rem; }
.doc h3 { margin-top: 1.75rem; }
.doc p, .doc ul, .doc ol { margin-top: 0.9rem; }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.45rem; }
.doc li::marker { color: var(--honey-deep); }
.doc .callout {
  margin-top: 1.5rem; padding: 1.1rem 1.3rem; border-radius: 16px; background: var(--comb);
}
.doc .toc { margin-top: 2rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 1rem; }
.doc .toc li { margin: 0; }

/* ---------------------------------------------------------------- footer */
.site-foot { margin-top: clamp(4rem, 10vw, 7rem); padding-block: 2.5rem 3rem; border-top: 1px solid var(--line); font-size: 1rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.site-foot .brand { font-size: 1.125rem; margin-right: auto; }
.site-foot .brand svg { width: 1.6rem; height: 1.6rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-foot nav a { color: var(--bark); }
.site-foot small { color: var(--bark-2); font-size: 0.9375rem; width: 100%; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 860px) {
  .seal {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "plain" "cap-plain" "hinge" "sealed" "cap-sealed";
  }
  .hinge { min-height: 7rem; }
  .hinge::before { left: 50%; right: auto; top: -0.5rem; bottom: -0.5rem; border-top: 0; border-left: 3px dashed var(--honey-deep); }
  .point { grid-template-columns: minmax(0, 1fr); }
  .get { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .site-head .wrap { gap: 0.75rem; }
  .site-head nav { gap: 0.9rem; }
  .site-head .brand { font-size: 1.3rem; }
  .site-head .brand svg { width: 2rem; height: 2rem; }
  .site-head nav .hide-small { display: none; }
  .lede { font-size: 1.1875rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
