/* ─── Design tokens (kawe.ski-inspired) ────────────────── */
:root {
  /* Colors */
  --color-bg-start:       #f3e8ff;   /* soft lavender */
  --color-bg-end:         #ffffff;   /* white */
  --color-surface:        color-mix(in srgb, #ffffff 92%, transparent);
  --color-text:           #151515;
  --color-muted:          #666666;
  --color-border:         #151515;

  /* Accent palette */
  --color-accent-light:   #dbc1f6;   /* lavender */
  --color-accent-dark:    #b994e0;   /* purple */
  --color-action-light:   #ffe082;   /* yellow */
  --color-action-dark:    #fbbf0e;   /* amber — nav bg */

  /* Feedback */
  --color-success-bg:     #d8f0e6;
  --color-success:        #5fc39c;
  --color-error-bg:       #fdebec;
  --color-error:          #ef8c8f;

  /* Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-full: 999px;

  /* Borders */
  --stroke:  1.5px;

  /* Shadows — flat/offset, zero blur (neo-brutalist) */
  --shadow-right:   2px 2px 0 0 rgba(21,21,21,1);
  --shadow-left:   -2px 2px 0 0 rgba(21,21,21,1);
  --shadow-btn:     3px 3px 0 0 rgba(0,0,0,0.15);
  --shadow-btn-active: -1px -1px 0 0 rgba(0,0,0,0.15);
  --shadow-card:    4px 4px 0 0 rgba(21,21,21,1);

  /* Spacing */
  --sp-4:   4px;
  --sp-8:   8px;
  --sp-12:  12px;
  --sp-16:  16px;
  --sp-24:  24px;
  --sp-32:  32px;
  --sp-40:  40px;

  /* Typography */
  --font-display: 'Figtree', sans-serif;
  --font-body:    'Outfit', sans-serif;

  /* Layout */
  --max-w: 960px;
  --pad-x: 24px;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--color-text);
  background: linear-gradient(to bottom, var(--color-bg-start), var(--color-bg-end));
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ─── Container ─────────────────────────────────────────── */
.nav__inner,
.hero,
.stats-wrap,
.section,
.footer__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ─── Blinking cursor animation ─────────────────────────── */
@keyframes blink {
  0%, 45%  { opacity: 1; }
  46%, 100% { opacity: 0; }
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  border-radius: var(--radius-full);
  border: var(--stroke) solid var(--color-border);
  background: var(--color-action-dark);
  color: var(--color-text);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: margin .12s ease, background-color .12s ease, box-shadow .12s ease;
}

.btn:hover { background: var(--color-action-light); }

.btn:active {
  margin: 2px 0 0 2px;
  box-shadow: var(--shadow-btn-active);
}

.btn--ghost {
  background: transparent;
  box-shadow: var(--shadow-right);
}
.btn--ghost:hover { background: var(--color-accent-light); }

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: var(--color-action-dark);
  border-bottom: var(--stroke) solid var(--color-border);
  box-shadow: 0 3px 0 0 rgba(0,0,0,0.12);
}

.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-24);
  padding-block: var(--sp-16);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.6px;
  color: var(--color-text);
  white-space: nowrap;
}

.nav__cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--color-text);
  border-radius: var(--radius-full);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.nav__links {
  display: flex;
  justify-content: center;
  gap: var(--sp-32);
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  opacity: 0.75;
  transition: opacity .12s ease;
}
.nav__links a:hover { opacity: 1; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-40);
  padding-block: 64px 40px;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.96px;
  margin-bottom: var(--sp-24);
  max-width: 22ch;
}

.hero__description {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-muted);
  max-width: 48ch;
  line-height: 1.65;
  letter-spacing: -0.16px;
}

.avatar-placeholder {
  flex-shrink: 0;
  width: 128px;
  height: 128px;
  border-radius: var(--radius-full);
  border: var(--stroke) solid var(--color-border);
  background: var(--color-accent-dark);
  color: #fff;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-right);
  object-fit: cover;
  object-position: center top;
}

