/* Outer Rock Capital
   White background, black text, orange accent.
   #F06E10 (brand orange) is used only for bars and lines: 3:1 on white,
   enough for graphics but not for text. Orange text uses #C2540A (4.6:1),
   which meets WCAG 2.1 AA. */

:root {
  color-scheme: light;
  --orange: #F06E10;
  --orange-text: #C2540A;
  --text: #000000;
  --muted: #444444;
  --bg: #FFFFFF;
  --rule: #E5E5E5;
  --width: 46rem;
  --gutter: 1.5rem;
}

*,
*::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(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

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

/* Orange stripe across the top of every page */
.top-bar { height: 6px; background: var(--orange); }

/* Shared column */
header,
main,
.footer-inner {
  width: 100%;
  max-width: var(--width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Wordmark, divider and logo, as in the deck's footer */
header { padding-top: 1.75rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand img { width: 88px; height: auto; }
.brand .divider { width: 1px; height: 1.75rem; background: var(--text); }

main {
  flex: 1;
  padding-top: 4rem;
  padding-bottom: 3rem;
}

/* Page title with the orange bar on its left */
h1 {
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 6px solid var(--orange);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 strong { font-weight: 700; }

/* Lines up with the title text, not the bar */
.lede {
  margin: 0 0 0.5rem;
  padding-left: calc(1rem + 6px);
  color: var(--muted);
}

/* Section heading with an orange line underneath */
h2 {
  margin: 3rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--orange);
  font-size: 1.25rem;
  font-weight: 700;
}

dl { margin: 0; }
dt { font-weight: 700; }
dd { margin: 0 0 1rem; overflow-wrap: anywhere; }

a {
  color: var(--text);
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--orange-text); }
a:focus-visible {
  outline: 3px solid var(--orange-text);
  outline-offset: 3px;
  border-radius: 2px;
}

footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}
.footer-inner { padding-top: 1.25rem; padding-bottom: 1.5rem; }
footer p { margin: 0 0 0.25rem; }

@media (max-width: 30rem) {
  :root { --gutter: 1.25rem; }
  main { padding-top: 2.5rem; }
  h1 { font-size: 2rem; }
  .brand { font-size: 1rem; gap: 0.6rem; }
  .brand img { width: 72px; }
}

@media print {
  .top-bar { display: none; }
  a { text-decoration: none; }
}
