/* ==============================================
   Wired In — Shared Stylesheet
   wired-in.uk
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@300;400;500&family=Instrument+Sans:wght@400;500;600&display=swap');

/* --- Variables --- */
:root {
  --black:      #0a0a0a;
  --white:      #f5f3ee;
  --acid:       #c8f535;
  --mid:        #1a1a1a;
  --muted:      #3a3a3a;
  --text-muted: #888888;
  --text-dim:   #aaaaaa;
  --font-display: 'Syne', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --font-body:    'Instrument Sans', sans-serif;
  --max-width: 960px;
  --section-pad: 80px 24px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--acid); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-pad); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }

/* --- Nav --- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--black);
  border-bottom: 1px solid var(--muted);
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-display); font-weight: 800;
  font-size: 20px; letter-spacing: -0.5px;
  color: var(--white); text-decoration: none;
}
.logo span { color: var(--acid); }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-muted); padding: 6px 14px;
  border: 1px solid transparent; border-radius: 4px;
  transition: all 0.2s; text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--acid); border-color: var(--acid); }
.nav-cta {
  font-family: var(--font-mono); font-size: 12px;
  background: var(--acid); color: var(--black) !important;
  padding: 8px 16px !important; border-radius: 4px;
  border: none !important; font-weight: 500;
}
.nav-cta:hover { background: #d4ff3a; }

/* --- Typography --- */
h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.0; letter-spacing: -2px; margin-bottom: 20px;
}
h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.8px; margin-bottom: 16px;
}
h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 18px; letter-spacing: -0.3px; margin-bottom: 10px;
}
p { color: var(--text-dim); margin-bottom: 16px; }
.lead { font-size: 18px; color: #bbb; line-height: 1.5; max-width: 600px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--acid); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 20px; display: block;
}
.accent { color: var(--acid); }

/* --- Buttons --- */
.btn {
  display: inline-block; font-family: var(--font-mono); font-size: 13px;
  padding: 14px 28px; border-radius: 4px; cursor: pointer;
  transition: all 0.2s; text-decoration: none; border: none;
}
.btn-primary { background: var(--acid); color: var(--black); font-weight: 500; }
.btn-primary:hover { background: #d4ff3a; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid var(--muted); }
.btn-ghost:hover { border-color: var(--white); text-decoration: none; }

/* --- Cards --- */
.card { background: var(--mid); border: 1px solid var(--muted); border-radius: 8px; padding: 28px; }
.card:hover { border-color: #444; }
.card h3 { color: var(--acid); }

/* --- Helpers --- */
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  padding: 4px 12px; border: 1px solid var(--muted);
  border-radius: 20px; color: var(--text-muted);
}
hr { border: none; border-top: 1px solid var(--muted); margin: 60px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* --- Footer --- */
footer { border-top: 1px solid var(--muted); padding: 40px 24px; }
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
footer p { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin: 0; }

/* --- Responsive --- */
@media (max-width: 768px) {
  :root { --section-pad: 48px 20px; }
  .nav-links { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  h1 { letter-spacing: -1px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
