/* Heritage and Healing Australia
   Main stylesheet for the Jekyll starter site. */

:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-soft: #162032;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #2dd4bf;
  --primary-dark: #14b8a6;
  --accent: #2dd4bf;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

/* Mobile sidebar states */
#nav-sidebar.is-open {
  transform: translateX(0);
}

#nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  #nav-menu-toggle,
  #nav-sidebar,
  #nav-overlay {
    display: none !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #1e293b;
  color: #e2e8f0;
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: 8px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-weight: 600;
}

.page-hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, #162032 0%, #0f172a 100%);
}

.page-hero--compact {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.eyebrow,
.section-label,
.topic-status {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}

.hero-card,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.hero-card ul {
  margin: 1rem 0 0 1.2rem;
}

.section {
  padding: 4rem 0;
}

.alt-section {
  background: var(--surface-soft);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.cards-3--topics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-card.live {
  border-color: rgba(45, 212, 191, 0.35);
}

.topic-card.soon {
  opacity: 0.96;
}

.text-link {
  font-weight: 700;
}

.article-section {
  padding: 2rem 0 4rem;
}

.article-container {
  max-width: 820px;
}

.article-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.article-content h2 {
  margin-top: 1.8rem;
}

.article-content ul {
  padding-left: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .cards-3,
  .cards-3--topics {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
