/* ============================================================
   Brendan Donahue — portfolio
   Palette:  ink #14202e · slate #47566a · paper #fbfaf7
             line #e2ded6 · accent #1f6f6b (deep teal)
   Type:     Fraunces (display) · Inter (text/UI)
   ============================================================ */

   :root {
    --ink:    #14202e;
    --slate:  #47566a;
    --paper:  #fbfaf7;
    --line:   #e2ded6;
    --accent: #1f6f6b;
    --accent-ink: #12403d;
    --measure: 62ch;
  }
  
  * { box-sizing: border-box; }
  
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
  }
  
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  
  a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
  a:hover { color: var(--accent); }
  
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
  }
  
  /* ---- header ---- */
  .site {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.6rem 1.5rem;
  }
  .wordmark {
    font-family: "Fraunces", serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
  }
  .site nav { display: flex; gap: 1.4rem; }
  .site nav a {
    color: var(--slate);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
  }
  .site nav a:hover { color: var(--accent); }
  
  /* ---- layout rhythm ---- */
  main { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
  .block { padding: 4.5rem 0; border-top: 1px solid var(--line); }
  
  h2 {
    font-family: "Fraunces", serif;
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
    margin: 0 0 1.6rem;
  }
  
  /* ---- hero ---- */
  .hero { padding: 3.5rem 0 3rem; max-width: 20ch; }
  .hero { max-width: none; }
  .role {
    color: var(--accent-ink);
    font-weight: 600;
    font-size: 0.98rem;
    margin: 0 0 1.2rem;
  }
  .hero h1 {
    font-family: "Fraunces", serif;
    font-weight: 600;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 1.4rem;
    max-width: 16ch;
  }
  .lede {
    color: var(--slate);
    font-size: 1.15rem;
    max-width: var(--measure);
    margin: 0 0 2rem;
  }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
  
  .btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.7rem 1.3rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.98rem;
    transition: background 120ms ease;
  }
  .btn:hover { background: var(--accent-ink); color: #fff; }
  .btn.ghost {
    background: transparent;
    color: var(--accent-ink);
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); background: transparent; }
  
  /* ---- signature stat ---- */
  .stat {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.6rem;
    align-items: center;
    padding: 2.4rem 0 3.6rem;
  }
  .stat-figure {
    font-family: "Fraunces", serif;
    font-weight: 700;
    font-size: clamp(3.2rem, 9vw, 5.5rem);
    line-height: 0.9;
    color: var(--accent);
    letter-spacing: -0.03em;
  }
  .stat-note {
    color: var(--slate);
    font-size: 1.08rem;
    max-width: 46ch;
    margin: 0;
  }
  
  /* ---- projects ---- */
  .project { max-width: var(--measure); padding: 0.5rem 0 0; }
  .project-head { margin-bottom: 0.6rem; }
  .project h3 {
    font-family: "Fraunces", serif;
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0 0 0.35rem;
    letter-spacing: -0.01em;
  }
  .tags { color: var(--slate); font-size: 0.92rem; }
  .project p { color: var(--slate); margin: 0 0 1rem; }
  .project-link { font-weight: 600; text-decoration: none; }
  .project-link:hover { text-decoration: underline; }
  
  /* ---- about ---- */
  .about p { max-width: var(--measure); color: var(--slate); }
  .about p + p { margin-top: 1rem; }
  
  /* ---- footer ---- */
  footer {
    border-top: 1px solid var(--line);
    background: var(--ink);
    color: var(--paper);
    margin-top: 2rem;
  }
  footer { padding: 4rem 1.5rem; }
  footer > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
  footer h2 { color: var(--paper); }
  .links {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
  }
  .links a { color: var(--paper); font-weight: 500; }
  .links a:hover { color: #8fd6d0; }
  .colophon { color: #7c8a9c; font-size: 0.9rem; margin: 2.2rem auto 0; }
  
  /* ---- responsive ---- */
  @media (max-width: 620px) {
    body { font-size: 17px; }
    .site { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
    .stat { grid-template-columns: 1fr; gap: 0.8rem; }
    .block { padding: 3.2rem 0; }
  }
  
  /* ---- project detail prose ---- */
  .prose { max-width: var(--measure); }
  .prose p { color: var(--slate); margin: 0 0 1.1rem; }
  .prose strong { color: var(--ink); font-weight: 600; }
  .prose ul { color: var(--slate); padding-left: 1.2rem; margin: 0 0 1.1rem; }
  .prose li { margin-bottom: 0.7rem; }
  .prose code {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.86em;
    background: #f3efe8;
    border: 1px solid var(--line);
    padding: 0.12em 0.42em;
    border-radius: 5px;
    color: var(--accent-ink);
    white-space: nowrap;
  }