/* ──────────────────────────────────────────────────────────
   royal@sec — terminal portfolio
   ────────────────────────────────────────────────────────── */

:root {
  --bg: #07090d;
  --panel: #0d121a;
  --panel-2: #0a0e15;
  --bar-1: #2d3849;
  --bar-2: #232b39;
  --line: #3b485b;
  --line-soft: #26303e;
  --line-faint: #1b2330;
  --text: #9aa5b4;
  --bright: #e7ecf3;
  --muted: #6c7787;
  --orange: #f0a050;
  --orange-bright: #ffc07a;
  --orange-dim: #b5712f;
  --green: #7fd6a0;
  --red: #e07a5f;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pixel: "Silkscreen", "Courier New", monospace;
  --radius: 3px;
  --shadow: 0 34px 80px -20px rgba(0, 0, 0, 0.75), 0 6px 22px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.7 var(--mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
::selection { background: var(--orange); color: #150f06; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #080b10; }
::-webkit-scrollbar-thumb { background: #2b3545; border: 2px solid #080b10; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3d4a5e; }

:focus-visible {
  outline: 1px dashed var(--orange);
  outline-offset: 3px;
}

/* ── backdrop ───────────────────────────────────────────── */
.backdrop {
  position: fixed; inset: -30px; z-index: -2;
  overflow: hidden; pointer-events: none;
}
.backdrop img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(1.5px) brightness(0.62) contrast(1.06) saturate(1.02);
  transform: scale(1.03);
}
.backdrop::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 10%, rgba(7, 9, 13, 0.04), rgba(7, 9, 13, 0.26) 62%, rgba(5, 7, 10, 0.72) 100%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.36), rgba(5, 7, 11, 0.02) 32%, rgba(5, 7, 11, 0.55));
}

.spotlight {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(540px circle at var(--mx, 50%) var(--my, 26%),
    rgba(255, 176, 103, 0.12), rgba(255, 176, 103, 0.04) 38%, transparent 68%);
}
@media (hover: none) { .spotlight { display: none; } }

.crt {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0, rgba(0, 0, 0, 0.22) 1px, transparent 1px, transparent 3px);
  opacity: 0.32;
  mix-blend-mode: multiply;
}
.crt::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.5) 100%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 59; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  opacity: 0.35; mix-blend-mode: overlay;
}

/* ── top bar ────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  height: 44px; padding: 0 20px;
  background: rgba(6, 8, 12, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}
.host { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.host-square {
  width: 12px; height: 12px; background: var(--orange);
  box-shadow: 0 0 12px rgba(240, 160, 80, 0.45);
}
.host-name { font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em; }
.host-name .host-at { color: #55616f; }
.host-name .host-path { color: #7c8796; }
.host:hover .host-name { color: #c9d2de; }

.topnav {
  display: flex; align-items: center; gap: 2px;
  margin-inline: auto;
  overflow-x: auto; scrollbar-width: none;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  position: relative; padding: 5px 11px; border-radius: 2px;
  font-size: 12.5px; color: #848f9f; white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
.topnav a::before {
  content: ""; position: absolute; left: 50%; bottom: -1px; width: 0; height: 1px;
  background: var(--orange); transform: translateX(-50%); transition: width 0.22s ease;
}
.topnav a:hover { color: #dfe6ee; background: rgba(255, 255, 255, 0.03); }
.topnav a.active { color: var(--orange); background: rgba(240, 160, 80, 0.07); }
.topnav a.active::before { width: 16px; }

.topbar-meta {
  display: flex; align-items: center; gap: 14px; flex-shrink: 0;
  font-size: 11.5px; color: var(--muted);
}
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 1px; width: 0;
  background: linear-gradient(90deg, var(--orange), var(--orange-bright));
  box-shadow: 0 0 8px rgba(240, 160, 80, 0.55);
  transition: width 0.1s linear;
}
.clock { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px rgba(127, 214, 160, 0.8);
}

/* ── layout ─────────────────────────────────────────────── */
.wrap {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(40px, 7vh, 78px) 0 34px;
  display: grid; gap: 30px;
}

