/* Shared styles for mineralo.app.
   Palette matches Sources/MineraloKit/UI/Theme.swift so the site and the app
   look like the same product — the ground, surface and accent are the same
   hex values the app renders. */

:root {
  --ground: #090D18;
  --surface: #131A2B;
  --raised: #1D263B;
  --accent: #8B5CF6;
  --accent-alt: #22D3EE;
  --text: #FFFFFF;
  --text-dim: rgba(255, 255, 255, 0.62);
  --rule: rgba(255, 255, 255, 0.1);
  --measure: 42rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(60rem 40rem at 50% -10rem, rgba(139, 92, 246, 0.22), transparent),
    linear-gradient(var(--surface), var(--ground) 40rem);
  background-color: var(--ground);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  min-height: 100vh;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

header.site {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 3rem;
}

.mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: linear-gradient(140deg, var(--accent), var(--accent-alt));
  flex: none;
}

header.site a.name {
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

nav.site { margin-left: auto; display: flex; gap: 1.25rem; }
nav.site a { color: var(--text-dim); text-decoration: none; font-size: 0.95rem; }
nav.site a:hover { color: var(--text); }

h1 {
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

h2:first-of-type { border-top: 0; padding-top: 0; }

h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }

p, li { color: var(--text-dim); }
p { margin: 0 0 1rem; }

.lead { font-size: 1.15rem; color: var(--text); }

strong { color: var(--text); font-weight: 600; }

a { color: var(--accent-alt); }

ul { padding-left: 1.2rem; }
li { margin-bottom: 0.5rem; }

.updated {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

.card {
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

.card p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

th, td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th { color: var(--text); font-weight: 600; white-space: nowrap; }
td { color: var(--text-dim); }

footer.site {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--text-dim);
}

footer.site a { color: var(--text-dim); }
