/* Coalition for Conservation — v2: earthy / photographic / Australian */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,300;1,9..144,400&family=GT+Sectra&family=Inter:wght@300;400;500;600&family=Geist:wght@300;400;500;600&family=Geist+Mono:wght@400;500&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;1,8..60,400&display=swap');

:root {
  /* nature palette — deep forest green, ocean blue, stone, bone */
  --bone: #ecebe2;
  --bone-2: #d8d6c6;
  --paper: #eef0e6;
  --paper-warm: #e3e7da;
  --ink: #0c1410;
  --ink-2: #1c2620;
  --ink-3: #4d5a51;
  --ink-4: #7a857c;

  --rule: #b9c2b3;
  --rule-2: #8b9588;

  /* nature accents — leaf, moss, ocean, sky, stone */
  --ochre: #4f7d5a;            /* repurposed: leaf green */
  --ochre-2: #2f5a3a;          /* repurposed: deep moss */
  --terracotta: #1f5d6e;       /* repurposed: deep ocean */
  --terracotta-2: #0e3e4a;     /* repurposed: abyss */
  --umber: #1f3d2c;            /* repurposed: forest */
  --umber-2: #142a1e;          /* repurposed: deep forest */
  --bark: #0c1a14;             /* repurposed: night forest */
  --moss: #5a7a5e;
  --sky: #5a8896;
  --slate: #3a4a52;

  /* neutral data */
  --shade: rgba(20, 17, 11, 0.06);

  /* type — driven by --type-mode (sans/serif/mix) */
  --display: 'Fraunces', 'Times New Roman', serif;
  --display-alt: 'Source Serif 4', serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --geist: 'Geist', sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;

  --container: 1320px;
  --gutter: 40px;
}

/* type mode toggles */
[data-type="serif-display"] {
  --body-font: var(--sans);
  --display-font: var(--display);
}
[data-type="serif-body"] {
  --body-font: var(--display-alt);
  --display-font: var(--geist);
}
[data-type="all-serif"] {
  --body-font: var(--display-alt);
  --display-font: var(--display);
}
[data-type="all-sans"] {
  --body-font: var(--geist);
  --display-font: var(--geist);
}

[data-density="airy"] {
  --section-pad: 160px;
  --hero-pad-y: 120px;
}
[data-density="standard"] {
  --section-pad: 120px;
  --hero-pad-y: 80px;
}
[data-density="dense"] {
  --section-pad: 80px;
  --hero-pad-y: 56px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  font-family: var(--body-font, var(--sans));
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.display { font-family: var(--display-font, var(--display)); }
.serif { font-family: var(--display); }
.italic { font-style: italic; font-family: var(--display); font-weight: 300; }
.mono { font-family: var(--mono); }
.geist { font-family: var(--geist); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow-paper { color: rgba(236,225,200,0.65); }
.eyebrow-ochre { color: var(--ochre-2); }

h1, h2, h3, h4 {
  font-family: var(--display-font, var(--display));
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 0.96;
  color: var(--ink);
}
.h-display {
  font-size: clamp(64px, 9.5vw, 168px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
}
.h-1 { font-size: clamp(44px, 5.4vw, 88px); line-height: 0.96; letter-spacing: -0.035em; font-weight: 300; font-variation-settings: 'opsz' 96; }
.h-2 { font-size: clamp(32px, 3.6vw, 56px); line-height: 1.0; letter-spacing: -0.025em; font-weight: 300; font-variation-settings: 'opsz' 60; }
.h-3 { font-size: clamp(22px, 1.8vw, 30px); line-height: 1.18; letter-spacing: -0.012em; font-weight: 400; }

p { margin: 0; }
.lead { font-size: 22px; line-height: 1.42; color: var(--ink-2); font-weight: 400; letter-spacing: -0.005em; }
.body { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.small { font-size: 13px; color: var(--ink-3); }

/* layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule-ink { height: 1px; background: var(--ink); border: 0; margin: 0; }

/* nav — deep forest green */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--umber);
  border-bottom: 1px solid rgba(236,235,226,0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  max-width: 1480px;
  margin: 0 auto;
  gap: 24px;
  color: var(--bone);
}
.brand { display: flex; align-items: center; gap: 14px; cursor: pointer; color: var(--bone); }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-link {
  font-size: 14px;
  color: rgba(236,235,226,0.78);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
  letter-spacing: 0.005em;
  font-weight: 400;
}
.nav-link:hover, .nav-link.active { color: var(--bone); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: -2px; right: -2px; bottom: -23px;
  height: 1px; background: var(--ochre);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ochre); color: var(--ink);
  padding: 12px 22px;
  font-size: 14px;
  letter-spacing: 0.005em;
  transition: background 0.2s;
  border-radius: 999px;
  font-family: var(--body-font, var(--sans));
  border: 1px solid var(--ochre);
}
.nav-cta:hover { background: var(--bone); border-color: var(--bone); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-size: 14px;
  letter-spacing: 0.005em;
  font-weight: 400;
  border-radius: 999px;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  font-family: var(--body-font, var(--sans));
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--terracotta); }
.btn-rust { background: var(--terracotta); color: var(--paper); }
.btn-rust:hover { background: var(--terracotta-2); }
.btn-ochre { background: var(--ochre); color: var(--ink); }
.btn-ochre:hover { background: var(--ochre-2); color: var(--paper); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline-paper { border-color: rgba(236,225,200,0.4); color: var(--bone); background: transparent; }
.btn-outline-paper:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-ghost { color: var(--ink); padding: 10px 0; gap: 10px; font-size: 13px; letter-spacing: 0.04em; }
.btn-ghost::after {
  content: '↗';
  font-family: var(--display);
  font-size: 16px;
  transition: transform 0.2s;
}
.btn-ghost:hover::after { transform: translate(2px, -2px); }

/* utilities */
.flex { display: flex; }
.grid { display: grid; }
.col { display: flex; flex-direction: column; }
.center { display: flex; align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }

.section { padding: var(--section-pad, 120px) 0; }

.dark { background: var(--bark); color: var(--bone); }
.dark .body, .dark .lead { color: rgba(236,225,200,0.82); }
.dark .eyebrow { color: rgba(236,225,200,0.55); }
.dark .small { color: rgba(236,225,200,0.55); }
.dark .rule { background: rgba(236,225,200,0.15); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--bone); }

.umber-bg { background: var(--umber); color: var(--bone); }
.umber-bg .body, .umber-bg .lead { color: rgba(236,225,200,0.82); }
.umber-bg .eyebrow { color: rgba(236,225,200,0.6); }
.umber-bg h1, .umber-bg h2, .umber-bg h3 { color: var(--bone); }
.umber-bg .rule { background: rgba(236,225,200,0.18); }

.bone-bg { background: var(--bone); }
.warm-bg { background: var(--paper-warm); }

/* tags / chips */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--rule-2);
  color: var(--ink-2);
  background: transparent;
  border-radius: 999px;
}
.chip-active::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(181,79,42,0.18);
  animation: pulse 2.4s infinite;
}
.chip-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-3);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* card */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  transition: border-color 0.25s, transform 0.3s;
}
.card:hover { border-color: var(--ink); }

