/* Diversified Energy — When Wind Mit Works
   Brand palette: DE charcoal + DE orange (from official palette PDF).
   Blue kept as a supporting accent for Wind Mit / LDI callouts. */

:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --surface-alt: #efece5;
  --ink: #3a3a3c;         /* DE charcoal (Black 90%) */
  --ink-strong: #262627;
  --ink-soft: #57575a;
  --ink-mute: #7d7d80;
  --line: #ddd9d0;
  --orange: #ee751d;      /* DE orange (M70.7 Y100) */
  --orange-deep: #c85e10;
  --blue: #1f4b7a;        /* Wind Mit / LDI accent */
  --blue-deep: #143659;
  --green: #2f6e3f;       /* FORTIFIED accent */
  --red-tag: #a33325;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(38,38,39,.06), 0 1px 4px rgba(38,38,39,.04);
  --shadow-md: 0 10px 30px -12px rgba(38,38,39,.20), 0 4px 10px -6px rgba(38,38,39,.08);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: min(1200px, 92vw);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--orange-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: var(--wrap); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 700; letter-spacing: -0.01em;
  font-size: 17px;
  line-height: 0;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 30px; width: auto; display: block;
}
@media (max-width: 480px) { .brand-logo { height: 26px; } }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a {
  color: var(--ink-soft); font-size: 14.5px; font-weight: 500;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav .cta-link {
  background: var(--orange); color: #fff;
  padding: 9px 14px; border-radius: 999px; font-weight: 700;
  letter-spacing: 0.01em;
}
.site-nav .cta-link:hover { background: var(--orange-deep); text-decoration: none; color: #fff; }

@media (max-width: 780px) {
  .site-nav a:not(.cta-link) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 7vw, 88px) 0 0;
  background:
    radial-gradient(1200px 480px at 12% -10%, rgba(238,117,29,.12), transparent 60%),
    radial-gradient(900px 380px at 100% 0%, rgba(31,75,122,.08), transparent 60%),
    var(--bg);
}
.hero-wrap { max-width: 900px; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange-deep);
  background: rgba(238,117,29,.12);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6.8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 22px;
  color: var(--ink);
}
.hero h1 .accent { color: var(--orange-deep); font-weight: 700; }
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 28px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note {
  color: var(--ink-mute); font-size: 14.5px; margin: 8px 0 0;
}
.hero-image {
  margin: clamp(32px, 5vw, 60px) auto 0;
  width: var(--wrap);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
  position: relative;
}
.hero-image img { width: 100%; height: auto; display: block; }
.hero-image .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
  padding: 32px 22px 16px;
  font-size: 14px;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  border: 1px solid transparent;
  line-height: 1;
}
.btn.primary { background: var(--orange); color: #fff; letter-spacing: 0.01em; }
.btn.primary:hover { background: var(--orange-deep); text-decoration: none; color: #fff; }
.btn.ghost { background: transparent; color: var(--ink-strong); border-color: var(--ink-strong); }
.btn.ghost:hover { background: var(--ink-strong); color: #fff; text-decoration: none; }
.btn.big { padding: 16px 26px; font-size: 16px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section.shaded { background: var(--surface-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 48px); }
.section h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.005em;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.section-sub { color: var(--ink-soft); font-size: 17px; max-width: 66ch; margin: 0; }

/* ---------- Two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.two-col h2 { font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.005em; line-height: 1.05; text-transform: uppercase; margin: 0 0 14px; }
.two-col p { color: var(--ink-soft); margin: 0 0 14px; }
.two-col p strong { color: var(--ink); }

.callout {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-sm);
}
.callout h3 {
  margin: 0 0 12px;
  font-size: 17px;
  letter-spacing: 0;
  color: var(--ink);
}
.checklist { list-style: none; padding: 0; margin: 0 0 12px; }
.checklist li {
  position: relative;
  padding-left: 26px;
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--orange);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--orange);
}
.callout .tag {
  display: inline-block; margin-top: 4px;
  font-size: 13px; color: var(--green); font-weight: 600;
  background: rgba(47,110,63,.10); padding: 6px 10px; border-radius: 6px;
}

/* ---------- Deck grid ---------- */
.deck-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 780px) { .deck-grid { grid-template-columns: 1fr; } }
.deck-card {
  margin: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.deck-card img { aspect-ratio: 16/9; object-fit: cover; }
.deck-card figcaption { padding: 20px 20px 22px; }
.deck-card h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.deck-card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.tag {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(20,32,43,.08); color: var(--ink);
}
.tag.red { background: rgba(163,51,37,.10); color: var(--red-tag); }
.tag.green { background: rgba(47,110,63,.12); color: var(--green); }

.micro-note {
  margin-top: 22px; color: var(--ink-mute); font-size: 14.5px;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 12px;
}
.steps h3 {
  margin: 4px 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.steps p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Quote block ---------- */
.quote-block {
  margin-top: clamp(28px, 4vw, 48px);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 26px 26px 20px;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
}
.quote-block blockquote { margin: 0; padding: 0; }
.quote-block blockquote p {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.quote-block cite {
  display: block; color: var(--ink-mute); font-size: 13.5px; font-style: normal;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.cite-links { margin: 12px 0 0; }

/* ---------- Tax deduction section ---------- */
.tax-section {
  background: linear-gradient(180deg, #fff7ec 0%, #fdeed7 100%);
  border-block: 1px solid var(--line);
  padding: clamp(56px, 8vw, 100px) 0;
}
.tax-section .section-head { max-width: 820px; }
.tax-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(24px, 3vw, 36px);
}
@media (max-width: 900px) { .tax-grid { grid-template-columns: 1fr; } }
.tax-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
}
.tax-card .amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4vw, 48px);
  color: var(--orange-deep);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.tax-card .amount .unit {
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-left: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tax-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--ink-strong);
}
.tax-card p { margin: 0 0 8px; color: var(--ink-soft); font-size: 14.5px; }
.tax-card .act-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--blue-deep); background: rgba(31,75,122,.10);
  padding: 3px 8px; border-radius: 6px; letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tax-fineprint {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.tax-fineprint h4 {
  margin: 0 0 8px; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-mute); font-weight: 700;
}
.tax-fineprint ul { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 14.5px; }
.tax-fineprint li { margin-bottom: 6px; }
.tax-fineprint li:last-child { margin-bottom: 0; }
.tax-fineprint strong { color: var(--ink); }

/* FORTIFIED future-opportunity callout inside tax section */
.future-fortified {
  margin-top: clamp(28px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--green);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
}
.future-fortified .ff-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  background: rgba(47,110,63,.10);
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.future-fortified h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--ink-strong);
}
.future-fortified > p { color: var(--ink-soft); margin: 0 0 18px; max-width: 68ch; }
.future-fortified > p strong { color: var(--ink); }
.future-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
@media (max-width: 900px) { .future-list { grid-template-columns: 1fr; } }
.future-list li {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.future-list li strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}
.future-list li .ff-amount {
  display: block;
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.future-fortified .ff-close { margin: 6px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.future-fortified .ff-close strong { color: var(--ink); }

/* Term callout used in body copy */
.term-callout {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 22px 0 0;
  box-shadow: var(--shadow-sm);
}
.term-callout h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--blue-deep);
}
.term-callout p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.term-callout p strong { color: var(--ink); }

/* Inline blog link emphasis */
.inline-blog-link {
  display: inline;
  color: var(--orange-deep);
  font-weight: 600;
  border-bottom: 1px solid rgba(200,94,16,.35);
}
.inline-blog-link:hover { border-bottom-color: var(--orange-deep); text-decoration: none; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: 1fr 1fr; } .gallery-item.wide { grid-column: 1 / -1; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-sm);
}
.gallery-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery-item.wide img { aspect-ratio: 16/10; }
.gallery-item figcaption {
  background: #fff; color: var(--ink-soft);
  padding: 12px 14px; font-size: 14px;
}
.gallery-item.placeholder {
  background: #fff;
  border: 2px dashed var(--line);
  aspect-ratio: 4/3;
  display: grid; place-items: center;
  color: var(--ink-mute);
  padding: 20px;
  text-align: center;
}
.placeholder-inner .pl-eyebrow {
  display: block; text-transform: uppercase; letter-spacing: .1em;
  font-size: 12px; font-weight: 700; color: var(--blue-deep);
  margin-bottom: 8px;
}
.placeholder-inner p { margin: 0; font-size: 14.5px; }

