/* Omarchy-inspired layout: mono utility type, crisp rules and a dithered hero.
   All artwork is CSS-generated; no reference-site assets are used. */
:root {
  color-scheme: light;
  --canvas: #fff;
  --hero: #f2f3f5;
  --ink: #17191b;
  --secondary: #55595e;
  --muted: #767a7f;
  --rule: #e2e3e5;
  --button: #626467;
  --button-text: #fff;
  font-family: "code", "JetBrains Mono", ui-monospace, monospace;
}
[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #151618;
  --hero: #1e2023;
  --ink: #f3f3f3;
  --secondary: #c6c6c8;
  --muted: #9b9da1;
  --rule: #373a3d;
  --button: #c6c8cc;
  --button-text: #17191b;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 0; min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
h1, h3, p { margin: 0; }
/* A quiet pixel-print edge echoes the reference without reusing its assets. */
.bg-decor { position: absolute; inset: 0 0 auto; height: clamp(380px, 49vh, 500px); overflow: hidden; pointer-events: none; background: var(--hero); }
#particles { display: block; width: 100%; height: 100%; }
.bg-blob, .bg-grid, .bg-corner, .bg-spark { display: none; }
.wrap { position: relative; width: 100%; padding: 0; }
.card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; min-height: clamp(380px, 49vh, 500px); padding: 48px 24px 54px; text-align: center; }
.avatar-box { display: grid; place-items: center; }
.avatar-3d { width: 86px; height: 86px; display: grid; place-items: center; }
.avatar-ring, .avatar-glow { display: none; }
.avatar { width: 76px; height: 76px; overflow: hidden; border: 1px solid var(--rule); border-radius: 50%; background: var(--canvas); }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.meta { display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.name { font-family: "Maki Pixel", "code", monospace; font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700; letter-spacing: 0; line-height: 1.12; white-space: nowrap; }
.motto { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 18px; font-size: .88rem; font-weight: 600; }
.motto-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gpg-info { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 28px; font-size: .76rem; color: var(--secondary); }
.gpg-label { font-weight: 700; }
.gpg-link { display: inline-flex; align-items: center; gap: 5px; border-bottom: 1px solid var(--rule); }
.gpg-link:hover { border-color: currentColor; }
.link-icon { width: 13px; height: 13px; }
.subtitle { max-width: 46ch; margin-top: 18px; color: var(--secondary); font-size: clamp(.9rem, 1.5vw, 1.02rem); line-height: 1.75; }
/* The navigation is one section with four destinations, not floating tiles. */
.bento-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: min(1104px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 48px; }
.bento-item { position: relative; display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: start; align-items: start; column-gap: 13px; min-height: 152px; padding: 22px; border: 1px solid var(--rule); background: var(--canvas); transition: border-color .18s ease, background-color .18s ease; }
.bento-item:hover { border-color: var(--muted); background: var(--hero); }
.bento-icon { grid-column: 1; grid-row: 1; width: 23px; height: 23px; color: var(--secondary); }
.bento-icon svg { display: block; width: 100%; height: 100%; }
.bento-code { grid-column: 2; grid-row: 1; align-self: center; color: var(--secondary); font-size: .72rem; letter-spacing: .06em; }
.bento-text { grid-column: 1 / -1; grid-row: 2; align-self: end; padding-top: 26px; }
.bento-text h3 { font-family: "hm", system-ui, sans-serif; font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
.bento-arrow { grid-column: 3; grid-row: 1; display: inline-block; font: 1.15rem/1 "code", monospace; transition: transform .2s ease; }
.bento-item:hover .bento-arrow { transform: translate(3px, -3px); }
footer { padding: 0 24px 32px; text-align: center; color: var(--muted); font-size: .73rem; line-height: 1.8; }
.footer-icp a { border-bottom: 1px solid var(--rule); }
.footer-icp a:hover { color: var(--ink); border-color: currentColor; }
.mobile-only { display: none; }
.theme-hint { position: fixed; right: 22px; bottom: 20px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--rule); background: var(--canvas); color: var(--secondary); font: .7rem/1 "code", monospace; pointer-events: none; }
.theme-hint-icon { display: none; width: 13px; height: 13px; }
[data-theme="light"] .theme-hint-moon, [data-theme="dark"] .theme-hint-sun { display: block; }
@media (max-width: 700px) {
  .bg-decor, .card { min-height: 0; height: auto; }
  .bg-decor { height: 430px; }
  .card { min-height: 430px; padding: 55px 24px 60px; }
  .name { font-size: clamp(2rem, 8vw, 3.5rem); }
  .bento-nav { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 12px; padding: 44px 0 48px; }
  .bento-item { min-height: 118px; padding: 18px 22px; }
  .bento-text { padding-top: 16px; }
  .theme-hint { display: none; }
  .desktop-only { display: none; }
  .mobile-only { display: block; }
}
@media (max-width: 360px) {
  .card { padding-left: 14px; padding-right: 14px; }
  .name { font-size: 2rem; }
  .motto { font-size: .76rem; }
  .gpg-info { flex-wrap: wrap; font-size: .69rem; }
  .bento-nav { width: calc(100% - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
