:root {
    --ink: #0e0e0e;
    --ink-muted: #555;
    --paper: #f5f5f5;
    --accent: #1a1aff;
    --rule: hsl(0, 0%, 85.1%);
    --white: #fff;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { font-size: 16px; scroll-behavior: smooth; }
  body {
    background: var(--paper); color: var(--ink);
    font-family: 'DM Sans', sans-serif; font-weight: 400;
    line-height: 1.7; -webkit-font-smoothing: antialiased;
  }

  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1.25rem 3rem;
    display: flex; align-items: center; justify-content: space-between;
    background: var(--white); border-bottom: 1px solid var(--rule);
  }
  .nav-links { display: flex; gap: 2rem; }
  .nav-links a { font-size: 0.85rem; color: var(--ink-muted); text-decoration: none; letter-spacing: 0.03em; transition: color 0.2s; }
  .nav-links a:hover { color: var(--ink); }
  .nav-links a.active { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

  .wide { max-width: 1100px; margin: 0 auto; padding: 0 3rem; }

  .page-header {
    padding-top: 7rem; padding-bottom: 3rem;
    background: var(--white); border-bottom: 1px solid var(--rule);
  }
  .page-header h1 {
    font-family: 'Source Serif 4', serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 900; letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
  }
  .page-header p { font-size: 0.95rem; color: var(--ink-muted); }

  .studies-grid {
    padding: 4rem 0;
    display: flex; flex-direction: column; gap: 1.5rem;
  }

  .study-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 380px 1fr;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
  }
  .study-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-2px);
  }
  .study-thumb {
    background: #e0e0e0;
    aspect-ratio: unset;
    min-height: 240px;
    overflow: hidden;
  }
  .study-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .study-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
  .study-meta {
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
  }
  .study-title {
    font-family: 'Source Serif 4', serif;
    font-size: 1.6rem; font-weight: 900;
    line-height: 1.15; letter-spacing: -0.02em;
    margin-bottom: 0.875rem;
  }
  .study-desc {
    font-size: 0.9rem; color: var(--ink-muted);
    line-height: 1.75; margin-bottom: 1.5rem;
  }
  .study-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .tag {
    font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em;
    padding: 0.3rem 0.8rem; border-radius: 100px;
    background: var(--paper); border: 1px solid var(--rule);
    color: var(--ink-muted);
  }
  .study-arrow {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.85rem; font-weight: 500; color: var(--accent);
    margin-top: 1.5rem;
  }

  footer { border-top: 1px solid var(--rule); padding: 3.5rem 0; background: var(--white); }
  .footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 4rem; align-items: start; }
  .footer-name { font-family: 'Source Serif 4', serif; font-size: 1.4rem; font-weight: 700; color: var(--ink); }
  .footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
  .footer-links a { font-size: 0.875rem; color: var(--ink-muted); text-decoration: none; transition: color 0.2s; }
  .footer-links a:hover { color: var(--ink); }

  @media (max-width: 900px) {
    nav { padding: 1rem 1.5rem; }
    .wide { padding: 0 1.5rem; }
    .study-card { grid-template-columns: 1fr; }
    .study-thumb { min-height: 200px; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  }