/* === PHOTOGRAPHIC PLACEHOLDERS — landscape vignettes === */
/* Each variant evokes an Australian landscape via gradient + texture */
.ph {
  position: relative;
  overflow: hidden;
}
.ph-label {
  position: absolute;
  top: 18px; left: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236,225,200,0.85);
  background: rgba(20,17,11,0.55);
  backdrop-filter: blur(4px);
  padding: 6px 10px;
  z-index: 3;
}
.ph-credit {
  position: absolute;
  bottom: 18px; left: 18px; right: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(236,225,200,0.7);
  z-index: 3;
}
.ph::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, transparent 0%, rgba(20,17,11,0.25) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Outback re-cast as Highland (sky + ridgeline) */
.ph-outback {
  background:
    linear-gradient(180deg, #8aa8b3 0%, #5a8896 32%, #3a6a5e 60%, #1f3d2c 100%);
}
.ph-outback::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(236,235,226,0.5) 0, transparent 6%),
    radial-gradient(ellipse at 30% 65%, rgba(12,20,16,0.3) 0, transparent 30%),
    repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(12,20,16,0.04) 3px, rgba(12,20,16,0.04) 4px);
  z-index: 2;
}

/* Forest (eucalypt canopy in greens) */
.ph-forest {
  background:
    linear-gradient(180deg, #4f7d5a 0%, #2f5a3a 50%, #142a1e 100%);
}
.ph-forest::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(12,20,16,0.5) 0, transparent 14%),
    radial-gradient(circle at 70% 50%, rgba(12,20,16,0.55) 0, transparent 18%),
    radial-gradient(circle at 40% 70%, rgba(12,20,16,0.35) 0, transparent 16%),
    radial-gradient(circle at 85% 20%, rgba(140,180,150,0.3) 0, transparent 14%);
  z-index: 2;
}

/* Reef (turquoise + deep blue) */
.ph-reef {
  background:
    linear-gradient(180deg, #6db0b6 0%, #3d8a92 40%, #1f5d6e 70%, #0e3e4a 100%);
}
.ph-reef::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(232,225,180,0.18) 0, transparent 30%),
    repeating-linear-gradient(170deg, transparent 0, transparent 8px, rgba(12,20,16,0.06) 8px, rgba(12,20,16,0.06) 9px);
  z-index: 2;
}

/* Wheat re-cast as Meadow (grass field) */
.ph-wheat {
  background:
    linear-gradient(180deg, #b8c6a4 0%, #8aa07a 40%, #4f7d5a 75%, #1f3d2c 100%);
}
.ph-wheat::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 5%, #d8e1c2 0, transparent 40%),
    repeating-linear-gradient(88deg, transparent 0, transparent 1px, rgba(12,20,16,0.06) 1px, rgba(12,20,16,0.06) 2px);
  z-index: 2;
}

