@layer reset, base, layout, components, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, p, dl, dd { margin: 0; }
  a { color: inherit; }
}
@layer base {
  :root { --paper: #fff; --rail: #fafafa; --ink: #202124; --muted: #666a71; --line: #e7e7e9; --accent: #932838; --rail-width: 16rem; }
  html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
  body { background: var(--paper); color: var(--ink); font: 400 1rem/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
  ::selection { background: #f3dce1; color: #631727; }
  a { text-decoration: none; }
  a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
  #main:focus { outline: none; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
}
@layer layout {
  .sidebar { position: fixed; inset: 0 auto 0 0; width: var(--rail-width); padding: 2.25rem 1.5rem; background: var(--rail); border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; }
  main { margin-left: var(--rail-width); padding: 5.8rem clamp(2rem, 7vw, 8rem) 2rem; max-width: 82rem; }
  main > * { max-width: 47rem; }
  .intro { padding-bottom: 4rem; }
  .intro-copy { max-width: 42rem; }
  .intro-copy p + p { margin-top: 1.1rem; }
  .interests { scroll-margin-top: 2rem; }
  footer { margin-top: 4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; color: var(--muted); font-size: .875rem; }
}
@layer components {
  .skip-link { position: fixed; top: -6rem; left: 1rem; padding: .7rem 1rem; background: var(--ink); color: white; z-index: 10; }
  .skip-link:focus { top: 1rem; }
  .identity { display: flex; align-items: center; gap: .85rem; }
  .identity strong { display: block; font-size: 1rem; font-weight: 650; letter-spacing: -.025em; }
  .identity-note { display: block; font-size: .875rem; color: var(--muted); }
  .monogram { display: grid; place-content: center; position: relative; flex: 0 0 2.65rem; height: 2.65rem; border: 1px solid #dedee1; border-radius: .65rem; background: white; font-size: 1.55rem; font-weight: 650; letter-spacing: -.08em; line-height: 1; }
  .monogram span { position: absolute; right: .45rem; bottom: .5rem; color: var(--accent); }
  .page-nav { display: grid; gap: .3rem; margin-top: 3.2rem; }
  .page-nav a, .social-nav a { display: flex; align-items: center; justify-content: space-between; padding: .65rem .65rem; min-height: 44px; border-radius: .35rem; font-size: .9375rem; }
  .page-nav a:hover, .social-nav a:hover { background: #eeeeef; color: var(--accent); }
  .page-nav a:first-child { background: #efeff1; }
  body:has(#interests:target) .page-nav a:first-child { background: transparent; }
  body:has(#interests:target) .page-nav a[href="#interests"] { background: #efeff1; }
  .nav-index, .section-index { color: var(--muted); font: .75rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
  .nav-index { padding: 0 .3rem; border: 1px solid #e0e0e3; border-radius: .2rem; background: #fff; }
  .social-section { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
  .nav-label { font-size: .875rem; color: var(--muted); padding: 0 .65rem .65rem; }
  .social-nav { display: grid; gap: .15rem; }
  .external { color: var(--muted); font-size: 1rem; }
  .sidebar-domain { margin-top: auto; padding: 3rem .65rem 0; color: var(--muted); font: .8125rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
  .eyebrow { font: .75rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .11em; color: var(--muted); margin-bottom: 1.6rem; }
  h1 { font-size: clamp(2.6rem, 4.5vw, 3.9rem); line-height: 1.1; letter-spacing: -.055em; font-weight: 600; margin-bottom: 1.6rem; }
  .accent { color: var(--accent); }
  .lead { font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.65; letter-spacing: -.02em; margin-bottom: 2rem; color: #383a3f; }
  .intro-copy { color: var(--muted); }
  .section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 1.35rem; }
  h2 { font-size: 1.125rem; line-height: 1.5; letter-spacing: -.02em; font-weight: 650; }
  .interest-list > div { display: grid; grid-template-columns: minmax(10rem, 1fr) 1.65fr; gap: 2rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
  dt { font-size: .9375rem; font-weight: 550; }
  dd { color: var(--muted); font-size: .9375rem; }
}
@layer responsive {
  @media (min-width: 1500px) { main { margin-right: auto; } }
  @media (max-width: 1050px) { :root { --rail-width: 13.5rem; } .sidebar { padding: 1.75rem 1rem; } main { padding: 4rem 2.5rem 2rem; } .desktop-break { display: none; } .section-index { display: none; } }
  @media (max-width: 720px) {
    html { scroll-padding-top: 1.5rem; }
    .sidebar { position: static; width: auto; padding: 1.5rem; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
    .identity { width: fit-content; }
    .page-nav { display: flex; margin-top: 1.4rem; gap: .6rem; }
    .page-nav a { gap: 1.25rem; padding-inline: .8rem; }
    .social-section { margin-top: 1.1rem; padding-top: 1rem; }
    .nav-label { display: none; }
    .social-nav { display: flex; flex-wrap: wrap; gap: .25rem .65rem; }
    .social-nav a { gap: .4rem; padding: .35rem .4rem; }
    .sidebar-domain { display: none; }
    main { margin-left: 0; padding: 3rem 1.5rem 1.5rem; }
    .intro { padding-bottom: 3rem; }
    h1 { font-size: 2.8rem; }
    .eyebrow { font-size: .75rem; letter-spacing: .075em; }
    .interest-list > div { grid-template-columns: 1fr; gap: .3rem; padding: 1.25rem 0; }
    footer { margin-top: 2.5rem; }
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
}

