/* Campos Systems site styles. Palette and type follow Resources/Branding/CamposSystems Brand.md */

@font-face {
  font-family: "Chakra Petch";
  src: url("/assets/fonts/ChakraPetch-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("/assets/fonts/ChakraPetch-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Dark theme (default): navy tile colours, off-white text, amber accent */
:root {
  --bg: #0A121F;
  --surface: #111D2E;
  --text: #EEF2F7;
  --muted: #A9B4C2;
  --link: #F2A93B;
  --accent: #F2A93B;
  --border: #1E2C40;
  --max: 46rem;
}

/* Light theme: navy text; amber kept out of text per the brand rule, used only for rules and accents */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #FFFFFF;
    --surface: #F4F6F9;
    --text: #0E1828;
    --muted: #4A5666;
    --link: #0E1828;
    --accent: #F2A93B;
    --border: #DCE2EA;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

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

header.site {
  background: var(--surface);
  border-bottom: 3px solid var(--accent);
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand { display: inline-flex; line-height: 0; }
.brand img { height: 44px; width: auto; display: block; }

nav.site {
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
nav.site a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.1rem;
}
nav.site a:first-child { margin-left: 0; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }
nav.site a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

main { padding: 2.5rem 0 3rem; }

h1, h2, h3 {
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; }
h2 { font-size: 1.3rem; margin: 2.2rem 0 0.6rem; }
h3 { font-size: 1.08rem; margin: 1.5rem 0 0.4rem; }

.meta { color: var(--muted); margin: 0 0 2rem; }

code {
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  margin: 1rem 0;
}
.card h2, .card h3 { margin-top: 0; }

.empty { color: var(--muted); font-style: italic; }

ul.links { list-style: none; padding: 0; margin: 0.4rem 0 0; }
ul.links li { margin: 0.35rem 0; }

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site .wrap { padding-top: 1.25rem; padding-bottom: 2rem; }
footer.site a { color: var(--muted); }

@media (max-width: 34rem) {
  .brand img { height: 36px; }
  nav.site a { margin-left: 0.8rem; }
  h1 { font-size: 1.65rem; }
}
