/* passbundle.com. One stylesheet, system fonts, light and dark. */

:root {
  --brand: #1f6f5c;
  --brand-strong: #17584a;
  --brand-soft: #e6f1ee;
  --bg: #ffffff;
  --surface: #f5f8f7;
  --border: #dde5e2;
  --text: #17201d;
  --muted: #55625d;
  --link: #1a6655;
  --focus: #2f8f76;
  --button: #1f6f5c;
  --button-hover: #17584a;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3fa486;
    --brand-strong: #5bbb9e;
    --brand-soft: #16302a;
    --bg: #0e1412;
    --surface: #151d1a;
    --border: #26322e;
    --text: #e6ecea;
    --muted: #9eaaa5;
    --link: #6cc6aa;
    --focus: #6cc6aa;
    --button: #257862;
    --button-hover: #1f6a57;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial,
    sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-strong);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--bg);
  padding: 8px 12px;
  z-index: 10;
}

.skip:focus {
  left: 16px;
}

.bar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}

.brand svg {
  fill: var(--brand);
}

.site-header nav {
  display: flex;
  gap: 22px;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--text);
}

/* Main */

main {
  display: block;
  padding: 0 24px;
}

main.doc {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 48px;
  padding-bottom: 72px;
}

main.wide {
  max-width: 1080px;
  margin: 0 auto;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin: 0 0 16px;
}

h2 {
  font-size: 26px;
  margin: 48px 0 12px;
}

h3 {
  font-size: 19px;
  margin: 28px 0 8px;
}

p,
ul,
ol {
  margin: 0 0 16px;
}

li {
  margin-bottom: 6px;
}

.lead {
  font-size: 20px;
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: 15px;
}

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 24px 0;
}

.note p:last-child {
  margin-bottom: 0;
}

code {
  font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

/* Home */

.hero {
  padding: 80px 0 64px;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(36px, 6.4vw, 60px);
  margin-bottom: 20px;
}

.pill {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
}

.button.primary {
  background: var(--button);
  border-color: var(--button);
  color: #fff;
}

.button.primary:hover {
  background: var(--button-hover);
  border-color: var(--button-hover);
  color: #fff;
}

.button:hover {
  border-color: var(--brand);
  color: var(--text);
}

.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.section > h2 {
  margin-top: 0;
}

.section > .lead {
  max-width: 680px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

.card h3 {
  margin-top: 0;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.closing {
  padding: 56px 0 80px;
  border-top: 1px solid var(--border);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0 36px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}

.site-footer nav a {
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  max-width: 760px;
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .bar,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header nav {
    gap: 16px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .lead {
    font-size: 18px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  main.doc {
    padding-top: 32px;
  }
}
