/*
Theme Name: CH Solenoid
Description: Custom theme for chsolenoid.com — precision solenoid valves for industrial fluid control.
Version: 1.0.0
Author: ZeroY
*/

:root {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-surface);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

/* ---- Header ---- */
.site-header { border-bottom: 1px solid var(--color-line-soft); background: var(--color-surface); }
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
.site-brand { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; color: var(--color-ink); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { font-size: 0.9375rem; color: var(--color-ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 4px; }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--color-ink); font-weight: 600; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--color-line); padding: 2.5rem 1.5rem; text-align: center; }
.site-footer p { margin: 0; font-size: 0.875rem; color: var(--color-muted); }

@media (max-width: 640px) {
  .site-header__bar { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
