/* SPDX-License-Identifier: Apache-2.0 */
/* The link page stylesheet.

   Every color, size, radius, space and shadow below reads a --ra-* custom
   property declared once in the :root block. static/theme.css (written from the
   config's theme section) overrides only the properties a creator changes.
   Raw color values appear in :root and nowhere else.

   The look is a dark page with carbon-fiber texture, a giant faded mascot
   behind a narrow centered column, an accent-colored tab bar and pill links.
   The mascot, the page background, the avatar and the favicon are slots a
   creator fills in the config; this file ships none of them.

   Colors come as light-dark(light, dark) pairs. The page is dark unless the
   theme's `mode` says light. */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/jost-latin-wght-normal.7726a5cd6f3c0e876c02.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  interpolate-size: allow-keywords;

  /* Colors: the six the theme section sets. The accent and the text on it are
     the same in light and dark, so a button keeps its brand look. */
  --ra-color-bg: light-dark(#f4f1ec, #0e0e0e);
  --ra-color-surface: light-dark(#ffffff, #1b1b1b);
  --ra-color-text: light-dark(#1a1a1a, #ffffff);
  --ra-color-accent: #fbb03b;
  --ra-color-on-accent: #1a1a1a;
  --ra-color-border: light-dark(#d6d1c8, #333333);

  /* Colors: derived from the six, so a retheme follows without extra work. */
  --ra-color-link: light-dark(color-mix(in srgb, var(--ra-color-accent) 45%, #000000), var(--ra-color-accent));
  --ra-color-on-accent-muted: color-mix(in srgb, var(--ra-color-on-accent) 85%, var(--ra-color-accent));
  --ra-color-accent-edge: color-mix(in srgb, var(--ra-color-accent) 72%, #000000);
  --ra-color-chip: color-mix(in srgb, var(--ra-color-on-accent) 90%, var(--ra-color-accent));
  --ra-color-muted: color-mix(in srgb, var(--ra-color-text) 72%, var(--ra-color-bg));
  --ra-color-raised: color-mix(in srgb, var(--ra-color-text) 6%, var(--ra-color-surface));
  --ra-color-highlight: color-mix(in srgb, var(--ra-color-text) 8%, transparent);
  --ra-color-accent-soft: color-mix(in srgb, var(--ra-color-accent) 15%, var(--ra-color-surface));
  --ra-color-glow: color-mix(in srgb, var(--ra-color-text) 7%, transparent);
  --ra-color-grain: color-mix(in srgb, var(--ra-color-text) 3%, transparent);
  --ra-color-grain-deep: color-mix(in srgb, #000000 30%, transparent);
  --ra-color-edge: color-mix(in srgb, var(--ra-color-on-accent) 45%, transparent);
  --ra-shadow-color: light-dark(rgb(70 45 20 / 0.22), rgb(0 0 0 / 0.6));

  /* Fonts: Jost is served from this site; the rest are system fallbacks. */
  --ra-font-body: "Jost", system-ui, sans-serif;
  --ra-font-heading: var(--ra-font-body);

  /* Type scale: a 1.25 ratio from 1rem on a phone. The larger steps grow
     smoothly with the viewport, and every bound is in rem so the visitor's
     default font size and zoom always win. */
  --ra-text-xs: 0.8rem;
  --ra-text-sm: 0.875rem;
  --ra-text-base: clamp(1rem, 0.94rem + 0.2vw, 1.125rem);
  --ra-text-md: clamp(1.125rem, 1.07rem + 0.2vw, 1.25rem);
  --ra-text-lg: clamp(1.3rem, 1.2rem + 0.3vw, 1.5rem);
  --ra-text-xl: clamp(1.75rem, 1.5rem + 0.9vw, 2.25rem);
  --ra-text-2xl: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  --ra-line-height: 1.5;

  /* Space: a 4-point rhythm. */
  --ra-space-1: 0.25rem;
  --ra-space-2: 0.5rem;
  --ra-space-3: 0.75rem;
  --ra-space-4: 1rem;
  --ra-space-5: 1.5rem;
  --ra-space-6: 2.5rem;
  --ra-tap: 2.75rem;
  --ra-gutter: clamp(1rem, 0.4rem + 2.5vw, 2rem);

  /* Shape and layout. */
  --ra-column-width: 35rem;
  --ra-column-tablet: 45rem;
  --ra-column-desktop: 54rem;
  --ra-measure: 50ch;
  --ra-radius: 0.5rem;
  --ra-button-radius: 2.25rem;
  --ra-card-radius: min(calc(var(--ra-radius) * 2), 1.75rem);
  --ra-tab-radius: 0;
  --ra-avatar-radius: 50%;
  --ra-thumb: 2.75rem;
  --ra-thumb-radius: 50%;

  /* Depth. */
  --ra-shadow-card:
    inset 0 1px 0 var(--ra-color-highlight), 0 1px 2px var(--ra-shadow-color),
    0 10px 22px -14px var(--ra-shadow-color);
  --ra-shadow-lift:
    inset 0 1px 0 var(--ra-color-highlight), 0 2px 4px var(--ra-shadow-color),
    0 16px 30px -14px var(--ra-shadow-color);
  --ra-shadow-pill: 0 3px 12px var(--ra-shadow-color);

  /* Image slots: filled from the config, empty here. --ra-bg-image is the
     full-bleed page background; --ra-mascot-image is the giant faded mascot. */
  --ra-bg-image: none;
  --ra-bg-dim: 0;
  --ra-color-dim: color-mix(in srgb, #000000 calc(var(--ra-bg-dim) * 100%), transparent);
  --ra-mascot-image: none;
  --ra-mascot-opacity: 0.12;
  --ra-mascot-size: cover;
  --ra-mascot-position: center;

  /* Motion. */
  --ra-duration: 180ms;
  --ra-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Very large monitors: scale everything (it is all rem) a little so the column
   does not look small. A percentage keeps the visitor's own default size. */
@media (min-width: 100rem) { html { font-size: 112.5%; } }
@media (min-width: 140rem) { html { font-size: 125%; } }
::selection { background-color: var(--ra-color-accent); color: var(--ra-color-on-accent); }

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  font-family: var(--ra-font-body);
  font-size: var(--ra-text-base);
  line-height: var(--ra-line-height);
  color: var(--ra-color-text);
  background-color: var(--ra-color-bg);
  /* Carbon-fiber weave: two crossing hatches, a soft center light on top. */
  background-image:
    linear-gradient(var(--ra-color-dim), var(--ra-color-dim)),
    var(--ra-bg-image),
    radial-gradient(70rem 40rem at 50% 0, var(--ra-color-glow), transparent 70%),
    repeating-linear-gradient(45deg, var(--ra-color-grain) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(-45deg, var(--ra-color-grain-deep) 0 2px, transparent 2px 4px);
  background-size: auto, cover, auto, auto, auto;
  background-position: 0 0, center, center, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
  background-attachment: fixed;
  overflow-wrap: break-word;
}
/* The giant faded mascot: one fixed layer behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--ra-mascot-image);
  background-repeat: no-repeat;
  background-position: var(--ra-mascot-position);
  background-size: var(--ra-mascot-size);
  opacity: var(--ra-mascot-opacity);
}

/* The column: tab bar flush to its top, everything else inset by the gutter. */
main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: var(--ra-column-width);
  margin: 0 auto;
  /* The safe-area insets are 0 until the page asks for viewport-fit=cover. */
  padding:
    env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
    calc(var(--ra-space-5) + env(safe-area-inset-bottom, 0px))
    env(safe-area-inset-left, 0px);
}
main > :not(.tabs) { padding-inline: var(--ra-gutter); }
.blocks { flex: 1 0 auto; align-content: start; }

h1, h2, h3 {
  font-family: var(--ra-font-heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { margin: 0 0 var(--ra-space-3); text-wrap: pretty; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: var(--ra-color-link); text-underline-offset: 0.2em; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--ra-color-link);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: var(--ra-space-3);
  top: -4rem;
  z-index: 10;
  padding: var(--ra-space-3) var(--ra-space-4);
  border-radius: var(--ra-button-radius);
  background-color: var(--ra-color-accent);
  color: var(--ra-color-on-accent);
  font-weight: 700;
}
.skip-link:focus { top: var(--ra-space-3); }

/* Icons: drawn with a mask so they take the surrounding text color. */
.icon {
  display: inline-block;
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.icon-twitch { -webkit-mask-image: url("icons/twitch.fd41bf446e5943057385.svg"); mask-image: url("icons/twitch.fd41bf446e5943057385.svg"); }
.icon-kick { -webkit-mask-image: url("icons/kick.4692fe8f883284bb0237.svg"); mask-image: url("icons/kick.4692fe8f883284bb0237.svg"); }
.icon-mastodon { -webkit-mask-image: url("icons/mastodon.f2bb67ff2743b7b8c57b.svg"); mask-image: url("icons/mastodon.f2bb67ff2743b7b8c57b.svg"); }
.icon-bluesky { -webkit-mask-image: url("icons/bluesky.1c4e5e55b6e7e86e0d59.svg"); mask-image: url("icons/bluesky.1c4e5e55b6e7e86e0d59.svg"); }
.icon-tiktok { -webkit-mask-image: url("icons/tiktok.d59ebd31151d2c694483.svg"); mask-image: url("icons/tiktok.d59ebd31151d2c694483.svg"); }
.icon-discord { -webkit-mask-image: url("icons/discord.43d952eeb458763dcedf.svg"); mask-image: url("icons/discord.43d952eeb458763dcedf.svg"); }
.icon-youtube { -webkit-mask-image: url("icons/youtube.262c94adb95bb1b48575.svg"); mask-image: url("icons/youtube.262c94adb95bb1b48575.svg"); }
.icon-github { -webkit-mask-image: url("icons/github.547f752a88c084c712f9.svg"); mask-image: url("icons/github.547f752a88c084c712f9.svg"); }
.icon-instagram { -webkit-mask-image: url("icons/instagram.558edc7153b781b912bc.svg"); mask-image: url("icons/instagram.558edc7153b781b912bc.svg"); }
.icon-threads { -webkit-mask-image: url("icons/threads.be0c165529e293691711.svg"); mask-image: url("icons/threads.be0c165529e293691711.svg"); }
.icon-matrix { -webkit-mask-image: url("icons/matrix.0d0f6bea5f3ac9847329.svg"); mask-image: url("icons/matrix.0d0f6bea5f3ac9847329.svg"); }
.icon-x { -webkit-mask-image: url("icons/x.6805de5726a19f7c6b55.svg"); mask-image: url("icons/x.6805de5726a19f7c6b55.svg"); }
.icon-linkedin { -webkit-mask-image: url("icons/linkedin.535cefdf3c5a4a6cd3df.svg"); mask-image: url("icons/linkedin.535cefdf3c5a4a6cd3df.svg"); }
.icon-patreon { -webkit-mask-image: url("icons/patreon.c8d77993573b2acb22c9.svg"); mask-image: url("icons/patreon.c8d77993573b2acb22c9.svg"); }
.icon-email { -webkit-mask-image: url("icons/email.56b6ec9506a491e731b5.svg"); mask-image: url("icons/email.56b6ec9506a491e731b5.svg"); }
.icon-rss { -webkit-mask-image: url("icons/rss.1811d3377c9949247e5d.svg"); mask-image: url("icons/rss.1811d3377c9949247e5d.svg"); }
.icon-link { -webkit-mask-image: url("icons/link.14fa9e41d12ab0219ed8.svg"); mask-image: url("icons/link.14fa9e41d12ab0219ed8.svg"); }
.icon-bitcoin { -webkit-mask-image: url("icons/bitcoin.6cc1105757cc6748cb49.svg"); mask-image: url("icons/bitcoin.6cc1105757cc6748cb49.svg"); }
.icon-ethereum { -webkit-mask-image: url("icons/ethereum.095d94ffe307dc5226e0.svg"); mask-image: url("icons/ethereum.095d94ffe307dc5226e0.svg"); }
.icon-merch { -webkit-mask-image: url("icons/merch.177fa7fb693db196998b.svg"); mask-image: url("icons/merch.177fa7fb693db196998b.svg"); }
.icon-monero { -webkit-mask-image: url("icons/monero.e885750b719edb9377bb.svg"); mask-image: url("icons/monero.e885750b719edb9377bb.svg"); }
.icon-solana { -webkit-mask-image: url("icons/solana.bfd79a60961c64a89314.svg"); mask-image: url("icons/solana.bfd79a60961c64a89314.svg"); }


/* Header: avatar at the left, the name beside it, the social icons below the name. */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ra-space-3);
  padding: var(--ra-space-5) 0 var(--ra-space-4);
  text-align: center;
}
.site-header h1 {
  margin: 0;
  font-size: var(--ra-text-xl);
  font-weight: 500;
}
.avatar {
  border-radius: var(--ra-avatar-radius);
  object-fit: cover;
  aspect-ratio: 1;
  max-width: 100%;
  height: auto;
  background-color: var(--ra-color-surface);
  box-shadow: 0 0 0 1px var(--ra-color-border);
}
.header-compact { align-items: stretch; text-align: left; padding-top: var(--ra-space-4); }
.header-row { display: flex; align-items: flex-start; gap: var(--ra-space-3); }
.header-row .avatar { flex: none; }
.header-text { display: flex; flex-direction: column; gap: var(--ra-space-1); min-width: 0; }
.header-row h1 { font-size: var(--ra-text-lg); padding-top: var(--ra-space-1); }
.header-hero { padding-top: var(--ra-space-4); }
.header-hero .hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ra-space-4);
  width: 100%;
  padding: var(--ra-space-6) var(--ra-space-4) var(--ra-space-5);
  border: 1px solid var(--ra-color-border);
  border-radius: calc(var(--ra-card-radius) * 1.5);
  background-image: linear-gradient(180deg, var(--ra-color-glow), transparent 70%);
  background-color: var(--ra-color-surface);
  box-shadow: var(--ra-shadow-card);
}
.header-hero h1 { font-size: var(--ra-text-2xl); }

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--ra-space-1);
}
.header-compact .socials { justify-content: flex-start; margin-left: calc(var(--ra-space-2) * -1); }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--ra-tap);
  min-height: var(--ra-tap);
  color: var(--ra-color-text);
  font-size: var(--ra-text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: transform var(--ra-duration) var(--ra-ease), color var(--ra-duration);
}
.social .icon { width: 1.6rem; height: 1.6rem; }
.social-label {
  padding: var(--ra-space-1) var(--ra-space-3);
  border: 1px solid var(--ra-color-border);
  border-radius: 999px;
}

/* Tab bar: accent bar flush to the top of the column, uppercase labels. It
   scrolls sideways when the tabs do not fit, with an edge cue where more hide.
   The current tab is the initial scroll target, so it starts in view without
   script. Below 430 px the labels and padding shrink so about four short tabs
   share one row; longer or more tabs fall back to the scrolling bar. */
.tabs { margin: 0 0 var(--ra-space-3); }
.tabs ul {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--ra-space-4);
  border-radius: var(--ra-tab-radius);
  background-color: var(--ra-color-accent);
  background-image:
    linear-gradient(to right, var(--ra-color-accent) 30%, transparent),
    linear-gradient(to left, var(--ra-color-accent) 30%, transparent),
    linear-gradient(to right, color-mix(in srgb, var(--ra-color-on-accent) 38%, transparent), transparent),
    linear-gradient(to left, color-mix(in srgb, var(--ra-color-on-accent) 38%, transparent), transparent);
  background-repeat: no-repeat;
  background-position: left center, right center, left center, right center;
  background-size: 2.5rem 100%, 2.5rem 100%, 1.75rem 100%, 1.75rem 100%;
  background-attachment: local, local, scroll, scroll;
  box-shadow: var(--ra-shadow-pill);
}
.tabs ul::-webkit-scrollbar { display: none; }
.tabs li { flex: 1 0 auto; scroll-snap-align: center; }
.tabs li:has(> a[aria-current="page"]) { scroll-initial-target: nearest; }
.tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 var(--ra-space-4);
  border-radius: var(--ra-tab-radius);
  color: var(--ra-color-on-accent);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--ra-duration);
}
.tabs a:focus-visible { outline-color: var(--ra-color-on-accent); outline-offset: -4px; }
.tabs a[aria-current="page"] {
  background-color: var(--ra-color-accent-edge);
  box-shadow: inset 0 -3px 0 var(--ra-color-on-accent);
  font-weight: 700;
}

