/* Badge landing. Night sky, type and top bar taken from recordsapp.org (Inter,
   #050a1c, stars from sky.js). The page itself is only the mark and the word Badge. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
}

@property --theme-t { syntax: "<number>"; inherits: true; initial-value: 0; }

:root, html {
  --hdr-h: 65px;
  --vn-theme-fade-duration: .6s;
  --vn-theme-fade-easing: ease;
  --theme-t: 0;
  --text-t: calc(var(--theme-t) * var(--theme-t) * (2 - var(--theme-t)));
  /* Same mix as the docs page: #ffffff ↔ #0f0e0d. */
  --bg: color-mix(in oklab, #ffffff calc((1 - var(--theme-t)) * 100%), #0f0e0d calc(var(--theme-t) * 100%));
  --ink: color-mix(in srgb, #1d1f24 calc((1 - var(--text-t)) * 100%), #ffffff calc(var(--text-t) * 100%));
  --text: color-mix(in srgb, #374151 calc((1 - var(--text-t)) * 100%), #bdbdbd calc(var(--text-t) * 100%));
  --quiet: color-mix(in srgb, #5c5f66 calc((1 - var(--text-t)) * 100%), #a3a3a3 calc(var(--text-t) * 100%));
  --line: color-mix(in oklab, #f2f2f2 calc((1 - var(--theme-t)) * 100%), #2a2a2a calc(var(--theme-t) * 100%));
  --accent: #1f6fe5;
  --muted: var(--quiet);
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --theme-t: 1;
  --accent: #64b5f6;
}

/* Browsers without color-mix still get the two end palettes, without the fade. */
@supports not (background: color-mix(in oklab, #fbfaf5, #0f0e0d)) {
  :root, html {
    --bg: #ffffff;
    --ink: #1d1f24;
    --text: #374151;
    --quiet: #5c5f66;
    --line: #f2f2f2;
  }
  html[data-theme="dark"] {
    --bg: #0f0e0d;
    --ink: #ffffff;
    --text: #bdbdbd;
    --quiet: #a3a3a3;
    --line: #2a2a2a;
  }
}

html.vn-theme-fade {
  transition:
    --theme-t var(--vn-theme-fade-duration) var(--vn-theme-fade-easing),
    --accent var(--vn-theme-fade-duration) var(--vn-theme-fade-easing);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

html.vn-has-sky, html.vn-has-sky body {
  background-color: var(--bg);
}

/* --- Records sky.js stars (night). Exact rules from recordsapp.org/static/css/app.css. --- */
.vn-lp-stars {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--sky-h, 100lvh);
  overflow: hidden;
  pointer-events: none;
  contain: strict;
  transform: translateZ(0);
}

.vn-lp-stars span {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: lp-drift var(--drift) ease-in-out var(--drift-delay) infinite alternate;
}

.vn-lp-stars .vn-is-bright {
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.7);
}

.vn-lp-stars .vn-is-twinkle {
  animation:
    lp-drift var(--drift) ease-in-out var(--drift-delay) infinite alternate,
    lp-twinkle var(--twinkle) ease-in-out var(--twinkle-delay) infinite;
}

@keyframes lp-drift {
  from { translate: 0 0; }
  to { translate: var(--dx) var(--dy); }
}

@keyframes lp-twinkle {
  0%, 100% { scale: 1; opacity: var(--o); }
  50% { scale: 0.6; opacity: calc(var(--o) * 0.25); }
}

@media (prefers-reduced-motion: reduce) {
  .vn-lp-stars span,
  .vn-lp-stars .vn-is-twinkle {
    animation: none;
  }
}

html.vn-is-scrolling .vn-lp-stars,
html.vn-is-scrolling .vn-lp-stars * {
  animation-play-state: paused !important;
}

/* --- Top bar, sized and set like Records' header.rv-ph --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: var(--hdr-h);
  min-height: var(--hdr-h);
  padding: 0 16px;
  padding-top: env(safe-area-inset-top, 0px);
  background: none;
  pointer-events: none;
}

/* Theme toggle: same control as raineyshah.com, top right. Lives outside #gate so it
   stays on the signed-in profile. No bar: the header stays pinned but is transparent
   and passes clicks through, so it never crops content; only the icon sits top right. */
.vn-landing-header-actions {
  pointer-events: auto;
  flex: none;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.vn-header-action,
button.vn-theme-toggle__button.vn-header-action {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--quiet);
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none !important;
  box-sizing: border-box;
}
.vn-theme-toggle__button svg,
.vn-theme-toggle__icon {
  display: block;
  width: 32px;
  height: 32px;
  color: var(--quiet);
  overflow: visible;
}
.vn-header-action:hover { opacity: .85; }
.vn-header-action:focus { outline: none; }
.vn-header-action:focus-visible { outline: 2px solid var(--quiet); outline-offset: 2px; }
/* The sun/moon matches the GitHub mark beside it: black on light, white on dark (every part reads --quiet). */
.vn-theme-toggle__button { --quiet: color-mix(in srgb, #000000 calc((1 - var(--text-t)) * 100%), #ffffff calc(var(--text-t) * 100%)); }

/* Sun (light) morphs to a crescent moon (dark), driven by --theme-t. */
.vn-theme-toggle__disc {
  transform-origin: 12px 12px;
  transform: scale(0.42);
  fill: var(--quiet);
  fill-opacity: var(--theme-t);
  stroke: var(--quiet);
  stroke-width: 2;
}
.vn-theme-toggle__cut {
  transform-origin: 12px 12px;
  transform: translate(10px, -10px);
}
.vn-theme-toggle__rays {
  fill: none !important;
  stroke: var(--quiet);
  stroke-width: 1.5;
  transform-origin: 12px 12px;
  transform: scale(0.56) rotate(0deg);
  opacity: 1;
}
.vn-theme-toggle__rays-hole {
  transform-origin: 12px 12px;
  transform: scale(1);
}
html.vn-theme-fade .vn-theme-toggle__disc {
  transition:
    transform var(--vn-theme-fade-duration) var(--vn-theme-fade-easing),
    stroke-width var(--vn-theme-fade-duration) var(--vn-theme-fade-easing);
}
html.vn-theme-fade .vn-theme-toggle__cut {
  transition: transform var(--vn-theme-fade-duration) var(--vn-theme-fade-easing);
}
html.vn-theme-fade .vn-theme-toggle__rays {
  transition: transform var(--vn-theme-fade-duration) var(--vn-theme-fade-easing), opacity var(--vn-theme-fade-duration) var(--vn-theme-fade-easing);
}
html.vn-theme-fade .vn-theme-toggle__rays-hole {
  transition: transform var(--vn-theme-fade-duration) var(--vn-theme-fade-easing);
}
html[data-theme="dark"] .vn-theme-toggle__disc {
  transform: scale(1);
  fill: var(--quiet);
  stroke: var(--quiet);
  stroke-width: 0;
}
html[data-theme="dark"] .vn-theme-toggle__cut {
  transform: translate(3.2px, -3.6px);
}
html[data-theme="dark"] .vn-theme-toggle__rays {
  transform: scale(.35) rotate(90deg);
  opacity: 0;
}
html[data-theme="dark"] .vn-theme-toggle__rays-hole {
  transform: scale(2);
}
@media (prefers-reduced-motion: reduce) {
  html.vn-theme-fade,
  .vn-theme-toggle__disc,
  .vn-theme-toggle__cut,
  .vn-theme-toggle__rays,
  .vn-theme-toggle__rays-hole {
    transition: none;
  }
}


/* --- Centered silver badge --- */
main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh; /* the visible height (100lvh was taller than the screen on iOS, so it scrolled) */
  padding-bottom: 16vh; /* centres the badge, button and links a little above the middle */
  box-sizing: border-box;
}

.vn-landing-badge {
  position: relative;
  width: min(440px, 88vw);
  height: min(440px, 88vw);
  display: grid;
  place-items: center;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  /* The box is taller than the artwork; pull the button up under the badge's shadow. */
  margin-bottom: calc(min(440px, 88vw) * -0.175);
}

.vn-landing-badge.vn-is-dragging { cursor: grabbing; }

.vn-landing-badge__shadow {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 58%;
  height: 16%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.12), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.vn-landing-badge__stage {
  position: relative;
  width: 62%;
  height: 62%;
  perspective: 1200px;
  perspective-origin: 50% 48%;
  z-index: 2;
}

.vn-landing-badge__rig,
.vn-landing-badge__stack {
  transform-style: preserve-3d;
}

.vn-landing-badge__rig {
  width: 100%;
  height: 100%;
  will-change: transform;
}

.vn-landing-badge__stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.vn-landing-badge__face,
.vn-landing-badge__wall {
  position: absolute;
  pointer-events: none;
}

.vn-landing-badge__face {
  inset: 0;
}

.vn-landing-badge__wall {
  /* The logo's border colour, so the side runs flush on from the face's outline. */
  background: #c9bd8d;
  box-shadow: 0 0 0 1px #c9bd8d;
  backface-visibility: hidden; /* only the walls facing you draw (see landing.js) */
  -webkit-backface-visibility: hidden;
}

.vn-landing-badge__face {
  /* Flat and isolated: the light streak's blend stays inside this one face instead of making the
     browser re-composite the whole 3D stack every frame (that flickered and loaded the GPU). */
  transform-style: flat;
  isolation: isolate;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.vn-landing-badge__face img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Glimmer on the front face, as on the popup badge: an oversized tilted streak slid across by a CSS
   animation of its transform alone (no per-frame script, no repaint). Clipped to the badge's shape. */
.vn-landing-badge__gleam {
  position: absolute;
  inset: 4%;
  border-radius: 21.74%;
  overflow: hidden;
  /* iOS WebKit ignores rounded overflow on a composited 3D layer; clip-path and a same-radius mask keep the 3x streak inside the tile. */
  -webkit-clip-path: inset(0 round 21.74%);
  clip-path: inset(0 round 21.74%);
  -webkit-mask-image: url("assets/badge-face-mask.svg");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("assets/badge-face-mask.svg");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  pointer-events: none;
}

.vn-landing-badge__gleam i,
.vn-landing-badge__gleam i::after {
  position: absolute;
  inset: -100%; /* 3x the face, so the tilted streak spans it corner to corner */
}

.vn-landing-badge__gleam i {
  background: linear-gradient(90deg, transparent 0%, transparent 42.7%, rgba(255, 255, 255, 0.06) 46.7%,
    rgba(255, 255, 255, 0.22) 49%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.18) 51.3%,
    transparent 54.7%, transparent 100%);
  mix-blend-mode: soft-light;
  opacity: 0.9;
  transform: rotate(28deg) translateX(-26%);
  will-change: transform;
  animation: badge-sweep 3s linear infinite;
}

.vn-landing-badge__gleam i::after {
  content: "";
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, transparent 48.3%, rgba(255, 255, 255, 0.55) 50%,
    transparent 51.7%, transparent 100%);
  mix-blend-mode: overlay;
  opacity: 0.75;
}

/* The back face is turned around, so its streak is mirrored back: seen from behind it runs left to
   right at the same tilt as the front. */
.vn-landing-badge__gleam--back { transform: scaleX(-1); }

/* 1.1 s across, then off the right edge for 1.9 s; the jump back happens out of sight. */
@keyframes badge-sweep {
  0% { transform: rotate(28deg) translateX(-26%); }
  36.7%, 100% { transform: rotate(28deg) translateX(26%); }
}

@media (prefers-reduced-motion: reduce) {
  .vn-landing-badge__gleam i { animation: none; transform: rotate(28deg) translateX(-8%); will-change: auto; }
}

@media (max-width: 520px) {
  .vn-landing-badge { width: min(380px, 94vw); height: min(380px, 94vw); margin-bottom: calc(min(380px, 94vw) * -0.175); }
  .vn-landing-badge__stage { width: 68%; height: 68%; }
}

/* --- Enter button under the badge (Graphite) --- */

.vn-gate-error {
  position: relative;
  z-index: 2;
  max-width: 320px;
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: #9a3412;
}

#profile { display: none; }
html.vn-is-unlocked #gate { display: none; }
/* The front page doesn't scroll (or rubber-band on iOS); the signed-in profile on this same page does. */
html:not(.vn-is-unlocked), html:not(.vn-is-unlocked) body { height: 100%; overflow: hidden; overscroll-behavior: none; }
/* The unlocked profile is styled by landing/profile/profile.css. */
html.vn-is-unlocked #profile { display: block; min-height: 100dvh; }
/* Signed in: the header spans the same 560px column as the profile (.pf), so the sun/moon icon's
   right edge lines up with the right edge of the menus. .pf pads 16px; the 32px icon sits 6px
   inside its 44px button, so the header pads 10px. */
html.vn-is-unlocked header {
  left: 50%;
  right: auto;
  width: min(560px, 100%);
  transform: translateX(-50%);
  padding-right: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .vn-links a { transition: none; }
}

/* --- Quiet text links under the button --- */
.vn-links {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
}
.vn-links a {
  color: var(--quiet);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}
.vn-links a:hover {
  color: var(--ink);
}
.vn-links a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}

/* White page: no star field. */
.vn-lp-stars { display: none; }


/* Gate: create / recover (below the main button) */
/* Access popup: the three options as plain text at the bottom, the recovery form inside. */
.vn-gate-dialog .vn-pf-qrbox { width: min(344px, 92vw); }
.vn-gate-dialog .vn-gate-alt { justify-content: center; gap: 8px; margin-top: 18px; white-space: nowrap; }
.vn-gate-dialog .vn-pf-qrbox .vn-gate-link { margin: 0; min-width: 0; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  color: #5c5f66; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.4; transform: none; filter: none; }
.vn-gate-dialog .vn-pf-qrbox .vn-gate-link:hover { color: #2a2c31; }
.vn-gate-dialog .vn-pf-qrbox .vn-gate-link[aria-pressed="true"] { color: #1d1f24; font-weight: 600; text-decoration: underline; }
.vn-gate-dialog #existing-form { margin-top: 4px; }
.vn-gate-dialog .vn-gate-recover { width: 100%; margin-top: 14px; }
.vn-gate-dialog .vn-gate-recover button { margin-top: 4px; width: 100%; border-radius: 12px; } /* as wide as, and as round as, the inputs; Field like Access your Badge */
.vn-gate-words { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.vn-gate-words .vn-gate-word { height: 40px; padding: 0 8px; font: 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: left; }
.vn-gate-words .vn-gate-word::placeholder { color: #b4b6bb; }
.vn-gate-dialog .vn-pf-pop-body .vn-gate-error { margin: 12px 0 0; color: #b42318; }
.vn-gate-input { box-sizing: border-box; width: 100%; height: 44px; padding: 0 12px; border: 1px solid rgba(0,0,0,.18); border-radius: 12px; background: #fff;
  font: 15px/1 Inter, system-ui, sans-serif; color: #1e2024; text-align: center; }
.vn-gate-dialog .vn-pf-pop-body .vn-gate-name-status { margin: 0; font-size: 13px; line-height: 1.4; color: var(--pf-muted); word-break: normal; }
.vn-gate-dialog .vn-pf-pop-body .vn-gate-name-status[hidden] { display: none; }
.vn-gate-name-status[data-kind="ok"] { color: #1a7f37 !important; }
.vn-gate-name-status[data-kind="bad"] { color: #b42318 !important; }
.vn-gate-dialog .vn-gate-recover button:disabled { opacity: .45; cursor: default; transform: none; filter: none; }
/* One border only, drawn inside the box: dark when focused, green when the name is free, red when it is not. */
.vn-gate-input:focus { outline: none; border-color: #2a2c31; box-shadow: inset 0 0 0 1px #2a2c31; }
/* The username check shows on the input itself: green when the name is free, red when it is not. */
.vn-gate-input[data-check="ok"], .vn-gate-input[data-check="ok"]:focus { border-color: #1a7f37; box-shadow: inset 0 0 0 1px #1a7f37; }
.vn-gate-input[data-check="bad"], .vn-gate-input[data-check="bad"]:focus { border-color: #b42318; box-shadow: inset 0 0 0 1px #b42318; }
.vn-gate-alt { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; margin-top: 14px; color: #8a8d93; font-size: 13px; }
.vn-gate-link { border: 0; padding: 0; background: none; font: inherit; font-weight: 500; color: #5c5f66; cursor: pointer; text-underline-offset: 3px; }
.vn-gate-link:hover { color: #2a2c31; }
.vn-gate-link:focus-visible { outline: 2px solid #2a2c31; outline-offset: 3px; border-radius: 4px; }
.vn-gate-link:disabled { opacity: .5; cursor: default; text-decoration: none; }
.vn-gate-recover { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(340px, 100%); margin-top: 16px; }
.vn-gate-recover[hidden] { display: none; }
.vn-gate-hint { margin: 0; font-size: 12px; color: #8a8d93; text-align: center; }

/* BADGE-025: framed (js/frameguard.js). The access popup is removed; this is all that shows. */
html[data-framed] #access-dialog, html[data-framed] #profile { display: none !important; }
.vn-framed-notice { display: grid; gap: 10px; place-items: center; min-height: 60vh; text-align: center; font-size: 15px; }
.vn-framed-notice p { margin: 0; }
.vn-framed-notice a { font-weight: 600; color: inherit; }

/* The badge opens only in this browser until its passkey wrap is saved to Arweave (landing/shell.js). */
.vn-local-only-notice { display: none; box-sizing: border-box; max-width: 560px; margin: 12px auto 0; padding: 10px 14px; border: 1px solid #f2c94c; border-radius: 12px;
  background: #fff8e1; color: #7a4b00; font: 13px/1.45 Inter, system-ui, sans-serif; text-align: center; }
html.vn-is-unlocked .vn-local-only-notice:not([hidden]) { display: block; }

/* Access popup buttons: a soft ring for keyboard focus only (js/softfocus.js keeps mouse and touch opens off
 * the button). Safari otherwise drew a thick ring around Use passkey as the popup opened. */
.vn-gate-dialog .vn-pf-qrbox button:focus:not(:focus-visible) { outline: none; }
.vn-gate-dialog .vn-pf-qrbox button:focus-visible { outline: 2px solid rgba(42, 44, 49, .35); outline-offset: 2px; }
.vn-gate-dialog:focus, .vn-gate-dialog:focus-visible { outline: none; }

/* Dark theme: landing gate, links, access popup, and the badge's floor shadow.
   The signed-in profile's dark tokens live in profile.css (html[data-theme="dark"] --pf-*). */
/* Access your Badge and the popup actions follow the Standalone tokens (profile.css), so they need no dark rules here. */
html[data-theme="dark"] .vn-gate-dialog .vn-gate-recover button:disabled {
  opacity: 0.45;
  cursor: default;
  filter: none;
  transform: none;
}
html[data-theme="dark"] .vn-landing-badge__shadow {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08), transparent 70%);
}
html[data-theme="dark"] .vn-gate-dialog { color: #ffffff; }
html[data-theme="dark"] .vn-gate-dialog .vn-pf-qrbox {
  background: #161616;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px #2a2a2a;
}
html[data-theme="dark"] .vn-gate-dialog .vn-pf-qrbox h2 { color: #ffffff; }
html[data-theme="dark"] .vn-gate-dialog .vn-pf-pop-body p,
html[data-theme="dark"] .vn-gate-dialog #access-text { color: #bdbdbd; }
html[data-theme="dark"] .vn-gate-dialog .vn-pf-x { color: #a3a3a3; }
html[data-theme="dark"] .vn-gate-dialog .vn-pf-x:hover { background: rgba(255, 255, 255, .08) !important; color: #ffffff !important; }
html[data-theme="dark"] .vn-gate-dialog .vn-pf-qrbox .vn-gate-link { color: #a3a3a3; }
html[data-theme="dark"] .vn-gate-dialog .vn-pf-qrbox .vn-gate-link:hover { color: #ffffff; }
html[data-theme="dark"] .vn-gate-dialog .vn-pf-qrbox .vn-gate-link[aria-pressed="true"] { color: #ffffff; }
html[data-theme="dark"] .vn-gate-alt { color: #a3a3a3; }
html[data-theme="dark"] .vn-gate-input {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #3a3a3a;
}
html[data-theme="dark"] .vn-gate-words .vn-gate-word::placeholder { color: #6b6e75; }
html[data-theme="dark"] .vn-gate-input:focus { border-color: #e6e8eb; box-shadow: inset 0 0 0 1px #e6e8eb; }
html[data-theme="dark"] .vn-gate-error,
html[data-theme="dark"] .vn-gate-dialog .vn-pf-pop-body .vn-gate-error { color: #f2b8b5; }

/* Vanilla homepage line under the badge (as on the Vanilla site). */
.vn-quote { position: relative; z-index: 2; box-sizing: border-box; width: min(39em, calc(100% - 48px)); margin: 0; color: var(--muted, #6b6b6b); font-size: 15px; line-height: 1.55; letter-spacing: -0.015em; text-align: center; text-wrap: pretty; }
/* Vanilla's accent (--vn-color-accent). */
.vn-quote a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: currentColor; text-decoration-skip-ink: none; }
.vn-quote a:hover { color: inherit; }
.vn-quote p { margin: 0; }
.vn-quote p + p { margin-top: 1.55em; }
a.vn-button { position: relative; z-index: 2; margin-top: 22px; }
a.vn-button + .vn-quote,
vn-tile-button + .vn-quote { margin-top: 36px; }
/* On the gate, the line sits under the tile and the button sits under the line. */
#gate vn-tile-button { display: contents; }
#gate .vn-tile-button__tile { order: 1; }
#gate .vn-quote { order: 2; margin-top: calc(min(273px, 54.6vw) * 0.145); }
#gate .vn-tile-button__action { order: 3; margin-top: 36px; }
@media (max-width: 520px) {
  #gate .vn-quote { margin-top: calc(min(258px, 64vw) * 0.145); }
}

/* Upside down (landing.js adds .vn-is-upside): the picture turns so it still reads the right way up. */
.vn-landing-badge.vn-is-upside .vn-landing-badge__face img { transform: rotate(180deg); }
vn-theme-toggle { display: contents; }



/* GitHub mark, left of the sun/moon: the same 44px header action, the official mark. */
.vn-gh img { display: block; width: 28px; height: 28px; }
/* GitHub's official Invertocat: black on light, white on dark (GitHub's logo rules: black or white only). */
.vn-gh__dark { display: none !important; }
html[data-scheme="dark"] .vn-gh__light, html[data-theme="dark"] .vn-gh__light { display: none !important; }
html[data-scheme="dark"] .vn-gh__dark, html[data-theme="dark"] .vn-gh__dark { display: block !important; }
