/* niftywalks.co.uk -- path green / sky. Static Pages site. */
:root,
[data-theme="light"] {
  --bg: #f3f6f1;
  --bg-elevated: #ffffff;
  --bg-alt: #e7eee4;
  --text: #1a2418;
  --text-muted: #5a6856;
  --border: #cfd9c8;
  --primary: #2f6b3a;
  --primary-hover: #245530;
  --accent: #c45c26;
  --hero-grad: linear-gradient(135deg, #1e4d32 0%, #2f6b3a 45%, #3d7a8c 100%);
  --shadow: 0 10px 28px rgba(26, 36, 24, 0.08);
  --focus: #2f6b3a;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1080px;
  --header-h: 4rem;
}

[data-theme="dark"] {
  --bg: #10150f;
  --bg-elevated: #182017;
  --bg-alt: #1c261b;
  --text: #e8efe4;
  --text-muted: #a3b39e;
  --border: #2e3c2c;
  --primary: #7dbe86;
  --primary-hover: #9fd3a6;
  --accent: #e08a55;
  --hero-grad: linear-gradient(135deg, #12261a 0%, #1a3a24 50%, #163038 100%);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  --focus: #7dbe86;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--primary-hover); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: 6px;
}
.skip-link:focus { left: 0.5rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--primary); }

.nav-toggle,
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
}

.theme-toggle {
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.theme-toggle:hover,
.nav-toggle:hover { border-color: var(--primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-wrap {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}
.nav-wrap.is-open { display: block; }

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-weight: 550;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
}

@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .nav-wrap {
    display: block !important;
    position: static;
    border: 0;
    padding: 0;
    background: transparent;
  }
  .site-nav {
    flex-direction: row;
    align-items: center;
    margin-left: auto;
  }
}

.hero {
  background: var(--hero-grad);
  color: #f4faf5;
  padding: 3.4rem 0 3.6rem;
}
.hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.hero .lead {
  margin: 0 0 1.4rem;
  font-size: 1.12rem;
  max-width: 42ch;
  opacity: 0.94;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary { background: #fff; color: #1e4d32; }
.btn-primary:hover { background: #e8f3ea; color: #1e4d32; }
.btn-ghost { background: transparent; color: #f4faf5; border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: #fff; color: #fff; }

.section { padding: 2.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}
.section-intro {
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 0 1.3rem;
}

.grid-3 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--text-muted); }

.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 2.2rem 0;
}
.page-hero h1 { margin: 0 0 0.4rem; }
.page-hero p { margin: 0; color: var(--text-muted); }

.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 1.6rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.8rem;
}
