/* BitPair Solutions LLP: one stylesheet, light theme only. */
:root {
  --paper: #f1f4f2;
  --ink: #17323a;
  --muted: #4e6166;
  --rule: #c5d0cc;
  --accent: #2d6a64;
  --focus: #8a5a00;
  --measure: 38rem;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

main {
  flex: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 7.5rem) clamp(1rem, 5vw, 3rem) 4rem;
}

/* The pair of bits: the one bold element on the page. */
.mark {
  display: block;
  width: clamp(5rem, 16vw, 8.5rem);
  height: auto;
  margin-bottom: 2rem;
}
.mark-on { fill: var(--ink); }
.mark-off { fill: none; stroke: var(--accent); stroke-width: 2; }

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 8.5vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.lead {
  margin: 1.5rem 0 0;
  max-width: var(--measure);
  font-size: clamp(1.1875rem, 2.6vw, 1.4375rem);
  line-height: 1.45;
  color: var(--muted);
}

.hero p:not(.lead) { margin: 1.5rem 0 0; }

.products {
  margin-top: clamp(4rem, 12vw, 7rem);
}

h2 {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--muted);
}

.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 46rem) {
  .product-list {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.product {
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product p {
  margin: 0;
  max-width: var(--measure);
}

.product p + p { margin-top: 1rem; }

a {
  color: var(--accent);
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--ink); text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus { top: 1rem; }
.skip:hover { color: var(--paper); }

.site-footer {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 5vw, 3rem) 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer p { margin: 0; }

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

.details { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 0 0 1.5rem; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
@media (max-width: 30rem) { .details { grid-template-columns: 1fr; } .details dd { margin-bottom: 0.5rem; } }
