/* ==========================================================================
   Menooa Electric — design system
   A homeowner electrical-literacy journal. NOT a contracting business —
   see the disclaimer placard component, used sitewide.
   Blueprint-vellum aesthetic: pale cyan-white "drafting paper" background,
   deep schematic-ink navy, safety-orange hazard accent. Category colors are
   drawn from real electrical wire/breaker color coding (navy/orange/red/
   amber/ground-green), not arbitrary decoration.
   Signature: the "panel row" — styled like a single line in the paper
   directory card found inside a real circuit breaker box.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --paper: #e9f1f3;
  --panel: #ffffff;
  --paper-line: #c7d8dd;
  --ink: #14304a;
  --ink-muted: #56707e;

  --orange: #e0632b;
  --orange-deep: #b84d1e;

  /* wire/breaker color coding, used for category identity */
  --basics: #2b5a82;
  --safety: #e0632b;
  --panelred: #c23b32;
  --lighting: #d9a32e;
  --callpro: #3e7c5a;

  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1180px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  background-image:
    linear-gradient(var(--paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 28px 28px;
  background-attachment: fixed;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange-deep); outline-offset: 3px; }

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

/* ---------- disclaimer placard (sitewide safety notice) ---------- */

.placard {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.6rem 1rem;
  border-bottom: 3px solid var(--orange);
}
.placard strong { color: var(--orange); font-weight: 700; }

/* ---------- header ---------- */

.site-header { background: var(--panel); border-bottom: 2px solid var(--ink); }

.site-header__bar { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 0; }

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.wordmark .breaker { width: 14px; height: 22px; border: 2px solid var(--ink); border-radius: 2px; position: relative; }
.wordmark .breaker::after { content: ""; position: absolute; left: 3px; top: 3px; width: 4px; height: 8px; background: var(--orange); }

.nav-toggle {
  display: none;
  background: var(--panel);
  border: 2px solid var(--ink);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  font-size: 1rem;
  cursor: pointer;
}

.site-nav ul { list-style: none; display: flex; gap: 1.7rem; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 3px solid transparent;
  padding-bottom: 0.3rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: var(--orange); color: var(--orange-deep); }

@media (max-width: 840px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .site-nav { display: none; width: 100%; padding-bottom: 1.1rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.9rem; }
  .site-header__bar { flex-wrap: wrap; }
}

/* ---------- hero ---------- */

.hero { padding: 4rem 0 4.2rem; }
.hero__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 3rem; }
.hero__copy { max-width: 33rem; }

.hero__eyebrow { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--orange-deep); margin: 0 0 1.1rem; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 1.3rem;
  text-transform: uppercase;
}
.hero h1 span { color: var(--orange); }

.hero p.lede { font-size: 1.12rem; color: var(--ink-muted); margin: 0 0 2rem; max-width: 42ch; font-family: var(--font-body); }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.92rem;
  padding: 0.8rem 1.4rem; border-radius: var(--radius);
  text-decoration: none; border: 2px solid var(--ink); cursor: pointer;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { border-color: var(--orange-deep); color: var(--orange-deep); }

@media (max-width: 900px) { .hero__inner { flex-direction: column; } }

/* ---------- panel schedule (hero widget) ---------- */

.panel-schedule { background: var(--panel); border: 2px solid var(--ink); width: 320px; flex-shrink: 0; }
.panel-schedule__head { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 0.55rem 0.9rem; }
.panel-schedule .prow { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.9rem; border-top: 1px solid var(--paper-line); font-family: var(--font-mono); font-size: 0.76rem; }
.breaker-toggle { width: 12px; height: 20px; border: 1.5px solid var(--ink); border-radius: 1px; position: relative; flex-shrink: 0; }
.breaker-toggle::after { content: ""; position: absolute; left: 2px; top: 2px; width: 5px; height: 7px; }

/* ---------- panel row (signature card component) ---------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }

.panel-card {
  background: var(--panel);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.panel-card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgba(20,48,74,0.35); }

.panel-card__switch { width: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.panel-card__switch .breaker-toggle { width: 16px; height: 26px; border-width: 2px; }

.panel-card__body { padding: 1.1rem 1.1rem 1.1rem 0; flex: 1; }
.panel-card__ckt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 0.5rem; display: block; }
.panel-card__body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.22; margin: 0 0 0.5rem; letter-spacing: 0.01em; }
.panel-card__body p { color: var(--ink-muted); font-size: 0.92rem; margin: 0 0 0.8rem; }
.panel-card__meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-muted); display: flex; gap: 0.8rem; }

/* wire-color category coding */
.tog-basics::after { background: var(--basics); }
.tog-safety::after { background: var(--safety); }
.tog-panel::after { background: var(--panelred); }
.tog-lighting::after { background: var(--lighting); }
.tog-callpro::after { background: var(--callpro); }

.tag { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35rem 0.6rem; border-radius: 2px; color: #fff; }
.tag-basics { background: var(--basics); }
.tag-safety { background: var(--safety); }
.tag-panel { background: var(--panelred); }
.tag-lighting { background: var(--lighting); }
.tag-callpro { background: var(--callpro); }

/* ---------- sections ---------- */

.section { padding: 4rem 0; }
.section--panel { background: var(--panel); border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); }
.section__head { max-width: 62ch; margin: 0 0 2.2rem; }
.section__eyebrow { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-deep); margin: 0 0 0.6rem; }
.section__head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 0 0 0.7rem; text-transform: uppercase; }
.section__head p { color: var(--ink-muted); margin: 0; font-size: 1.02rem; }

