/* Public site styles. The accent colours are overridden by /assets/theme.css,
   which is generated from the colour picked in the editor. */
:root {
  --bg: #f7faf6;
  --bg-alt: #eaf2e8;
  --surface: #ffffff;
  --text: #1c2b22;
  --muted: #56685c;
  --accent: #2f7d4f;
  --accent-hover: #256640;
  --on-accent: #ffffff;
  --border: #d5e2d4;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111814;
    --bg-alt: #17211b;
    --surface: #1c2821;
    --text: #e6efe8;
    --muted: #9fb2a5;
    --accent: #5cc189;
    --accent-hover: #74d19e;
    --on-accent: #0d1a12;
    --border: #2a3a30;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

a { color: inherit; }

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  min-width: 0;
}

.brand-mark, .brand-logo { width: 32px; height: 32px; flex: none; }
.brand-logo { object-fit: contain; border-radius: 6px; }
.brand-mark circle { fill: var(--accent); }
.brand-mark path {
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

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

.btn-small { padding: 8px 16px; font-size: 0.9rem; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--border);
}

.btn-ghost:hover { background: var(--bg-alt); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Type */
h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 24px;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 { margin: 12px 0 6px; font-size: 1.15rem; }

.lead {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.15rem;
}

.body { margin: 0 0 16px; color: var(--muted); font-size: 1.05rem; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.hero {
  position: relative;
  padding: 96px 0 88px;
  background:
    radial-gradient(ellipse at 85% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    var(--bg);
}

.hero.section-alt {
  background:
    radial-gradient(ellipse at 85% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    var(--bg-alt);
}

.hero-photo { overflow: hidden; color: #fff; padding: 140px 0 120px; }
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 16, 11, 0.78), rgba(8, 16, 11, 0.35));
}
.hero-inner { position: relative; z-index: 1; }
.hero-photo .lead { color: rgba(255, 255, 255, 0.88); }
.hero-photo .eyebrow { color: #fff; opacity: 0.85; }
.hero-photo .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
.hero-photo .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card .icon {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-photo {
  width: calc(100% + 56px);
  max-width: none;
  margin: -28px -28px 16px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card p { margin: 0 0 8px; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.split-media { grid-template-columns: 1fr 1fr; }
.split-media.media-right .media { order: 2; }
.media img { width: 100%; border-radius: var(--radius); }

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.points li {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  color: var(--muted);
}

.points strong { display: block; color: var(--text); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}
.gallery figcaption { margin-top: 6px; color: var(--muted); font-size: 0.9rem; }

.prose { max-width: 760px; }

.contact { text-align: center; }
.contact .lead { margin-left: auto; margin-right: auto; }
.contact .actions { justify-content: center; }
.contact address { margin-top: 24px; font-style: normal; color: var(--muted); }

/* Footer */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p { margin: 0; }

@media (max-width: 720px) {
  .nav { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 8px 16px; }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 2px;
  }
  .nav-links .btn { margin-left: auto; }
  .hero { padding: 64px 0 56px; }
  .hero-photo { padding: 96px 0 80px; }
  .section { padding: 56px 0; }
  .split, .split-media { grid-template-columns: 1fr; gap: 28px; }
  .split-media.media-right .media { order: 0; }
}
