/* ironweft.css — shared styles for all IronWeft pages */

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

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #222222;
  --text: #e8e8e8;
  --muted: #a8a8a8;
  --accent: #c8a96e;
  --accent-dim: rgba(200, 169, 110, 0.12);
  --green: #4ade80;
  --red: #f87171;
  --code-bg: #161616;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 60px;
  background: rgba(10,10,10,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav-logo {
  font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .btn-primary { color: #000; font-weight: 700; }
.nav-links .btn-primary:hover { color: #000; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-primary { background: var(--accent); color: #000; font-weight: 700; }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }

/* DIVIDER */
.divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  max-width: 1000px; margin: 0 auto;
  font-size: 0.82rem; color: var(--muted);
}
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* BRAND (footer / inline use) */
.brand { font-weight: 600; }
.brand span { color: var(--accent); }

/* SECTION LABELS */
.section-label {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-sub { color: var(--muted); max-width: 520px; margin-bottom: 3rem; line-height: 1.7; }

/* BADGE */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent-dim);
  border: 1px solid rgba(200,169,110,0.3);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* MOBILE */
@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .nav-links { gap: 1rem; }
  footer { flex-direction: column; align-items: flex-start; }
}
