/* msbrandolini.com — apex + shared design tokens
 *
 * Cohesive "scholar's study" aesthetic for the career-portable front door:
 * warm dark background with amber candlelight, Fraunces display serif paired
 * with Atkinson Hyperlegible body (accessibility-first, aligned with ELL focus).
 *
 * When editing, respect the design tokens in :root — they define the brand.
 * Component styles below can be adjusted freely.
 */

  :root {
    --bg: #13111c;
    --bg-tint: #1a1828;
    --ink: #f1e8d4;
    --ink-dim: #b3a78f;
    --ink-quiet: #7a715f;
    --accent: #ffc987;
    --accent-deep: #d49a4e;
    --rule: rgba(241, 232, 212, 0.08);
    --rule-strong: rgba(241, 232, 212, 0.15);
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Atkinson Hyperlegible', -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  /* Subtle warm grain overlay */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 0.88  0 0 0 0 0.62  0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.5;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
  }

  /* Warm radial glow behind hero — suggests candlelight */
  body::after {
    content: '';
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    background: radial-gradient(ellipse at center, rgba(255, 201, 135, 0.07) 0%, rgba(255, 201, 135, 0.03) 35%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  main {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 96px 32px 64px;
  }

  @media (max-width: 600px) {
    main { padding: 64px 24px 48px; }
    body { font-size: 16px; }
  }

  /* Monogram mark */
  .mark {
    display: inline-block;
    font-family: 'Fraunces', serif;
    font-variation-settings: "opsz" 144, "SOFT" 80;
    font-weight: 500;
    font-style: italic;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--accent);
    margin-bottom: 56px;
    opacity: 0;
    animation: rise 0.9s 0.1s ease-out forwards;
  }

  .mark::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--accent-deep);
    vertical-align: middle;
    margin-right: 14px;
    margin-bottom: 3px;
  }

  h1 {
    font-family: 'Fraunces', serif;
    font-variation-settings: "opsz" 144, "SOFT" 50;
    font-weight: 380;
    font-size: clamp(44px, 8vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    color: var(--ink);
    opacity: 0;
    animation: rise 1s 0.25s ease-out forwards;
  }

  h1 em {
    font-style: italic;
    font-variation-settings: "opsz" 144, "SOFT" 100;
    color: var(--accent);
    font-weight: 300;
  }

  .role {
    font-size: 15px;
    color: var(--ink-dim);
    letter-spacing: 0.02em;
    line-height: 1.55;
    margin-bottom: 48px;
    max-width: 520px;
    opacity: 0;
    animation: rise 1s 0.4s ease-out forwards;
  }

  .role strong {
    color: var(--ink);
    font-weight: 700;
  }

  .bio {
    font-family: 'Fraunces', serif;
    font-variation-settings: "opsz" 48, "SOFT" 40;
    font-weight: 350;
    font-size: 20px;
    line-height: 1.55;
    color: var(--ink);
    margin-bottom: 72px;
    max-width: 560px;
    opacity: 0;
    animation: rise 1s 0.55s ease-out forwards;
  }

  .bio p + p { margin-top: 18px; }

  .section-label {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-quiet);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    animation: rise 1s 0.7s ease-out forwards;
  }
  .section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rule);
  }

  .links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 72px;
    opacity: 0;
    animation: rise 1s 0.85s ease-out forwards;
  }

  .link {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 24px;
    padding: 22px 2px;
    border-bottom: 1px solid var(--rule);
    color: inherit;
    text-decoration: none;
    transition: padding 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s;
  }
  .link:first-child {
    border-top: 1px solid var(--rule);
  }
  .link:hover, .link:focus-visible {
    padding-left: 18px;
    border-color: var(--rule-strong);
    outline: none;
  }
  .link:hover .link-title, .link:focus-visible .link-title {
    color: var(--accent);
  }
  .link:hover .arrow, .link:focus-visible .arrow {
    transform: translateX(6px);
    color: var(--accent);
  }

  .link-text { min-width: 0; }

  .link-title {
    font-family: 'Fraunces', serif;
    font-variation-settings: "opsz" 48, "SOFT" 30;
    font-weight: 420;
    font-size: 23px;
    letter-spacing: -0.01em;
    color: var(--ink);
    display: block;
    margin-bottom: 4px;
    transition: color 0.2s;
  }

  .link-desc {
    font-size: 14px;
    color: var(--ink-dim);
    line-height: 1.5;
  }

  .arrow {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    color: var(--ink-quiet);
    line-height: 1;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.2s;
    align-self: center;
  }

  .note {
    font-size: 13px;
    color: var(--ink-quiet);
    font-style: italic;
    padding: 4px 0 0 1px;
    line-height: 1.5;
    opacity: 0;
    animation: rise 1s 1.0s ease-out forwards;
  }

  footer {
    font-size: 12px;
    color: var(--ink-quiet);
    letter-spacing: 0.08em;
    padding-top: 48px;
    margin-top: 48px;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: rise 1s 1.15s ease-out forwards;
  }

  footer .sigil {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-variation-settings: "opsz" 144, "SOFT" 100;
    font-size: 16px;
    color: var(--accent-deep);
    letter-spacing: -0.02em;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
  }

  /* Selection */
  ::selection {
    background: var(--accent);
    color: var(--bg);
  }

  /* --- Ko-fi support link --- */
  /* Small, understated. No widget, no JS. Footer-adjacent, below the est. sigil. */
  .support {
    font-size: 13px;
    color: var(--ink-quiet);
    letter-spacing: 0.04em;
    margin-top: 16px;
    padding-top: 12px;
    text-align: center;
    opacity: 0;
    animation: rise 1s 1.3s ease-out forwards;
  }
  .support a {
    color: var(--accent-deep);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
  }
  .support a:hover, .support a:focus-visible {
    color: var(--accent);
    border-bottom-color: var(--accent);
  }

