@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/plex400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/plex500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/serif400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/serif400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0a0b0d;
  --bg-2: #101215;
  --ink: #ece8e0;
  --muted: #9a958b;
  --faint: #6d6962;
  --line: #26241f;
  --line-2: #3a362f;
  --metal: #c4a574;
  --metal-ink: #16140f;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  min-height: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--metal); }
:focus-visible { outline: 2px solid var(--metal); outline-offset: 3px; }
button, [role="button"], .btn, label.burger { cursor: pointer; }

.skip {
  position: absolute; left: -999px;
}
.skip:focus {
  left: 16px; top: 16px; z-index: 80;
  background: var(--metal); color: var(--metal-ink);
  padding: 8px 12px; text-decoration: none;
}

.rail {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.bar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.bar-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand img { width: 22px; height: 22px; }
.brand span {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
}
#nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink);
}
.burger i, .burger i::before, .burger i::after {
  display: block; width: 16px; height: 1px; background: currentColor; position: relative;
}
.burger i::before, .burger i::after { content: ""; position: absolute; left: 0; }
.burger i::before { top: -5px; }
.burger i::after { top: 5px; }
nav {
  display: flex; align-items: center; gap: 28px;
}
nav a {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
}
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; font-weight: 500;
}
.btn-metal { background: var(--metal); color: var(--metal-ink); }
.btn-metal:hover { color: var(--metal-ink); filter: brightness(1.05); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--metal); color: var(--ink); }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.rule { border: 0; height: 1px; background: var(--line); }
section.band { padding: 88px 0; border-bottom: 1px solid var(--line); }
.kicker {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--metal);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.04; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; }
h3 { font-size: 26px; line-height: 1.2; }
.lede { max-width: 38rem; color: var(--muted); font-size: 19px; line-height: 1.55; }
p { text-wrap: pretty; }

.hero { padding: 72px 0 80px; border-bottom: 1px solid var(--line); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.facts div { padding: 28px 24px 28px 0; }
.facts div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.facts dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin-top: 8px; font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 14px; }

.chapters { display: grid; gap: 0; }
.chapter {
  display: grid;
  grid-template-columns: 72px 1fr 1.4fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.chapter:last-child { border-bottom: 1px solid var(--line); }
.n { color: var(--faint); font-size: 13px; padding-top: 8px; }
.chapter h3 { font-family: var(--sans); font-size: 18px; letter-spacing: 0; font-weight: 500; }
.chapter p { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.card { background: var(--bg); padding: 28px; }
.card h3 { font-family: var(--sans); font-size: 17px; letter-spacing: 0; font-weight: 500; margin: 10px 0 12px; }
.card p { color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.step { background: var(--bg); padding: 28px 22px; }
.step b { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--metal); margin-bottom: 12px; font-weight: 500; }

.cta-band {
  display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.foot-grid h4 {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 14px;
}
.foot-grid a { display: block; text-decoration: none; color: var(--muted); margin: 8px 0; font-size: 14px; }
.legal-line { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; line-height: 1.6; }
.he { direction: rtl; font-size: 14px; color: var(--faint); margin-top: 12px; }

.panel { background: var(--bg-2); border: 1px solid var(--line); padding: 32px; }
.mail { font-family: var(--serif); font-size: clamp(22px, 3vw, 34px); color: var(--metal); text-decoration: none; word-break: break-word; }

@media (max-width: 900px) {
  .rail { display: none; }
  .facts, .split, .cards, .steps, .foot-grid, .chapter {
    grid-template-columns: 1fr;
  }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .chapter { gap: 8px; }
  .burger { display: flex; }
  nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px;
  }
  nav a, nav .btn { min-height: 44px; display: flex; align-items: center; }
  #nav-toggle:checked ~ nav { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
