/* Apidae legal site (task 4.14.5). Design tokens from docs/design-v2 (auth handoff):
   ground #140d06, panel gradient #24170a -> #120a04, cream #f4e3b2, gold #d49340 / link #f0b65a.
   System font stacks only: no external requests, no web fonts. */

:root {
  --ground: #140d06;
  --panel-top: #24170a;
  --panel-bottom: #120a04;
  --cream: #f4e3b2;
  --cream-muted: rgba(244, 227, 178, 0.72);
  --gold: #d49340;
  --gold-bright: #f5c63a;
  --link: #f0b65a;
  --rule: rgba(212, 147, 64, 0.3);
  --title: "Spectral", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ground);
}

body {
  margin: 0;
  padding: 0 16px 64px;
  color: var(--cream);
  font: 16px/1.6 var(--body);
  background: radial-gradient(ellipse 85% 40% at 50% 0%, #5a3e14 0%, #2a1c0a 45%, var(--ground) 100%)
    no-repeat;
}

header.site,
main,
footer.site {
  max-width: 760px;
  margin: 0 auto;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font: 700 28px/1 var(--title);
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  text-decoration: none;
}

nav a {
  margin-right: 16px;
  font-size: 14px;
  font-weight: 600;
}

nav a:last-child {
  margin-right: 0;
}

main {
  padding-top: 8px;
}

h1,
h2,
h3 {
  font-family: var(--title);
  line-height: 1.25;
  color: var(--cream);
}

h1 {
  font-size: 34px;
  margin: 28px 0 4px;
}

h2 {
  font-size: 22px;
  margin: 36px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 17px;
  margin: 20px 0 4px;
}

.meta {
  color: var(--cream-muted);
  font-size: 14px;
  margin: 0 0 24px;
}

p,
li {
  color: var(--cream);
}

ul {
  padding-left: 22px;
}

li {
  margin: 4px 0;
}

a {
  color: var(--link);
}

a:hover,
a:focus {
  color: var(--gold-bright);
}

.card {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid rgba(212, 147, 64, 0.45);
  border-radius: 12px;
  background: linear-gradient(var(--panel-top), var(--panel-bottom));
}

.card p:first-child {
  margin-top: 0;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}

.table-wrap {
  overflow-x: auto;
}

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

th {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

footer.site {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--cream-muted);
  font-size: 13px;
}
