:root {
  --bg: #0d0d0e;
  --panel: #151517;
  --line: #26262a;
  --text: #ececee;
  --muted: #8d8d95;
  --accent: #f5a524;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(13,13,14,.92); backdrop-filter: blur(6px); z-index: 5; }
.top-in { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.logo { font-weight: 700; font-size: 17px; }
.logo span { color: var(--accent); }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); font-size: 14px; transition: color .15s; }
nav a:hover { color: var(--text); }

/* hero */
.hero { padding: 80px 0 64px; display: flex; align-items: center; gap: 36px; }
.avatar { width: 160px; height: 160px; object-fit: cover; border: 1px solid var(--line); outline: 2px solid var(--accent); outline-offset: 4px; flex-shrink: 0; filter: grayscale(1); }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 i { font-style: normal; color: var(--muted); font-size: 14px; transition: color .15s; }
.card:hover h3 i { color: var(--accent); }
.prompt { color: var(--accent); font-size: 14px; margin-bottom: 14px; }
h1 { font-size: clamp(44px, 9vw, 84px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.lead { color: var(--muted); max-width: 560px; margin: 22px 0 30px; }

.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { border: 1px solid var(--line); padding: 9px 18px; font-size: 14px; transition: border-color .15s, color .15s; }
.btn:hover { border-color: var(--accent); color: var(--accent); }

/* sections */
section { margin-bottom: 72px; }
.sec-head { margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
h2 { font-size: 24px; }
.sec-head p { color: var(--muted); font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); padding: 22px; position: relative; transition: border-color .15s; }
.card:hover { border-color: var(--accent); }
.num { position: absolute; top: 18px; right: 20px; color: var(--line); font-size: 28px; font-weight: 700; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; color: var(--accent); border: 1px solid var(--line); padding: 2px 8px; }

.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.spec div { background: var(--panel); border: 1px solid var(--line); padding: 16px 20px; }
.spec span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.spec b { font-size: 17px; }

.foot { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 13px; }

/* easter egg toast */
#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: #000; border: 1px solid var(--accent); color: var(--accent);
  padding: 12px 18px; font-size: 13px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  nav { gap: 14px; }
  nav a { font-size: 13px; }
  .hero { padding: 48px 0 40px; flex-direction: column; align-items: flex-start; gap: 28px; }
  .avatar { width: 120px; height: 120px; }
  .top-in { height: auto; padding: 12px 20px; flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
