/* Peter Czajkowski: modern dark theme with terminal accents */

:root {
  --bg: #07090c;
  --bg-raised: #0d1117;
  --bg-raised-2: #111720;
  --bg-term: #05070a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #d5dde6;
  --heading: #f5f8fb;
  --muted: #8a96a6;
  --accent: #34e08f;
  --accent-strong: #6cf2b0;
  --accent-2: #38bdf8;
  --accent-ink: #02130b;
  --accent-soft: rgba(52, 224, 143, 0.1);
  --amber: #f5c463;
  --danger: #f06a65;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1240px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -24px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.75rem, 7.5vw, 5.25rem); letter-spacing: -0.045em; line-height: 1; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 18px; letter-spacing: -0.015em; line-height: 1.3; }
p, dl, dd { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
}
.skip:focus { top: 12px; }

.dim { color: var(--muted); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 12, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 14px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 650; letter-spacing: -0.01em; }
.logo:hover { color: var(--heading); }
.logo .prompt { color: var(--accent); font-family: var(--mono); }
.logo .dim { font-family: var(--mono); }
.logo .cursor { margin-left: 6px; }
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 6px 20px -6px rgba(52, 224, 143, 0.55);
}
.logo-mark.small { width: 24px; height: 24px; border-radius: 7px; font-size: 10px; box-shadow: none; }
.site-header ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.site-header nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.15s, background-color 0.15s;
}
.site-header nav a:hover { color: var(--heading); background: rgba(255, 255, 255, 0.06); }
@media (max-width: 640px) {
  .logo-text { display: none; }
  .site-header nav a { padding: 6px 9px; font-size: 13px; }
}

/* Shared */

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.ps1, .ok { color: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--heading);
  font-family: inherit;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.07); color: var(--heading); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px rgba(52, 224, 143, 0.6);
}
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); transform: translateY(-1px); }

/* Hero */

.hero { position: relative; overflow: hidden; padding-block: 72px 88px; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -260px;
  left: 50%;
  width: 1100px;
  height: 700px;
  transform: translateX(-35%);
  background:
    radial-gradient(closest-side at 40% 50%, rgba(52, 224, 143, 0.2), transparent),
    radial-gradient(closest-side at 70% 45%, rgba(56, 189, 248, 0.14), transparent);
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding-block: 120px 136px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13.5px;
}
.dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(52, 224, 143, 0.15);
}
.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { max-width: 33em; margin-top: 26px; color: var(--muted); font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin: 44px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.stats li { display: grid; gap: 2px; }
.stats strong { color: var(--heading); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.stats span { color: var(--muted); font-size: 13.5px; }

/* Terminal */

.terminal {
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 23, 32, 0.92), rgba(5, 7, 10, 0.96));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow:
    0 40px 100px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(52, 224, 143, 0.06),
    0 0 80px -30px rgba(52, 224, 143, 0.35);
  font-family: var(--mono);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar i:nth-child(1) { background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar p { margin-left: auto; margin-right: auto; padding-right: 40px; color: var(--muted); font-size: 12px; }

.terminal-body { padding: 20px 20px 24px; font-size: 13px; line-height: 1.8; }
@media (min-width: 640px) { .terminal-body { padding: 26px 28px 30px; font-size: 14px; } }

.line { white-space: pre-wrap; overflow-wrap: anywhere; }
.line + .line.cmd { margin-top: 10px; }
.out { color: var(--text); }
.out.dim { color: var(--muted); }

/* script.js reveals the lines one by one; without it they all show */
.js-anim .terminal .line { visibility: hidden; }
.js-anim .terminal .line.shown { visibility: visible; }
.line.active .typed::after {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--accent);
}

/* Sections */

.section { position: relative; padding-block: 80px; }
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--wrap), 100% - 40px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
@media (min-width: 960px) { .section { padding-block: 112px; } }
.section-head { max-width: 44em; margin-bottom: 44px; }
.section-head .intro { margin-top: 14px; color: var(--muted); font-size: 17px; }

