
/* ===== Aldenheim Campaign Hub ===== */

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

:root {
  --bg: #1a1a1a;
  --surface: #242424;
  --surface-raised: #2c2c2c;
  --border: #333;
  --border-subtle: #2a2a2a;
  --text: #e8e8e8;
  --text-muted: #888;
  --text-faint: #555;
  --accent: #7eb8d4;
  --accent-hover: #9fcce3;
  --accent-warm: #c49a5a;
  --accent-warm-hover: #d4ae72;
  --danger: #c46a5a;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  min-height: 100vh;
}

/* ===== Layout ===== */

.site-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Navigation ===== */

nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 52px;
}

.nav-brand {
  font-size: 1rem;
  font-weight: bold;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 1rem;
  white-space: nowrap;
}

.nav-brand:hover {
  color: var(--accent-hover);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-raised);
}

/* ===== Hero ===== */

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: normal;
}

.hero .tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Section headings ===== */

.section {
  margin-bottom: 3.5rem;
}

.section-heading {
  font-size: 0.75rem;
  font-family: system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* ===== Cards ===== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  transition: border-color 0.15s;
}

.card:hover {
  border-color: var(--accent);
}

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

.card a:hover .card-title {
  color: var(--accent);
}

.card-title {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  transition: color 0.15s;
}

.card-subtitle {
  font-size: 0.8rem;
  font-family: system-ui, sans-serif;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.card-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-family: system-ui, sans-serif;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.card-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ===== Session preview ===== */

.session-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}

.session-preview .session-day {
  font-size: 0.75rem;
  font-family: system-ui, sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.session-preview .session-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.session-preview .session-excerpt {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ===== Items table ===== */

.items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.items-table th {
  text-align: left;
  padding: 0.5rem 1rem 0.5rem 0;
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
}

.items-table td {
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  vertical-align: top;
}

.items-table td:first-child {
  color: var(--text);
}

.items-table tr:hover td {
  color: var(--text);
}

.items-table a {
  color: var(--accent);
  text-decoration: none;
}

.items-table a:hover {
  text-decoration: underline;
}

/* ===== Individual page prose ===== */

.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2.5rem;
}

.page-header .page-tag {
  font-size: 0.7rem;
  font-family: system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 0.6rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: normal;
  color: var(--text);
}

.prose {
  max-width: 720px;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: normal;
}

.prose h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.35rem;
}

.prose h3 {
  font-size: 1.15rem;
  color: var(--accent);
}

.prose h4 {
  font-size: 0.95rem;
  font-family: system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.prose p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.prose strong {
  color: var(--text);
  font-weight: bold;
}

.prose em {
  color: var(--text);
}

.prose ul, .prose ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.prose li {
  margin-bottom: 0.3rem;
}

.prose a {
  color: var(--accent);
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.prose a.unresolved {
  color: var(--text-faint);
  text-decoration: none;
  cursor: default;
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.prose code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.35em;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
  color: var(--accent-warm);
}

.prose pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin: 1.5rem auto;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.prose table th {
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  text-align: left;
  border: 1px solid var(--border);
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.prose table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* ===== Footer ===== */

footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

/* ===== Responsive ===== */

/* Tablets and large phones — nav can wrap, cards narrow */
@media (max-width: 768px) {
  /* Allow nav to grow taller instead of clipping wrapped links */
  .nav-inner {
    height: auto;
    min-height: 52px;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    gap: 0.25rem;
  }

  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 2.5rem; }

  .page-header h1 { font-size: 2rem; }

  /* Prevent wide tables from breaking page layout */
  .prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Small phones */
@media (max-width: 480px) {
  html { font-size: 15px; }

  .site-wrapper { padding: 0 1rem; }

  /* Brand on its own line, links below */
  .nav-inner { padding-left: 1rem; padding-right: 1rem; }
  .nav-brand { flex: 0 0 100%; margin-right: 0; padding-bottom: 0.25rem; }

  /* Bigger tap targets */
  .nav-links a {
    font-size: 0.7rem;
    padding: 0.5rem 0.5rem;
    min-height: 36px;
    display: flex;
    align-items: center;
  }

  .hero { padding: 2rem 0 1.5rem; margin-bottom: 2rem; }
  .hero h1 { font-size: 1.9rem; letter-spacing: 0.06em; }
  .hero .tagline { font-size: 1rem; }

  .section { margin-bottom: 2rem; }

  .card-grid { grid-template-columns: 1fr; }

  .page-header { padding: 1.5rem 0 1.25rem; margin-bottom: 1.75rem; }
  .page-header h1 { font-size: 1.7rem; }

  /* Items table: hide location column, show just the linked name */
  .items-table td:nth-child(2),
  .items-table th:nth-child(2) { display: none; }

  footer { margin-top: 2.5rem; padding: 1.5rem 0; }
}