/* Coast (cliff + ocean — blues and stone) */
.ph-coast {
  background:
    linear-gradient(180deg, #a8b8a8 0%, #5a7a6a 30%, #3a5a6a 60%, #14202a 100%);
}
.ph-coast::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 60% 60%, rgba(236,235,226,0.18) 0, transparent 30%);
  z-index: 2;
}

/* Portrait (cool moss vignette) */
.ph-portrait {
  background:
    radial-gradient(ellipse at 50% 35%, #7a857c 0, #2f5a3a 50%, #142a1e 100%);
}
.ph-portrait::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(236,235,226,0.35) 0, transparent 20%),
    radial-gradient(circle at 50% 38%, rgba(140,180,150,0.3) 0, transparent 35%);
  z-index: 2;
}

/* footer */
footer { background: var(--bark); color: var(--bone); }

/* form */
.input, .select {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-2);
  font-family: var(--body-font, var(--sans));
  font-size: 16px;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.15s;
}
.input:focus, .select:focus { outline: none; border-color: var(--ink); }
.input::placeholder { color: var(--ink-4); }
.label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
  display: block;
}

/* big numerals */
.numeral {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(72px, 8vw, 124px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  font-feature-settings: "lnum";
}

/* fade-in */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease-out both; }

/* pillar tab */
.pillar-tab {
  flex: 1;
  padding: 28px 32px;
  border: 1px solid var(--rule);
  background: var(--paper);
  text-align: left;
  transition: all 0.2s;
  cursor: pointer;
  border-radius: 0;
}
.pillar-tab:hover { border-color: var(--ink); }
.pillar-tab.active {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.pillar-tab.active * { color: var(--bone) !important; }

/* === text size adjustments — nudged up across the board === */
body { font-size: 18px; line-height: 1.6; }
.lead { font-size: 24px; line-height: 1.45; }
.body { font-size: 18px; line-height: 1.7; }
.small { font-size: 14px; }
.eyebrow { font-size: 12px; }
.nav-link { font-size: 14px; }
.nav-cta { font-size: 14px; }
.btn { font-size: 15px; padding: 17px 30px; }
.input { font-size: 17px; }
.chip { font-size: 12px; padding: 7px 14px; }
.h-3 { font-size: clamp(24px, 2vw, 32px); }
/* skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--bone);
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

/* visible focus rings for keyboard users — overrides any blanket :focus { outline: none } above */
:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 2px;
  border-radius: 2px;
}
.btn:focus-visible,
.nav-cta:focus-visible,
.nav-link:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--ochre-2);
}
.input:focus-visible,
.select:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ochre-2);
  outline-offset: 1px;
}
main:focus { outline: none; }

/* invalid-form styling for fields the user has touched */
.input:invalid:not(:placeholder-shown),
input:invalid:not(:placeholder-shown):not([type=checkbox]):not([type=radio]),
textarea:invalid:not(:placeholder-shown) {
  border-bottom-color: #b04a1f;
}
.input:invalid:not(:placeholder-shown):focus,
input:invalid:not(:placeholder-shown):focus,
textarea:invalid:not(:placeholder-shown):focus {
  border-color: #b04a1f;
}

/* mobile drawer */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(236,235,226,0.3);
  border-radius: 4px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--bone);
}
.nav-toggle .bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.nav-toggle .bar::before { top: -6px; }
.nav-toggle .bar::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after  { transform: translateY(-6px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  inset: 79px 0 0 0;
  background: var(--ink);
  color: var(--bone);
  z-index: 90;
  padding: 32px 24px;
  overflow-y: auto;
}
.nav-drawer.open { display: block; }
.nav-drawer .nav-link {
  display: block;
  padding: 16px 0;
  font-size: 22px;
  border-bottom: 1px solid rgba(236,235,226,0.12);
  color: var(--bone);
  text-decoration: none;
}
.nav-drawer .nav-cta {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
}

/* tablet */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .container-wide { max-width: 100%; }
  .h-display { font-size: clamp(56px, 9vw, 96px); }
}

/* mobile */
@media (max-width: 800px) {
  :root { --gutter: 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .section { padding: 64px 0; }
  .h-display { font-size: 56px; }
  .h-1 { font-size: clamp(40px, 9vw, 64px); }
  .h-2 { font-size: clamp(32px, 7vw, 48px); }
  .lead { font-size: 18px; }

  /* All two-column grids collapse to one column on mobile. */
  .container-wide [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .container-wide [style*="repeat(2"],
  .container-wide [style*="repeat(3"],
  .container-wide [style*="repeat(4"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .h-display { font-size: 44px; }
  .btn { padding: 14px 22px; font-size: 14px; }
}

/* respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
