:root {
  --primary: #2196F3;
  --primary-dark: #1976D2;
  --accent: #FFC107;
  --accent-dark: #FFA000;
  --purple: #4527A0;
  --purple-deep: #311B92;
  --bg: #E3F2FD;
  --card: #FFFFFF;
  --text: #212121;
  --text-muted: #616161;
  --border: #BBDEFB;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.site-header {
  background: linear-gradient(135deg, var(--purple) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 24px 16px 28px;
  text-align: center;
  border-bottom: 6px solid var(--accent);
}

.site-header .brand-logo {
  display: block;
  margin: 0 auto;
  max-width: 120px;
  width: 35%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.site-header .brand-logo.small {
  max-width: 90px;
}

.site-header h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.site-header .tagline {
  margin: 12px 0 0;
  opacity: 0.95;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.site-header nav {
  margin-top: 16px;
}

.site-header nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  margin: 0 12px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s;
  display: inline-block;
}

.site-header nav a:hover {
  background: var(--accent);
  color: var(--text);
}

main.card {
  max-width: 820px;
  margin: 32px auto;
  background: var(--card);
  border-radius: 16px;
  padding: 40px 48px;
  box-shadow: 0 8px 24px rgba(33, 150, 243, 0.15);
}

main.card h1,
main.card h2,
main.card h3 {
  color: var(--primary-dark);
  margin-top: 1.6em;
}

main.card h1:first-child,
main.card h2:first-child {
  margin-top: 0;
}

main.card a {
  color: var(--primary-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s;
}

main.card a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

main.card ul {
  padding-left: 24px;
}

main.card li {
  margin-bottom: 8px;
}

.site-footer {
  text-align: center;
  padding: 24px 16px 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--primary-dark);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

form.themed {
  max-width: 560px;
  margin: 0 auto;
}

form.themed label {
  font-weight: 600;
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

form.themed input[type="text"],
form.themed input[type="email"],
form.themed textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #FAFCFF;
  transition: border-color 0.15s, background 0.15s;
}

form.themed input:focus,
form.themed textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

form.themed textarea {
  min-height: 160px;
  resize: vertical;
}

form.themed button {
  margin-top: 24px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

form.themed button:hover {
  background: var(--primary-dark);
}

form.themed button:active {
  transform: translateY(1px);
}

form.themed button:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.form-status {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-status.success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
  display: block;
}

.form-status.error {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
  display: block;
}

@media (max-width: 600px) {
  main.card {
    margin: 16px;
    padding: 24px 20px;
    border-radius: 12px;
  }
  .site-header h1 {
    font-size: 1.75rem;
  }
}
