@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/ibm-plex-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #20211f;
  --text: #424440;
  --muted: #595b57;
  --rule: #d6d6d0;
  --accent: #2549d8;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.shell { width: min(74rem, 100% - 3rem); margin-inline: auto; }
p, figure, h1, h2, h3 { margin: 0; }
a { color: var(--accent); text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: .32rem; }
.skip { position: absolute; z-index: 1; top: .75rem; left: .75rem; padding: .5rem; background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }

.masthead {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .35rem 1.25rem; min-height: 4.5rem;
  border-bottom: 1px solid var(--ink);
}
.wordmark, nav a { color: var(--ink); text-decoration: none; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; letter-spacing: -.035em; }
.mark { width: 1.1rem; height: 1.05rem; display: inline-flex; justify-content: space-between; align-items: center; }
.mark i { display: block; width: .18rem; height: 58%; background: var(--accent); }
.mark i:nth-child(2) { height: 100%; }
.mark i:nth-child(3) { height: 73%; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem clamp(1rem, 3vw, 2rem); font-size: .9rem; }
nav a, .wordmark { padding-block: .45rem; }
nav a:hover, .wordmark:hover { color: var(--accent); text-decoration: underline; }

.hero { padding-block: clamp(2.1rem, 6.6vw, 5.25rem) clamp(2rem, 5vw, 3.75rem); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: .6rem clamp(1rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(1.65rem, 4.5vw, 3.25rem); }
.caption { font-size: .84rem; line-height: 1.5; color: var(--muted); }
h1, h2, h3 { line-height: 1.04; }
h1 { font-size: clamp(3rem, 9.1vw, 6rem); font-weight: 700; letter-spacing: -.037em; }
.hero-aside { padding-bottom: .25rem; }
.hero-aside p { max-width: 31ch; color: var(--text); font-size: clamp(1rem, 2vw, 1.18rem); }
.primary { display: inline-flex; align-items: center; gap: 1.25rem; margin-top: 1.15rem; min-height: 2.75rem; padding: .55rem .9rem; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; font-size: .925rem; }
.primary:hover { text-decoration: underline; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
figcaption { margin-top: .55rem; }
.index-view figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; }

.section { border-top: 1px solid var(--ink); padding-block: clamp(1.85rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.95rem, 4.2vw, 3.35rem); letter-spacing: -.038em; font-weight: 700; }
.workflow { margin-top: 1.4rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(1rem, 5vw, 4rem); align-items: center; }
.steps { margin: 0; list-style-position: outside; list-style-type: decimal-leading-zero; padding-inline-start: 2.55rem; }
.steps li { padding: .8rem 0 .85rem .15rem; border-top: 1px solid var(--rule); }
.steps li::marker { color: var(--accent); font: 700 .85rem/1 var(--mono); }
.steps h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.025em; }
.steps p { color: var(--text); margin-top: .35rem; }
.steps code { display: inline-block; color: var(--accent); max-width: 100%; overflow-wrap: anywhere; margin-top: .45rem; font: .815rem/1.45 var(--mono); }
.principle { max-width: 65ch; margin-top: 1.3rem; color: var(--text); }

.download { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(1rem, 5vw, 5rem); }
.download h2 + p { color: var(--text); max-width: 37ch; margin-top: .65rem; }
.download-action { align-self: center; }
.split-download { display: inline-flex; align-items: stretch; }
.split-download .primary { margin-top: 0; border-right: 1px solid color-mix(in srgb, #fff 45%, transparent); }
.download-menu-button { min-width: 2.75rem; border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.download-menu-button:hover, .download-menu-button:focus-visible { text-decoration: underline; outline-offset: 2px; }
.download-menu { display: grid; width: min(100%, 27rem); margin-top: .35rem; border: 1px solid var(--rule); background: var(--paper); }
.download-menu[hidden] { display: none; }
.download-menu a { padding: .65rem .8rem; border-top: 1px solid var(--rule); }
.download-menu a:first-child { border-top: 0; }
.trust-note { margin-top: .45rem; color: var(--muted); font-size: .875rem; max-width: 63ch; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem; border-top: 1px solid var(--ink); padding-block: 1rem 1.75rem; font-size: .875rem; color: var(--muted); }

@media (max-width: 42rem) {
  .shell { width: calc(100% - 2rem); }
  .masthead { min-height: 3.85rem; }
  .hero-copy, .workflow, .download { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { gap: .65rem; }
  .hero-aside p { max-width: 44ch; }
  .primary { margin-top: .85rem; }
  .workflow { margin-top: 1rem; }
}