/* ---------- Documents ---------- */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .doc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .doc-grid { grid-template-columns: 1fr; } }
.doc-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 22px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.doc-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}
.doc-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--orange-deep); background: rgba(238,117,29,.12);
  padding: 4px 8px; border-radius: 6px; text-transform: uppercase;
}
.doc-card h3 { margin: 12px 0 6px; font-size: 16.5px; letter-spacing: -0.01em; color: var(--ink-strong); }
.doc-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 14.5px; }
.doc-arrow { color: var(--orange-deep); font-weight: 700; font-size: 14.5px; }

.repo-cta {
  margin-top: clamp(28px, 4vw, 40px);
  background: var(--ink-strong);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  display: grid; grid-template-columns: 1.5fr auto; gap: 22px; align-items: center;
}
@media (max-width: 780px) { .repo-cta { grid-template-columns: 1fr; } }
.repo-cta h3 { margin: 0 0 6px; font-size: 24px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.005em; }
.repo-cta p { margin: 0; color: rgba(255,255,255,.75); font-size: 15px; }
.repo-cta .btn.primary { background: var(--orange); color: #fff; }
.repo-cta .btn.primary:hover { background: var(--orange-deep); color: #fff; }

/* ---------- Related ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.related-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related-card h3 { margin: 10px 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.related-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Final CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, #2b2b2c 0%, #1b1b1c 100%);
  color: #fff;
  padding: clamp(64px, 9vw, 110px) 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute; inset: -20% -20% auto auto;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle at center, rgba(238,117,29,.18), transparent 60%);
  pointer-events: none;
}
.cta-wrap { max-width: 780px; text-align: center; }
.cta-wrap h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 4.6vw, 56px);
  letter-spacing: -0.005em; line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.cta-wrap p { color: rgba(255,255,255,.85); font-size: 17px; margin: 0 0 26px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-section .btn.primary { background: var(--orange); color: #fff; }
.cta-section .btn.primary:hover { background: var(--orange-deep); color: #fff; }
.cta-section .btn.ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.cta-section .btn.ghost:hover { background: #fff; color: var(--ink-strong); }
.cta-wrap { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1a1a1b; color: #d4d4d6;
  padding: 32px 0;
  font-size: 14.5px;
}
.footer-wrap {
  display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; align-items: flex-start;
}
.footer-logo { height: 36px; width: auto; display: block; margin-bottom: 10px; }
.footer-brand p { margin: 6px 0 0; color: rgba(255,255,255,.6); max-width: 44ch; }
.footer-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: 52ch;
}
.fortified-badge {
  height: 60px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.badge-note {
  color: rgba(255,255,255,.55);
  font-size: 12.5px;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .footer-badges { flex-direction: column; align-items: flex-start; gap: 10px; }
}
.footer-contact { text-align: right; }
@media (max-width: 600px) { .footer-contact { text-align: left; } }
.site-footer strong { color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--orange); }
