@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/newsreader-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/newsreader-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/newsreader-latin-400-italic.woff2") format("woff2"); }

:root {
  --paper: #E9ECEE;
  --ink: #1F2A33;
  --secondary: #66727C;
  --rule: #C9CFD4;
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
p { margin: 0; }
h1, h2 { margin-top: 0; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 8px; top: 8px; z-index: 100;
  transform: translateY(-200%);
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px;
  font-size: 15px; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header {
  max-width: 1100px; width: 100%; margin: 0 auto; padding: 36px 72px 0;
  display: flex; align-items: baseline; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { font-size: 30px; font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.brand-rule { width: 1px; align-self: stretch; background: var(--ink); opacity: 0.35; }
.brand-name { font-size: 15px; font-weight: 300; line-height: 1; letter-spacing: 0.01em; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 15px; color: var(--secondary); text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--ink); }
.menu-toggle {
  display: none; background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 15px; color: var(--secondary);
}
.mobile-nav { max-width: 1100px; width: 100%; margin: 0 auto; padding: 16px 28px 0; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: block; padding: 6px 0; font-size: 15px; color: var(--secondary); text-decoration: none; }
.mobile-nav a[aria-current="page"] { color: var(--ink); }

/* Layout */
.site-main { max-width: 1100px; width: 100%; margin: 0 auto; padding: 0 72px 96px; flex: 1; }
.layout { display: grid; grid-template-columns: 1fr; padding-top: 96px; align-items: start; }
.layout.two-col { grid-template-columns: 60fr 35fr; }
.layout.two-col > .content { padding-right: 56px; }
.content { view-transition-name: content; }
.narrow { max-width: 62ch; }

.main-heading { font-weight: 300; font-size: 34px; line-height: 1.2; margin-bottom: 28px; letter-spacing: -0.01em; }
.prose { max-width: 58ch; }
.prose p + p { margin-top: 1.25em; }
.narrow .prose { max-width: none; }
.meta { font-size: 15px; font-style: italic; color: var(--secondary); }
.meta-date { display: block; margin-bottom: 28px; }
.meta-action { display: inline-block; margin-top: 20px; color: var(--secondary); }

/* Research pane */
.research-pane { border-left: 1px solid var(--rule); padding-left: 56px; }
.research-pane h2 { font-weight: 300; font-size: 28px; line-height: 1.2; margin-bottom: 28px; letter-spacing: -0.01em; }
.research-list { list-style: none; padding: 0; margin: 0; }
.research-list li + li { border-top: 1px solid var(--rule); margin-top: 16px; padding-top: 16px; }
.research-list a { display: block; font-size: 18px; line-height: 1.4; color: var(--ink); text-decoration: none; margin-bottom: 3px; }
.research-list a:hover, .research-list a[aria-current="page"] { text-decoration: underline; }
.research-list .meta { display: block; }

/* Contact */
.address { font-style: normal; line-height: 1.8; font-size: 18px; margin-bottom: 36px; }
.map-block { border-top: 1px solid var(--rule); padding-top: 32px; }
.map-frame { position: relative; width: 100%; height: 0; padding-bottom: 40%; filter: grayscale(1) contrast(0.88) brightness(1.04); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-credit { font-size: 13px; color: var(--secondary); margin-top: 8px; font-style: italic; }
.map-credit a { color: var(--secondary); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); margin-top: auto; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 28px 72px; text-align: center; font-size: 14px; color: var(--secondary); line-height: 1.8; }
.footer-inner p:first-child { margin-bottom: 6px; }
.footer-inner a { color: var(--secondary); }
.footer-sep { margin: 0 16px; color: var(--rule); }

@media (max-width: 800px) {
  .site-header { padding: 28px 28px 0; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .site-main { padding: 0 28px 64px; }
  .layout { padding-top: 64px; }
  .layout.two-col { grid-template-columns: 1fr; }
  .layout.two-col > .content { padding-right: 0; }
  .research-pane { margin-top: 48px; border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 40px; }
  .main-heading { font-size: 28px; }
  .footer-inner { padding: 24px 28px; }
}

/* Page transitions between documents (Chrome, Edge, Safari 18+); other browsers just navigate. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  ::view-transition-old(content) { animation: ips-out 240ms cubic-bezier(0.4, 0, 1, 1) both; }
  ::view-transition-new(content) { animation: ips-in 420ms cubic-bezier(0, 0, 0.2, 1) 40ms both; }
  @keyframes ips-out { to { opacity: 0; transform: translateY(10px); } }
  @keyframes ips-in { from { opacity: 0; transform: translateY(10px); } }
}
