/* The company's pages: black, hairlines, Geist and Geist Mono. Passage keeps its own paper theme
   (passage/passage.css), and the Passage card here borrows it. */
:root {
  color-scheme: dark;
  --bg: #000; --raised: #0a0a0a; --line: #222; --line-strong: #333;
  --text: #ededed; --dim: #a1a1a1; --faint: #666;
  --sans: Geist, "Geist Fallback", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* Passage's palette, for its card. */
  --paper: #f6f1e7; --ink: #2a221b; --ink-muted: #6b5d50; --ember: #a8451f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.mono { font-family: var(--mono); }

/* Two panes on a wide screen: the intro stays put on the left, the content scrolls on the right. */
.frame { display: grid; grid-template-columns: minmax(360px, 40%) 1fr; min-height: 100vh; }
.intro {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px 28px 24px; border-right: 1px solid var(--line); overflow: hidden; isolation: isolate;
}
/* A faint grid of dots behind the intro, fading out toward the bottom. */
.intro::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%); mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; letter-spacing: 0.04em; }
.logo svg { width: 20px; height: 20px; }
.intro-body { padding: 40px 0; }
h1 { margin: 0 0 28px; font-weight: 400; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -0.025em; color: #d4d4d4; }
h1 strong { font-weight: 400; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; font-size: 14px; text-decoration: none; border: 1px solid var(--line-strong); }
.btn.solid { background: #fff; color: #000; border-color: #fff; }
.btn.solid:hover { background: #d4d4d4; border-color: #d4d4d4; }
.btn.ghost { position: relative; color: var(--text); }
.btn.ghost:hover { background: var(--raised); }
/* Crosshairs at two corners, as on a drawing. */
.btn.ghost::before, .btn.ghost::after { content: "+"; position: absolute; color: var(--faint); font: 11px/1 var(--mono); }
.btn.ghost::before { top: -7px; left: -4px; }
.btn.ghost::after { bottom: -7px; right: -4px; }
.intro-foot { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--faint); font-size: 12px; }
.intro-foot a { color: var(--dim); text-decoration: none; }
.intro-foot a:hover { color: var(--text); }

.content { min-width: 0; }
.tabs {
  position: sticky; top: 0; z-index: 2; display: flex; overflow-x: auto; scrollbar-width: none;
  background: rgba(0, 0, 0, 0.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: 0 0 auto; padding: 0 22px; height: 48px; display: flex; align-items: center;
  border-right: 1px solid var(--line); color: var(--dim); text-decoration: none; font: 12px/1 var(--mono); letter-spacing: 0.08em;
  transition: color 0.2s, box-shadow 0.2s;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current] { color: var(--text); box-shadow: inset 0 -1px 0 #fff; }
.tabs .end { margin-left: auto; border-right: 0; border-left: 1px solid var(--line); }

section { padding: 36px 40px 40px; max-width: 900px; scroll-margin-top: 48px; }
section + section { border-top: 1px solid var(--line); }
.label { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; color: var(--text); font: 500 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lead { margin: 0 0 24px; color: var(--dim); font-size: 16px; line-height: 1.7; max-width: 46em; }
.lead strong { color: var(--text); font-weight: 500; }

/* A file, as in an editor: a tab bar, then the code. */
.code { border: 1px solid var(--line); background: var(--raised); }
.code-tabs { display: flex; border-bottom: 1px solid var(--line); font: 12px/1 var(--mono); }
.code-tabs span { padding: 12px 16px; color: var(--faint); border-right: 1px solid var(--line); }
.code-tabs span:first-child { color: var(--text); box-shadow: inset 0 -1px 0 #fff; }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 13px/1.75 var(--mono); color: var(--dim); }
.code .k { color: #9cdcfe; }
.code .s { color: #e6e6e6; }
.code .p { color: #555; }

/* Numbered cells sharing their borders. */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cell { background: var(--bg); padding: 20px 22px 24px; }
.cell .n { color: var(--faint); font: 12px/1 var(--mono); }
.cell h3 { margin: 12px 0 6px; font-size: 15px; font-weight: 500; color: #fff; }
.cell p { margin: 0; color: var(--dim); font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border: 1px solid var(--line); background: var(--raised); color: var(--dim); font: 12px/1.4 var(--mono); }

/* Passage, shown in its own theme: paper, ink, ember, Georgia. */
.passage-card {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 28px; overflow: hidden;
  padding: 32px 0 0 32px; background: var(--paper); color: var(--ink); border-radius: 18px;
  font: 17px/1.6 Georgia, "Times New Roman", serif;
}
.passage-card .eyebrow { margin: 0 0 6px; color: var(--ink-muted); font: 13px/1.4 var(--sans); }
.passage-card h3 { margin: 0 0 14px; font-weight: 400; font-size: 30px; line-height: 1.15; }
.passage-card p { margin: 0 0 14px; }
.passage-card blockquote { margin: 18px 0; padding-left: 16px; border-left: 2px solid var(--ember); font-style: italic; font-size: 19px; line-height: 1.45; }
.passage-card cite { display: block; margin-top: 4px; color: var(--ink-muted); font: normal 13px/1.4 var(--sans); }
.passage-card .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 32px; font: 14px/1.4 var(--sans); }
.passage-card .links a { color: var(--ember); text-underline-offset: 3px; }
.passage-card .soon { color: var(--ink-muted); font: 13px/1.4 var(--sans); }
.passage-card .phone { align-self: end; margin-right: -1px; }
.passage-card .phone img {
  display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; object-position: top;
  border: 1px solid rgba(42, 34, 27, 0.14); border-bottom: 0; border-radius: 22px 0 0 0;
}

dl.facts { display: grid; grid-template-columns: 140px 1fr; margin: 0; border: 1px solid var(--line); }
dl.facts dt, dl.facts dd { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); }
dl.facts dt { color: var(--faint); font: 12px/1.9 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; border-right: 1px solid var(--line); }
dl.facts dd { color: var(--text); }
dl.facts > :nth-last-child(-n + 2) { border-bottom: 0; }
dl.facts a { text-underline-offset: 3px; }

/* Policies: running text with plain headings. */
.prose h3 { margin: 28px 0 6px; font-size: 16px; font-weight: 500; color: #fff; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; color: var(--dim); max-width: 46em; }
.prose a { color: var(--text); text-underline-offset: 3px; }

@media (max-width: 900px) {
  .frame { grid-template-columns: 1fr; align-content: start; }
  .intro { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 20px 22px; }
  .intro-body { padding: 48px 0 28px; }
  .intro-foot { display: none; }
  section { padding: 28px 20px 32px; }
  .tabs a { padding: 0 16px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .passage-card { grid-template-columns: 1fr; padding: 24px 0 0 24px; gap: 4px; }
  .passage-card > div:first-child { padding-right: 24px; }
  .passage-card .links { margin-bottom: 20px; }
  .passage-card .phone { margin-left: 40px; }
  .passage-card .phone img { max-height: 300px; }
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dt { border-right: 0; border-bottom: 0; padding-bottom: 0; }
  dl.facts > :nth-last-child(2) { border-bottom: 0; }
}