/* The LIVE badge inside a tab link: a text badge with a dot, so it never relies
   on color. It sits on the tab bar's own accent pair, inverted, which keeps the
   same contrast as the tab labels. It is hidden until a script shows it. */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-inline-start: var(--ra-space-2);
  padding: 0.1em 0.55em;
  border-radius: 999px;
  background-color: var(--ra-color-on-accent);
  color: var(--ra-color-accent);
  font-size: var(--ra-text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.live-badge[hidden] { display: none; }
.live-dot { width: 0.5em; height: 0.5em; border-radius: 50%; background-color: currentColor; }

@media (max-width: 26.875rem) {
  .tabs a {
    padding: 0 var(--ra-space-2);
    font-size: var(--ra-text-xs);
    letter-spacing: 0;
  }
}

/* Link buttons: full-width accent pills. The thumbnail slot sits at the left,
   the three-dot glyph at the right, and the text stays centered between them. */
.blocks { display: flex; flex-direction: column; gap: var(--ra-space-4); }
/* Grid and card layouts wrap in a centered flex row with a fixed column basis,
   so a short last row sits in the middle instead of hugging the left edge. */
.blocks.layout-grid, .blocks.layout-cards, .section-links.layout-grid, .section-links.layout-cards {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--ra-space-3);
}
.blocks.layout-grid > *, .section-links.layout-grid > * { flex: 0 0 min(10rem, 100%); }
.blocks.layout-cards > *, .section-links.layout-cards > * { flex: 0 0 min(15rem, 100%); }
/* Every block that spans a whole row in the other layouts does the same here. */
.layout-grid > .block-section, .layout-grid > .block-text, .layout-grid > .block-image, .layout-grid > .block-divider,
.layout-grid > .block-platforms, .layout-grid > .block-crypto, .layout-grid > .block-email, .layout-grid > .block-live,
.layout-cards > .block-section, .layout-cards > .block-text, .layout-cards > .block-image, .layout-cards > .block-divider,
.layout-cards > .block-platforms, .layout-cards > .block-crypto, .layout-cards > .block-email, .layout-cards > .block-live { flex: 0 0 100%; width: 100%; }
.section-links { display: flex; flex-direction: column; gap: var(--ra-space-2); }

