/* ============================================================
   CECILIA THOMPSON — Design System
   Dark professional · Rose pink accent · Kaleb-inspired layout
   ============================================================ */

/* ── TOKENS ── */
:root {
  --bg:           #0D0D0F;
  --bg2:          #161619;
  --bg3:          #1E1E23;
  --border:       #2A2A30;
  --border-soft:  #222228;
  --text:         #F0EEF5;
  --text-muted:   #8B8A96;
  --text-faint:   #55545E;
  --accent:       #E8709A;
  --accent-dark:  #C4547A;
  --accent-glow:  rgba(232,112,154,0.12);
  --accent-faint: rgba(232,112,154,0.06);
  --display:      'Playfair Display', Georgia, serif;
  --body:         'Inter', system-ui, -apple-system, sans-serif;
  --mono:         'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --content-w:    680px;
  --wide-w:       900px;
  --ease:         0.15s ease;
  --ease-slow:    0.35s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background var(--ease-slow), color var(--ease-slow);
}
body[data-theme="light"] {
  --bg: #F5F3EC;
  --bg2: #FBF8F1;
  --bg3: #F0EBDD;
  --border: #DDD4B7;
  --border-soft: #E8E0C8;
  --text: #181714;
  --text-muted: #5D5547;
  --text-faint: #8A7F65;
  --accent: #C4577A;
  --accent-dark: #A84165;
  --accent-glow: rgba(196,87,122,0.12);
  --accent-faint: rgba(196,87,122,0.08);
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  width: 100%;
  transition: border-color var(--ease);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }

/* ── ACCESSIBILITY ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 999;
  transition: top var(--ease);
}
.skip-link:focus { top: 1rem; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container--wide {
  max-width: var(--wide-w);
}
main { flex: 1; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--ease-slow);
}
body[data-theme="light"] .nav {
  background: rgba(245, 243, 236, 0.85);
}
.nav__inner {
  max-width: var(--wide-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__logo span { color: var(--accent); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav__controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.nav__toggle:hover {
  background: var(--bg3);
  color: var(--text);
  border-color: var(--text-faint);
}
.nav__link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--ease);
  position: relative;
  padding-bottom: 2px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }
.nav__link--active { color: var(--accent) !important; }
.nav__link--active::after { width: 100%; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  flex-shrink: 0;
}
.nav__hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease), background var(--ease);
}
.nav__hamburger:hover span { background: var(--text); }

@media (max-width: 600px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .nav__links--open { display: flex; }
  .nav__hamburger { display: flex; }
  .nav__link { font-size: 0.9rem; }
}

/* ── PAGE WRAPPER ── */
.page {
  padding: 4.5rem 1.5rem;
  max-width: var(--content-w);
  margin-inline: auto;
}
.page--wide {
  max-width: var(--wide-w);
}

/* ── TYPOGRAPHY ── */
.eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 em {
  font-style: italic;
  color: var(--accent);
}
h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
}
h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
}
.prose {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.85;
}
.prose p + p { margin-top: 1.1rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); transition: opacity var(--ease); }
.prose a:hover { opacity: 0.8; }

/* ── DIVIDER ── */
hr {
  border: none;
  margin: 3.5rem 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all var(--ease);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--text-faint);
}

/* ── TAGS ── */
.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--accent-faint);
  color: var(--accent);
  border: 1px solid rgba(232,112,154,0.2);
  letter-spacing: 0.02em;
}
.tag--neutral {
  background: var(--bg3);
  color: var(--text-muted);
  border-color: var(--border);
}

/* ── STATS STRIP ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg2);
}
.stat {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat__n {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat__l {
  font-size: 0.68rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
@media (max-width: 500px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 1px solid var(--border); }
  .stat:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}

/* ── PILLAR GRID ── */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.pillar {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: background var(--ease), border-color var(--ease);
}
.pillar:hover {
  background: var(--bg3);
  border-color: var(--text-faint);
}
.pillar__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.pillar__body {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
}
@media (max-width: 480px) { .pillars { grid-template-columns: 1fr; } }