/* ---------- breaker panel (category nav, replaces tile grid) ----------
   Categories rendered as an actual breaker panel — a bank of switches you
   click, not a grid of colored boxes. */

.breaker-panel {
  background: var(--ink);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  border-radius: var(--radius);
}
@media (max-width: 600px) { .breaker-panel { grid-template-columns: 1fr; } }

.breaker-panel__slot {
  background: var(--panel);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  transition: background 0.12s ease;
}
.breaker-panel__slot:hover { background: var(--paper); }
.breaker-panel__slot .breaker-toggle { width: 18px; height: 30px; border-width: 2px; flex-shrink: 0; }
.breaker-panel__slot .slot-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--ink-muted); display: block; margin-bottom: 0.15rem; }
.breaker-panel__slot h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; margin: 0; text-transform: uppercase; }

/* ---------- directory list (signature listing component) ----------
   Replaces a card grid with a continuous panel-directory list — the paper
   card inside a breaker box, not a grid of boxed cards. */

.directory-list { border: 2px solid var(--ink); background: var(--panel); }

.directory-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--paper-line);
}
.directory-list a.directory-row:nth-child(even) { background: var(--paper); }
.directory-row:hover { background: #dcebee; }
.directory-row:last-child { border-bottom: none; }

.directory-row .breaker-toggle { width: 14px; height: 24px; flex-shrink: 0; }

.directory-row__ckt { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-muted); width: 3.4rem; flex-shrink: 0; }

.directory-row__main { flex: 1; min-width: 0; }
.directory-row__main .cat-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); display: block; margin-bottom: 0.2rem; }
.directory-row__main h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; margin: 0 0 0.2rem; }
.directory-row__main p { color: var(--ink-muted); font-size: 0.86rem; margin: 0; max-width: 56ch; }

.directory-row__time { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-muted); flex-shrink: 0; white-space: nowrap; }

@media (max-width: 700px) {
  .directory-row { flex-wrap: wrap; }
  .directory-row__main { order: 3; width: 100%; }
  .directory-row__time { margin-left: auto; }
}

/* ---------- footer ---------- */

.site-footer { background: var(--panel); border-top: 2px solid var(--ink); padding: 0 0 2.2rem; margin-top: 2rem; }

.disclaimer-block {
  background: var(--ink);
  color: #fff;
  padding: 1.4rem 0;
  margin-bottom: 2.4rem;
}
.disclaimer-block .container { display: flex; gap: 1rem; align-items: flex-start; }
.disclaimer-block .flag { color: var(--orange); font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.disclaimer-block p { margin: 0; font-size: 0.88rem; line-height: 1.6; color: #dce7ec; max-width: 72ch; }
.disclaimer-block strong { color: #fff; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding: 0 1.5rem; max-width: var(--container); margin: 0 auto; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-deep); margin: 0 0 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-grid a { text-decoration: none; color: var(--ink); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--orange-deep); }
.site-footer .wordmark { margin-bottom: 0.8rem; }
.site-footer p.tagline { max-width: 34ch; font-size: 0.9rem; color: var(--ink-muted); }
.footer-bottom { border-top: 1px solid var(--paper-line); margin-top: 2.2rem; padding: 1.2rem 1.5rem 0; max-width: var(--container); margin-left: auto; margin-right: auto; font-size: 0.8rem; color: var(--ink-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- article prose ---------- */

.article-head { padding: 2.8rem 0 2.4rem; border-bottom: 2px solid var(--ink); }
.breadcrumb { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-muted); text-decoration: none; display: inline-block; margin-bottom: 1.2rem; }
.breadcrumb:hover { color: var(--orange-deep); }
.article-head h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.3vw, 2.6rem); line-height: 1.16; max-width: 26ch; margin: 0 0 1.1rem; text-transform: uppercase; }
.article-plate { display: inline-flex; align-items: center; gap: 0.9rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-muted); flex-wrap: wrap; }

.prose { max-width: 68ch; margin: 0 auto; padding: 3rem 1.5rem 2rem; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin: 2.3rem 0 1rem; text-transform: uppercase; letter-spacing: 0.01em; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; margin: 1.8rem 0 0.8rem; }
.prose p { margin: 0 0 1.2rem; font-size: 1.05rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--orange-deep); text-decoration-thickness: 1.5px; }

.note { background: var(--panel); border: 1px solid var(--ink); border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 1.8rem 0; font-size: 0.96rem; }
.note strong.note__label { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 0.5rem; }

.callpro-box { background: var(--callpro); color: #fff; border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 1.8rem 0; font-size: 0.96rem; }
.callpro-box strong.note__label { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: #d9ffe9; margin-bottom: 0.5rem; }

.article-footer { max-width: 68ch; margin: 0 auto; padding: 1.5rem 1.5rem 4rem; border-top: 1px dashed var(--paper-line); }
.affiliate-note { font-size: 0.85rem; color: var(--ink-muted); font-style: italic; }

/* ---------- static pages ---------- */

.page-head { padding: 3rem 0 2.8rem; border-bottom: 2px solid var(--ink); }
.page-head h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.7rem); margin: 0; text-transform: uppercase; }
.page-head p { color: var(--ink-muted); margin: 0.8rem 0 0; max-width: 52ch; }

.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.stat-plate { background: var(--panel); border: 1px solid var(--ink); border-radius: var(--radius); padding: 1.4rem; }
.stat-plate h4 { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-deep); margin: 0 0 0.9rem; }
.stat-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px dashed var(--paper-line); font-size: 0.92rem; }
.stat-row:last-child { border-bottom: none; }
.stat-row span:last-child { font-family: var(--font-mono); color: var(--ink-muted); }

@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; } }