a.link {
  display: grid;
  grid-template-columns: var(--ra-thumb) minmax(0, 1fr) var(--ra-thumb);
  align-items: center;
  column-gap: var(--ra-space-2);
  min-height: 4rem;
  height: 100%;
  padding: var(--ra-space-2) var(--ra-space-3);
  border: 1px solid var(--ra-color-accent-edge);
  border-radius: var(--ra-button-radius);
  background-color: var(--ra-color-accent);
  box-shadow: var(--ra-shadow-pill);
  color: var(--ra-color-on-accent);
  text-align: center;
  text-decoration: none;
  transition: transform var(--ra-duration) var(--ra-ease), box-shadow var(--ra-duration) var(--ra-ease), filter var(--ra-duration);
}
/* The three-dot glyph: drawn, not marked up, and only a visual cue. */
a.link::after {
  content: "";
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
  width: 0.3rem;
  height: 1.2rem;
  background-image:
    radial-gradient(circle at 50% 12%, var(--ra-color-on-accent-muted) 0.13rem, transparent 0.15rem),
    radial-gradient(circle at 50% 50%, var(--ra-color-on-accent-muted) 0.13rem, transparent 0.15rem),
    radial-gradient(circle at 50% 88%, var(--ra-color-on-accent-muted) 0.13rem, transparent 0.15rem);
}
/* A link with no icon or picture reserves no left slot: one column, the label
   centered across the whole pill, and no dots (they only balanced the slot). */
