/* FExec subsite — formal register per TBSS brand guidelines draft v0.1.
   Palette source: TBSS mascot artwork (cream bg, formal accent blue, wood brown, near-black outline). */

:root {
  --cream: #F6E5C7;
  --off-white: #F7EAD1;
  --outline: #201A01;
  --fur-mid: #A36327;
  --fur-dark: #68441D;
  --wood: #8F5313;
  --accent: #00A0E6;      /* formal accent blue */
  --accent-casual: #3A7592;

  --bg: #FCF6EA;
  --bg-alt: var(--off-white);
  --text: var(--outline);
  --text-muted: #5B4A2E;
  --border: #E4D2AC;
  --card-bg: #FFFFFF;
  --code-bg: #2A2210;
  --code-text: #F6E5C7;
  --link: var(--accent);
  --link-hover: #0078AD;

  --radius: 10px;
  --max-width: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1708;
    --bg-alt: #241C0D;
    --text: #F3E7CB;
    --text-muted: #C7B589;
    --border: #3A2F16;
    --card-bg: #241C0D;
    --code-bg: #14100A;
    --code-text: #F3E7CB;
    --link: #3FC0FF;
    --link-hover: #7AD4FF;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.brand:hover { color: var(--text); text-decoration: none; }

.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex: none;
}

.brand .tagline {
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

nav.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

nav.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

nav.site-nav a:hover { color: var(--accent); text-decoration: none; }
nav.site-nav a.active { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--link-hover); color: #fff; text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Hero */

.hero {
  padding: 64px 0 48px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero p.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 52ch;
}

.hero .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image-slot {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 24px;
}

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-image-slot { order: -1; max-width: 280px; margin: 0 auto; }
}

/* Sections / content */

main { padding-bottom: 64px; }

.page-header {
  padding: 48px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.page-header h1 { margin: 0 0 10px; font-size: 2rem; }
.page-header p { color: var(--text-muted); margin: 0 0 28px; max-width: 68ch; }

section.block { margin-bottom: 48px; }

h2 {
  font-size: 1.5rem;
  margin: 0 0 16px;
  padding-top: 8px;
}

h2 .kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 6px;
}

h3 { font-size: 1.15rem; margin: 28px 0 10px; }

p { margin: 0 0 16px; }

.lead { font-size: 1.05rem; color: var(--text-muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 { margin-top: 0; font-size: 1.05rem; }
.card p { margin-bottom: 0; color: var(--text-muted); font-size: 0.95rem; }

.card .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

/* Tables */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 0.92rem;
}

caption {
  text-align: left;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

td code, th code, p code, li code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.table-scroll { overflow-x: auto; }

/* Code blocks */

pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 18px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.88rem;
  margin: 0 0 24px;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-mono);
}

/* Status pill */

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.pill-ok { background: rgba(0, 160, 230, 0.15); color: var(--accent); }
.pill-warn { background: rgba(143, 83, 19, 0.18); color: var(--wood); }
.pill-err { background: rgba(163, 99, 39, 0.18); color: var(--fur-dark); }

/* Callouts */

.note {
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.note strong { color: var(--text); }

/* Page nav (in-page section jump) */

.page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.page-toc a { color: var(--text-muted); font-weight: 600; }
.page-toc a:hover { color: var(--accent); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a { color: var(--text-muted); font-weight: 600; }
.site-footer a:hover { color: var(--accent); }

.site-footer .footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
