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

:root {
  --bg: #0c0c0c;
  --bg-card: #141414;
  --text: #e5e5e5;
  --text-secondary: #888;
  --accent: #a3e635;
  --border: #222;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  padding: 0 1rem 4rem;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 3rem;
}

/* Header */
header { margin-bottom: 2.5rem; }

header .app-name {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Section headings */
h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

/* Body copy */
p { margin-bottom: 0.9rem; }

ul, ol {
  margin: 0.4rem 0 0.9rem 1.4rem;
}

li { margin-bottom: 0.3rem; }

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

/* Placeholder highlight */
.placeholder {
  background: #2a2a00;
  color: #ffe066;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 0.875em;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

/* Index page cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 0.15s;
}

.card:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .container { padding-top: 2rem; }
}
