/* Midpoint Software — light theme, November 2026.
   Loaded after style.css on every page. Re-colors the shared pieces
   (header, buttons, cards, forms, footer) without changing page markup. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #F4F3EE;
  --panel: #FFFFFF;
  --line: #D3D7DA;
  --text: #1B2530;
  --muted: #3B5065;
  --gold: #6E5A30;      /* gold as text on light backgrounds */
  --ink: #1B2530;
  --paper: #ECEBE4;
  --navy: #293E53;
  --sand: #DFC38E;      /* gold as a fill */
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --display: 'Space Grotesk', Manrope, system-ui, sans-serif;
}

html { scroll-padding-top: 96px; }
body { background: var(--bg); color: var(--text); font-family: Inter, 'DM Sans', system-ui, sans-serif; }
h1, h2, h3, h4 { font-family: var(--display); color: inherit; }
p { color: var(--muted); }
em { color: inherit; background: linear-gradient(transparent 62%, var(--sand) 62%, var(--sand) 92%, transparent 92%); }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; color: var(--gold); }
a:focus-visible, button:focus-visible { outline-color: var(--navy); }

/* Header */
.site-header { background: rgba(244, 243, 238, .96); border-bottom: 1px solid var(--line); }
.nav-inner { min-height: 76px; }
.brand { color: var(--text); font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .14em; }
.brand small { font-family: var(--mono); font-weight: 400; color: #55657A; letter-spacing: .42em; font-size: 10px; }
.brand-mark { width: 40px; height: 40px; flex: none; display: block; }
nav > a { color: var(--navy); font-size: 14px; }
nav > a:hover, .text-link:hover { color: var(--gold); }
.text-link { color: var(--navy); }
.menu-toggle { border-color: #8A99AA; color: var(--text); }

/* Buttons */
.button { background: var(--navy); border-color: var(--navy); color: #F4F3EE; font-size: 14px; font-weight: 600; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { background: var(--navy); color: #F4F3EE; transform: translateY(-2px); box-shadow: 6px 6px 0 var(--sand); }
.button-small { font-size: 13px; }
nav .button { color: #F4F3EE; }

/* Cards and panels */
.catalog-card { background: #FFFFFF; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.catalog-card:hover { transform: translateY(-4px); border-color: var(--navy); box-shadow: 8px 8px 0 var(--sand); }
.catalog-monogram { background: var(--navy); color: var(--sand); font-family: var(--mono); font-weight: 500; font-size: 17px; }
.catalog-category { font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }
.category-filters button { border-color: #8A99AA; color: var(--text); }
.category-filters button[aria-pressed="true"] { color: #F4F3EE; background: var(--navy); border-color: var(--navy); }
.field input, .field select, .field textarea { border-color: #8A99AA; }
.field input::placeholder { color: #5B6B7C; }
.field input:focus, .field select:focus, .field textarea:focus { outline-color: var(--navy); }
.intro-note { background: #FFFFFF; border: 1px solid var(--navy); border-left: 1px solid var(--navy); box-shadow: 8px 8px 0 var(--sand); }
.paper-band p { color: var(--muted); }
.service-detail-grid article { border-top-color: #B5BEC8; }
.about-paths article { background: #FFFFFF; }
.product { background: #FFFFFF; border-color: var(--line); color: var(--text); }
.product:hover { border-color: var(--navy); box-shadow: 8px 8px 0 var(--sand); }
.support-grid .product > span { color: var(--gold); font-weight: 600; }
.project-form { background: #FFFFFF; border: 1px solid var(--navy); box-shadow: 10px 10px 0 var(--sand); }
.project-form .form-intro, .project-form small, .form-privacy, .project-form .form-note { color: #4B5A69; }
.project-form input, .project-form select, .project-form textarea { background: #FBFAF6; border-color: #8A99AA; }

/* Legal pages */
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page strong { color: var(--text); }

/* Dark bands keep the original navy scheme */
.site-footer, .page-cta-band {
  --text: #F1F1EE; --muted: #C1CCD7; --gold: #DFC38E; --line: #3B5065;
  color: var(--text);
}
.page-cta-band { background: var(--navy); border-top: 0; }
.page-cta-band .button { background: var(--sand); border-color: var(--sand); color: #1B2530; }
.page-cta-band .button:hover { background: var(--sand); color: #1B2530; box-shadow: 6px 6px 0 #1B2530; }
.site-footer { background: #1B2530; border-top: 0; }
.site-footer .brand { color: #F1F1EE; }
.site-footer .brand small { color: #C1CCD7; }
.footer-top p { font-size: 14px; }
.footer-top h3 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); }
.footer-top > div > a:not(.brand) { font-size: 14px; }
.footer-bottom { border-top-color: #33465A; font-family: var(--mono); font-size: 12px; color: #B8C7D5; }

@media (max-width: 850px) {
  .nav-inner { min-height: 68px; }
  nav { top: 68px; background: #F4F3EE; border-bottom: 1px solid var(--line); }
  .brand-mark { width: 36px; height: 36px; }
}
