/* ═══════════════════════════════════════════════════════════════════════════
   Club Neutrino — main.css
   Theme: set via site.theme in site.json
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --color-primary:      ;
  --color-secondary:    ;
  --color-accent:       ;
  --color-bg:           ;
  --color-bg-alt:       ;
  --color-text:         ;
  --color-text-light:   ;
  --color-border:       ;

  /* Links — must meet 4.5:1 contrast ratio against background */
  --color-link:         ;
  --color-link-visited: ;
  --color-link-hover:   ;

  --font-body:          ;
  --font-heading:       ;
  --font-size-base:     1rem;
  --line-height:        1.6;

  --spacing-xs:   0.25rem;
  --spacing-sm:   0.5rem;
  --spacing-md:   1rem;
  --spacing-lg:   2rem;
  --spacing-xl:   4rem;

  --radius:       ;
  --shadow:       ;
  --max-width:    1200px;
  --nav-height:   4rem;
}

/* ── Reset — based on Josh Comeau's Modern CSS Reset ────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  line-height: 1.5;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Remove default list styles — only when list is not in nav */
:where(ul, ol):not(nav ul, nav ol) {
  list-style: none;
  padding: 0;
}

/* Remove button styles — restyle explicitly where needed */
button {
  all: unset;
  cursor: pointer;
}

/* Anchor color inherit — set explicitly via CSS variables */
a {
  color: inherit;
}

/* Prevent iOS font size inflation */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Smooth scrolling — respects user preference */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Remove animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Focus — keyboard navigation only, not on mouse click ──────────────── */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ── Typography ─────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

/* Links — always visually distinct from surrounding text */
a {
  color: var(--color-link);
  text-decoration: underline; /* never remove underline — accessibility requirement */
}

a:visited { color: var(--color-link-visited); }
a:hover   { color: var(--color-link-hover); }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
nav {
  height: var(--nav-height);
}

nav ul {
  list-style: none;
  display: flex;
  gap: var(--spacing-md);
}

/* Nav toggle — mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  nav ul {
    display: none;
    flex-direction: column;
  }

  nav ul.is-open {
    display: flex;
  }
}

/* ── Main ───────────────────────────────────────────────────────────────── */
main {
  min-height: calc(100vh - var(--nav-height));
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {

}

/* ── Components ─────────────────────────────────────────────────────────── */


/* ── Utilities ──────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: var(--spacing-xl) 0;
  background: var(--color-bg-alt);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 0.75rem 2rem;
  border-radius: var(--radius, 4px);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.85;
  color: var(--color-bg);
}

/* ── Intro ──────────────────────────────────────────────────────────────── */
.intro {
  padding: var(--spacing-xl) 0;
}

.intro p {
  font-size: 1.1rem;
  max-width: 720px;
  line-height: 1.8;
}

/* ── USPs ───────────────────────────────────────────────────────────────── */
.usps {
  padding: var(--spacing-xl) 0;
  background: var(--color-bg-alt);
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-lg);
}

.usp-grid li {
  padding: var(--spacing-lg);
  background: var(--color-bg);
  border-radius: var(--radius, 4px);
}

.usp-grid h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

/* ── CTA ────────────────────────────────────────────────────────────────── */
.cta {
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: var(--spacing-md);
}

.cta p {
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-light);
}

/* ── Nav ────────────────────────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav a {
  text-decoration: none;
}

nav ul a {
  font-size: 0.9rem;
  color: var(--color-text);
}

nav ul a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  padding: var(--spacing-lg) var(--spacing-md);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-page {
  padding: var(--spacing-xl) 0;
}

.contact-page h1 {
  margin-bottom: var(--spacing-lg);
}
