/* ============================================================
   felisvad.dev — one stylesheet, no build step
   ============================================================ */

:root {
  --bg: #0f1115;
  --bg-soft: #151922;
  --border: #262c38;
  --text: #d7dae0;
  --muted: #8b93a1;
  --accent: #f6a94a;
  --accent-soft: rgba(246, 169, 74, 0.12);
  --link: #7cb8ff;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

:root[data-theme="light"] {
  --bg: #faf7f2;
  --bg-soft: #f1ece3;
  --border: #ddd5c8;
  --text: #23262d;
  --muted: #6b6f78;
  --accent: #c26b1f;
  --accent-soft: rgba(194, 107, 31, 0.12);
  --link: #1f6bc2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  transition: background 0.25s ease, color 0.25s ease;
}

main, .site-head, .site-foot {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, .brand, .dates, .stat-num, .chips, .audience, .btn, .meta-line {
  font-family: var(--font-mono);
}

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.brand .cursor {
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }

#theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  padding: 0.3rem 0.45rem;
  cursor: pointer;
}
#theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

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

.hero { padding: 2.5rem 0 1rem; }

.hero-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

h1 {
  font-size: 2rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0.25rem 0 0;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-mono);
}

.meta-line {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* the cat */

.cat-wrap { position: relative; flex-shrink: 0; }

#cat { cursor: pointer; overflow: visible; }

.cat-fur { fill: var(--bg-soft); stroke: var(--text); stroke-width: 3; stroke-linejoin: round; }
.cat-inner-ear { fill: var(--accent-soft); stroke: none; }
.cat-eye { fill: var(--bg); stroke: var(--text); stroke-width: 2.5; }
.cat-pupil { fill: var(--accent); transition: transform 0.08s linear; }
.cat-nose { fill: var(--accent); }
.cat-line { fill: none; stroke: var(--text); stroke-width: 2.5; stroke-linecap: round; }

.meow-bubble {
  position: absolute;
  top: -0.75rem;
  left: 90%;
  white-space: nowrap;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px 10px 10px 2px;
  padding: 0.15rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.meow-bubble.show { opacity: 1; transform: translateY(0); }

/* audience switcher */

.audience {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.75rem;
  font-size: 0.85rem;
}

.audience-label { color: var(--muted); margin-right: 0.25rem; }

.aud-tab {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  padding: 0.25rem 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.aud-tab:hover { color: var(--text); border-color: var(--muted); }

.aud-tab.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.intro {
  min-height: 5.5rem;
  margin: 1rem 0 0;
}

/* action buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-block;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 1rem;
  transition: all 0.15s ease;
}

.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.btn-primary:hover { color: var(--bg); filter: brightness(1.1); }

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  margin: 2.5rem 0;
}

.stat {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  margin-top: 0.2rem;
}

/* ---------- sections ---------- */

section { margin-bottom: 3rem; }

h2 {
  font-size: 1.15rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.prompt { color: var(--accent); }

/* timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--border);
}

.timeline > li {
  position: relative;
  margin-bottom: 2rem;
}

.timeline > li::before {
  content: "";
  position: absolute;
  left: -1.65rem;
  top: 0.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
}

.job-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.job-head h3 { margin: 0; font-size: 1rem; }

.at { color: var(--accent); font-weight: 600; }

.dates {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.job-where {
  margin: 0.1rem 0 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.timeline ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.timeline ul li { margin-bottom: 0.25rem; }

/* skills */

.skill-group { margin-bottom: 1.25rem; }

.skill-group h3 {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.chips li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  color: var(--text);
  transition: all 0.15s ease;
}

.chips li:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* contact */

.contact-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border);
}

.contact-list li:last-child { border-bottom: none; }

.contact-label {
  color: var(--muted);
  min-width: 6.5rem;
}

/* education */

.edu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.edu li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
}

.edu li:last-child { border-bottom: none; }

/* misc */

.fine-print { color: var(--muted); font-size: 0.85rem; }

.site-foot {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.site-foot p { margin: 0.3rem 0; }

.site-foot kbd {
  display: inline-block;
  min-width: 1.5em;
  padding: 0.05rem 0.25rem;
  margin: 0 0.08rem;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: center;
  color: var(--muted);
}

/* konami cat rain */

.falling-cat {
  position: fixed;
  top: -4rem;
  z-index: 999;
  animation: fall linear forwards;
  pointer-events: none;
}

@keyframes fall {
  to { transform: translateY(110vh) rotate(360deg); }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand .cursor { animation: none; }
  .falling-cat { display: none; }
  * { transition: none !important; }
}

/* ---------- print: the page IS the resume ---------- */

@media print {
  :root {
    --bg: #fff;
    --bg-soft: #fff;
    --border: #bbb;
    --text: #000;
    --muted: #444;
    --accent: #000;
    --accent-soft: transparent;
    --link: #000;
  }
  .site-nav, .audience, .actions, .cat-wrap, .site-foot .fine-print { display: none; }
  body { font-size: 10.5pt; }
  section { margin-bottom: 1.25rem; page-break-inside: avoid; }
  .timeline > li { margin-bottom: 0.75rem; }
  a { text-decoration: none; color: #000; }
}

/* ---------- small screens ---------- */

@media (max-width: 480px) {
  .hero-row { gap: 1rem; }
  h1 { font-size: 1.6rem; }
  .job-head { flex-direction: column; gap: 0; }
}