a.link:not(:has(.link-chip, .link-thumb)) { grid-template-columns: minmax(0, 1fr); }
a.link:not(:has(.link-chip, .link-thumb))::after { display: none; }
a.link:not(:has(.link-chip, .link-thumb)) .link-text { grid-column: 1; }
.link-chip {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  place-items: center;
  width: var(--ra-thumb);
  height: var(--ra-thumb);
  border-radius: 50%;
  background-color: var(--ra-color-chip);
  color: var(--ra-color-accent);
}
/* A link's own picture replaces the chip: square slot, cropped to fill. */
.link-thumb {
  display: block;
  grid-column: 1;
  grid-row: 1;
  width: var(--ra-thumb);
  height: var(--ra-thumb);
  border-radius: var(--ra-thumb-radius);
  object-fit: cover;
  background-color: var(--ra-color-chip);
}
.link-text { grid-column: 2; grid-row: 1; min-width: 0; }
.link-title {
  display: block;
  font-size: var(--ra-text-md);
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.link-subtitle {
  display: block;
  margin-top: var(--ra-space-1);
  color: var(--ra-color-on-accent-muted);
  font-size: var(--ra-text-sm);
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
/* A subtitle makes the pill taller, and a fully round end on a tall box turns
   it into a slab. The round ends are capped at the card radius then. */
a.link:has(.link-subtitle) { border-radius: min(var(--ra-button-radius), var(--ra-card-radius)); }
.section-subtitle {
  display: block;
  margin-top: var(--ra-space-1);
  color: var(--ra-color-muted);
  font-size: var(--ra-text-sm);
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
/* The highlighted top link: taller, no border, no dots. */
a.link-featured {
  min-height: 4.5rem;
  border-color: transparent;
}
a.link-featured::after { display: none; }
a.link-featured .link-title { font-size: var(--ra-text-lg); }

/* Grid and card layouts stack the content instead of using the pill row. */
.layout-grid a.link, .layout-cards a.link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--ra-space-2);
  border-radius: var(--ra-card-radius);
}
.layout-grid a.link::after, .layout-cards a.link::after { display: none; }
.layout-grid a.link { min-height: 7rem; }
.layout-cards a.link { padding: var(--ra-space-5) var(--ra-space-4); }
.layout-cards .link-title { font-size: var(--ra-text-lg); }

@media (hover: hover) {
  .social:hover { transform: translateY(-2px); color: var(--ra-color-accent); }
  .tabs a:not([aria-current="page"]):hover { background-color: var(--ra-color-accent-edge); }
  a.link:hover {
    transform: translateY(-2px);
    box-shadow: var(--ra-shadow-lift);
    filter: brightness(1.06);
  }
}
a.link:active, .social:active { transform: translateY(0) scale(0.985); }

/* Collapsible sections: native details, rotating chevron, smooth open and close. */
.section, .tab-section {
  border: 1px solid var(--ra-color-border);
  border-radius: var(--ra-card-radius);
  background-color: var(--ra-color-surface);
  box-shadow: var(--ra-shadow-card);
}
.section summary, .tab-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ra-space-3);
  min-height: calc(var(--ra-tap) + var(--ra-space-3));
  padding: var(--ra-space-3) var(--ra-space-4);
  border-radius: var(--ra-card-radius);
  cursor: pointer;
  list-style: none;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--ra-font-heading);
  font-size: var(--ra-text-lg);
  font-weight: 700;
  line-height: 1.25;
}
.section summary::-webkit-details-marker, .tab-section > summary::-webkit-details-marker { display: none; }
.section summary::after, .tab-section > summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.2rem;
  border-right: 2px solid var(--ra-color-accent);
  border-bottom: 2px solid var(--ra-color-accent);
  transform: rotate(45deg);
  transition: transform var(--ra-duration) var(--ra-ease);
}
.section[open] > summary::after, .tab-section[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.section > .section-subtitle { margin: calc(var(--ra-space-2) * -1) 0 var(--ra-space-3); padding: 0 var(--ra-space-4); }
.section .section-links { padding: 0 var(--ra-space-3) var(--ra-space-3); }
.section a.link { box-shadow: none; }
.section[open] .section-links, .tab-section[open] > .blocks { animation: ra-reveal 260ms var(--ra-ease) both; }
@supports selector(::details-content) {
  .section[open] .section-links, .tab-section[open] > .blocks { animation: none; }
  .section::details-content, .tab-section::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size 260ms var(--ra-ease), opacity 200ms, content-visibility 260ms allow-discrete;
  }
  .section[open]::details-content, .tab-section[open]::details-content { block-size: auto; opacity: 1; }
}

