:root {
  --bg: #f7f9fc;
  --card-bg: #ffffff;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.07);
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --radius-xl: 18px;
  --shadow-soft: 0 18px 35px rgba(15, 23, 42, 0.08);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Base */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 55%),
    radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.06), transparent 60%),
    var(--bg);
  color: var(--text-main);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  max-width: 1024px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

@media (min-width: 900px) {
  main {
    padding-top: 4rem;
  }
}

h1, h2, h3 {
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
}

p {
  margin: 0.25rem 0 0.6rem;
  line-height: 1.6;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  background-color: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Layout */

.site-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 1.5rem;
}

@media (min-width: 900px) {
  .site-shell {
    padding: 1.5rem 2.5rem 2.5rem;
  }
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: conic-gradient(from 160deg, #4f46e5, #ec4899, #22c55e, #4f46e5);
  padding: 2px;
  position: relative;
}

.brand-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

/* Easter egg: tiny kite appears only on hover */
.brand-avatar-inner::after {
  content: "🏄‍♂️";
  opacity: 0;
  transform: translateY(4px) scale(0.8);
  transition: all 180ms ease-out;
}

.brand-avatar-inner:hover::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.brand-text-main {
  font-size: 0.98rem;
  font-weight: 600;
}

.brand-text-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 150ms ease-out;
}

.nav a:hover {
  border-color: var(--border-soft);
  background-color: rgba(255, 255, 255, 0.6);
}

.nav a.active {
  background-color: var(--accent);
  color: #f9fafb;
  border-color: transparent;
}

/* Hero / page header */

.page-hero {
  margin-top: 2rem;
  margin-bottom: 1.8rem;
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.6fr);
  gap: 1.8rem;
  align-items: center;
}

@media (max-width: 800px) {
  .page-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.page-hero-lead {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.page-hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.06);
  font-size: 0.76rem;
  margin-bottom: 0.4rem;
}

.page-hero-aside {
  justify-self: end;
}

.page-hero-card {
  background-color: var(--card-bg);
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.24);
  font-size: 0.82rem;
}

.page-hero-card-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.page-hero-card-row:last-child {
  margin-bottom: 0;
}

.page-hero-card-label {
  color: var(--text-muted);
}

/* Cards & modules */

.section {
  margin-bottom: 2.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.section-title {
  font-size: 1.1rem;
}

.section-kicker {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .grid.columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background-color: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.09), transparent 55%);
  opacity: 0;
  transition: opacity 180ms ease-out;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 600;
}

.card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-body {
  font-size: 0.88rem;
}

.card-footer {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.muted {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Chips, metrics */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  padding: 0.17rem 0.55rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.9);
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.metric {
  font-size: 0.8rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background-color: var(--accent-soft);
  color: var(--accent);
}

/* Hobbies */

.hobby-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.hobby-icon {
  font-size: 1.5rem;
}

.hobby-body h3 {
  font-size: 0.98rem;
}

/* Easter egg: special bullets for Sara */

.hobby-sara .hobby-body ul {
  list-style: none;
  padding-left: 0;
  margin: 0.2rem 0 0;
}

.hobby-sara .hobby-body li::before {
  content: "🐾";
  margin-right: 0.4rem;
}

/* Blog */

.blog-list {
  display: grid;
  gap: 1.2rem;
}

.blog-post {
  background-color: var(--card-bg);
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.blog-post h2 {
  font-size: 1rem;
}

.blog-post p {
  font-size: 0.9rem;
}

/* Footer */

.footer {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Easter egg: secret note appears on hover */

.footer-secret {
  opacity: 0.3;
  transition: opacity 180ms ease-out;
  cursor: default;
}

.footer-secret:hover {
  opacity: 1;
}

/* Tiny mobile tweaks */

@media (max-width: 480px) {
  .nav {
    gap: 0.15rem;
  }
  .nav a {
    font-size: 0.78rem;
    padding-inline: 0.55rem;
  }
}
