:root {
  --bg: #f9fafb;
  --bg-card: #ffffff;
  --border-subtle: #e5e7eb;
  --text-main: #111827;
  --text-muted: #6b7280;
  --accent: #22c55e;
  --accent-alt: #38bdf8;
  --accent-soft: #bbf7d0;
  --danger-soft: #fee2e2;
  --danger: #b91c1c;
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: radial-gradient(circle at top, #e0f2fe 0, #f9fafb 40%, #ffffff 100%);
  color: var(--text-main);
}

a {
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Header / Nav */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0 1.25rem;
}

.brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-badge {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
}

nav a {
  margin-left: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

nav a:hover {
  background: #e0f2fe;
  color: var(--text-main);
}

nav a.active {
  background: #e0f2fe;
  color: var(--text-main);
  font-weight: 600;
}

/* Hero */

.hero {
  padding: 1rem 0 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2rem;
}

.hero-main-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 550px;
  margin-bottom: 1.2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

.badge-positive {
  background: var(--accent-soft);
  color: #166534;
}

.badge-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button-primary,
.button-secondary {
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-primary {
  background: linear-gradient(to right, var(--accent), var(--accent-alt));
  color: #ffffff;
}

.button-primary:hover {
  opacity: 0.95;
}

.button-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.button-secondary:hover {
  background: #f3f4f6;
}

.hero-card {
  background: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  padding: 1.1rem 1.2rem;
  font-size: 0.9rem;
}

.hero-card-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.hero-card-text {
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Sections */

.section {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 1.2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  padding: 1rem;
  font-size: 0.9rem;
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Yearbook / Declarations */

.yearbook-banner {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(191, 219, 254, 0.5);
  border: 1px dashed rgba(59, 130, 246, 0.5);
  font-size: 0.9rem;
  color: #1d4ed8;
}

.yearbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.decl-card {
  background: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.decl-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.decl-photo {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(59, 130, 246, 0.4);
  background: #e5e7eb;
  flex-shrink: 0;
}

.decl-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.decl-name {
  font-weight: 700;
  font-size: 1rem;
}

.decl-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.decl-text {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.4;
  padding-left: 0.6rem;
  border-left: 3px solid rgba(59, 130, 246, 0.25);
}

.decl-footer {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-year {
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
}

/* Store grid */

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.store-card img {
  width: 100%;
  border-radius: 0.75rem;
  object-fit: cover;
  max-height: 190px;
  background: #e5e7eb;
}

.card-meta {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-weight: 700;
  color: #16a34a;
}

.tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text-main);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-card {
  background: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

/* Footer */

footer {
  margin-top: 3rem;
  padding: 1.5rem 0 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Responsive */

@media (max-width: 800px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  nav {
    font-size: 0.88rem;
  }
}
