
:root {
  --orange: #e86b2a;
  --navy: #1a2e44;
  --navy-faded: rgba(26, 46, 68, 0.4);
  --white: #fff;
  --off-white: #f8f8f8;
  --text: #2c3e50;
  --text-muted: #5a6c7d;
  --sidebar-width: 14rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--orange);
}

/* Layout: sidebar + main */
.layout {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

@media (min-width: 768px) {
  .layout {
    flex-direction: row;
  }
}

/* Left sidebar nav */
.sidebar {
  background: var(--navy);
  color: var(--white);
  padding: 1.5rem 0;
  border-bottom: 3px solid var(--orange);
}

@media (min-width: 768px) {
  .sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    border-bottom: none;
    border-right: 3px solid var(--orange);
  }
}

.sidebar-logo-link {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .sidebar-logo-link {
    margin-bottom: 2rem;
  }
}

.sidebar-logo {
  display: block;
  width: 80px;
  height: auto;
  border-radius: 12px;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .sidebar-nav {
    padding: 0 1.25rem;
  }
}

.sidebar-nav li {
  margin: 0;
}

.sidebar-nav a {
  display: block;
  padding: 0.6rem 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  border-radius: 6px;
}

.sidebar-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav a.current {
  color: var(--white);
  background: var(--orange);
}

/* Main content area — soft gradient white to blue (faded) */
.main {
  flex: 1;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--navy-faded) 100%);
  min-height: 100%;
}

@media (min-width: 768px) {
  .main {
    padding: 2.5rem 2rem;
  }
}

/* Welcome page */
.welcome {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.welcome-logo {
  margin: 0 auto 1.5rem;
  width: 160px;
  height: 160px;
  border-radius: 12px;
}

@media (min-width: 640px) {
  .welcome-logo {
    width: 200px;
    height: 200px;
  }
}

.welcome h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.welcome .motto {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Page content (about, contact, current-member) */
.page-content {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.page-content h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.page-content p {
  margin: 0 0 1rem;
  color: var(--text);
}

.page-placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* Current members: heading + grid aligned, centered block */
.members-section {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.members-section h2 {
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.875rem;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0;
}

.member-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--navy);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  min-height: 5.5rem;
}

.member-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.member-role {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

@media (max-width: 768px) {
  .members-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer */
.site-footer {
  padding: 1rem 1.5rem;
  text-align: center;
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
  margin-top: auto;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
}

@media (min-width: 768px) {
  .site-footer {
    padding-left: calc(var(--sidebar-width) + 2rem);
  }
}