.cols { display: grid; gap: 40px; }
@media (min-width: 900px) { .cols-2 { grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; } }
.cols-2 .section-head { margin-bottom: 26px; }

.prose { max-width: 62ch; }
.prose p { color: var(--muted); font-size: 17px; line-height: 1.75; }
.prose p:first-child { color: var(--text); font-size: 18.5px; }
.prose p + p { margin-top: 18px; }

/* About: profile.yml */

.file {
  overflow: hidden;
  background: var(--bg-term);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--mono);
}
.file-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12.5px;
}
.file-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--amber); }
.kv { padding: 22px 20px 24px; font-size: 13.5px; line-height: 1.7; }
.kv div { display: grid; grid-template-columns: 7ch 1fr; gap: 14px; }
.kv div + div { margin-top: 8px; }
.kv dt { color: var(--accent); }
.kv dd { color: var(--amber); overflow-wrap: anywhere; }

/* Focus areas */

.focus-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.focus {
  position: relative;
  padding: 28px 26px 30px;
  background: linear-gradient(180deg, var(--bg-raised-2), var(--bg-raised));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}
.focus:hover { border-color: rgba(52, 224, 143, 0.35); transform: translateY(-3px); }
.focus-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border: 1px solid rgba(52, 224, 143, 0.25);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.focus-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.focus h3 { margin-bottom: 10px; }
.focus p { color: var(--muted); font-size: 15px; }

/* Cards: projects */

.card {
  padding: 30px 28px;
  background: linear-gradient(180deg, var(--bg-raised-2), var(--bg-raised));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--line-strong); }
.card .tag {
  margin-bottom: 16px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12.5px;
}
.card h3 { margin-bottom: 10px; font-size: 20px; }
.card h3 + p { color: var(--muted); font-size: 15.5px; }
.project-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.project { position: relative; overflow: hidden; }
.project::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.12), transparent);
  transform: translate(30%, -30%);
  pointer-events: none;
}
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.topics li {
  padding: 3px 11px;
  border: 1px solid rgba(52, 224, 143, 0.22);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}
.more { margin-top: 32px; }

/* Certifications */

.cert-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cert-grid { grid-template-columns: repeat(6, 1fr); } .cert { grid-column: span 2; } .cert:nth-child(4), .cert:nth-child(5) { grid-column: span 3; } }
.cert {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  background: linear-gradient(180deg, var(--bg-raised-2), var(--bg-raised));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}
.cert::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 26px;
  right: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.cert:hover { border-color: rgba(52, 224, 143, 0.32); transform: translateY(-3px); }
