:root {
  --ink: #102329;
  --bone: #f5f4f0;
  --grey: #5d737a;
  --blue: #244e61;
  --line: rgba(16,35,41,.17);
  --pad: clamp(22px,4.5vw,80px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bone); }
body { min-height: 100svh; background: var(--bone); color: var(--ink); font: 400 1rem/1.8 "Inter",system-ui,sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
::selection { color: var(--bone); background: var(--blue); }
nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; padding: 16px var(--pad); border-bottom: 1px solid var(--line); background: rgba(245,244,240,.94); backdrop-filter: blur(18px); }
nav img { display: block; width: clamp(140px,14vw,174px); height: auto; filter: brightness(0); }
nav a.back { padding: 10px 0 10px 20px; color: var(--ink); font-size: .875rem; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line); }
nav a.back:hover { text-decoration-color: var(--ink); }
main { width: min(100%,900px); margin: 0 auto; padding: clamp(64px,9vw,120px) var(--pad); }
.label { color: var(--grey); margin-bottom: 24px; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
h1 { font: 400 clamp(2.8rem,6.2vw,5.8rem)/1.03 "Manrope",sans-serif; letter-spacing: -.055em; margin-bottom: 24px; }
.updated { color: var(--grey); font-size: .75rem; margin-bottom: 50px; }
h2 { font: 500 1.2rem/1.5 "Manrope",sans-serif; margin: 40px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); letter-spacing: -.02em; }
main p:not(.label):not(.updated) { color: #405c65; font-size: 1rem; line-height: 1.85; }
main p a { border-bottom: 1px solid #78929a; overflow-wrap: anywhere; }
main p a:hover { color: var(--ink); border-color: var(--ink); }
footer { min-height: 84px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 25px var(--pad); background: var(--ink); color: #bccdd1; font-size: .75rem; }
footer a:hover { color: white; }
body.not-found { padding: 28px; display: grid; place-items: center; text-align: center; }
.not-found main { width: min(100%,820px); padding: 0; }
.not-found img { width: min(52vw,200px); height: auto; margin: 0 auto 56px; filter: brightness(0); }
.not-found .code { margin-bottom: 20px; color: var(--grey); font-size: .75rem; letter-spacing: .14em; }
.not-found h1 { margin-bottom: 40px; }
.not-found main a { display: inline-flex; min-height: 50px; align-items: center; padding: 0 24px; border: 1px solid var(--line); font-size: .875rem; transition: color .3s,background .3s; }
.not-found main a:hover { color: var(--bone); background: var(--ink); }
@media (max-width: 640px) {
  nav { min-height: 72px; }
  main { padding-block: 54px; }
  h1 { font-size: clamp(2.6rem,10vw,4rem); }
  h2 { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