/* page_layout: sections. The first tab is the page; every other tab is a card-like
   <details> after it. The title is a heading inside the summary, so the page
   keeps an outline and the whole row is the 44 px target. */
.tab-section { flex: none; margin-top: var(--ra-space-4); }
/* The page gutter is margin here, not padding, so the card's edge is the edge of
   the link buttons above it (`main > :not(.tabs)` would pad the box instead). */
main > .tab-section { padding-inline: 0; margin-inline: var(--ra-gutter); }
.tab-section:last-of-type { margin-bottom: auto; }
.tab-section-title { flex: 1 1 auto; min-width: 0; margin: 0; font: inherit; letter-spacing: inherit; overflow-wrap: anywhere; text-wrap: balance; }
.tab-section > .blocks { flex: none; padding: 0 var(--ra-space-3) var(--ra-space-3); }
.blocks:has(~ .tab-section) { flex: 0 0 auto; }

/* Other blocks. */
.text { max-width: var(--ra-measure); padding: 0 var(--ra-space-1); }
.text h2, .text h3 { margin: var(--ra-space-4) 0 var(--ra-space-2); }
.text ul { list-style: disc; padding-left: var(--ra-space-5); }
.block-image img, .image { display: block; max-width: 100%; height: auto; border-radius: var(--ra-card-radius); box-shadow: var(--ra-shadow-card); }
.divider {
  height: 1px;
  margin: var(--ra-space-2) 0;
  border: 0;
  background-image: linear-gradient(90deg, transparent, var(--ra-color-border) 20%, var(--ra-color-border) 80%, transparent);
}
.empty { padding: var(--ra-space-5) 0; color: var(--ra-color-muted); text-align: center; }

