:root {
  --color-primary: #1a3a5c;
  --color-primary-dark: #122945;
  --color-accent: #d97706;
  --color-accent-hover: #b45309;
  --color-text: #1f2937;
  --color-muted: #4b5563;
  --color-bg: #ffffff;
  --color-bg-alt: #f3f4f6;
  --color-border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --max-width: 1100px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
}

.container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 0;
}

.site-header {
  background: var(--color-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: inline-block;
}

@media (max-width: 640px) {
  .logo-img {
    height: 40px;
  }
  .logo-text {
    display: none;
  }
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.site-nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  color: #e5e7eb;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.5rem;
  background: white;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 200px;
  z-index: 1000;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.2s;
}

.nav-dropdown-menu a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  text-decoration: none;
}

.nav-dropdown-menu a.active {
  background: var(--color-bg-alt);
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.hero {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 4rem 0;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.hero p {
  font-size: 1.15rem;
  color: #d1d5db;
  max-width: 650px;
  margin: 0 0 1.5rem;
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--color-accent-hover);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  margin-left: 0.5rem;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section h2 {
  font-size: 1.75rem;
  margin-top: 0;
  color: var(--color-primary);
}

.section h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
}

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

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

.card p,
.card ul {
  color: var(--color-muted);
}

.cta-banner {
  background: var(--color-primary);
  color: #fff;
  padding: 2.5rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  margin: 0 0 0.5rem;
}

.cta-banner p {
  margin: 0 0 1.25rem;
  color: #d1d5db;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
}

label {
  font-weight: 600;
}

input, textarea, select {
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
}

textarea { min-height: 120px; }

.site-footer {
  background: var(--color-primary-dark);
  color: #d1d5db;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.footer-links a {
  display: block;
  color: #d1d5db;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.footer-links a:hover { color: #fff; }

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h1 { color: var(--color-primary); }

.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.post-list a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.post-list a:hover { text-decoration: underline; }

.post-list time {
  display: block;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0.25rem 0 0.5rem;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.85rem; }
  .nav-inner { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 0.75rem; }
  .btn-secondary { margin-left: 0; margin-top: 0.5rem; }
}
