/* ── FONTS ───────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;1,9..144,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ── VARIABLES ───────────────────────────────────────────────────────── */
:root {
  --red:    #A32D2D;
  --cyan:   #009CEF;
  --purple: #772D68;
  --green:  #60B669;
  --pink:   #EC6581;
  --aqua:   #35B6B4;
  --yellow: #FFDC64;
  --bg:     #FAFAF7;
  --text:   #1A1714;
  --muted:  #78716C;
  --border: #E5E2DB;
  --card:   #FFFFFF;
  --tag:    #F0EDE8;
  --fd: 'Fraunces', Georgia, serif;
  --fb: 'Plus Jakarta Sans', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:   #1A1714; --text: #F5F0EB; --muted: #A09890;
    --border: #2E2A26; --card: #222018; --tag: #2A2620;
  }
}

/* ── RESET ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── NAV ─────────────────────────────────────────────────────────────── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 58px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 100;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; }
.nav-logo-text { font-family: var(--fb); font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; line-height: 1.1; }
.nav-logo-sub  { font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: 0.07em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 3px; }
.nav-link {
  padding: 6px 12px; border-radius: 20px; font-size: 13.5px; font-weight: 500;
  color: var(--muted); transition: all 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--tag); }
.nav-link.active { font-weight: 600; }
.nav-cta {
  padding: 7px 16px; border-radius: 20px; font-size: 13.5px; font-weight: 600;
  color: #fff; background: var(--red); margin-left: 8px; transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── LAYOUT ──────────────────────────────────────────────────────────── */
.container { max-width: 1000px; margin: 0 auto; padding: 0 32px; }
.page-header { padding: 52px 0 36px; }
.page-title { font-family: var(--fd); font-size: 44px; font-weight: 500; line-height: 1.08; letter-spacing: -0.4px; margin-bottom: 10px; }
.page-sub { font-size: 15px; color: var(--muted); max-width: 520px; line-height: 1.65; }

/* ── HERO ────────────────────────────────────────────────────────────── */
.hero { padding: 68px 0 52px; max-width: 780px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px 4px 9px; background: var(--tag); border-radius: 20px;
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 22px;
}
.hero-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.hero h1 { font-family: var(--fd); font-size: 58px; font-weight: 500; line-height: 1.04; letter-spacing: -0.5px; margin-bottom: 18px; }
.hero-accent { color: var(--red); }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 480px; line-height: 1.65; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--border); }
.hero-stat strong { display: block; font-family: var(--fd); font-size: 30px; font-weight: 500; line-height: 1; margin-bottom: 4px; }
.hero-stat span { font-size: 12.5px; color: var(--muted); }

/* ── BUTTONS ─────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px; background: var(--text); color: var(--bg);
  border: none; border-radius: 9px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: var(--fb); transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.8; color: var(--bg); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px; background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 9px; font-size: 14px;
  font-weight: 500; cursor: pointer; font-family: var(--fb); transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--text); color: var(--text); }

/* ── FEATURES (home) ─────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 52px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 14px; }
.feature-title { font-family: var(--fd); font-size: 17.5px; font-weight: 500; margin-bottom: 7px; }
.feature-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── CTA STRIP ───────────────────────────────────────────────────────── */
.cta-strip { background: var(--tag); border-radius: 14px; padding: 36px; text-align: center; margin-bottom: 64px; }
.cta-strip h2 { font-family: var(--fd); font-size: 26px; font-weight: 500; margin-bottom: 9px; }
.cta-strip p { font-size: 14px; color: var(--muted); margin-bottom: 22px; max-width: 380px; margin-left: auto; margin-right: auto; line-height: 1.65; }
.cta-strip-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── TABS ────────────────────────────────────────────────────────────── */
.tab-bar { display: flex; gap: 3px; background: var(--tag); border-radius: 11px; padding: 4px; width: fit-content; margin-bottom: 28px; }
.tab-btn {
  padding: 7px 18px; border-radius: 8px; font-size: 13.5px; font-weight: 500;
  cursor: pointer; border: none; background: transparent; color: var(--muted);
  font-family: var(--fb); transition: all 0.15s;
}
.tab-btn.active { background: var(--card); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ── PROFILE GRID ────────────────────────────────────────────────────── */
.profile-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }

