/* ForgedLife website — shared styles */

:root {
  --bg: #0f0d1a;
  --panel: #1a1728;
  --panel-2: #221e33;
  --border: #2a2438;
  --text: #ececf1;
  --muted: #9ca3af;
  --accent: #a78bfa;
  --accent-strong: #7c3aed;
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 780px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
a:hover { border-bottom-color: var(--accent); }

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 80px;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
header.site .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
  border: none;
}
header.site .brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  display: inline-block;
}
header.site nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}
header.site nav a {
  color: var(--muted);
  border: none;
}
header.site nav a:hover { color: var(--text); }

.hero {
  padding: 40px 0 60px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .tag {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 32px;
}
.hero .badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

h1, h2, h3 {
  color: var(--text);
  letter-spacing: -0.01em;
}
h2 {
  font-size: 26px;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
h3 {
  font-size: 19px;
  margin: 32px 0 12px;
  color: var(--accent);
}
p { margin: 0 0 16px; }
ul, ol { padding-left: 24px; }
li { margin-bottom: 6px; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.grid .card {
  margin: 0;
}
.grid .card h3 {
  margin-top: 0;
}

code, kbd, .mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  background: var(--panel-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

footer.site {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer.site nav {
  display: flex;
  gap: 20px;
}
footer.site a { color: var(--muted); border: none; }
footer.site a:hover { color: var(--text); }

.notice {
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
  color: var(--text);
}
.notice strong { color: var(--accent); }

@media (max-width: 520px) {
  .page { padding: 20px 16px 60px; }
  header.site { padding-bottom: 16px; margin-bottom: 24px; }
  header.site nav { gap: 14px; font-size: 14px; }
  .hero { padding: 20px 0 40px; }
}
