:root {
  --font-serif: "Fraunces", serif;
  --font-sans: "Inter", sans-serif;
  --color-bg: #faf8f5;
  --color-fg: #1c1917;
  --color-muted: #78716c;
  --color-subtle: #f5f0eb;
  --color-border: #e7e0d8;
  --color-accent: #c2714f; /* Warm terracotta */
  --color-accent-hover: #a85d3f;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #faf8f5 0%, #f5efe8 100%);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Layout */

.welcome {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */

h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
  margin: 0 0 1rem;
}

h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

/* Hero */

.hero {
  padding: 1rem 0;
  text-align: center;
}

.page-logo {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  width: 150px;
  height: 150px;
  opacity: 0.85;
}

.subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 580px;
  margin: 0 auto 0.5rem;
  text-align: center;
}

/* Features */

.features-section {
  padding: 1rem 0;
}

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

.feature-card {
  background: rgb(255 255 255 / 50%);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.feature-card .feature-icon {
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

.feature-card h3 {
  font-size: 0.9375rem;
}

.feature-card p {
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* CTA */

.cta-section {
  text-align: center;
  padding: 1rem 0;
}

.tagline-punch {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.cta-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button--secondary {
  background: transparent;
  color: var(--color-fg);
  border: 1px solid var(--color-border);
}

.cta-button--secondary:hover {
  background: var(--color-subtle);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

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

.cta-button svg {
  width: 0.75rem;
  height: 0.75rem;
}

.cta-detail {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.cta-secondary {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  color: var(--color-fg);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  text-decoration: none;
  transition: border-color 0.2s;
}

.cta-secondary:hover {
  border-color: var(--color-muted);
}

/* Select table */

.select-table-section {
  padding: 1rem 0;
}

.select-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgb(255 255 255 / 50%);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

.select-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.select-table td {
  padding: 0.375rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.8125rem;
}

.select-row {
  cursor: pointer;
  transition: background 0.15s;
}

.select-row:hover {
  background: var(--color-subtle);
}

.select-table tbody tr:last-child td {
  border-bottom: none;
}

.select-name {
  font-weight: 500;
}

.select-name a {
  color: inherit;
  text-decoration: none;
}

.select-members {
  color: var(--color-muted);
}

.select-arrow {
  color: var(--color-muted);
  text-align: right;
}

/* Footer */

.welcome-footer {
  padding: 1rem 0;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.7;
}

.welcome-footer span {
  color: var(--color-muted);
}

.welcome-footer a {
  color: var(--color-muted);
  text-decoration: none;
  margin: 0 0.5rem;
}

.welcome-footer a:hover {
  color: var(--color-fg);
}

/* Mobile */

@media (width <= 768px) {
  .welcome {
    padding: 0 1.25rem;
  }

  .page-logo {
    width: 75px;
    height: 75px;
  }

  .hero {
    padding-top: 2rem;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
