/* Shared boilerplate extracted from the site's existing pages (services/,
   legal/) -- same variables, nav, footer, and card components. Pure
   extraction, no visual changes; lets new page groups (forum/) avoid
   re-inlining this on every file. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-user-select: none; user-select: none; }

:root {
  --bg:      #0d0d0f;
  --surface: #141416;
  --border:  #242428;
  --accent:  #991b1b;
  --red:     #ef4444;
  --gold:    #b59540;
  --text:    #d1d5db;
  --muted:   #9ca3af;
  --heading: #f9fafb;
}

body {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100M56 50L84 66M0 50L-28 66' fill='none' stroke='rgba(153,27,27,0.21)' stroke-width='0.8'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Lato', sans-serif;
  min-height: 100vh;
}

nav {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; row-gap: 0.35rem;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 1;
}
nav img { width: 32px; height: 32px; border-radius: 50%; }
nav a { font-family: 'EB Garamond', serif; font-size: 1rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
nav a:hover { color: var(--heading); }
nav .sep { color: var(--border); }
nav .current { color: var(--heading); font-weight: 600; font-family: 'EB Garamond', serif; }

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  position: relative; z-index: 1;
}

.page-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.4rem;
}

.page-sub {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  min-height: 1.2em;
}

.divider {
  width: 160px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin-bottom: 3rem;
}

.category-list { display: flex; flex-direction: column; gap: 0.65rem; }

.category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  -webkit-user-select: auto; user-select: auto;
}

.category-card:hover {
  border-color: var(--accent);
  background: rgba(153,27,27,0.08);
}

.category-card:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 8px; }

.card-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.card-name {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.2rem;
}

.card-desc { font-size: 0.8rem; color: var(--muted); }

.card-right { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.badge {
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
}

.card-arrow {
  color: var(--red);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.category-card:hover .card-arrow { opacity: 1; }

footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  text-align: center;
  position: relative; z-index: 1;
}

.footer-copy { font-size: 0.75rem; color: var(--muted); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 480px) {
  nav { padding: 0.9rem 1rem; gap: 0.35rem; row-gap: 0.25rem; }
  nav a, nav .sep, nav .current { font-size: 0.87rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
