@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #080d19;
  --surface: #111a2b;
  --text: #eef2fa;
  --muted: #b3c0d4;
  --border: #303e54;
  --accent: #67e8f9;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font: 1rem/1.65 Manrope, system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, h4, h5, h6 { font-family: Fraunces, Georgia, serif; line-height: 1.2; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); margin: 0 0 1.5rem; }
.skip { position: absolute; top: 1rem; left: 1rem; background: var(--surface); padding: .5rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--border); }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; max-width: 76rem; margin: auto; padding: 1rem clamp(1rem, 5vw, 3rem); }
.site-header a { text-decoration: none; }
.site-header a:hover { text-decoration: underline; }
.brand { margin-inline-end: auto; color: var(--text); font-family: Fraunces, Georgia, serif; font-size: 1.4rem; font-weight: 700; }
main { max-width: 76rem; margin: auto; padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 5vw, 3rem); }
.tags, .pages { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.tags { margin-bottom: 2rem; }
.pages { margin-top: 2rem; }
.tags a, .pages a { border: 1px solid var(--border); border-radius: 999px; padding: .32rem .9rem; text-decoration: none; }
.tags a:hover, .tags a[aria-current], .pages a:hover { background: var(--accent); color: var(--background); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; }
.card { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; }
.card-text { padding: 1.25rem; overflow-wrap: anywhere; }
.card h2 { margin: 0; }
.card h2 a { color: inherit; }
.cover { display: block; width: 100%; height: auto; }
.card .cover { aspect-ratio: 16 / 9; object-fit: cover; }
.byline { color: var(--muted); font-size: .9rem; }
.article { max-width: 48rem; margin-inline: auto; }
.article h1 { margin: 1.2rem 0 .8rem; }
.article .cover { margin: 1.5rem 0; border-radius: 1rem; }
.prose { margin-top: 2rem; font-size: 1.08rem; overflow-wrap: anywhere; }
.prose :is(h2, h3, h4) { margin-top: 2em; scroll-margin-top: 1rem; }
.prose h2 { font-size: 1.9rem; }
.prose li + li { margin-top: .45rem; }
.prose img { display: block; width: 100%; height: auto; border-radius: .75rem; }
.prose blockquote { margin: 1.5rem 0; padding: .25rem 1rem; border-inline-start: 3px solid var(--accent); color: var(--muted); }
.prose pre, .prose table { display: block; max-width: 100%; overflow-x: auto; }
.prose pre, .prose code { background: var(--surface); border-radius: .35rem; }
.prose pre { padding: 1rem; }
.prose :not(pre) > code { padding: .12rem .3rem; }
.prose table { border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--border); padding: .55rem .75rem; }
.prose th { background: var(--surface); }
.inquiry-inline, .inquiry-panel { margin: 2rem 0; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); padding: 1.25rem; }
.inquiry-inline { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.inquiry-panel h2 { margin: 0; }
.inquiry-panel p { color: var(--muted); }
.inquiry-link { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1rem; border-radius: 999px; background: var(--accent); color: var(--background); font-weight: 800; text-decoration: none; }
.inquiry-link:hover { text-decoration: underline; }
