/* The Council — shared site styles (Lamplight palette, matched to the app) */

:root {
  --bg: #15121A;
  --surface: #1F1A26;
  --surface-2: #271F2F;
  --header: #2C2435;
  --ink: #F2EADB;
  --ink-2: #C7B9A6;
  --ink-muted: #9A8F80;
  --honey: #E6AE63;
  --honey-soft: #F0C58A;
  --terracotta: #D38A66;
  --sage: #9CB57F;
  --plum: #B295BE;
  --line: rgba(242, 234, 219, 0.10);
  --line-strong: rgba(242, 234, 219, 0.18);
  --radius: 14px;
  --maxw: 780px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 20px 80px;
  background: var(--bg);
  color: var(--ink-2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  /* warm ambient glow, echoing the app's lamplight layer */
  background-image:
    radial-gradient(900px 460px at 50% -140px, rgba(230, 174, 99, 0.13), transparent 70%),
    radial-gradient(620px 340px at 88% 8%, rgba(178, 149, 190, 0.07), transparent 72%);
  background-repeat: no-repeat;
}

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

/* ---------- masthead ---------- */

.masthead { text-align: center; padding: 56px 0 8px; }

.masthead img {
  width: 96px; height: 96px;
  border-radius: 22px;
  display: block; margin: 0 auto 20px;
  box-shadow: 0 12px 40px rgba(230, 174, 99, 0.20);
}

.masthead h1 {
  margin: 0 0 6px;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 650;
}

.masthead .tagline {
  margin: 0;
  color: var(--honey);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.masthead .updated {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

/* ---------- nav ---------- */

.sitenav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin: 30px 0 8px;
}

.sitenav a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.93rem;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.sitenav a:hover, .sitenav a:focus-visible {
  color: var(--bg);
  background: var(--honey);
  border-color: var(--honey);
}

.sitenav a[aria-current="page"] {
  color: var(--honey);
  border-color: var(--honey);
}

/* ---------- structure ---------- */

section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 26px 0;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.32rem;
  line-height: 1.3;
  color: var(--ink);
  font-weight: 620;
  letter-spacing: -0.01em;
}

h3 {
  margin: 26px 0 8px;
  font-size: 1.06rem;
  color: var(--honey-soft);
  font-weight: 600;
}

h3:first-of-type { margin-top: 6px; }

p { margin: 0 0 14px; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

ul, ol { padding-left: 22px; margin: 0 0 14px; }
li { margin-bottom: 8px; }
li:last-child { margin-bottom: 0; }

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

a { color: var(--honey); text-decoration: none; border-bottom: 1px solid rgba(230, 174, 99, 0.35); }
a:hover, a:focus-visible { color: var(--honey-soft); border-bottom-color: var(--honey-soft); }

code {
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--honey-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- callout ---------- */

.callout {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--honey);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 18px 0;
}

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

/* ---------- data table ---------- */

.tablewrap { overflow-x: auto; margin: 18px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 520px;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--ink);
  font-weight: 600;
  background: var(--surface-2);
  white-space: nowrap;
}

tr:last-child td { border-bottom: none; }

/* ---------- feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 16px;
  margin: 22px 0 0;
}

.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.card h4 {
  margin: 0 0 7px;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 600;
}

.card p { margin: 0; font-size: 0.94rem; color: var(--ink-2); }

/* ---------- forms ---------- */

label {
  display: block;
  margin: 18px 0 7px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 500;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--honey);
  box-shadow: 0 0 0 3px rgba(230, 174, 99, 0.16);
}

textarea { min-height: 150px; resize: vertical; }

button {
  margin-top: 22px;
  padding: 13px 30px;
  background: var(--honey);
  color: #1A1410;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 620;
  cursor: pointer;
  transition: background-color .18s ease;
}

button:hover, button:focus-visible { background: var(--honey-soft); }

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

footer {
  max-width: var(--maxw);
  margin: 60px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

footer a { color: var(--ink-2); border-bottom-color: var(--line-strong); }
footer .footlinks { margin-bottom: 10px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 560px) {
  body { font-size: 16px; padding: 0 16px 60px; }
  section { padding: 22px 19px; }
  .masthead { padding: 40px 0 4px; }
}
