/* The blog, showcases and docs use content-page.css and content.css instead. */
:root {
  --faint: #8c917f;
  --on-accent: #2b3315;

  --focus-ring: rgb(182 229 43 / 60%);
  --backdrop: rgb(22 25 15 / 50%);

  --sans: 'IBM Plex Sans', 'IBM Plex Sans Fallback', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* A column, so a short page (the 404) keeps the footer at the bottom of the window, as the apps do. */
/* A fluid type and space scale (the Utopia method): each step grows smoothly from its size on a 360px phone to its size on a 2560px
   screen. The bounds and the preferred value carry rem, so browser zoom and the reader's own text size still enlarge everything. */
:root {
  --step--2: clamp(0.8125rem, 0.8023rem + 0.04545 * var(--vw), 0.875rem);
  --step--1: clamp(0.875rem, 0.8545rem + 0.09091 * var(--vw), 1rem);
  --step-0: clamp(1rem, 0.9795rem + 0.09091 * var(--vw), 1.125rem);
  --step-1: clamp(1.0625rem, 1.022rem + 0.1818 * var(--vw), 1.3125rem);
  --step-2: clamp(1.25rem, 1.209rem + 0.1818 * var(--vw), 1.5rem);
  --step-3: clamp(1.5rem, 1.295rem + 0.9091 * var(--vw), 2.75rem);
  --step-4: clamp(1.75rem, 1.607rem + 0.6364 * var(--vw), 2.625rem);
  --step-5: clamp(2.125rem, 1.818rem + 1.364 * var(--vw), 4rem);
  --step-hero: clamp(2.5rem, 1.559rem + 4.182 * var(--vw), 8.25rem);
  --section-pad: clamp(4rem, 3.264rem + 3.273 * var(--vw), 8.5rem);
  --section-pad-sm: clamp(3.5rem, 2.927rem + 2.545 * var(--vw), 7rem);
}

body {
  margin: 0;
  min-height: calc(100 * var(--svh));
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
}

body > main {
  flex: 1 0 auto;
}

/* Zero specificity, so any classed link keeps its own colour on hover. */
:where(a) {
  color: var(--ink);
}

:where(a:hover) {
  color: var(--muted);
}

:focus-visible {
  outline: 2px solid var(--focus-color, var(--ink));
  outline-offset: 2px;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

dialog::backdrop {
  background: var(--backdrop);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(calc(-100% - 16px));
}

.skip-link:focus {
  transform: none;
  outline: 2px solid var(--accent);
  outline-offset: -6px;
}

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow a {
  color: inherit;
  text-decoration: none;
}

.eyebrow a:hover {
  color: var(--ink);
}

.section-title {
  margin: 0;
  font-size: var(--step-4);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.eyebrow + .section-title {
  margin-top: 16px;
}

.section-title.spaced {
  margin-bottom: 56px;
  max-width: 760px;
}

.hero-statement {
  margin: 0;
  font-size: var(--step-3);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  margin-top: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lead {
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-body);
}

.lead + .lead {
  margin-top: 24px;
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 80px;
}

.split-aside {
  flex: 1 1 300px;
  min-width: 0;
}

.split-main {
  flex: 1 1 520px;
  min-width: 0;
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--step--2);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: var(--accent);
  color: var(--ink);
}

.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card h3 {
  margin: 0;
  font-size: var(--step-2);
  line-height: 1.3;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: var(--step-0);
  color: var(--ink-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.btn-lg {
  min-height: 48px;
  padding: 14px 24px;
  font-size: var(--step-0);
}

.btn-xl {
  min-height: 52px;
  padding: 16px 28px;
  font-size: var(--step-1);
  font-weight: 600;
}

.btn-lime {
  background: var(--accent);
  color: var(--ink);
}

.btn-lime:hover {
  background: var(--accent-hover);
}

.btn-outline {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-dark {
  background: var(--ink);
  color: var(--accent);
}

.btn-dark:hover {
  background: var(--ink-hover);
}

.btn-dark:disabled {
  opacity: 1;
  background: var(--ink-hover);
  color: var(--dark-text);
}

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

  /* Overrides every component's own transition, which sit at higher specificity. */
  * {
    transition: none !important;
  }
}

.section {
  border-top: 1px solid var(--line);
}

.section.surface {
  background: var(--surface);
}

.section > .inner {
  padding-block: var(--section-pad);
}

.cta-band {
  background: var(--accent);
  color: var(--ink);
}

.cta-band .inner {
  padding-block: var(--section-pad);
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  align-items: flex-end;
  justify-content: space-between;
}

.cta-band .copy {
  flex: 1 1 560px;
  min-width: 0;
}

.cta-band h2 {
  margin: 0;
  font-size: var(--step-5);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.cta-band p {
  margin: 20px 0 0;
  max-width: 560px;
  font-size: var(--step-1);
  color: var(--on-accent);
}

.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-hero {
  padding-block: var(--section-pad-sm);
}

.about-hero h1 {
  margin: 16px 0 0;
  font-size: var(--step-5);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.about-hero .hero-lead {
  margin-top: 32px;
  max-width: 820px;
  text-wrap: pretty;
}

.split-aside .role {
  margin-top: 14px;
}

.specs-hero {
  padding-block: var(--section-pad-sm);
}

.specs-hero h1 {
  margin: 0;
  font-size: var(--step-5);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.specs-hero .hero-copy {
  max-width: 820px;
  margin-top: 32px;
}

.specs-section h3 {
  margin: 0;
  font-size: var(--step-2);
  line-height: 1.3;
  font-weight: 600;
}

.specs-section h3 + .lead {
  margin-top: 8px;
}

.specs-section .split + .split {
  margin-top: 56px;
}

.spec-list {
  flex: 1 1 620px;
  min-width: 0;
  margin: 0;
  border-top: 3px solid var(--ink);
}

.spec-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list dt {
  flex: 0 0 220px;
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--muted);
}

.spec-list dd {
  flex: 1 1 320px;
  margin: 0;
  font-size: var(--step-0);
}

.notice-hero {
  padding-block: var(--section-pad-sm);
}

.notice-hero h1 {
  margin: 16px 0 0;
  font-size: clamp(48px, 7 * var(--vw), 96px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.notice-hero h1 span {
  display: inline-block;
  padding: 0 0.08em 0.04em;
  background: var(--accent);
}

.notice-hero .hero-statement {
  margin-top: 40px;
  max-width: 920px;
}

.notice-hero .hero-actions {
  margin-top: 40px;
}
