/* ============================================================
   doss.me — Claude draft
   Clean. Direct. Confident without performing confidence.
   The design should feel like J talks: short, specific, no filler.
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --bg: #ffffff;
  --bg-subtle: #f8f9fa;
  --bg-warm: #fafaf8;
  --surface: #ffffff;
  --surface-hover: #f3f4f6;
  --black: #111111;
  --text: #374151;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --accent: #111111;
  --accent-soft: #e5e7eb;
  --green: #22c55e;
  --blue: #2563eb;
  --border: #e5e7eb;
  --border-light: #f3f4f6;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --max-width: 820px;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --radius: 8px;
  --radius-lg: 12px;

  --transition: 0.2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- Container ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav-scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: var(--space-lg);
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  padding: var(--space-xs) 0;
}
.nav-link:hover {
  color: var(--black);
}

/* ---- Hero ---- */
.hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
  letter-spacing: -0.025em;
  max-width: 700px;
}
.hero-sub {
  margin-top: var(--space-lg);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 600px;
}

/* ---- Facts ---- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-3xl);
}
.fact {
  background: var(--bg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.fact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}
.fact-value {
  font-size: 0.9rem;
  color: var(--black);
  line-height: 1.5;
}

/* ---- Sections ---- */
.section {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border);
}
.section h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}
.section-intro {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: var(--space-2xl);
}

/* ---- Timeline / Roles ---- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}
.role {
  padding-left: var(--space-lg);
  border-left: 2px solid var(--border);
  transition: border-color var(--transition);
}
.role:hover {
  border-left-color: var(--text-secondary);
}
.role-current {
  border-left-color: var(--black);
}
.role-current:hover {
  border-left-color: var(--black);
}
.role-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.role-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
}
.role-org {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.role-dates {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  white-space: nowrap;
}
.role-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.role-details li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}
.role-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-tertiary);
}
.role-current .role-details li::before {
  background: var(--green);
}

/* ---- Skills ---- */
.skills-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: var(--space-md);
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.skill {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.35em 0.75em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition);
}
.skill:hover {
  background: var(--bg-subtle);
  border-color: var(--text-tertiary);
}

/* ---- Projects ---- */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}
.project-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--border);
}
.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: var(--space-sm);
}
.project-card p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}
.project-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  margin-bottom: var(--space-md);
}
.project-status-active {
  background: #dcfce7;
  color: #166534;
}
.project-status-building {
  background: #fef3c7;
  color: #92400e;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.project-tech span {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  padding: 0.2em 0.5em;
  background: var(--bg);
  border-radius: 4px;
}

/* ---- About ---- */
.about-content {
  max-width: 640px;
}
.about-content p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: var(--space-lg);
  color: var(--text);
}
.about-content em {
  font-style: italic;
  color: var(--black);
}
.about-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--black);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

/* ---- Connect ---- */
.section-connect {
  text-align: center;
}
.section-connect h2 {
  font-size: 2rem;
}
.section-connect p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}
.connect-links {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}
.connect-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.65em 1.25em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.connect-link:hover {
  border-color: var(--black);
  color: var(--black);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.connect-link-primary {
  background: var(--black);
  color: var(--bg);
  border-color: var(--black);
}
.connect-link-primary:hover {
  background: #222;
  color: var(--bg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.connect-icon {
  font-weight: 700;
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border-radius: 6px;
}
.connect-link-primary .connect-icon {
  background: rgba(255,255,255,0.15);
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0;
  text-align: center;
}
footer p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in:nth-child(2) { transition-delay: 0.05s; }
.fade-in:nth-child(3) { transition-delay: 0.1s; }
.fade-in:nth-child(4) { transition-delay: 0.15s; }
.fade-in:nth-child(5) { transition-delay: 0.2s; }
.fade-in:nth-child(6) { transition-delay: 0.25s; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.5rem; }
  .facts { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .role-header { flex-direction: column; }
  .nav-links { display: none; }
  .connect-links { flex-direction: column; align-items: center; }
}
