/* Craft IT — Pixel Pine brand. Shared by the public site, tech app and portal. */
:root {
  --pine: #1D5C3F;
  --pine-dark: #154530;
  --rust: #C2562B;
  --rust-dark: #A3461F;
  --sun: #F2C14E;
  --ink: #14211B;
  --ink-soft: #3B4A52;
  --rain: #E3EEF2;
  --rain-deep: #CFE0E7;
  --paper: #FFFFFF;
  --line: 2px solid var(--ink);
  --radius: 10px;
  --shadow: 4px 4px 0 var(--ink);
  --font: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--rain);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.025em; margin: 0; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 14px; color: var(--pine); }
.muted { color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font: 800 16px/1 var(--font);
  border: var(--line); border-radius: 8px;
  text-decoration: none; cursor: pointer;
  background: var(--paper); color: var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.btn:active { transform: none; box-shadow: none; }
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 15px; }

/* Cards */
.card { background: var(--paper); border: var(--line); border-radius: var(--radius); }

/* Header */
.site-header { background: var(--paper); border-bottom: var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; shape-rendering: crispEdges; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a { padding: 10px 12px; border-radius: 8px; color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--rain); }
.nav .btn { margin-left: 6px; padding: 8px 14px; }
.nav a.btn-dark, .nav a.btn-dark:hover { color: #fff; background: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: var(--line); border-radius: 8px; background: var(--paper); cursor: pointer;
  }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 6px 0 0; }
}

/* Footer */
.site-footer { border-top: var(--line); background: var(--ink); color: #D5E2E7; margin-top: 80px; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.site-footer a { color: #fff; }
.site-footer h3 { font-size: 15px; font-family: var(--mono); font-weight: 500; letter-spacing: 0; color: var(--sun); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .brand { color: #fff; }
.site-footer .legal { border-top: 1px solid #2E3D36; padding: 18px 0; font-size: 14px; color: #A9BDC5; }

/* Forms */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink);
  padding: 12px 14px; min-height: 48px;
  background: var(--paper); border: var(--line); border-radius: 8px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--sun); outline-offset: 0; }

.badge { display: inline-block; font: 800 13px/1 var(--font); padding: 6px 10px; border-radius: 6px; background: var(--ink); color: #fff; }

.pixel-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pixel-list li { display: flex; gap: 12px; align-items: baseline; }
.pixel-list li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--pine); transform: translateY(-1px); }
