/* Forge58 — shared styles */

:root {
  --bg: #0e0e11;
  --surface: #16161a;
  --border: #26262d;
  --text: #e9e7e4;
  --muted: #8f8d87;
  --accent: #ff6a2b;
  --accent-dim: #c24a18;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --maxw: 44rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfaf8;
    --surface: #ffffff;
    --border: #e4e1db;
    --text: #1a1a1d;
    --muted: #6b6862;
    --accent: #d9490f;
    --accent-dim: #b03a0a;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  padding: 3.5rem 0 0;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1em;
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.wordmark .num {
  color: var(--accent);
}

.wordmark:hover .num {
  color: var(--accent-dim);
}

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

.hero {
  padding: 4rem 0 3.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 650;
  margin: 0 0 1.25rem;
  max-width: 20ch;
}

.hero p {
  color: var(--muted);
  font-size: 1.125rem;
  margin: 0;
  max-width: 54ch;
}

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

section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* ---- project card ---- */

.project {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.project:hover {
  border-color: var(--accent);
}

.project .icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  flex: 0 0 auto;
  background: linear-gradient(145deg, var(--accent), var(--accent-dim));
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.project h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.project p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.status {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 0.15rem 0.6rem;
}

/* ---- prose (policy / support pages) ---- */

.prose h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.prose .updated {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

.prose h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}

.prose p { margin: 0 0 1rem; }

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li { margin-bottom: 0.4rem; }

.lede {
  font-size: 1.05rem;
  border-left: 2px solid var(--accent);
  padding-left: 1.1rem;
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover { color: var(--accent-dim); }

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

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2rem 0 4rem;
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

.site-footer .spacer { flex: 1 1 auto; }

.back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2.5rem;
}

.back:hover { color: var(--accent); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-header { padding-top: 2.5rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .project { flex-direction: column; gap: 1rem; }
}
