/* -----------------------------------------------------------
   0. DESIGN TOKENS — LIGHT MODE ONLY
----------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg: #f7f7f8;
  --bg-alt: #ffffff;

  /* Surfaces */
  --surface: rgba(0, 0, 0, 0.03);
  --surface-border: rgba(0, 0, 0, 0.10);

  /* Text */
  --text-primary: #111111;
  --text-secondary: #555555;

  /* Accent (used for body links only) */
  --accent: #f5a623;
  --accent-soft: rgba(245, 166, 35, 0.18);

  /* Hover Accent */
  --hover-accent: #d4881f;
  --hover-accent-soft: rgba(212, 136, 31, 0.20);

  /* Radii, spacing, transitions */
  --radius: 12px;
  --transition: 0.25s ease;

  /* Body link color */
  --link-color: var(--accent);
}

/* -----------------------------------------------------------
   1. GLOBAL RESET & BASE
----------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text-primary);
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

/* IMPORTANT: Remove old padding that pushed nav downward */
body {
  padding-top: 0;
}

/* -----------------------------------------------------------
   2. GLOBAL LAYOUT
----------------------------------------------------------- */
main {
  width: 100%;
  padding-bottom: 0;
  background: var(--bg);
}

.content-section {
  max-width: 760px;
  margin: 0 auto 3rem auto;
  padding: 0 1rem;
}
/* Safer bullet indentation inside content sections */
.content-section ul {
  padding-left: 2.5rem;   /* increases bullet indent without shifting the whole section */
}

.content-section ul li {
  line-height: 1.6;
}

/* -----------------------------------------------------------
   3. PAGE HEADER — CONSISTENT ACROSS ALL PAGES
----------------------------------------------------------- */
.site-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 1.5rem auto;
  padding: 1.5rem 1rem 1rem 1rem;
}

.site-header h1 {
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.site-header p {
  margin: 0;
  text-align: center;
}

/* FIRST SECTION — consistent across all pages */
.content-section:first-of-type {
  margin-top: 0;
}

.content-section:first-of-type h2 {
  margin-top: 0;
}

/* -----------------------------------------------------------
   4. NAVIGATION — JS-INJECTED, CLEAN, MINIMAL, DRIFT-FREE
----------------------------------------------------------- */

/* Placeholder nav (becomes real nav after JS injection) */
#nav-placeholder {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  margin: 0;
  padding: 0;
  display: block;
}

/* Injected nav content */
#nav-placeholder .nav-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
}

#nav-placeholder .nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
}

#nav-placeholder .nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

#nav-placeholder .nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: default;
}

/* -----------------------------------------------------------
   5. INTERACTIVE ELEMENTS (BUTTONS)
----------------------------------------------------------- */
button {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);

  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;

  transition:
    background var(--transition),
    color var(--transition),
    border var(--transition),
    box-shadow var(--transition);
}

button:hover {
  background: var(--hover-accent-soft);
  border-color: var(--hover-accent);
  color: var(--hover-accent);
}

/* -----------------------------------------------------------
   6. BODY LINK STYLES (ACCENT)
----------------------------------------------------------- */
body a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

body a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* -----------------------------------------------------------
   7. HEADINGS & TEXT
----------------------------------------------------------- */
h1, h2, h3 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* -----------------------------------------------------------
   8. CARD SYSTEM
----------------------------------------------------------- */
.card-section {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin-bottom: 3rem;

  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.10);

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
}

@media (hover: hover) {
  .card-section:hover {
    transform: translateY(-2px);
    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.18);
  }
}

/* -----------------------------------------------------------
   9. RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 768px) {
  .card-section {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .card-section {
    padding: 1.25rem 1rem;
  }
}

/* -----------------------------------------------------------
   10. FOOTER
----------------------------------------------------------- */
#footer-placeholder {
  background: url('picts/background-footer.jpg') center/cover no-repeat;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

#footer-placeholder a {
  color: var(--text-secondary);
  font-size: 1.1rem;
  text-decoration: none;
}

#footer-placeholder a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-nav {
  max-width: 760px;
  margin: 3rem auto 2rem auto;
  padding: 0 1rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-nav a {
  color: var(--text-primary);
  font-size: 1rem;
  text-decoration: none;
  font-weight: 500;
}

.page-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-nav .prev {
  text-align: left;
}

.page-nav .next {
  text-align: right;
  margin-left: auto;
}
/* -----------------------------------------
   PAGE TITLE
----------------------------------------- */
.page-title {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    line-height: 1.2;
    text-align: left;
}

/* -----------------------------------------
   SECTION GROUPS
----------------------------------------- */
.section-group {
    margin-bottom: 4rem; /* creates natural narrative clusters */
}

/* -----------------------------------------
   CONTENT SECTIONS
----------------------------------------- */
.content-section {
    margin-bottom: 3rem; /* increased spacing for readability */
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--surface-border, #e0e0e0); /* subtle rhythm marker */
}

.content-section:last-child {
    border-bottom: none;
}

/* -----------------------------------------
   HEADINGS
----------------------------------------- */
.content-section h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    padding-top: 0.5rem; /* breathing room above headings */
}

/* -----------------------------------------
   PARAGRAPHS
----------------------------------------- */
.content-section p {
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
    color: var(--text-primary, #222);
}

/* -----------------------------------------
   NEXT STEP SECTION (visual transition)
----------------------------------------- */
.next-step {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--accent, #444);
}

.next-step h2 {
    font-size: 1.7rem;
    font-weight: 700;
}

/* -----------------------------------------
   RESPONSIVE TUNING
----------------------------------------- */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.9rem;
        margin-bottom: 2rem;
    }

    .content-section h2 {
        font-size: 1.4rem;
    }

    .content-section {
        margin-bottom: 2.25rem;
    }

    .section-group {
        margin-bottom: 3rem;
    }
}