/* ─── Stats ──────────────────────────────────────────────── */
.stats-wrap { padding-inline: var(--pad-x); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: var(--stroke) solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 0;
}

.stat {
  background: var(--color-surface);
  padding: var(--sp-24) var(--sp-24);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  border-right: var(--stroke) solid var(--color-border);
}
.stat:last-child { border-right: none; }

.stat__value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--color-text);
}

.stat__label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-muted);
  letter-spacing: 0;
}

/* ─── Sections ───────────────────────────────────────────── */
.section {
  padding-block: var(--sp-40) var(--sp-40);
  margin-top: var(--sp-40);
}

.section__heading {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.96px;
  margin-bottom: var(--sp-32);
}

/* ─── Skills ─────────────────────────────────────────────── */
.skills__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.skill-chip {
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-surface);
  border: var(--stroke) solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-right);
  cursor: default;
  transition: background .12s ease, box-shadow .12s ease, transform .12s ease;
}

.skill-chip:hover {
  background: var(--color-accent-light);
  box-shadow: var(--shadow-btn-active);
  transform: translate(2px, 2px);
}

/* ─── Projects ───────────────────────────────────────────── */
.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-24);
}

.project-card {
  background: var(--color-surface);
  border: var(--stroke) solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .16s ease, transform .16s ease;
}

.project-card:hover {
  box-shadow: 6px 6px 0 0 rgba(21,21,21,1);
  transform: translate(-2px, -2px);
}

.project-card__thumb {
  height: 200px;
  border-bottom: var(--stroke) solid var(--color-border);
  border-radius: calc(var(--radius-lg) - 4px) calc(var(--radius-lg) - 4px) 0 0;
}
.project-card__thumb--1 { background: #dbc1f6; }   /* lavender */
.project-card__thumb--2 { background: #d8f0e6; }   /* mint */
.project-card__thumb--3 { background: #ffe082; }   /* amber */

.project-card__body { padding: var(--sp-24); }

.project-card__tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin: var(--sp-8) 0 var(--sp-12);
}

.project-card__desc {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.55;
  margin-bottom: var(--sp-16);
}

/* ─── Articles ───────────────────────────────────────────── */
.articles__list {
  list-style: none;
  background: var(--color-surface);
  border: var(--stroke) solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.article-item {
  display: flex;
  align-items: baseline;
  gap: var(--sp-24);
  padding: var(--sp-16) var(--sp-24);
  border-bottom: var(--stroke) solid var(--color-border);
  transition: background .12s ease;
}
.article-item:last-child { border-bottom: none; }

.article-item__date {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-muted);
  min-width: 2.5rem;
  flex-shrink: 0;
}

.article-item__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.18px;
  color: var(--color-text);
  transition: color .12s ease;
}
.article-item:hover .article-item__title { color: var(--color-accent-dark); }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  margin-top: var(--sp-40);
  border-top: var(--stroke) solid var(--color-border);
  background: var(--color-action-dark);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-32);
  flex-wrap: wrap;
  gap: var(--sp-16);
}

.footer__social {
  display: flex;
  gap: var(--sp-24);
  flex-wrap: wrap;
}

.footer__social a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  opacity: 0.7;
  transition: opacity .12s ease;
}
.footer__social a:hover { opacity: 1; }

.footer__credit {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text);
}

.footer__heart { color: #ff0000; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 720px) {
  :root { --pad-x: 16px; }

  .nav__inner { grid-template-columns: auto 1fr; gap: var(--sp-16); padding-block: var(--sp-12); }
  .nav__resume { display: none; }
  .nav__links { justify-content: flex-end; gap: var(--sp-16); }

  .hero { flex-direction: column-reverse; gap: var(--sp-24); padding-block: 40px 24px; }
  .avatar-placeholder { width: 88px; height: 88px; font-size: 1.5rem; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: var(--stroke) solid var(--color-border); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 720px) {
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__grid .project-card:first-child { grid-column: 1 / -1; }
}
