/* Adventures in Morgantown — hand-written stylesheet (light mode).
   Palette and type ported from the Table Nook / AIM Next.js design. */

:root {
  --brand-primary: #7f1d1d; /* red-900 */
  --brand-accent:  #991b1b; /* red-800 */
  --fg:            #171717;
  --fg-muted:      #374151; /* gray-700 */
  --fg-subtle:     #4b5563; /* gray-600 */
  --bg:            #ffffff;
  --bg-alt:        #f9fafb; /* gray-50 */
  --border:        #e5e7eb; /* gray-200 */

  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans:  "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 72rem;
  --container-prose: 48rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

a { color: var(--brand-primary); }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
  padding-inline: 1rem;
}

.container-prose { max-width: var(--container-prose); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-logo { height: 2.5rem; width: auto; }

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--brand-primary);
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--fg-muted);
  padding-block: 0.25rem;
}

.site-nav a:hover { color: var(--brand-primary); }
.site-nav a.active { color: var(--brand-primary); font-weight: 600; }

/* Mobile nav toggle (checkbox hack, no JS) */
.nav-toggle, .nav-toggle-btn { display: none; }

@media (max-width: 767px) {
  .nav-toggle-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.25rem;
    height: 2.25rem;
    cursor: pointer;
  }
  .nav-toggle-btn span {
    display: block;
    height: 2px;
    width: 1.5rem;
    background: var(--fg-muted);
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
  }
  .header-inner { position: relative; flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 5rem 1rem;
}

.hero-inner { max-width: 48rem; }

.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
}

.hero-tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-style: italic;
  margin: 0 0 0.5rem;
}

.hero-subhead {
  font-size: 1.05rem;
  opacity: 0.9;
  margin: 0 0 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-accent); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- Sections ---------- */
.section { padding-block: 4rem; }

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--brand-primary);
  text-align: center;
  margin: 0 0 2.5rem;
}

.section-intro { margin-bottom: 2.5rem; text-align: center; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.card-link { margin: 1rem 0 0; }
.card-link a {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
}
.card-link a:hover { text-decoration: underline; }

.card-tier { text-align: center; }

.card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand-primary);
  margin: 0 0 0.75rem;
}

.tier-amount {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.875rem;
  margin: 0 0 0.75rem;
}

.card-body { color: var(--fg-muted); font-size: 0.95rem; }
.card-body p { margin: 0 0 0.75rem; }
.card-body p:last-child { margin-bottom: 0; }

.pricing-note {
  text-align: center;
  font-style: italic;
  color: var(--fg-subtle);
  margin-top: 2rem;
}

/* ---------- Contact ---------- */
.section-contact { background: var(--bg-alt); }
.contact-top { text-align: center; }
.contact-intro { color: var(--fg-muted); margin: 0 0 2rem; }
.contact-details { margin: 0 0 2rem; color: var(--fg); }
.contact-details p { margin: 0.25rem 0; }
.contact-details a { color: var(--brand-primary); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

/* ---------- Meet your GM ---------- */
.gm-wrap { display: flex; justify-content: center; }

.gm-card {
  max-width: 42rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg);
}

.gm-avatar {
  width: 7rem;
  height: 7rem;
  border-radius: 9999px;
  overflow: hidden;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gm-avatar span {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: #6b7280;
}

.gm-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand-primary);
  margin: 0;
}
.gm-specialties { font-size: 0.75rem; color: #6b7280; margin: 0.25rem 0 0; }
.gm-bio { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.7; margin: 0; }

.gm-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.gm-stats dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}
.gm-stats dd { margin: 0; font-weight: 500; }

/* ---------- Prose ---------- */
.prose { color: var(--fg-muted); }
.prose h2 {
  font-family: var(--font-serif);
  color: var(--brand-primary);
  font-size: 1.5rem;
  margin-top: 2rem;
}
.prose h3 { font-family: var(--font-serif); color: var(--brand-primary); }
.prose a { color: var(--brand-primary); }
.prose ul { padding-left: 1.25rem; }
.prose code {
  background: var(--bg-alt);
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  flex-shrink: 0;
}

.footer-inner {
  display: grid;
  gap: 0.75rem;
  text-align: center;
  padding-block: 1.5rem;
  font-size: 0.875rem;
  color: var(--fg-subtle);
}

.footer-inner p { margin: 0; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a { color: var(--fg-subtle); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