/* ── PROJECT CARDS ── */
.proj-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.proj-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
  text-decoration: none;
  color: inherit;
}
.proj-item:hover {
  background: var(--bg3);
  border-color: var(--text-faint);
  transform: translateY(-1px);
}
.proj-item--link { cursor: pointer; }
.proj-item--link:hover .proj-title { color: var(--accent); }
.proj-meta { padding-top: 3px; }
.proj-year {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  margin-bottom: 0.35rem;
}
.proj-cat {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.proj-title {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.35;
  transition: color var(--ease);
}
.proj-kicker {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.proj-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.proj-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
@media (max-width: 480px) {
  .proj-item { grid-template-columns: 1fr; gap: 0.3rem; }
  .proj-meta { display: flex; gap: 0.75rem; align-items: center; padding-top: 0; }
}

/* ── TIMELINE (résumé) ── */
.tl { display: flex; flex-direction: column; }
.tl-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 2rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.tl-row:first-child { padding-top: 0; }
.tl-row:last-child { border-bottom: none; }
.tl-date {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  padding-top: 3px;
  line-height: 1.5;
}
.tl-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-faint);
  border: 1px solid rgba(232,112,154,0.18);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
}
.tl-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.tl-co {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.1rem;
}
.tl-loc {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}
.tl-bullets { display: flex; flex-direction: column; gap: 0.4rem; }
.tl-bullets li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.65;
}
.tl-bullets li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-faint);
}
.tl-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.85rem; }
@media (max-width: 500px) {
  .tl-row { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ── SKILLS ── */
.skill-group { margin-bottom: 1.75rem; }
.skill-group:last-child { margin-bottom: 0; }
.skill-group__title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 0.65rem;
}
.skill-group__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ── EDU CARDS ── */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.edu-card {
  background: var(--bg2);
  padding: 1.5rem;
  position: relative;
}
.edu-card--active::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}
.edu-deg {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.3rem;
}
.edu-school {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.edu-meta {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-bottom: 0.85rem;
}
.edu-status {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}
.edu-status--active {
  background: var(--accent-faint);
  color: var(--accent);
  border: 1px solid rgba(232,112,154,0.2);
}
.edu-status--done {
  background: var(--bg3);
  color: var(--text-faint);
  border: 1px solid var(--border);
}
@media (max-width: 480px) { .edu-grid { grid-template-columns: 1fr; } }

/* ── CONTACT LINKS ── */
.contact-links { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--ease), color var(--ease);
  color: inherit;
}
.contact-link:last-child { border-bottom: none; }
.contact-link:hover { background: var(--bg3); }
.contact-link:hover .cl-value { color: var(--accent); }
.cl-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.cl-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 0.1rem;
}
.cl-value {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--ease);
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 2.5rem 1.5rem;
  margin-top: auto;
}
.footer__inner {
  max-width: var(--wide-w);
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__left { }
.footer__name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.footer__tagline {
  font-size: 0.78rem;
  color: var(--text-faint);
}
.footer__links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.footer__icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer__icon:hover {
  background: var(--accent-faint);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(232, 112, 154, 0.12);
}
.footer__copy {
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  max-width: var(--wide-w);
  margin-inline: auto;
}

/* ── HERO (home) ── */
.hero { padding: 5rem 0 2rem; }
.hero--split {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}
.hero__text {
  flex: 1;
  min-width: 0;
}
.hero__photo {
  flex-shrink: 0;
  width: 320px;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.hero__photo img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  display: block;
  max-width: none;
}
@media (max-width: 680px) {
  .hero--split {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }
  .hero__photo {
    width: 200px;
    height: 200px;
    margin-inline: auto;
  }
  .hero__photo img {
    width: 200px;
    height: 200px;
  }
  .hero__actions { justify-content: center; }
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.35rem;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero__lead { margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── SECTION SPACING ── */
.section { margin-top: 3.5rem; }
.section__hd { margin-bottom: 2rem; }
.section__hd h2 { margin-top: 0.5rem; }
.section__sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 520px;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal--visible {
  opacity: 1;
  transform: none;
}

/* ── SECTION DIVIDER WITH LABEL ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3.5rem 0 2rem;
}
.section-label::before,
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}
.section-label span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
