/* Rockbuilt Labs — one stylesheet, no scripts, no external requests. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --band: #f5f7fa;
  --text: #1f2933;
  --muted: #52606d;
  --line: #d5dbe3;
  --accent: #e0823a;      /* brand orange: fills and marks only */
  --accent-ink: #a8500e;  /* darker orange that passes AA as text or underline on light */
  --focus: #1f2933;
  --on-accent: #1f2933;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161d25;
    --band: #1f2933;
    --text: #f5f7fa;
    --muted: #b5bec8;
    --line: #3e4c59;
    --accent-ink: #e0823a;
    --focus: #f5f7fa;  /* light ring: stays distinct from the orange button it surrounds */
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 var(--sans);
  overflow-wrap: break-word;
}

main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* Links */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent-ink);
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.22em;
}
a:hover { text-decoration-thickness: 0.2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 10;
  padding: 0.6rem 1rem; border-radius: 6px;
  background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 6px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.25rem 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.brand { display: block; line-height: 0; border-radius: 4px; }
.brand img { width: 9.5rem; }
.site-nav ul, .site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav ul { gap: 0.25rem; margin-right: -0.6rem; }
.site-nav a {
  display: block; padding: 0.6rem; font-size: 0.97rem; font-weight: 600;
  text-decoration-color: transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration-color: var(--accent-ink); text-decoration-thickness: 0.16em; }

/* Compact header for phones: keeps the logo and nav on one row down to 320 px. */
@media (max-width: 24.99rem) {
  .wrap { padding: 0 1rem; }
  .site-header .wrap { gap: 0.25rem 0.5rem; }
  .brand img { width: 7.5rem; }
  .site-nav ul { gap: 0; margin-right: -0.4rem; }
  .site-nav a { padding: 0.6rem 0.4rem; }
}

/* Type */
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.022em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.2rem + 5vw, 4.1rem); letter-spacing: -0.035em; line-height: 1.03; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.012em; }
p, ul, ol { margin: 0 0 1.1em; }
p { text-wrap: pretty; }

.eyebrow {
  margin: 0 0 1rem; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--muted);
}
.lede { font-size: clamp(1.13rem, 1rem + 0.6vw, 1.32rem); line-height: 1.55; color: var(--muted); max-width: 36rem; text-wrap: balance; }
.muted { color: var(--muted); }

/* Button: the one place the orange is a fill */
.button {
  display: inline-block; padding: calc(0.8rem - 2px) calc(1.3rem - 2px); border-radius: 8px;
  border: 2px solid transparent; /* gives the button an outline in forced-colors (high contrast) mode */
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; text-decoration: none; line-height: 1.3;
}
.button:hover { background: #e8975a; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; margin: 2rem 0 0; }
.actions a:not(.button) { font-weight: 600; }

/* Home: hero */
.hero { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(3rem, 8vw, 6rem); }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin: 1.5rem 0 0; }
.hero-art { display: none; }
.hero-mark { width: min(100%, 19rem); margin-left: auto; }

@media (min-width: 54rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 3rem; }
  .hero-art { display: block; }
}

/* Home: sections */
.band { background: var(--band); border-block: 1px solid var(--line); }
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.stand-head h2 { max-width: 22ch; }

.principles { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2.25rem; }
.principles li { position: relative; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.principles li::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 2.75rem; height: 3px; background: var(--accent);
}
.principles h3 { margin-bottom: 0.6rem; }
.principles p { margin: 0; color: var(--muted); }
/* Four principles: one column on phones, a 2 x 2 block from 48rem. From 68rem (the full page
   width) the heading moves to its own narrow column on the left; the principle columns then
   stay a steady, readable width instead of shrinking as the window grows. */
@media (min-width: 48rem) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem 2.5rem; } }
@media (min-width: 68rem) {
  .stand { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .stand .principles { margin-top: 0; }
}

.split { display: grid; gap: 2.5rem; align-items: start; }
.split > div > p:last-child { margin-bottom: 0; }
.split h2 { margin-bottom: 1rem; }
.split .card { margin: 0; }
.split .card h2 { font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.55rem); margin-bottom: 0.75rem; }
@media (min-width: 48rem) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 3.5rem); } }
@media (min-width: 68rem) { .split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
/* Single-column widths (large phones in landscape): keep lines to a readable length. */
@media (max-width: 47.99rem) { .principles, .split > div { max-width: 36rem; } }

/* Inner pages: a reading column that starts on the same left edge as the header logo */
.page { padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem); }
.page h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.1rem); }
.page .narrow > * { max-width: 41.5rem; }
.page .lede { margin: 1.25rem 0 0; }
.page h2 { margin: 2.75rem 0 0.8rem; font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.55rem); }
.page li { margin-bottom: 0.45em; }
.page ul { padding-left: 1.25rem; }
.page li::marker { color: var(--accent-ink); }
.page .meta { margin: 1rem 0 0; font-size: 0.93rem; color: var(--muted); }

.card {
  margin: 2.25rem 0 0; padding: 1.5rem; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 8px; background: var(--band);
}
.card h2 { margin: 0 0 0.5rem; }
.card p { margin: 0 0 1.1rem; }
.card p:last-child { margin-bottom: 0; }
.card .button { margin-top: 0.15rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-size: 0.93rem; color: var(--muted); }
.site-footer ul { gap: 0.1rem 1.5rem; margin-bottom: 0.9rem; }
.site-footer a { display: inline-block; padding: 0.35rem 0; color: var(--text); font-weight: 600; }
.site-footer p { margin: 0; }

@media print {
  .site-nav, .skip, .hero-art { display: none; }
  .button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; }
}
