  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/inter-latin.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: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('fonts/jetbrainsmono-latin.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;
  }
  :root {
    --bg: #f6f6f9;
    --bg-elev: #ffffff;
    --bg-card: #ffffff;
    --border: rgba(15, 15, 30, 0.08);
    --border-strong: rgba(15, 15, 30, 0.14);
    --text: #0e0e18;
    --text-dim: #4a4a5a;
    --text-mute: #8a8a98;
    --accent: #6d5cf6;
    --accent-2: #06b6d4;
    --accent-3: #ec4899;
    --grad: linear-gradient(135deg, #6d5cf6 0%, #ec4899 50%, #06b6d4 100%);
    --grad-soft: linear-gradient(135deg, rgba(109,92,246,.08), rgba(6,182,212,.08));
    --radius: 22px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(15,15,30,.04), 0 12px 40px -12px rgba(15,15,30,.12);
    --shadow-hover: 0 1px 2px rgba(15,15,30,.06), 0 24px 60px -20px rgba(109,92,246,.35);
  }
  /* Dark theme — applied either via system preference (when no manual override)
     or explicitly when data-theme="dark" is set on <html>. */
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #07070d;
      --bg-elev: #0f0f18;
      --bg-card: #12121d;
      --border: rgba(255, 255, 255, 0.07);
      --border-strong: rgba(255, 255, 255, 0.14);
      --text: #f3f3f7;
      --text-dim: #a8a8b8;
      --text-mute: #6b6b7a;
      --grad-soft: linear-gradient(135deg, rgba(109,92,246,.16), rgba(6,182,212,.12));
      --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 50px -16px rgba(0,0,0,.6);
      --shadow-hover: 0 1px 2px rgba(0,0,0,.5), 0 28px 70px -20px rgba(109,92,246,.5);
    }
    :root:not([data-theme="light"]) .orb { opacity: .45; }
    :root:not([data-theme="light"]) .icon { color: #a99bff; }
  }
  :root[data-theme="dark"] {
    --bg: #07070d;
    --bg-elev: #0f0f18;
    --bg-card: #12121d;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f3f3f7;
    --text-dim: #a8a8b8;
    --text-mute: #6b6b7a;
    --grad-soft: linear-gradient(135deg, rgba(109,92,246,.16), rgba(6,182,212,.12));
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 50px -16px rgba(0,0,0,.6);
    --shadow-hover: 0 1px 2px rgba(0,0,0,.5), 0 28px 70px -20px rgba(109,92,246,.5);
  }
  :root[data-theme="dark"] .orb { opacity: .45; }
  :root[data-theme="dark"] .icon { color: #a99bff; }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
  }
  a { color: inherit; text-decoration: none; }
  ::selection { background: var(--accent); color: #fff; }

  /* Subtle background orbs */
  .orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
  .orb {
    position: absolute; border-radius: 50%;
    filter: blur(100px); opacity: .35;
    animation: drift 24s ease-in-out infinite;
  }
  @media (prefers-color-scheme: dark) { .orb { opacity: .45; } }
  .orb.a { width: 480px; height: 480px; background: #6d5cf6; top: -160px; left: -120px; }
  .orb.b { width: 420px; height: 420px; background: #06b6d4; bottom: -140px; right: -100px; animation-delay: -10s; }
  .orb.c { width: 320px; height: 320px; background: #ec4899; top: 40%; left: 50%; animation-delay: -16s; opacity: .2; }
  @keyframes drift {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(40px,-30px) scale(1.08); }
  }

  /* Top bar */
  .topbar {
    position: relative; z-index: 10;
    display: flex; justify-content: flex-end; align-items: center;
    padding: 22px clamp(20px, 5vw, 48px);
    font-size: 14px;
  }
  .brand {
    font-weight: 700; letter-spacing: -0.01em;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .brand .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18);
  }
  .controls { display: inline-flex; gap: 8px; align-items: center; }
  .pill {
    display: inline-flex; gap: 2px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
  }
  .pill button {
    appearance: none; border: 0; background: transparent;
    color: var(--text-dim); cursor: pointer;
    padding: 6px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 600; letter-spacing: .04em;
    font-family: inherit;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s;
  }
  .pill.icons button { padding: 6px 9px; }
  .pill button svg { width: 14px; height: 14px; display: block; }
  .pill button .flag {
    width: 20px; height: 14px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px var(--border-strong);
  }
  [data-lang] { padding: 6px 9px !important; }
  .pill button.active {
    background: var(--text); color: var(--bg);
  }

  /* Main */
  main {
    position: relative; z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 20px clamp(20px, 5vw, 32px) 80px;
  }

  /* Hero card */
  .hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(28px, 5vw, 44px);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: ''; position: absolute; inset: 0;
    background: var(--grad-soft);
    pointer-events: none;
  }
  .hero-inner { position: relative; }
  .avatar-wrap {
    display: flex; justify-content: center;
    margin-bottom: 22px;
  }
  .avatar {
    width: 128px; height: 128px;
    border-radius: 50%;
    background: var(--grad);
    padding: 3px;
    box-shadow: 0 20px 50px -15px rgba(109,92,246,.5);
  }
  .avatar img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-card);
    display: block;
  }
  h1 {
    margin: 0 0 6px;
    font-size: clamp(32px, 6vw, 44px);
    font-weight: 700;
    letter-spacing: -0.025em;
    text-align: center;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .tagline {
    text-align: center;
    color: var(--text-dim);
    font-size: 15px;
    margin-bottom: 8px;
  }
  .cdom-explain {
    display: flex; align-items: center; justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }
  .phon {
    display: inline-flex;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px; font-weight: 600;
    background: var(--bg-elev);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 4px 10px;
    letter-spacing: -.01em;
  }
  .phon-c {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 2px;
  }
  .phon-dom { color: var(--text-dim); }
  .phon-arrow { width: 16px; height: 16px; color: var(--text-mute); }
  .phon-spell {
    font-style: italic;
    color: var(--text-dim);
    font-size: 14px;
  }
  .since {
    text-align: center;
    color: var(--text-mute);
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 26px;
  }

  .cta-row {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  }
  .btn {
    appearance: none; border: 0; cursor: pointer;
    font-family: inherit; font-size: 14px; font-weight: 600;
    padding: 12px 20px; border-radius: 12px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: transform .15s, box-shadow .2s, background .2s;
  }
  .btn-primary {
    background: var(--text); color: var(--bg);
  }
  .btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
  .btn-ghost {
    background: transparent; color: var(--text);
    border: 1px solid var(--border-strong);
  }
  .btn-ghost:hover { background: var(--bg-elev); }
  .btn svg { width: 16px; height: 16px; }

  /* Section title */
  .section-title {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--text-mute);
    margin: 38px 6px 14px;
    font-family: 'JetBrains Mono', monospace;
  }

  /* Contact list */
  .list {
    display: grid; gap: 10px;
  }
  .item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .2s, border-color .2s;
  }
  .item:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-hover);
  }
  .icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--grad-soft);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
  }
  .icon svg, .icon img { width: 20px; height: 20px; object-fit: contain; }
  .item-text { flex: 1; min-width: 0; }
  .item-label {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-mute);
    margin-bottom: 2px;
  }
  .item-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--text);
    word-break: break-all;
  }
  .copy {
    appearance: none; border: 1px solid var(--border-strong);
    background: transparent; color: var(--text-dim);
    width: 34px; height: 34px; border-radius: 8px;
    cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
  }
  .copy:hover { background: var(--bg-elev); color: var(--text); }
  .copy svg { width: 15px; height: 15px; }
  .copy.copied { color: #22c55e; border-color: #22c55e; }

  /* PGP fingerprint card */
  .pgp {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    box-shadow: var(--shadow);
  }
  .pgp-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
  }
  .pgp-label {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-mute);
  }
  .pgp-fp {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text);
    word-break: break-all;
    background: var(--bg-elev);
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
  }
  .pgp-fp > span { flex: 1; }

  .wkd {
    margin-top: 12px;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    font-size: 12px;
    color: var(--text-dim);
  }
  .wkd svg { width: 16px; height: 16px; color: #22c55e; flex-shrink: 0; }
  .wkd strong { color: var(--text); font-weight: 600; }

  footer {
    text-align: center;
    padding: 40px 20px 20px;
    color: var(--text-mute);
    font-size: 12px;
    position: relative; z-index: 1;
  }
  footer a { color: var(--text-dim); border-bottom: 1px solid var(--border-strong); }

  /* Toast */
  .toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text); color: var(--bg);
    padding: 10px 18px; border-radius: 999px;
    font-size: 13px; font-weight: 500;
    opacity: 0; pointer-events: none;
    transition: all .25s;
    z-index: 100;
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  .pgp-key-btn {
    width: auto; padding: 0 10px; text-decoration: none;
    font-size: 11px; font-family: 'JetBrains Mono', monospace;
  }
  .pgp-key-btn svg { margin-right: 6px; }
  .matomo-pixel { border: 0; }

  /* Recolors the adminForge logo to match the violet brand color */
  .adminforge-logo {
    filter: hue-rotate(65deg) saturate(2) brightness(1.1);
  }
  :root[data-theme="dark"] .adminforge-logo,
  :root:not([data-theme="light"]) .adminforge-logo {
    filter: hue-rotate(65deg) saturate(2) brightness(1.2);
  }
