@font-face {
  font-family: Inter;
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sans: Inter, "Segoe UI", Arial, sans-serif;
  --mono: Consolas, "Liberation Mono", monospace;
  --serif: "Cormorant Garamond", Georgia, serif;
  --space: clamp(22px, 4.8vw, 84px);
  --ease: cubic-bezier(.23, 1, .32, 1);
  font-family: var(--sans);
  color: var(--ink, #191916);
  background: var(--paper, #f5f3ec);
  -webkit-text-size-adjust: 100%;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
body { min-height: 100vh; line-height: 1.5; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; }
button { border: 0; background: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus, #125bf0); outline-offset: 4px; }
main:focus, [tabindex="-1"]:focus:not(:focus-visible) { outline: 0; }
::selection { background: var(--selection, #d6dad2); color: #151514; }
.wrap { width: min(100%, 1920px); margin-inline: auto; padding-inline: var(--space); }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip:focus { position: fixed; z-index: 20; inset: 12px auto auto 12px; padding: 12px 18px; background: white; color: black; }
.logo { display: inline-flex; align-items: center; gap: .34em; width: fit-content; line-height: 1; font-size: 28px; font-weight: 735; letter-spacing: -.052em; }
.logo-mark { display: inline-block; position: relative; width: 1em; height: .88em; flex: none; transform: rotate(-13deg); }
.logo-mark i { position: absolute; width: .49em; height: .87em; left: 0; border: .075em solid currentColor; border-radius: 50%; }
.logo-mark i:nth-child(2) { left: .25em; }
.logo-mark i:nth-child(3) { left: .50em; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.topbar nav { display: flex; align-items: center; gap: clamp(16px, 3.4vw, 56px); }
.topbar nav a, .topbar nav button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 2px 0; font-size: 14px; font-weight: 520; }
.icon { display: inline-block; width: 1.15em; height: 1.15em; flex: none; vertical-align: -.14em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.action { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px; padding: 7px 0; font-size: 14px; font-weight: 620; }
.action .icon { transition: transform 180ms var(--ease); }
.site-foot { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding-block: 24px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.site-foot a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; }

.panel {
  position: fixed; inset: 0; width: min(660px, calc(100% - 36px)); max-width: none;
  max-height: min(88vh, 920px); max-height: min(88dvh, 920px); margin: auto; padding: 0;
  border: 1px solid var(--line, #888); border-radius: var(--panel-radius, 2px);
  color: var(--ink); background: var(--paper); overscroll-behavior: contain;
  box-shadow: 0 18px 80px #0003;
}
.panel::backdrop { background: rgb(12 14 18 / .72); }
.panel-in { padding: clamp(25px, 4vw, 48px); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.panel-head h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 560; line-height: 1.02; letter-spacing: -.055em; }
.panel-head form { flex: none; margin: -4px -3px 0 0; }
.close-panel { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); color: inherit; border-radius: 50%; }
.panel p { line-height: 1.55; }
.panel p + p { margin-top: .85em; }
.panel .facts { margin-block: 20px; }
.facts > div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { text-align: end; font-weight: 570; }
@media (hover: hover) {
  .topbar nav a:hover, .topbar nav button:hover, .site-foot a:hover { text-decoration: underline; text-underline-offset: .32em; }
  .action:hover .icon { transform: translateX(3px); }
  .close-panel:hover { border-color: currentColor; }
}
@media (max-width: 640px) {
  .topbar { min-height: 62px; gap: 12px; }
  .topbar nav { gap: 15px; }
  .topbar nav a, .topbar nav button { font-size: 12px; gap: 4px; }
  .logo { font-size: 24px; }
  .panel { width: calc(100% - 24px); max-height: 90vh; max-height: 90dvh; }
  .panel-in { padding: 22px; }
  .site-foot { padding-block: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
