/* ============================================
   tech-nol-o-gy.com — design system
   Concept: a well-organized field guide for
   people who feel behind on tech. The signature
   move is a literal highlighter-marker swipe
   behind key phrases — "we highlight what
   matters and skip the rest" — plus color-coded
   binder tabs per content pillar, borrowed from
   the tabbed dividers in a real reference guide.
   ============================================ */

:root {
  /* Core palette */
  --paper: #EDEEE6;
  --paper-raised: #F6F6F1;
  --ink: #20291F;
  --ink-soft: #4A5548;
  --highlighter: #FFD23F;
  --teal: #2A6F6F;       /* AI Tools + primary actions */
  --coral: #E1553D;      /* Digital Safety + alerts */
  --clay-blue: #3D5A73;  /* Smart Home */
  --mustard: #B9791F;    /* Should You Pay For This */
  --mist: #D6DBD1;

  --radius: 3px;
  --max-width: 1080px;

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover { color: var(--ink); }

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

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

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

/* ---------- Signature: highlighter swipe ---------- */
.hl {
  position: relative;
  white-space: nowrap;
  font-weight: 600;
}
.hl::before {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: 0.05em;
  top: 0.28em;
  background: var(--highlighter);
  mix-blend-mode: multiply;
  transform: rotate(-0.6deg);
  z-index: -1;
  border-radius: 2px 6px 3px 5px;
}
.hl.wrap-ok { white-space: normal; }

/* ---------- Eyebrow / label ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 0;
}
.logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.logo span { color: var(--teal); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
}

nav.tabs {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  flex-wrap: wrap;
}
nav.tabs a {
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  background: var(--paper-raised);
  transform: translateY(2px);
}
nav.tabs a:hover { background: var(--mist); }
nav.tabs a.active {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(0px);
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  nav.tabs {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  nav.tabs.open { display: flex; }
  nav.tabs a { border-radius: var(--radius); border-bottom: 2px solid var(--ink); }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
  border-bottom: 2px solid var(--ink);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  margin: 18px 0 20px;
  max-width: 15ch;
}
.hero .sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 32px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--teal); border-color: var(--teal); color: var(--paper); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--mist); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.divider-top { border-top: 2px solid var(--ink); }
.section-head { margin-bottom: 32px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  margin: 10px 0 0;
}

/* ---------- Cards / binder tabs ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--paper-raised);
  border: 2px solid var(--ink);
  border-left-width: 8px;
  border-radius: var(--radius);
  padding: 22px 20px;
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.card:hover { transform: translateX(2px); }
.card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 10px;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.pillar-ai { border-left-color: var(--teal); }
.pillar-home { border-left-color: var(--clay-blue); }
.pillar-safety { border-left-color: var(--coral); }
.pillar-pay { border-left-color: var(--mustard); }

/* ---------- Quick answer box ---------- */
.quick-answer {
  background: var(--paper-raised);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 28px 0 36px;
  position: relative;
}
.quick-answer::before {
  content: "QUICK ANSWER";
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--highlighter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 2px;
}
.quick-answer p { margin: 6px 0 0; font-size: 17px; }

/* ---------- Article body ---------- */
article h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  margin: 44px 0 14px;
}
article h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  margin: 24px 0 8px;
}
article p { margin: 0 0 16px; max-width: 68ch; }
article ul, article ol { max-width: 64ch; padding-left: 22px; }
article li { margin-bottom: 8px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 32px;
  font-size: 15px;
  border: 2px solid var(--ink);
}
th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--mist);
  border-right: 1px solid var(--mist);
}
th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
tr:last-child td { border-bottom: none; }
td:last-child, th:last-child { border-right: none; }

/* ---------- FAQ accordion ---------- */
.faq { margin-top: 12px; }
.faq details {
  border-bottom: 1px solid var(--mist);
  padding: 16px 0;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  flex-shrink: 0;
  color: var(--teal);
}
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 12px 0 0; color: var(--ink-soft); max-width: 64ch; }

/* ---------- Path cards (Start Here) ---------- */
.path-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
  background: var(--paper-raised);
}
.path-card .eyebrow { margin-bottom: 10px; }
.path-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 0 0 12px; }
.path-card ol { margin: 0; padding-left: 20px; }
.path-card li { margin-bottom: 6px; }

/* ---------- Next-in-series ---------- */
.next-post {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px dashed var(--mist);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ---------- Post meta ---------- */
.post-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}
.pillar-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 2px;
  color: var(--paper);
}
.chip-ai { background: var(--teal); }
.chip-home { background: var(--clay-blue); }
.chip-safety { background: var(--coral); }
.chip-pay { background: var(--mustard); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.newsletter h2 { font-family: var(--font-display); font-weight: 400; font-size: 30px; margin: 0 0 8px; }
.newsletter p { color: var(--mist); margin: 0 0 22px; }
.newsletter-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 2px solid var(--paper);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
}
.newsletter-form input::placeholder { color: var(--mist); }
.newsletter-form button {
  background: var(--highlighter);
  color: var(--ink);
  border: 2px solid var(--highlighter);
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ---------- Footer ---------- */
footer {
  border-top: 2px solid var(--ink);
  padding: 44px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--ink); text-decoration: none; font-size: 14px; }
.footer-grid a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