.cert .badge { align-self: flex-start; margin-bottom: 22px; border-radius: 12px; }
.cert .badge img { display: block; width: 76px; height: 76px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5)); }
.cert .tag { margin-bottom: 8px; color: var(--amber); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.cert h3 { margin-bottom: 10px; font-size: 17px; line-height: 1.35; }
.cert-desc { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.cert .verify { margin-top: auto; padding-top: 20px; font-size: 14px; font-weight: 550; }

/* Notes listing */

.listing {
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.empty { padding: 28px; color: var(--muted); font-family: var(--mono); font-size: 14px; line-height: 1.9; }
.empty .dim { margin-left: 8px; }
.note + .note { border-top: 1px solid var(--line); }
.note summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  padding: 20px 26px;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.15s;
}
.note summary:hover { background: rgba(255, 255, 255, 0.025); }
.note summary::-webkit-details-marker { display: none; }
.note time { min-width: 7.5em; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.note-title { flex: 1 1 220px; color: var(--heading); font-size: 17px; font-weight: 600; }
.note summary:hover .note-title { color: var(--accent); }
.chev {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.note[open] .chev { transform: rotate(225deg); }
.note-body { padding: 2px 26px 28px calc(26px + 7.5em + 20px); overflow-wrap: anywhere; }
@media (max-width: 640px) { .note-body { padding-left: 26px; } }

/* Notes written in Markdown (public page and admin preview) */

.md { color: var(--text); line-height: 1.75; }
.md > * + * { margin-top: 14px; }
.md h3, .md h4, .md h5 { color: var(--heading); letter-spacing: -0.01em; }
.md > :is(h3, h4, h5):not(:first-child) { margin-top: 26px; }
.md h3 { font-size: 19px; }
.md h4 { font-size: 17px; }
.md h5 { color: var(--accent); font-size: 14px; }
.md a { text-decoration: underline; text-decoration-color: rgba(52, 224, 143, 0.45); text-underline-offset: 3px; }
.md a:hover { text-decoration-color: var(--accent-strong); }
.md ul, .md ol { margin-bottom: 0; padding-left: 22px; }
.md li + li { margin-top: 4px; }
.md ul li::marker { color: var(--accent); }
.md ol li::marker { color: var(--amber); }
.md code { padding: 1px 6px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 5px; font-family: var(--mono); font-size: 0.88em; }
.md pre { margin-bottom: 0; padding: 16px 18px; overflow-x: auto; background: var(--bg-term); border: 1px solid var(--line); border-radius: 10px; line-height: 1.6; }
.md pre code { padding: 0; background: none; border: 0; font-size: 13px; white-space: pre; }
.md blockquote { margin: 0; padding: 2px 0 2px 16px; border-left: 2px solid var(--amber); color: var(--muted); }
.md hr { border: 0; border-top: 1px solid var(--line-strong); }
.md .note-image { display: inline-block; max-width: 100%; text-decoration: none; }
.md img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: 10px; }
.md .note-image:hover img { border-color: var(--accent); }

/* Admin */

.admin { max-width: 960px; padding-block: 48px 96px; }
.admin section + section { margin-top: 56px; }
.login { max-width: 560px; margin-inline: auto; }
.login .form { margin-top: 16px; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; color: var(--muted); font-size: 13.5px; }
.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg-term);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.field textarea { min-height: 240px; resize: vertical; font-family: var(--mono); font-size: 14px; line-height: 1.6; }
.field input:focus-visible,
.field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52, 224, 143, 0.15); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hint { color: var(--muted); font-size: 13px; }
.notice {
  margin-bottom: 18px;
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  font-size: 14.5px;
}
.notice.error { border-left-color: var(--danger); color: #ffb9b5; }
.btn-danger { border-color: var(--danger); color: #ff8f8a; }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.confirm-title { margin-bottom: 10px; font-size: 22px; }
.confirm { margin-top: 24px; }
.admin-list { margin: 0; padding: 0; list-style: none; }
.admin-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.admin-list time { color: var(--amber); font-family: var(--mono); font-size: 13px; }
.admin-list .title { flex: 1 1 220px; color: var(--heading); overflow-wrap: anywhere; }
.admin-list a { font-size: 14px; }
.inline { display: inline; margin: 0; }
.link-button { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.link-button:hover { color: var(--accent); }

/* Note editor */

.field .dim { color: var(--muted); opacity: 0.7; }
.field textarea.dragging { border-color: var(--accent); border-style: dashed; background: #08120d; }
.md-help { margin-top: -8px; line-height: 2; }
.md-help code { padding: 1px 5px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 5px; color: var(--text); font-family: var(--mono); }
.attach { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.attach .field { flex: 1 1 260px; }
.attach .hint { flex-basis: 100%; min-height: 1em; }
.field input[type="file"] { padding: 8px 10px; color: var(--muted); cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }
/* Invisible but still the form's first submit button, so Enter means "save" */
.default-submit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); border: 0; padding: 0; }
.preview {
  margin-bottom: 28px;
  padding: 22px 24px 26px;
  background: var(--bg-raised);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.preview-label { margin-bottom: 10px; color: var(--amber); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.preview-title { margin-bottom: 14px; font-size: 21px; }

/* Footer */

.site-footer { padding-block: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* 404 */

.notfound { display: grid; place-items: center; min-height: 100vh; padding-block: 48px; }
.notfound .terminal { width: 100%; max-width: 640px; }
.notfound .home { display: inline-block; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .cert:hover, .focus:hover, .btn-primary:hover { transform: none; }
}
