/* baycapital.no - one stylesheet, no external resources (the CSP allows
   nothing from outside the origin). Colours are tokens; dark mode follows
   the reader's system setting. Every text/background pair is >= 4.5:1. */
:root {
  color-scheme: light dark;
  --bg: #f7f6f2;
  --text: #1b1e23;
  --muted: #545a63;
  --accent: #1d3b5c;
  --rule: #d9d6cc;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141b;
    --text: #e7eaee;
    --muted: #a8b0ba;
    --accent: #9cc0e4;
    --rule: #2a3440;
  }
}

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

html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--text);
  color: var(--bg);
}

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

/* Hero: the dusk-over-the-sea image from the old Google Sites page, under
   a 50 % veil. Measured on the image itself (2026-10-15): at 0.50 the
   brightest pixel behind the text still gives white 4.7:1; 0.45 gave only
   4.1:1. The hero keeps its own colours in both colour schemes. */
.hero {
  position: relative;
  background: #3b3040 url("/img/bay.jpg") center 40% / cover no-repeat;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 17, 30, 0.5);
}
.hero-inner {
  position: relative;
  min-height: 70vh;
  padding-top: 20vh;
  padding-bottom: 3rem;
}
.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 9vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #fff;
}
.since {
  margin: 0.75rem 0 2.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}
.hero nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}
.hero a { color: #fff; }
.hero a:focus-visible { outline-color: #fff; }

section {
  padding: 3rem 0 0.5rem;
  scroll-margin-top: 1rem;
}
h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.2;
}
h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
p { margin: 0 0 1.1rem; max-width: 38rem; }

.groups {
  display: grid;
  gap: 2rem 3rem;
  margin-top: 1.5rem;
}
@media (min-width: 40rem) {
  .groups { grid-template-columns: 1fr 1fr; }
}
.people {
  list-style: none;
  margin: 0;
  padding: 0;
}
.people li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}
.people li:last-child { border-bottom: 1px solid var(--rule); }
.people img {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--rule);
}
.name { display: block; font-weight: 600; }
.role { display: block; color: var(--muted); font-size: 1rem; }
.people a { font-size: 0.95rem; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}
footer p { margin: 0; }

/* 404 page: plain header, no image */
.plainhead { padding-top: 12vh; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.plainhead .wordmark { color: var(--accent); font-size: clamp(2.25rem, 7vw, 3.5rem); }
.plainhead .since { color: var(--muted); margin-bottom: 0; }
.notfound { padding-top: 2.5rem; }
