/* ---------------------------------------------------
   Janyris — portfolio
   Dark by default (moderate depth, clear surface hierarchy),
   with a light theme available via the toggle.
--------------------------------------------------- */

:root {
  /* dark (default) */
  --bg: #1b2340;
  --bg-alt: #232c4d;
  --bg-raise: #2c355c;
  --accent: #6f82ff;
  --accent-soft: rgba(111, 130, 255, 0.16);
  --accent-line: rgba(111, 130, 255, 0.42);
  --text: #eef0fb;
  --text-dim: #aab0d6;
  --text-faint: #8e94bf;
  --border: rgba(238, 240, 251, 0.09);
  --border-strong: rgba(238, 240, 251, 0.18);
  --shadow: 0 30px 80px -20px rgba(2, 4, 14, 0.55);
  --topbar-bg: rgba(27, 35, 64, 0.82);
  --overlay-scrim: rgba(4, 6, 14, 0.55);
  color-scheme: dark;

  --pill-about: #a9b4d0;       --pill-about-bg: rgba(169, 180, 208, 0.14);
  --pill-projects: #8b96ff;    --pill-projects-bg: rgba(139, 150, 255, 0.16);
  --pill-notes: #f0b155;       --pill-notes-bg: rgba(240, 177, 85, 0.16);
  --pill-ai: #b79bff;          --pill-ai-bg: rgba(183, 155, 255, 0.16);
  --pill-contact: #5fe0ac;     --pill-contact-bg: rgba(95, 224, 172, 0.16);
  --pill-personal: #f28fb0;    --pill-personal-bg: rgba(242, 143, 176, 0.16);

  --radius: 8px;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-display: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-name: 'Michroma', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
  --bg: #f0e9d4;
  --bg-alt: #e4d9b8;
  --bg-raise: #d8cba0;
  --accent: #3b4bd1;
  --accent-soft: rgba(59, 75, 209, 0.14);
  --accent-line: rgba(59, 75, 209, 0.4);
  --text: #0a1240;
  --text-dim: #33396b;
  --text-faint: #545981;
  --border: rgba(10, 18, 64, 0.14);
  --border-strong: rgba(10, 18, 64, 0.28);
  --shadow: 0 30px 80px -20px rgba(10, 18, 64, 0.22);
  --topbar-bg: rgba(240, 233, 212, 0.82);
  --overlay-scrim: rgba(10, 18, 64, 0.35);
  color-scheme: light;

  --pill-about: #475569;       --pill-about-bg: rgba(71, 85, 105, 0.1);
  --pill-projects: #4f46e5;    --pill-projects-bg: rgba(79, 70, 229, 0.1);
  --pill-notes: #b45309;       --pill-notes-bg: rgba(180, 83, 9, 0.1);
  --pill-ai: #7c3aed;          --pill-ai-bg: rgba(124, 58, 237, 0.1);
  --pill-contact: #059669;     --pill-contact-bg: rgba(5, 150, 105, 0.1);
  --pill-personal: #a3154f;    --pill-personal-bg: rgba(163, 21, 79, 0.1);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }

body,
.topbar,
.status-bar,
.frame,
.frame-bar,
.pill2,
.dash-box,
.cap-card,
.item-card,
.tag,
.pill,
.theme-toggle {
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: var(--accent); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 14px;
  z-index: 999;
  font-size: 12px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- background effects (kept minimal) ---------- */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
  animation: gridpan 60s linear infinite;
}

@keyframes gridpan {
  from { background-position: 0 0, 0 0; }
  to { background-position: 64px 128px, 64px 128px; }
}

.bg-scan {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.5;
}

/* ---------- top nav ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 18px 28px;
  backdrop-filter: blur(10px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
}

.hero-kicker.topbar-tagline {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  text-align: center;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  padding: 2px 6px;
}

.brand-name {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), scale 0.15s ease-out;
}
.theme-toggle:hover,
.theme-toggle:focus-visible,
.icon-btn:hover,
.icon-btn:focus-visible { color: var(--text); border-color: var(--accent-line); }
.theme-toggle:active,
.icon-btn:active { scale: 0.96; }
.icon-btn { color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }
/* extend hit area to 44x44 without growing the visible box */
.theme-toggle::after,
.icon-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}
/* both icons stay in the DOM and cross-fade on theme change */
.theme-toggle svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s cubic-bezier(0.2, 0, 0, 1),
              scale 0.3s cubic-bezier(0.2, 0, 0, 1),
              filter 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.theme-toggle .icon-sun  { opacity: 1; scale: 1; filter: blur(0); }
.theme-toggle .icon-moon { opacity: 0; scale: 0.25; filter: blur(4px); }
:root[data-theme="light"] .theme-toggle .icon-sun  { opacity: 0; scale: 0.25; filter: blur(4px); }
:root[data-theme="light"] .theme-toggle .icon-moon { opacity: 1; scale: 1; filter: blur(0); }

