@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --ground: #121110;
  --ink: #f2f0ed;
  --muted: #9e9e9e;
  --line: rgba(158,158,158,.3);
  --gutter: clamp(1.5rem,5vw,5.5rem);
  font-family: 'Inter', system-ui, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100svh; display: flex; flex-direction: column; color: var(--ink); background: var(--ground); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #b91c1c; outline-offset: 6px; }
::selection { background: #942125; color: #fff; }
.header { display: flex; align-items: center; min-height: 5.5rem; padding: 0 var(--gutter); }
.wordmark { font-size: .85rem; font-weight: 550; letter-spacing: -.03em; }
.wordmark:hover { text-decoration: underline; text-underline-offset: .3rem; }
main { flex: 1; width: min(calc(100% - 2 * var(--gutter)),44rem); margin: 0 auto; padding: clamp(3rem,7vw,5rem) 0 6rem; }
h1, h2 { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; letter-spacing: -.02em; }
h1 { margin: 0 0 3rem; padding-bottom: 1.5rem; border-bottom: 4px solid #fff; font-size: clamp(2rem,5vw,3.6rem); line-height: 1.1; overflow-wrap: anywhere; }
h2 { position: relative; margin: 2.8rem 0 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: clamp(1.35rem,2.5vw,1.65rem); line-height: 1.2; }
h2::before { content: ''; position: absolute; top: -1px; left: 0; width: 32%; height: 4px; background: #fff; }
p, li { margin: 0 0 1.2rem; color: var(--muted); font-size: 1rem; line-height: 1.65; letter-spacing: -.02em; }
ul { padding-left: 1.2rem; }
li { margin-bottom: .4rem; }
main a { color: var(--ink); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
main a:hover { border-color: var(--ink); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; margin: 0 var(--gutter); padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.footer > a { color: var(--ink); }
.footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .25rem; }
@media (max-width: 599px) {
  .wordmark { font-size: .75rem; }
  main { padding-top: 2rem; padding-bottom: 4rem; }
}