/* ── window chrome ──────────────────────────────────────── */
.window {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  box-shadow: var(--shadow), inset 0 0 0 1px #05070a;
  overflow: hidden;
  scroll-margin-top: 66px;
}
.window-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 36px; padding: 0 12px 0 14px;
  background: linear-gradient(180deg, var(--bar-1), var(--bar-2));
  border-bottom: 1px solid #151c26;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.window-title {
  font-size: 12.5px; font-weight: 500; color: #c2ccda;
  letter-spacing: 0.04em; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
  display: inline-flex; align-items: center; gap: 8px;
}
.bar-status { color: #7f8b9c; font-weight: 400; font-size: 11.5px; }
.window-btns { display: inline-flex; gap: 6px; }
.window-btns i {
  width: 10px; height: 10px; display: block;
  background: linear-gradient(180deg, #333f52, #26303f);
  border: 1px solid #55657a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 1px 1px rgba(0, 0, 0, 0.4);
}
.window-body {
  padding: clamp(22px, 3.4vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent 180px),
    var(--panel);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* ── profile ────────────────────────────────────────────── */
.profile-body {
  display: grid; grid-template-columns: 248px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px); align-items: center;
  padding: clamp(24px, 3.6vw, 38px);
}

.avatar-frame {
  position: relative; padding: 6px;
  background: #0a0e15;
  border: 2px solid #46556a;
  box-shadow: inset 0 0 0 1px #10161f, 0 12px 30px rgba(0, 0, 0, 0.55);
}
.avatar {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  object-fit: cover; object-position: 50% 42%;
  filter: grayscale(1) contrast(1.08) brightness(0.94);
}
.avatar-frame::before {
  content: ""; position: absolute; inset: 6px; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply; opacity: 0.55;
}
.avatar-frame::after {
  content: ""; position: absolute; inset: 6px; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.5);
}
.avatar-tag {
  position: absolute; z-index: 2; left: 13px; bottom: 13px;
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #e3e9f1; background: rgba(5, 8, 12, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 3px 5px 2px;
}
.frame-tick {
  position: absolute; width: 7px; height: 7px; border: 1px solid var(--orange);
  opacity: 0.55; pointer-events: none;
}
.frame-tick.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.frame-tick.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.frame-tick.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.frame-tick.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

.profile-copy { min-width: 0; }
.term-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px;
  font-size: 12.5px; color: #c6cfdb; margin-bottom: 12px;
}
.p-user { color: var(--orange); }
.p-path { color: #778394; }
.term-caret {
  display: inline-block; color: var(--orange); font-size: 11px;
  transform: translateY(-1px);
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.pixel-name {
  font-family: var(--pixel); font-weight: 700;
  font-size: clamp(2.5rem, 5.2vw, 3.6rem);
  line-height: 1; color: #f4f7fb; letter-spacing: 0.015em;
  margin: 0 0 20px;
  display: flex; align-items: baseline; gap: 4px;
  text-shadow: 0 0 30px rgba(210, 226, 255, 0.12);
  transition: text-shadow 0.25s ease;
}
@media (hover: hover) {
  .pixel-name:hover {
    text-shadow: -2px 0 rgba(255, 95, 95, 0.45), 2px 0 rgba(101, 210, 255, 0.45),
      0 0 30px rgba(210, 226, 255, 0.12);
  }
}
.name-cursor {
  display: inline-block; width: 0.46em; height: 0.78em;
  background: var(--orange); align-self: center;
  box-shadow: 0 0 16px rgba(240, 160, 80, 0.45);
  animation: blink 1.15s steps(1) infinite;
}
.bio {
  max-width: 66ch; color: #aab4c2; font-size: 14px; line-height: 1.9;
  margin-bottom: 12px;
}
.bio strong { color: var(--bright); font-weight: 500; }
.bio:last-of-type { margin-bottom: 22px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px;
  font: 700 11.5px/1 var(--mono); letter-spacing: 0.04em;
  border: 1px solid transparent; border-radius: 2px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn-solid {
  background: var(--orange); color: #191006; border-color: #ffc07a;
  box-shadow: 0 7px 20px -8px rgba(240, 160, 80, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-solid:hover { background: var(--orange-bright); transform: translateY(-1px); }
.btn-outline {
  background: #10161f; color: #c6cfdb; border-color: #46556a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); }

/* ── section headings ───────────────────────────────────── */
.sec-head {
  display: flex; align-items: center; gap: 14px;
  font: 700 12.5px/1 var(--mono); letter-spacing: 0.16em;
  color: var(--orange); text-transform: uppercase;
  margin-bottom: 24px;
}
.sec-head::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, #3a4658, rgba(58, 70, 88, 0.1));
}

/* ── domain cards ───────────────────────────────────────── */
.domain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.domain {
  position: relative;
  padding: 20px 18px 22px;
  border: 1px solid #2c3747;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 65%), #0c1119;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.domain::before, .domain::after {
  content: ""; position: absolute; width: 9px; height: 9px;
  border: 0 solid var(--orange); opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.domain::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.domain::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.domain:hover::before, .domain:hover::after { opacity: 0.65; }
.domain:hover {
  border-color: rgba(240, 160, 80, 0.55);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(240, 160, 80, 0.05), transparent 65%), #0d131c;
}
.domain h3 {
  font: 700 12.5px/1.5 var(--mono); letter-spacing: 0.05em;
  color: var(--orange); margin-bottom: 12px;
}
.domain .idx { color: #8c5f30; margin-right: 4px; }
.domain p { font-size: 12.5px; line-height: 1.85; color: #98a3b2; }

/* ── projects ───────────────────────────────────────────── */
.repo-list { display: grid; gap: 10px; }
.repo-list a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px; align-items: start;
  padding: 15px 16px;
  border: 1px solid #293443; background: #0c1119;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.repo-list a:hover { border-color: #4b5a6d; background: #0f151f; }
.repo-idx { font-size: 12px; color: var(--orange-dim); padding-top: 2px; }
.repo-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.repo-main strong {
  font: 700 14px/1.4 var(--mono); color: #e2e8f0;
  display: inline-flex; align-items: center; gap: 8px;
}
.repo-main strong::after {
  content: "dir"; font-size: 9.5px; font-weight: 400; letter-spacing: 0.08em;
  color: #697586; border: 1px solid #303c4c; padding: 1px 5px; border-radius: 2px;
}
.repo-desc { font-size: 12.5px; line-height: 1.75; color: #8994a3; }
.repo-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 3px; }
.repo-tags em { font-style: normal; font-size: 11px; color: #a2733e; }
.repo-arrow {
  color: #5a6677; font-size: 15px; align-self: center;
  transition: color 0.2s ease, transform 0.2s ease;
}
.repo-list a:hover .repo-arrow { color: var(--orange); transform: translateX(3px); }

/* ── writeups ───────────────────────────────────────────── */
.log-list { border-top: 1px solid #222c39; }
.note { border-bottom: 1px solid #222c39; }
.note summary {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto;
  gap: 14px; align-items: center;
  padding: 13px 6px; cursor: pointer; list-style: none;
  transition: background 0.18s ease, padding 0.18s ease;
}
.note summary::-webkit-details-marker { display: none; }
.note summary:hover { background: rgba(240, 160, 80, 0.035); padding-left: 12px; }
.note[open] summary { background: rgba(240, 160, 80, 0.04); }
.note time { font-size: 11.5px; color: #657181; letter-spacing: 0.03em; }
.log-title { color: #c6cfdb; font-size: 13px; transition: color 0.18s ease; }
.note summary:hover .log-title, .note[open] .log-title { color: #f2f5f9; }
.log-tag { font-size: 11px; color: #a2733e; }
.note-plus {
  color: var(--orange); font-size: 14px; line-height: 1;
  transition: transform 0.22s ease;
}
.note[open] .note-plus { transform: rotate(45deg); }
.note p {
  padding: 2px 26px 16px 130px; margin: 0;
  color: #98a3b2; font-size: 12.5px; line-height: 1.8; max-width: 80ch;
}
.repo-more { margin: 14px 0 0; }
.repo-more a {
  font-size: 11.5px; color: #8d99a8; border-bottom: 1px dotted #3d495a;
  padding-bottom: 2px; transition: color 0.18s ease, border-color 0.18s ease;
}
.repo-more a:hover { color: var(--orange); border-color: var(--orange); }
.repo-more span { font-size: 10.5px; }

/* ── shell ──────────────────────────────────────────────── */
.shell-body { padding: 0; }
.terminal {
  background: #070b11;
  border-top: 0;
}
.term-out {
  height: 230px; overflow-y: auto;
  padding: 18px 20px 10px;
  font-size: 12.5px; line-height: 1.85; color: #afb9c6;
  scrollbar-width: thin; scrollbar-color: #2b3545 #070b11;
}
.term-out .tline { margin: 0 0 2px; white-space: pre-wrap; word-break: break-word; }
.term-out .t-cmd { color: #e6ebf2; }
.term-out .c-dim { color: #6d7889; }
.term-out .c-ok { color: var(--green); }
.term-out .c-acc { color: var(--orange); }
.term-out .c-err { color: var(--red); }
.term-out pre { margin: 2px 0 8px; font: inherit; color: #9fabb9; }
.term-out a {
  color: var(--orange); text-decoration: none;
  border-bottom: 1px dotted rgba(240, 160, 80, 0.45);
}
.term-out a:hover { color: var(--orange-bright); border-color: var(--orange-bright); }
.term-out .cmd-echo { margin-top: 7px; }
.term-banner {
  font-family: var(--pixel); font-size: 26px; line-height: 1.25;
  color: var(--orange); letter-spacing: 0.04em;
  margin: 4px 0 2px; text-shadow: 0 0 18px rgba(240, 160, 80, 0.25);
}

.term-form {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px 16px; border-top: 1px solid #151d28;
  background: #080c12;
}
.term-prompt { display: inline-flex; gap: 4px; font-size: 12.5px; white-space: nowrap; }
.term-input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0;
  font: 400 12.5px/1.5 var(--mono); color: #e7ecf3;
  caret-color: var(--orange); padding: 2px 0;
}
.term-input::placeholder { color: #4e5968; }
.term-form:focus-within .term-prompt .p-path { color: var(--orange); }

/* ── contact ────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px); align-items: start;
}
.contact-label {
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #657181; margin-bottom: 10px;
}
.email-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.email {
  font: 500 clamp(19px, 2.6vw, 26px)/1.3 var(--mono);
  color: #eef2f7; border-bottom: 1px dashed #445365; padding-bottom: 3px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.email:hover { color: var(--orange); border-color: var(--orange); }
.copy-btn {
  cursor: pointer; font: 700 10.5px/1 var(--mono); letter-spacing: 0.05em;
  color: #9aa5b4; background: #10161f; border: 1px solid #3b485b;
  padding: 7px 9px; border-radius: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.copy-btn:hover { color: var(--orange); border-color: var(--orange); }
.copy-btn.copied { color: var(--green); border-color: var(--green); }
.contact-note {
  display: flex; align-items: center; gap: 7px;
  margin-top: 16px; font-size: 11.5px; color: #74808f;
}

.socials { display: grid; gap: 0; border-top: 1px solid #222c39; }
.socials a {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 10px 4px; border-bottom: 1px solid #222c39;
  font-size: 12.5px; color: #b0bac7;
  transition: padding 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.socials a:hover { padding-left: 10px; color: var(--orange); background: rgba(240, 160, 80, 0.035); }
.social-handle {
  font-size: 11px; color: #657181;
  min-width: 0; max-width: 220px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.socials a span:last-child { color: #5a6677; font-size: 12px; }
.socials a:hover span:last-child { color: var(--orange); }

/* ── footer ─────────────────────────────────────────────── */
.footer {
  padding: 6px 4px 26px; display: grid; gap: 6px;
  font-size: 11.5px; color: #5f6a79;
}
.footer .p-user { color: #c08a4e; }
.footer .p-path { color: #66717f; }
.footer-meta a { color: #8b96a5; border-bottom: 1px dotted #3d495a; }
.footer-meta a:hover { color: var(--orange); }

/* ── reveal ─────────────────────────────────────────────── */
body.reveal-ready .window { opacity: 0; transform: translateY(14px); }
body.reveal-ready .window.in {
  opacity: 1; transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .profile-body { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
  .domain-grid { grid-template-columns: 1fr 1fr; }
  .domain:last-child { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .topbar-meta .clock { display: none; }
}

@media (max-width: 740px) {
  .wrap { width: calc(100% - 24px); padding-top: 26px; gap: 20px; }
  .profile-body { grid-template-columns: 1fr; gap: 22px; }
  .avatar-frame { max-width: 280px; width: 100%; margin-inline: auto; }
  .profile-copy { text-align: left; }
  .pixel-name { margin-bottom: 16px; }
  .domain-grid { grid-template-columns: 1fr; }
  .domain:last-child { grid-column: auto; }
  .note summary { grid-template-columns: 86px minmax(0, 1fr) auto; }
  .log-tag { display: none; }
  .note p { padding-left: 6px; padding-right: 10px; }
  .topbar { padding: 0 12px; height: 42px; gap: 10px; }
  .host-name { font-size: 11.5px; }
  .topnav { margin-inline: auto; }
  .topnav a { padding: 5px 8px; font-size: 11.5px; }
  .topbar-meta { display: none; }
  .window-bar { height: 33px; }
  .window-title { font-size: 11.5px; }
  .sec-head { font-size: 11.5px; margin-bottom: 18px; }
  .term-out { height: 230px; padding: 14px 14px 8px; }
  .term-form { padding: 10px 14px 13px; }
  .footer { font-size: 10.5px; }
}

@media (max-width: 600px) {
  .host-name { display: none; }
  .topnav a { padding: 5px 7px; font-size: 11px; }
  .topnav a:nth-child(3) { display: none; } /* ~/writeups still reachable below */
}

@media (max-width: 520px) {
  .actions { gap: 8px; }
  .btn { height: 34px; padding: 0 12px; font-size: 10.5px; }
  .repo-list a { grid-template-columns: auto minmax(0, 1fr); }
  .repo-arrow { display: none; }
  .note summary { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .social-handle { max-width: 150px; }
  .email { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .window { opacity: 1; transform: none; }
}
