:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --text: #1d211c;
  --muted: #5d625a;
  --line: #dcd6c8;
  --green: #1f3a2e;
  --accent: #d9a23b;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121512;
    --surface: #1b1f1b;
    --text: #ecebe4;
    --muted: #a3a89e;
    --line: #2e342d;
    --green: #0d1a14;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 16px; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
img { max-width: 100%; height: auto; display: block; }
.muted { color: var(--muted); }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 9vw, 104px); }

/* Hero: full-bleed photo with the donate card on top */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12,20,16,.88) 0%, rgba(12,20,16,.7) 45%, rgba(12,20,16,.35) 100%),
    url("photos/drilling-wide.jpg") center top / cover no-repeat,
    var(--green);
}
.nav { display: flex; justify-content: space-between; align-items: center; padding-block: 22px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.nav-link { font-size: .95rem; opacity: .85; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(40px, 8vw, 96px) clamp(56px, 10vw, 120px);
}
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.lede { font-size: 1.12rem; max-width: 34em; opacity: .9; margin: 0; }

.donate {
  background: var(--surface);
  color: var(--text);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.donate h2 { font-size: 1.4rem; margin-bottom: 12px; }
.donate dl { margin: 0; }
.donate dl > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.donate dt { font-size: .8rem; color: var(--muted); }
.donate dd { margin: 2px 0 0; display: flex; align-items: center; gap: 12px; font-weight: 600; }
.donate code { font: 600 1.05rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.donate .acct code { font-size: clamp(1rem, 4.4vw, 1.3rem); white-space: nowrap; }
.donate-note { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }
.copy {
  margin-left: auto;
  font: 600 .8rem var(--sans);
  background: var(--green); color: #fff;
  border: 0; border-radius: 999px;
  padding: 6px 14px; cursor: pointer;
}
.copy.done { background: var(--accent); color: #1d211c; }

/* Costs */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.costs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.costs li { padding: 8px 20px; border-left: 1px solid var(--line); }
.costs strong { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
.costs span { color: var(--muted); font-size: .95rem; }

/* Before / after */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding-top: 0; }
.compare figure { margin: 0; }
.compare img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.compare figcaption { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.compare figcaption span { font-weight: 600; color: var(--text); margin-right: 6px; }

/* Funding news */
.news { background: var(--green); color: #fff; padding-block: clamp(56px, 8vw, 96px); }
.news .wrap { max-width: 760px; }
.news-lead { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.2; margin: 0 0 16px; }
.news-lead strong { color: var(--accent); }
.news p { opacity: .9; }
.btn {
  display: inline-block; margin-top: 12px;
  background: var(--accent); color: #1d211c;
  font-weight: 600; text-decoration: none;
  padding: 12px 28px; border-radius: 999px;
}

/* Work so far */
.work { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.timeline { list-style: none; margin: 28px 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.timeline time { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.work-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; position: sticky; top: 24px; }

.footer { border-top: 1px solid var(--line); padding-block: 40px 56px; font-size: .95rem; }
.footer p { margin: 0 0 8px; }

@media (max-width: 820px) {
  .hero { background:
    linear-gradient(180deg, rgba(12,20,16,.75), rgba(12,20,16,.92)),
    url("photos/drilling-wide.jpg") 70% top / cover no-repeat, var(--green); }
  .hero-grid, .split, .work { grid-template-columns: minmax(0, 1fr); }
  .costs li:first-child { border-left: 0; padding-left: 0; }
  .work-photo { position: static; aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .costs { grid-template-columns: minmax(0, 1fr); }
  .costs li { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0; }
  .compare { gap: 12px; }
  .donate { padding: 22px; }
}

/* Copy-all and bank shortcuts */
.copy-all { display: block; width: 100%; margin: 16px 0 0; padding: 11px 14px; font-size: .85rem; }
.banks { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.banks-label { margin: 0; font-size: .85rem; font-weight: 600; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.banks-label span { color: var(--muted); font-weight: 400; }
.banks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.banks a {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.banks a:hover { border-color: var(--text); }
.banks img { width: 26px; height: 26px; border-radius: 6px; }

/* Donate section */
.hero-text { max-width: 720px; }
.hero-text .btn { justify-self: start; align-self: flex-start; margin-top: 28px; }
.donate-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 820px) { .donate-section { grid-template-columns: minmax(0, 1fr); } }
.donate-section .donate { width: 100%; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.btn-nav { margin-top: 0; padding: 8px 20px; font-size: .9rem; }
