:root {
  --ink: #1b1917;
  --muted: #66615b;
  --paper: #ffffff;
  --card-bg: #ffffff;
  --card-hover-bg: #faf9f7;
  --line: rgba(27, 25, 23, 0.12);
  --line-hover: rgba(27, 25, 23, 0.32);
  --red: #8f2f25;
  --gold: #b38b4d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 28px 48px;
}

/* Site Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.site-logo {
  font: 700 15px/1 Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.back-link {
  color: var(--muted);
  font: 600 13px/1 Arial, sans-serif;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--red);
}

.site-header__forum-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font: 700 12px/1 Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(143, 47, 37, 0.25);
  border-radius: 999px;
  transition: all 0.2s;
}

.site-header__forum-link:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* Hero Section */
.hero-section,
.directory-section {
  padding: 56px 0 48px;
  animation: reveal 600ms ease-out both;
}

.kicker {
  margin: 0 0 16px;
  color: var(--red);
  font: 700 12px/1.2 Arial, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(40px, 6.5vw, 68px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 24px 0 40px;
  max-width: 58ch;
  color: var(--muted);
  font: 16px/1.65 Arial, sans-serif;
}

/* Nav Cards (Main Page) */
.nav-cards {
  display: grid;
  gap: 16px;
}

.nav-card {
  display: grid;
  grid-template-columns: 48px 1fr 32px;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(27, 25, 23, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.nav-card:hover {
  transform: translateY(-2px);
  background-color: var(--card-hover-bg);
  border-color: var(--line-hover);
  box-shadow: 0 8px 20px rgba(27, 25, 23, 0.08);
}

.nav-card__num {
  color: var(--gold);
  font: 700 14px/1 Arial, sans-serif;
  letter-spacing: 0.08em;
}

.nav-card__body strong {
  display: block;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 400;
  line-height: 1.2;
}

.nav-card__body small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font: 14px/1.4 Arial, sans-serif;
}

.nav-card__arrow {
  font: 24px/1 Arial, sans-serif;
  color: var(--muted);
  text-align: right;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-card:hover .nav-card__arrow {
  color: var(--red);
  transform: translateX(4px);
}

.nav-card--forum:hover .nav-card__arrow {
  color: var(--red);
}

/* Directory Grid (Subpages) */
.directory-grid {
  display: grid;
  gap: 16px;
}

.section-subtitle {
  margin: 32px 0 16px;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  font-family: Arial, sans-serif;
  letter-spacing: -0.01em;
}

/* Community / Forum Banner */
.community-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fdfbf7;
  border: 1px solid rgba(179, 139, 77, 0.35);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 36px;
}

.community-banner__content strong {
  display: block;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 6px;
}

.community-banner__content p {
  margin: 0;
  font: 14px/1.5 Arial, sans-serif;
  color: var(--muted);
}

.btn-action {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: var(--red);
  color: #fff;
  font: 700 13px/1 Arial, sans-serif;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-action:hover {
  background: #75251d;
}

.dir-card {
  display: grid;
  grid-template-columns: 40px 1fr 28px;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s ease;
}

.dir-card--interactive {
  grid-template-columns: 40px 1fr;
}

.dir-card--notice {
  grid-template-columns: 40px 1fr;
}

.dir-card:hover {
  border-color: var(--line-hover);
  box-shadow: 0 8px 20px rgba(30, 27, 24, 0.06);
}

.dir-card__header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dir-card__num {
  color: var(--gold);
  font: 700 13px/1 Arial, sans-serif;
  padding-top: 3px;
}

.dir-card__info strong {
  display: block;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.25;
}

.dir-card__place {
  display: block;
  margin-top: 4px;
  color: var(--red);
  font: 700 12px/1.2 Arial, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dir-card__info small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font: 14px/1.5 Arial, sans-serif;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  font: 700 11px/1 Arial, sans-serif;
  padding: 5px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge--active {
  background: #eef7ee;
  color: #276727;
  border: 1px solid rgba(39, 103, 39, 0.2);
}

.badge--pulse {
  background: #fff4f2;
  color: var(--red);
  border: 1px solid rgba(143, 47, 37, 0.25);
}

.badge--info {
  background: #f3f3f5;
  color: #44474c;
  border: 1px solid var(--line);
}

.badge--gold {
  background: #faf6ee;
  color: #8c6827;
  border: 1px solid rgba(179, 139, 77, 0.3);
}

/* Card Action Buttons */
.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(30, 27, 24, 0.08);
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 700 12px/1 Arial, sans-serif;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}

.card-btn--primary {
  background: #f0eee9;
  color: var(--ink);
}

.card-btn--primary:hover {
  background: #e4e1da;
}

.card-btn--notice {
  background: #8f2f25;
  color: #fff;
}

.card-btn--notice:hover {
  background: #75251d;
}

.card-btn--secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.card-btn--secondary:hover {
  color: var(--ink);
  border-color: var(--line-hover);
}

.dir-card__arrow {
  font: 18px/1 Arial, sans-serif;
  color: var(--muted);
  text-align: right;
  padding-top: 2px;
  transition: transform 0.2s, color 0.2s;
}

.dir-card:hover .dir-card__arrow {
  color: var(--red);
  transform: translate(2px, -2px);
}

/* Site Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 13px/1.5 Arial, sans-serif;
}

.site-footer__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer__patron {
  font-weight: 600;
  color: var(--ink);
}

.site-footer__patron a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 47, 37, 0.3);
  transition: border-color 0.2s;
}

.site-footer__patron a:hover {
  border-color: var(--red);
}

.site-footer__sub {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
}

.site-footer__note {
  color: rgba(102, 97, 91, 0.7);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .page-wrap {
    padding: 24px 18px 36px;
  }

  .hero-section,
  .directory-section {
    padding: 36px 0 32px;
  }

  .nav-card {
    grid-template-columns: 32px 1fr 20px;
    gap: 12px;
    padding: 20px 18px;
  }

  .dir-card {
    grid-template-columns: 28px 1fr 18px;
    gap: 10px;
    padding: 16px 16px;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}