/* GearWorld · dark-mode tech-review · style.css */

:root {
  --bg: #0a0e1a;
  --bg-elevated: #10151f;
  --bg-card: #151b28;
  --bg-hover: #1a2233;
  --cyan: #00d9ff;
  --cyan-dim: #0099b8;
  --cyan-bg: rgba(0, 217, 255, 0.08);
  --magenta: #ff2d75;
  --magenta-dim: #b81f56;
  --magenta-bg: rgba(255, 45, 117, 0.08);
  --text: #e4e9f0;
  --text-mid: #a0aec0;
  --text-dim: #6b7280;
  --border: #1f2a3d;
  --border-bright: #2d3e5c;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', 'Consolas', 'Monaco', monospace;
  --font-display: 'Space Grotesk', var(--font-body);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 20% 0%, rgba(0, 217, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(255, 45, 117, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-weight: 700;
}
.skip-link:focus { left: 0; z-index: 100; }

/* Header */
.site-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background-color: rgba(16, 21, 31, 0.92);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}
.brand-logo {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--cyan-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 2px;
}
.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.primary-nav a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.primary-nav a:hover {
  color: var(--cyan);
  background: var(--cyan-bg);
}
.primary-nav a[aria-current="page"] {
  color: var(--cyan);
  background: var(--cyan-bg);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.breadcrumbs ol { list-style: none; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--cyan-dim);
}
.breadcrumbs a { color: var(--text-mid); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current] { color: var(--text); }

/* Article header */
.article-header {
  padding: 3rem 20px 2rem;
  text-align: left;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}
.eyebrow-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: var(--cyan-bg);
  color: var(--cyan);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-right: 0.5rem;
}
h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
}
h1 .subtitle {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cyan);
  margin-top: 0.5rem;
  letter-spacing: -0.01em;
}
.lede {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
  padding-left: 1.25rem;
  border-left: 3px solid var(--cyan);
  margin-bottom: 1.5rem;
}
.lede a { color: var(--cyan); text-decoration: none; border-bottom: 1px dotted var(--cyan-dim); }
.byline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.author-mono { color: var(--cyan-dim); }
.byline-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--magenta-bg);
  color: var(--magenta);
  border: 1px solid rgba(255, 45, 117, 0.3);
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
}

/* Hero + figures */
.hero {
  margin: 0 auto 2rem;
  max-width: 1000px;
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border-bright);
  border-radius: 4px;
}
.hero figcaption, .inline-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-top: 0.75rem;
  padding-left: 0.5rem;
}
.fig-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--magenta-bg);
  color: var(--magenta);
  border: 1px solid rgba(255, 45, 117, 0.3);
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  margin-right: 0.5rem;
}
.inline-figure {
  margin: 3rem auto;
}
.inline-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border-bright);
  border-radius: 4px;
}

/* Prose */
.prose {
  padding-bottom: 3rem;
}
.prose section { margin-top: 3rem; }
.prose section:first-of-type { margin-top: 2rem; }

h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cyan);
  display: inline-block;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cyan);
  margin: 1.75rem 0 0.75rem;
  letter-spacing: -0.005em;
}
.prose p {
  margin-bottom: 1rem;
  color: var(--text);
}
.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dotted var(--cyan-dim);
}
.prose a:hover { color: var(--text); border-bottom-color: var(--cyan); }
.prose strong { color: var(--text); font-weight: 700; }
.prose ul, .prose ol {
  margin: 0 0 1rem 1.5rem;
  color: var(--text);
}
.prose li { margin-bottom: 0.35rem; }

/* Spec box */
.spec-box {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-top: 3px solid var(--cyan);
  border-radius: 4px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.spec-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: none;
  padding: 0;
  margin-bottom: 1rem;
  display: block;
}
.spec-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.spec-grid dt {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.spec-grid dd {
  color: var(--text);
  font-weight: 600;
}

/* Pullquote */
.pullquote {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 2px solid var(--magenta);
  border-bottom: 2px solid var(--cyan);
  text-align: left;
}
.pullquote blockquote {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.pullquote cite {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--magenta);
  font-style: normal;
  letter-spacing: 0.05em;
}

/* Author card */
.author-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-left: 3px solid var(--cyan);
  padding: 1.5rem;
  margin: 3rem 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: start;
  border-radius: 4px;
}
.author-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-bright);
}
.author-card h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 0.5rem;
}
.author-card p { color: var(--text); font-size: 0.95rem; margin: 0; }

/* Disclaimer */
.disclaimer {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-left: 3px solid var(--magenta);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}
.disclaimer h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--magenta);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 0.5rem;
}
.disclaimer p { font-size: 0.9rem; color: var(--text-mid); margin: 0; }
.disclaimer a { color: var(--magenta); }

/* Related block */
.related-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin: 3rem 0 2rem;
  border-radius: 4px;
}
.related-block h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 0.75rem;
}
.related-block ul { list-style: none; margin: 0; padding: 0; }
.related-block li { margin-bottom: 0.4rem; }
.related-block a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dotted var(--cyan-dim);
}
.related-block a:hover { color: var(--cyan); }

/* FAQ - details/summary */
details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  padding: 0;
}
details[open] { border-color: var(--border-bright); }
summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 3rem;
  transition: color 0.15s;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan);
  transition: transform 0.2s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
summary:hover { color: var(--cyan); }
details p { padding: 0 1.25rem 1.25rem; color: var(--text-mid); font-size: 0.95rem; margin: 0; }

/* Contact form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px var(--cyan-bg);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row button {
  background: var(--cyan);
  color: var(--bg);
  border: none;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.15s;
}
.form-row button:hover { background: var(--text); }

/* Footer */
.site-footer {
  background: #050810;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.footer-inner p { color: var(--text-mid); font-size: 0.85rem; }
.site-footer nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.site-footer nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-mid);
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--cyan); }
.copyright {
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  h1 .subtitle { font-size: 1.15rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.05rem; }
  .lede { font-size: 1rem; padding-left: 1rem; }
  .article-header { padding: 2rem 20px 1.5rem; }
  .brand-text { font-size: 1.1rem; }
  .primary-nav ul { gap: 0.25rem; }
  .primary-nav a { padding: 0.35rem 0.6rem; font-size: 0.8rem; }
  .spec-grid { grid-template-columns: 1fr; gap: 0.25rem; }
  .spec-grid dt { margin-top: 0.5rem; }
  .author-card { grid-template-columns: 80px 1fr; gap: 1rem; padding: 1.25rem; }
  .author-card img { width: 80px; height: 80px; }
  .pullquote blockquote { font-size: 1.05rem; }
  .footer-inner { flex-direction: column; }
}

@media print {
  body { background: white; color: black; }
  .site-header, .primary-nav, .breadcrumbs, .site-footer, .related-block, .contact-form { display: none; }
  a { color: black; border-bottom: none; }
  .hero img, .inline-figure img { border: 1px solid #ccc; }
  h1, h2, h3, .lede, .prose p { color: black; }
  h2 { border-bottom-color: black; }
  .spec-box, .author-card, .disclaimer, details { background: white; border: 1px solid #ccc; }
  .brand-logo, .eyebrow-tag, .byline-tag, .fig-tag { color: black; background: white; border: 1px solid black; }
}