/* ── PROFILE CARD ────────────────────────────────────────────────────── */
.profile-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.profile-card:hover { border-color: var(--muted); box-shadow: 0 2px 12px rgba(0,0,0,.07); transform: translateY(-2px); }
.card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 13px; }
.card-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
}
.card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.card-name { font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.card-meta { font-size: 12px; color: var(--muted); }
.card-title { font-family: var(--fd); font-size: 17.5px; font-weight: 500; line-height: 1.28; margin-bottom: 9px; }
.card-bio {
  font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
.tag { padding: 2px 8px; border-radius: 20px; font-size: 11.5px; font-weight: 500; }
.tag-a { background: #E4F3FD; color: #005B9F; }
.tag-o { background: #E8F5E9; color: #2E7D3C; }
.tag-e { background: #FFF8E1; color: #7A6000; }
.card-btn {
  padding: 9px 16px; background: var(--text); color: var(--bg); border: none; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer; width: 100%; font-family: var(--fb);
  display: flex; align-items: center; justify-content: center; gap: 6px; transition: opacity 0.15s;
}
.card-btn:hover { opacity: 0.8; }

/* ── EMPTY STATE ─────────────────────────────────────────────────────── */
.empty-state { grid-column: 1/-1; text-align: center; padding: 64px 24px; }
.empty-state p { font-size: 14px; color: var(--muted); margin-bottom: 18px; line-height: 1.65; }

/* ── MODAL ───────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 200; align-items: flex-start; justify-content: center;
  padding: 60px 20px 40px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal { background: var(--card); border-radius: 18px; padding: 32px; max-width: 600px; width: 100%; margin: 0 auto; position: relative; }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; transition: color 0.15s; }
.modal-close:hover { color: var(--text); }
.modal-top { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.modal-avatar { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: var(--fd); font-size: 24px; font-weight: 500; color: #fff; }
.modal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.modal-name { font-family: var(--fd); font-size: 27px; font-weight: 500; margin-bottom: 4px; line-height: 1.1; }
.modal-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.modal-title { font-family: var(--fd); font-size: 17px; font-weight: 400; font-style: italic; color: var(--red); line-height: 1.35; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 22px; }
.modal-label { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 8px; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.modal-list { list-style: none; }
.modal-list li { font-size: 13.5px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.modal-list li:last-child { border-bottom: none; }
.extra-list { list-style: none; }
.extra-list li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; padding: 4px 0; }
.extra-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.thesis-box { background: var(--tag); border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; border-left: 3px solid var(--purple); }
.thesis-title { font-family: var(--fd); font-size: 14.5px; font-weight: 500; margin-bottom: 4px; line-height: 1.35; }
.thesis-sup { font-size: 12px; color: var(--muted); }
.modal-bio { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.modal-langs { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }
.modal-connect { padding: 12px 26px; background: var(--red); color: #fff; border: none; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--fb); display: inline-flex; align-items: center; gap: 8px; transition: opacity 0.15s; }
.modal-connect:hover { opacity: 0.85; }

/* ── ABOUT ───────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 8px 0 64px; align-items: start; }
.about-text h2 { font-family: var(--fd); font-size: 30px; font-weight: 500; line-height: 1.15; margin-bottom: 16px; }
.about-text p { font-size: 14.5px; color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
.principles-stack { display: flex; flex-direction: column; gap: 10px; }
.principle { background: var(--tag); border-radius: 10px; padding: 16px 18px; }
.principle-num { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--red); margin-bottom: 4px; }
.principle-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.principle-desc { font-size: 13px; color: var(--muted); line-height: 1.55; }
.about-add { background: var(--tag); border-radius: 14px; padding: 28px 32px; margin-bottom: 64px; }
.about-add h2 { font-family: var(--fd); font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.about-add p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 4px; }

/* ── STORIES ─────────────────────────────────────────────────────────── */
.stories-empty { padding: 72px 0; text-align: center; }
.stories-empty h2 { font-family: var(--fd); font-size: 30px; font-weight: 500; margin-bottom: 12px; }
.stories-empty p { font-size: 15px; color: var(--muted); max-width: 440px; margin: 0 auto 28px; line-height: 1.65; }

/* ── FOOTER ──────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 22px 32px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.footer-logo { font-family: var(--fd); font-size: 15px; font-weight: 500; color: var(--muted); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 860px) { .profile-grid { grid-template-columns: repeat(2,1fr); } .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) {
  nav { padding: 0 16px; }
  .nav-link { padding: 5px 9px; font-size: 12.5px; }
  .nav-cta { padding: 6px 12px; margin-left: 4px; }
  .container { padding: 0 16px; }
  .hero h1 { font-size: 40px; }
  .hero-stats { gap: 20px; }
  .profile-grid, .features-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .modal-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 6px; text-align: center; padding: 16px; }
}