/* ---------- hero ---------- */

main { position: relative; z-index: 1; }

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 28px 48px;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-name-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 20px;
}

.hero-title {
  font-family: var(--font-name);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.8vw, 1.95rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
  color: var(--text);
}

.hero-pronunciation {
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 400;
  margin: 0;
}

.hero-line {
  margin: 0 auto 22px;
  font-size: 14px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-prompt { color: var(--accent); margin-right: 8px; }
.hero-typed { color: var(--text); white-space: pre-wrap; overflow-wrap: break-word; }

.cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  margin-left: 2px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  transform: translateY(2px);
}

@keyframes blink { 50% { opacity: 0; } }

/* ---------- pill nav ---------- */

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pill2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), scale 0.15s ease-out;
}
.pill2:hover,
.pill2:focus-visible { transform: translateY(-1px); }
.pill2:active { scale: 0.96; }

/* shared press feedback — subtle tactile scale on click */
.log-row, .dash-more, .back-link, .blog-row {
  transition: scale 0.15s ease-out;
}
.log-row:active, .dash-more:active, .back-link:active, .blog-row:active { scale: 0.96; }
.pill2 svg { width: 14px; height: 14px; flex-shrink: 0; }

.pill-about    { color: var(--pill-about);    background: var(--pill-about-bg); }
.pill-projects { color: var(--pill-projects); background: var(--pill-projects-bg); }
.pill-notes    { color: var(--pill-notes);    background: var(--pill-notes-bg); }
.pill-ai       { color: var(--pill-ai);       background: var(--pill-ai-bg); }
.pill-contact  { color: var(--pill-contact);  background: var(--pill-contact-bg); }

/* ---------- home dashboard ---------- */

.dashboard {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dash-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  scroll-margin-top: 90px;
}

.dash-box-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 14px;
}
.dash-box-head svg { width: 15px; height: 15px; color: var(--text-dim); flex-shrink: 0; }

.dash-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
  cursor: pointer;
  padding: 0;
  margin-top: 14px;
  white-space: nowrap;
}
.dash-more:hover { color: var(--accent); }
.dash-more svg { width: 11px; height: 11px; }

.log-list { display: flex; flex-direction: column; }

.log-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  text-align: left;
  color: var(--text);
  font-family: var(--font-mono);
  cursor: pointer;
}
.log-row:first-child { padding-top: 0; }
.log-row:last-child { border-bottom: none; }

.log-icon { width: 13px; height: 13px; color: var(--text-faint); flex-shrink: 0; }
.log-title {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s var(--ease);
}
.log-row:hover .log-title,
.log-row:focus-visible .log-title { color: var(--accent); }
.log-date { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); white-space: nowrap; }

.log-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.log-badge-note          { color: var(--pill-notes);    background: var(--pill-notes-bg); }
.log-badge-cybersecurity { color: var(--pill-projects); background: var(--pill-projects-bg); }
.log-badge-ai            { color: var(--pill-ai);       background: var(--pill-ai-bg); }
.log-badge-personal      { color: var(--pill-personal); background: var(--pill-personal-bg); }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cap-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
}

.cap-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.cap-plus { color: var(--accent); font-weight: 700; }
.cap-count { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.badge-row img {
  display: block;
  height: 22px;
  width: auto;
  max-width: 100%;
  border-radius: 3px;
}

/* ---------- footer / status bar ---------- */

.pagefoot {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 28px 100px;
  display: flex;
  justify-content: center;
  font-size: 11px;
  color: var(--text-faint);
}

.status-bar {
  position: fixed;
  left: 20px;
  bottom: 18px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  background: var(--topbar-bg);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee7a0;
  box-shadow: 0 0 0 0 rgba(110, 231, 160, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(110, 231, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0); }
}

.status-clock {
  color: var(--text-dim);
  border-left: 1px solid var(--border);
  padding-left: 8px;
  font-variant-numeric: tabular-nums;
}

/* ---------- overlay "frame" window ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 20px;
  background: var(--overlay-scrim);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), visibility 0.22s;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

.frame {
  width: min(880px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}

.overlay.open .frame {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raise);
  border-radius: 10px 10px 0 0;
  flex-shrink: 0;
}

.frame-dots { display: flex; gap: 6px; }
.frame-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}
.frame-dots span:nth-child(1) { background: #e8877a; }
.frame-dots span:nth-child(2) { background: #e3c26a; }
.frame-dots span:nth-child(3) { background: #6ee7a0; }

.frame-path {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame-close {
  position: relative;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), scale 0.15s ease-out;
}
.frame-close:hover,
.frame-close:focus-visible { color: var(--text); border-color: var(--border-strong); }
.frame-close:active { scale: 0.96; }
/* extend hit area to 44x44 without growing the visible box */
.frame-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}
.frame-close svg { width: 13px; height: 13px; }

