/* Hermes Website Creation Test — styles.css */

:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --radius: 12px;
  --shadow: 0 4px 14px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Header */
.site-header {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
}

.site-header h1 {
  font-size: 2rem;
  color: var(--accent);
}

.tagline {
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Main content */
main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  display: grid;
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

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

.card code {
  background: var(--bg);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.9em;
}

/* Interactive demo */
#demo-text {
  margin-bottom: 1rem;
  transition: color 0.2s ease;
}

#demo-button {
  appearance: none;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

#demo-button:hover {
  background: var(--accent-hover);
}

#demo-button:active {
  transform: scale(0.97);
}

/* Toggled state (activated by script.js) */
.demo-card.activated {
  border: 2px solid var(--accent);
  background: #eef2ff;
}

.demo-card.activated #demo-text {
  color: var(--accent);
  font-weight: 600;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 480px) {
  .site-header h1 {
    font-size: 1.5rem;
  }

  main {
    padding: 0 1rem 1.5rem;
  }

  .card {
    padding: 1.25rem;
  }

  #demo-button {
    width: 100%;
  }
}
