/* Enterprise Business Motivation Model — site styles */

:root {
  --ink: #1c2430;
  --ink-soft: #4a5566;
  --paper: #ffffff;
  --paper-alt: #f5f7fa;
  --rule: #dde3ea;
  --brand: #17365d;
  --brand-deep: #0f2440;
  --accent: #9a5514;        /* 5.7:1 with white text */
  --accent-deep: #7d4410;   /* hover, 7.6:1 with white text */
  --accent-light: #f0c08f;  /* accents on dark backgrounds */
  --link: #1f5fa8;
  --radius: 6px;
  --wrap: 1080px;
  --measure: 46rem;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-mono: Consolas, "SFMono-Regular", Menlo, monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; }

:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }
.content :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }

/* ---------- Header & navigation ---------- */

.site-header { background: var(--brand-deep); color: #fff; border-bottom: 3px solid var(--accent-light); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; padding: .75rem 0; }
.brand-mark { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .06em; background: var(--accent); color: #fff; padding: .15rem .55rem; border-radius: 4px; }
.brand-name { font-size: .95rem; color: #d7e0ec; }

.site-nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.site-nav a { color: #d7e0ec; text-decoration: none; font-size: .92rem; padding: .45rem .7rem; border-radius: var(--radius); }
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-nav a.is-current { color: #fff; box-shadow: inset 0 -3px 0 var(--accent-light); border-radius: 0; }
.site-nav a.nav-button { background: var(--accent); color: #fff; font-weight: 600; margin-left: .5rem; }
.site-nav a.nav-button:hover { background: var(--accent-deep); }

.nav-toggle, .nav-toggle-label { display: none; }
.nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--accent-light); outline-offset: 4px; }

@media (max-width: 900px) {
  .brand-name { display: none; }
  /* Checkbox stays keyboard-focusable but is visually hidden; the label is the visible button */
  .nav-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
  .nav-toggle-label { display: block; cursor: pointer; width: 32px; height: 24px; position: relative; }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    position: absolute; left: 0; width: 100%; height: 2px; background: #fff; content: "";
  }
  .nav-toggle-label span { top: 11px; }
  .nav-toggle-label span::before { top: -8px; }
  .nav-toggle-label span::after { top: 8px; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 1rem; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a.nav-button { margin: .5rem 0 0; text-align: center; }
  .site-nav a.is-current { box-shadow: inset 3px 0 0 var(--accent-light); }
}

/* ---------- Home hero ---------- */

.hero { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; padding: 4rem 0 3.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--accent-light); margin: 0 0 .75rem; font-weight: 600; }
.hero-title { color: #fff; font-family: var(--font-head); font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; margin: 0 0 1rem; max-width: 18ch; }
.hero-lede { font-size: 1.2rem; color: #d7e0ec; max-width: 40rem; margin: 0 0 2rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 0; }

.btn { display: inline-block; padding: .7rem 1.3rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- Content ---------- */

.content { flex: 1; padding-top: 2.5rem; padding-bottom: 4rem; }
.content > * { max-width: var(--measure); }
.content > table, .content > .wide { max-width: 100%; }

.page-title { font-family: var(--font-head); font-size: 2.3rem; line-height: 1.2; color: var(--brand-deep); margin: 0 0 .5rem; }
.page-subtitle { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 2rem; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--brand-deep); line-height: 1.25; }
h2 { font-size: 1.6rem; margin: 2.5rem 0 .75rem; padding-bottom: .35rem; border-bottom: 1px solid var(--rule); }
h3 { font-size: 1.25rem; margin: 2rem 0 .5rem; }
.content > h2:first-child { margin-top: 0; }

a { color: var(--link); }
a:hover { color: var(--brand-deep); }

code { font-family: var(--font-mono); font-size: .88em; background: var(--paper-alt); border: 1px solid var(--rule); border-radius: 4px; padding: .05em .35em; }
pre { background: #0f1b2b; color: #e3e9f1; padding: 1rem 1.25rem; border-radius: var(--radius); overflow-x: auto; font-size: .88rem; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

blockquote { margin: 1.5rem 0; padding: .75rem 1.25rem; border-left: 4px solid var(--accent); background: #fdf6ee; color: var(--ink); }
blockquote p { margin: .4rem 0; }

table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: .95rem; }
@media (max-width: 700px) { table { display: block; overflow-x: auto; } }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: var(--paper-alt); color: var(--brand-deep); font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

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

/* Placeholder content that still needs the author's text */
.todo { border: 1px dashed var(--accent); background: #fdf6ee; padding: .75rem 1rem; border-radius: var(--radius); color: var(--accent-deep); font-size: .95rem; }

/* Contributor cards */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; max-width: 100%; margin: 1.5rem 0; }
.person { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.25rem; background: var(--paper); }
.person h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.person .role { color: var(--ink-soft); font-size: .9rem; margin: 0 0 .5rem; }
.person p { margin: .4rem 0; font-size: .95rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--paper-alt); border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.footer-inner p { margin: 0; }
