/* ---------- Design tokens ---------- */
:root {
    --bg: #ffffff;
    --text: #18181b;
    --muted: #71717a;
    --subtle: #a1a1aa;
    --border: #e4e4e7;
    --hover: #09090b;
    --code-bg: #f4f4f5;
  }
  
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #0F0F0F;
      --text: #fafafa;
      --muted: #a1a1aa;
      --subtle: #71717a;
      --border: #27272a;
      --hover: #ffffff;
      --code-bg: #18181b;
    }
  }

  
  
  /* ---------- Base ---------- */
  * { box-sizing: border-box; }
  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 24px 120px;
    line-height: 1.65;
    font-size: 15.5px;
    font-weight: 400;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
  }
  
  /* ---------- Header ---------- */

  header {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    margin-bottom: 8px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
  }
  
  .avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--code-bg);
    object-fit: cover;
    flex-shrink: 0;
    display: block;
  }
  
  .header-text {
    flex: 1;
    padding-top: 8px;
  }
  
  /* stack on mobile */
  @media (max-width: 600px) {
    header {
      flex-direction: column;
      gap: 20px;
    }
    .avatar {
      width: 120px;
      height: 120px;
    }

    body {
      padding: 56px 20px 80px;
      font-size: 16px;
    }

    h1 {
      font-size: 1.6rem;
    }

    .tagline {
      font-size: 0.95rem;
    }

    p {
      font-size: 0.95rem;
      line-height: 1.6;
    }

    details ul,
    details p {
      font-size: 0.95rem;
      line-height: 1.6;
    }
  }
  
  h1 {
    font-size: 1.5rem;
    margin: 0 0 4px 0;
    font-weight: 600;
    letter-spacing: -0.015em;
  }
  
  .tagline {
    color: var(--muted);
    margin: 0 0 16px 0;
    font-size: 1rem;
  }
  
  /* ---------- Sections ---------- */
  h2 {
    font-size: 1rem;
    margin-top: 48px;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
  }
  
  p {
    margin: 0 0 14px 0;
  }

  .about p {
    color: var(--muted);
  }
  
  section p:last-child {
    margin-bottom: 0;
  }
  
  /* ---------- Links ---------- */
  a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s ease;
  }

  a:hover {
    color: var(--hover);
  }
  
  .links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--muted);
  }
  
  .links a {
    color: var(--muted);
    border-bottom: none;
  }
  
  .links a:hover {
    color: var(--text);
    border-bottom: none;
  }

  .links a.copied {
    color: #000000;
    background: #ffffff;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 500;
    font-size: 0.85rem;
  }

  .links a.copied::after {
    content: "";
  }
  
  .links a::after {
    content: " →";
    color: var(--subtle);
  }
  
  /* ---------- Projects ---------- */
  .project {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
  }
  
  .project:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  .project-title {
    font-weight: 500;
    margin-bottom: 4px;
  }
  
  .project-desc {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
  }
  
  /* ---------- Footer ---------- */
  footer {
    margin-top: 80px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--subtle);
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
  }
  
  /* ---------- Collapsible coursework ---------- */
details {
    margin-bottom: 8px;
  }
  
  summary {
    cursor: pointer;
    padding: 6px 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
  }
  
  /* hide default disclosure triangle */
  summary::-webkit-details-marker {
    display: none;
  }
  
  
  /* +/- when openning */

  summary::before {
    content: "+";
    color: var(--subtle);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.9em;
    width: 14px;
    display: inline-block;
  }

  details[open] > summary::before {
    content: "−";
  }

  .logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--code-bg);
    border: 1px solid var(--border);
    flex-shrink: 0;
  }

  .exp-text {
    font-size: 0.95rem;
  }

  summary strong {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    background: none;
    padding: 0;
    border-radius: 0;
    margin-right: 0;
  }

  
  details p {
    padding: 4px 0 8px 22px;
    color: var(--muted);
    font-size: 0.95rem;
  }

  details ul {
    margin: 4px 0 8px 0;
    padding-left: 22px;
    color: var(--muted);
    font-size: 0.95rem;
    list-style: none;
  }

  details ul li {
    margin-bottom: 4px;
    position: relative;
    padding-left: 18px;
  }

  details ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-size: 0.75em;
    top: 0.15em;
    color: var(--subtle);
  }

  .semesters {
    padding-left: 22px;
  }

  .semesters ul {
    padding-left: 18px;
    margin: 4px 0 12px 0;
  }

  .semester-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--subtle);
    margin: 8px 0 4px 0;
  }

