:root {
  color-scheme: dark;
  --color-bg: #003050;
  --color-bg-deep: #001e33;
  --color-bg-card: #0a3f63;
  --color-gold: #c9a227;
  --color-gold-light: #e8d5a8;
  --color-text: #f5f0e6;
  --color-text-muted: #b8c4cc;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

a { color: var(--color-gold-light); }
a:hover { color: var(--color-gold); }

header.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  background: linear-gradient(180deg, var(--color-bg-deep) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
}

header.site-header img.logo {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

header.site-header .site-name {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-gold);
  letter-spacing: 0.02em;
  margin: 0;
}

header.site-header .tagline {
  color: var(--color-text-muted);
  margin-top: 0.4rem;
  font-size: 1rem;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

main h1 {
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 1.8rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
  padding-bottom: 0.6rem;
  margin-top: 0;
}

main h2 {
  font-family: var(--font-display);
  color: var(--color-gold-light);
  font-size: 1.3rem;
  margin-top: 2.2rem;
}

main .byline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

.card {
  background: var(--color-bg-card);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.card-grid .card {
  margin: 0;
  text-align: center;
  display: block;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card-grid a.card:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
  color: var(--color-gold-light);
}

.card-grid .card .icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.5rem;
}

footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

footer a {
  margin: 0 0.6rem;
}

footer .logo-small {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  opacity: 0.85;
  margin-bottom: 0.8rem;
}

footer .social-row {
  margin-bottom: 0.6rem;
}

footer .social-row a {
  margin: 0 0.5rem;
}

footer .legal-row {
  margin-bottom: 0.6rem;
}

ul { padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }

@media (max-width: 480px) {
  header.site-header .site-name { font-size: 1.6rem; }
  main h1 { font-size: 1.5rem; }
}