.frame-body {
  overflow-y: auto;
  padding: 36px 40px 48px;
  outline: none;
  -webkit-overflow-scrolling: touch;
}

/* ---------- content templates rendered inside the frame ---------- */

.tpl-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.tpl-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--text);
}

.tpl-lead {
  font-family: var(--font-body);
  color: var(--text-dim);
  max-width: 62ch;
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.65;
}

.tpl-section { margin-bottom: 34px; }
.tpl-section:last-child { margin-bottom: 0; }

.tpl-subhead {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* about */

.skill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
}

/* project / ai cards */

.card-list { display: flex; flex-direction: column; gap: 14px; }

.item-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.2s var(--ease);
}
.item-card:hover { border-color: var(--border-strong); }

.item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.item-title { font-size: 14px; color: var(--text); font-weight: 600; }
.item-meta { font-size: 10.5px; color: var(--text-faint); letter-spacing: 0.04em; white-space: nowrap; }

.item-desc { font-family: var(--font-body); line-height: 1.6; color: var(--text-dim); font-size: 14px; margin: 8px 0 12px; max-width: 68ch; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
  font-size: 10px;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 4px;
}

.item-link {
  font-size: 11.5px;
  color: var(--text-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid transparent;
}
.item-link:hover { color: var(--accent); border-color: var(--accent-line); }
.item-link svg { width: 11px; height: 11px; }

.about-more { margin: 14px 0 0; }

/* blog list */

.blog-list { display: flex; flex-direction: column; }

.blog-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  color: var(--text);
  font-family: var(--font-mono);
  cursor: pointer;
}
.blog-row:first-child { padding-top: 0; }

.blog-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.blog-row-title { font-size: 13px; transition: color 0.15s var(--ease); }
.blog-row:hover .blog-row-title,
.blog-row:focus-visible .blog-row-title { color: var(--accent); }
.blog-row-excerpt { font-family: var(--font-body); font-size: 13px; color: var(--text-faint); }
.blog-row-date { font-size: 10.5px; color: var(--text-faint); white-space: nowrap; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
  cursor: pointer;
  margin-bottom: 22px;
  padding: 0;
}
.back-link:hover { color: var(--accent); }
.back-link svg { width: 12px; height: 12px; }

.post-meta { font-size: 11px; color: var(--text-faint); margin-bottom: 20px; }
.post-body p { font-family: var(--font-body); line-height: 1.7; color: var(--text-dim); font-size: 15px; max-width: 66ch; margin: 0 0 16px; }
.post-body strong { color: var(--text); }
.post-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); word-break: break-word; }
.post-body a:hover { border-color: var(--accent); }

/* contact */

.contact-list { display: flex; flex-direction: column; gap: 2px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}
.contact-row:last-child { border-bottom: none; }
.contact-icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-label { font-size: 10.5px; color: var(--text-faint); letter-spacing: 0.06em; text-transform: uppercase; }
.contact-value { font-size: 13px; }
.contact-row:hover .contact-value { color: var(--accent); }

.pgp-block {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  font-size: 11px;
  color: var(--text-faint);
  word-break: break-all;
}

/* ---------- responsive ---------- */

/* tablets: tagline on its own row, dashboard stacks */
@media (max-width: 960px) {
  .hero-kicker.topbar-tagline { order: 3; flex-basis: 100%; margin-top: 4px; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  /* decorative, and it covers content on smaller screens */
  .status-bar { display: none; }
}
@media (max-width: 720px) {
  .topbar { padding: 14px 18px; }
  .hero-kicker.topbar-tagline { order: 3; flex-basis: 100%; font-size: 10px; letter-spacing: 0.04em; margin-top: 4px; }
  .hero { padding: 64px 18px 32px; }
  .dashboard { padding: 0 18px 40px; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frame-body { padding: 26px 20px 36px; }
  .overlay { padding: 0; }
  .frame { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .frame-bar { border-radius: 0; }
}

@media (max-width: 420px) {
  /* log rows: full title on its own line, date + badge underneath */
  .log-row { flex-wrap: wrap; row-gap: 4px; }
  .log-title { flex-basis: calc(100% - 23px); white-space: normal; }
  .log-date { margin-left: 23px; }
  .blog-row { flex-wrap: wrap; }
  .blog-row-date { order: 3; }
  .pgp-block { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-grid { animation: none; }
  .cursor { animation: none; opacity: 1; }
  .pill2, .frame, .overlay { transition: none; }
  .status-dot { animation: none; }
  body, .topbar, .status-bar, .frame, .frame-bar, .dash-box, .cap-card, .item-card, .tag, .pill, .theme-toggle { transition: none; }
  /* drop tactile scale + icon cross-fade motion, keep the static color/icon cues */
  .theme-toggle svg { transition: none; }
  .pill2:active, .log-row:active, .dash-more:active, .back-link:active,
  .blog-row:active, .frame-close:active, .theme-toggle:active, .icon-btn:active { scale: 1; }
}
