/* Theme */
:root {
  --bg: #ffffff;
  --text: #333333;
  --muted: #666666;
  --accent: #00a870;
  --border: #eaeaea;
  --card: #ffffff;
  --radius: 16px;
  --maxw: 1024px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --line-height: 1.75;
  
  /* Spacing */
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: var(--line-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-md);
  font-size: 16px;
  letter-spacing: -0.011em;
}

h1, h2, h3, h4 {
  margin: 2rem 0 1rem;
  font-family: var(--font-primary);
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h1 { 
  font-size: 2.5rem; 
  margin-top: 3rem;
}
h2 { 
  font-size: 1.8rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.3rem;
}
h3 { 
  font-size: 1.4rem;
  font-style: normal;
}
h4 { 
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

p {
  margin: 0 0 1.5rem;
  color: var(--text-color);
  font-size: 1rem;
  line-height: var(--line-height);
}

p + p {
  margin-top: -0.5rem;
}

hr {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: var(--spacing-md) 0;
}

/* Content styles */
.content {
  display: block;
}

.no-underline {
  text-decoration: none;
}

/* links and code blocks */
a {
  color: var(--link-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

a:hover {
  border-bottom-color: var(--link-color);
}

code {
  font-family: var(--font-mono);
  background-color: var(--light-gray);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--primary-color);
}

pre {
  background-color: var(--light-gray);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  margin: 1.5rem 0;
}

pre code {
  background-color: transparent;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 3px solid var(--secondary-color);
  color: #666;
  font-style: italic;
  background-color: var(--light-gray);
  border-radius: 0 4px 4px 0;
}

/* list formatting */
ul, ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

li {
  margin-bottom: 0.5rem;
  line-height: var(--line-height);
}

/* Base styles */
* { box-sizing: border-box }
html, body { margin: 0; padding: 0 }

/* Links */
a { 
  color: inherit; 
  text-underline-offset: 2px;
}

a:hover { 
  color: var(--accent);
}

/* Layout */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-sm) var(--spacing-lg);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* Header and Hero section */
header {
  padding-top: var(--spacing-sm);
}

.hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--spacing-md);
  align-items: start;
  padding-top: 8px;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--card);
}

.name {
  font-size: clamp(24px, 3.2vw, 36px);
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0;
  color: var(--muted);
}

/* Social Icons */
.icons {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  text-decoration: none;
  transition: all 0.2s ease;
}

.icon:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.icon svg {
  width: 18px;
  height: 18px;
}

/* Section headings */
section {
  margin-top: 36px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
}

.section-title h2 {
  font-size: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

/* Details accordions */
details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  padding: 0;
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

.caret {
  inline-size: 10px;
  block-size: 10px;
  border: 2px solid var(--muted);
  border-left: 0;
  border-top: 0;
  transform: rotate(45deg);
  transition: transform .18s ease;
}

details[open] .caret {
  transform: rotate(225deg);
}

.content {
  padding: 4px 16px 14px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 88px 56px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.timeline li:first-child {
  border-top: 0;
}

.time {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
  font-size: 14px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--card);
}

.item h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.role {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--muted);
}

.item p {
  margin: 0;
  font-size: 14px;
}

/* Navigation */
.topnav {
  display: flex;
  gap: 10px;
  margin: 14px 0 6px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Footer */
footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 640px) {
  .hero {
    grid-template-columns: 100px 1fr;
  }
  
  .avatar {
    width: 100px;
    height: 100px;
  }
  
  .timeline li {
    grid-template-columns: 68px 44px 1fr;
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media screen and (max-width: 768px) {
  .hero {
    grid-template-columns: 120px 1fr;
    gap: var(--spacing-md);
  }
  
  .avatar {
    width: 120px;
    height: 120px;
  }
  
  .name {
    font-size: clamp(20px, 2.8vw, 32px);
  }
  
  .tagline {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-sm);
  }

  .avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  .icons {
    justify-content: center;
  }
  
  .timeline li {
    grid-template-columns: 60px 40px 1fr;
    gap: 8px;
  }
}