/* Profile card: name, topic chips and the media-kit button, after the content. */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ra-space-3);
  margin-top: var(--ra-space-5);
  padding: var(--ra-space-4);
  border: 1px solid var(--ra-color-border);
  border-radius: var(--ra-card-radius);
  background-color: var(--ra-color-surface);
  box-shadow: var(--ra-shadow-card);
  color: var(--ra-color-text);
  text-align: center;
}
.profile-title { font-size: var(--ra-text-lg); overflow-wrap: anywhere; }
.profile-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ra-space-2); min-width: 0; }
.profile-tag {
  padding: var(--ra-space-1) var(--ra-space-3);
  border: 1px solid var(--ra-color-border);
  border-radius: var(--ra-button-radius);
  background-color: var(--ra-color-accent-soft);
  color: var(--ra-color-text);
  font-size: var(--ra-text-sm);
  overflow-wrap: anywhere;
}
.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ra-tap);
  max-width: 100%;
  padding: 0 var(--ra-space-5);
  border: 1px solid var(--ra-color-accent-edge);
  border-radius: var(--ra-button-radius);
  background-color: var(--ra-color-accent);
  color: var(--ra-color-on-accent);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* Footer, cookie notice, privacy page. */
main > footer { margin-top: var(--ra-space-5); color: var(--ra-color-muted); font-size: var(--ra-text-sm); text-align: center; }
.disclosure { max-width: min(30rem, 100%); margin: 0 auto var(--ra-space-3); color: var(--ra-color-muted); font-size: var(--ra-text-xs); text-wrap: balance; }
.credit a { display: inline-block; padding: var(--ra-space-3); color: var(--ra-color-muted); }
.privacy-link a { display: inline-block; padding: var(--ra-space-3); color: var(--ra-color-muted); }
.cookie-banner {
  margin-top: var(--ra-space-4);
  padding: var(--ra-space-4);
  border: 1px solid var(--ra-color-border);
  border-radius: var(--ra-card-radius);
  background-color: var(--ra-color-surface);
  box-shadow: var(--ra-shadow-card);
  color: var(--ra-color-text);
  text-align: left;
}
.cookie-banner form { display: flex; flex-wrap: wrap; gap: var(--ra-space-2); }
.cookie-banner button {
  min-height: var(--ra-tap);
  padding: 0 var(--ra-space-4);
  border: 1px solid var(--ra-color-border);
  border-radius: var(--ra-button-radius);
  background-color: var(--ra-color-surface);
  color: var(--ra-color-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cookie-banner button[value="accept"] {
  border-color: var(--ra-color-accent);
  background-color: var(--ra-color-accent);
  color: var(--ra-color-on-accent);
}
.privacy { max-width: var(--ra-measure); padding: var(--ra-space-2) var(--ra-space-1); }
.collected { display: flex; flex-direction: column; gap: var(--ra-space-3); margin-bottom: var(--ra-space-4); }
.collected li {
  padding: var(--ra-space-3) var(--ra-space-4);
  border: 1px solid var(--ra-color-border);
  border-radius: var(--ra-card-radius);
  background-color: var(--ra-color-surface);
}
.collected p { margin-bottom: var(--ra-space-1); }

/* One page-load moment: the header settles, then the first cards rise. */
@keyframes ra-rise {
  from { opacity: 0; transform: translateY(0.6rem); }
  to { opacity: 1; transform: none; }
}
@keyframes ra-reveal {
  from { opacity: 0; transform: translateY(-0.25rem); }
  to { opacity: 1; transform: none; }
}
.site-header { animation: ra-rise 420ms var(--ra-ease) both; }
.blocks > li { animation: ra-rise 420ms var(--ra-ease) both; }
.blocks > li:nth-child(1) { animation-delay: 60ms; }
.blocks > li:nth-child(2) { animation-delay: 110ms; }
.blocks > li:nth-child(3) { animation-delay: 160ms; }
.blocks > li:nth-child(4) { animation-delay: 210ms; }
.blocks > li:nth-child(n+5) { animation-delay: 250ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::details-content {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Touch screens: a finger needs 44 px, so every control keeps that height. A
   link row may be taller on a phone already; the footer link and the inline
   buttons are the ones that would fall short. */
@media (pointer: coarse) {
  .privacy-link a,
  .credit a,
  .not-found a,
  .profile-button,
  .cookie-banner button,
  .crypto-qr summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--ra-tap);
    min-width: var(--ra-tap);
  }
  .tabs a { min-height: max(3rem, var(--ra-tap)); }
  a.link { min-height: max(4rem, calc(var(--ra-tap) + var(--ra-space-4))); }
}

/* Tablet and up (768 px at the default font size). The breakpoints are in rem,
   so a visitor with a larger default font size gets the roomier layout later,
   when there is really room for it. */
@media (min-width: 48rem) {
  main { max-width: max(var(--ra-column-width), var(--ra-column-tablet)); }
  .site-header { padding-top: var(--ra-space-6); }
  .tabs a { padding: 0 var(--ra-space-5); }
  /* The centered header lays the avatar beside the name and icons. Without an
     avatar it stays the centered column, so these child rules need the guard
     (align-self would otherwise beat the column's align-items, #236). */
  .header-centered:has(> .avatar) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "avatar name" "avatar socials";
    justify-items: start;
    align-content: center;
    column-gap: var(--ra-space-5);
    row-gap: var(--ra-space-2);
    text-align: left;
  }
  .header-centered:has(> .avatar) > .avatar { grid-area: avatar; align-self: center; }
  .header-centered:has(> .avatar) > h1 { grid-area: name; align-self: end; }
  .header-centered:has(> .avatar) > .socials {
    grid-area: socials;
    align-self: start;
    justify-content: flex-start;
    margin-left: calc(var(--ra-space-2) * -1);
  }
}

/* Desktop (896 px): the column grows again and link groups take two columns. */
@media (min-width: 56rem) {
  main { max-width: max(var(--ra-column-width), var(--ra-column-desktop)); }
  /* Two columns by wrapping flex, like grid and cards: a row that is not full
     (an odd run of link cards before a full-width block, or at the end) is
     centered at one column width instead of leaving a hole, wherever it falls
     and however long the run is. Source order is the visual order. */
  .blocks.layout-list, .section-links.layout-list {
    display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center;
    gap: var(--ra-space-3);
  }
  .blocks.layout-list { gap: var(--ra-space-4) var(--ra-space-3); }
  .layout-list > * { flex: 0 0 calc((100% - var(--ra-space-3)) / 2); max-width: 100%; min-width: 0; }
  .layout-list > .block-section, .layout-list > .block-text, .layout-list > .block-image,
  .layout-list > .block-divider, .layout-list > .block-crypto, .layout-list > .block-platforms,
  .layout-list > .block-email, .layout-list > .block-live,
  .layout-list > .block-link:has(> a.link-featured) { flex: 0 0 100%; width: 100%; }
  .layout-list > .block-section { align-self: flex-start; }
  .hero-card:has(> .avatar) { flex-direction: row; justify-content: center; gap: var(--ra-space-6); }
  .hero-card:has(> .avatar) h1 { text-align: left; }
}

/* Print: no background, plain text on paper, every link's address visible. */
@media print {
  body { background: none; color: CanvasText; }
  body::before, .tabs, .skip-link, .cookie-banner, .copy-button { display: none; }
  main { max-width: none; min-height: 0; padding: 0; }
  main > :not(.tabs) { padding-inline: 0; }
  .site-header, .blocks > li, .section[open] .section-links, .tab-section[open] > .blocks { animation: none; }
  .section::details-content, .tab-section::details-content { block-size: auto; opacity: 1; content-visibility: visible; }
  a, a.link { color: CanvasText; }
  a.link, .section, .tab-section, .profile-card, .crypto-card {
    border: 1px solid CanvasText;
    background: none;
    box-shadow: none;
    break-inside: avoid;
  }
  a.link { display: block; text-align: left; }
  .link-chip, .link-thumb { display: none; }
  a.link::after, a.link-featured::after {
    content: attr(href);
    display: block;
    width: auto;
    height: auto;
    background: none;
    margin-top: var(--ra-space-1);
    font-size: var(--ra-text-xs);
    overflow-wrap: anywhere;
  }
  .link-subtitle, .section-subtitle { color: CanvasText; }
  .profile-button[href]::after, .image-link[href]::after {
    content: " (" attr(href) ")";
  }
}
