:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5f6b78;
  --line: #dce4ea;
  --panel: #f5f8fa;
  --paper: #ffffff;
  --blue: #1f5f8f;
  --blue-dark: #153f5f;
  --green: #3d6f55;
  --rust: #9b5a32;
  --shadow: 0 18px 50px rgba(23, 32, 42, .10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(31, 95, 143, .05) 1px, transparent 1px),
    linear-gradient(180deg, #f7fafc, #e8eef2);
  background-size: 36px 36px, auto;
  line-height: 1.65;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header::after {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: -1px;
  left: clamp(18px, 5vw, 72px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green), transparent);
  content: "";
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--green));
  font-weight: 800;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
  font-size: 14px;
}

nav a {
  color: var(--ink);
  padding-bottom: 3px;
  text-decoration: none;
}

nav a:hover {
  color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(115deg, rgba(21, 63, 95, .95), rgba(31, 95, 143, .82)),
    url("/images/permian-produced-water.jpg") center/cover;
  color: #fff;
}

.hero h1 {
  max-width: 960px;
  margin: 12px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 19px;
}

.eyebrow {
  display: inline-block;
  color: var(--rust);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f7c58d;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  color: var(--blue-dark);
  background: #fff;
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
}

.hero-panel {
  align-self: end;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: rgba(5, 18, 28, .42);
  box-shadow: var(--shadow);
}

.hero-panel strong {
  display: block;
  margin-bottom: 18px;
  font-size: 18px;
}

dl {
  margin: 0;
}

dl div {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

dt {
  font-size: 24px;
  font-weight: 800;
}

dd {
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

.topic-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 72px);
  transform: translateY(-28px);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.topic-band div {
  padding: 22px;
  background: var(--paper);
  transition: transform .18s ease, background .18s ease;
}

.topic-band div:hover {
  background: #fbfdfe;
  transform: translateY(-2px);
}

.topic-band strong,
.topic-band span {
  display: block;
}

.topic-band span {
  color: var(--muted);
  font-size: 14px;
}

.content-section,
.related-section {
  padding: 36px clamp(18px, 5vw, 72px) 72px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: 0;
}

.section-heading h2,
.related-section h2 {
  margin: 4px 0 0;
  font-size: clamp(28px, 3vw, 42px);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card,
.related-card,
.list-row,
.side-panel,
.article-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.post-card {
  min-height: 250px;
  padding: 24px;
}

.post-card span,
.list-row span,
.related-card span {
  color: var(--muted);
  font-size: 13px;
}

.post-card h3 {
  margin: 10px 0 12px;
  font-size: 21px;
}

.post-card p,
.list-row p {
  margin: 0;
  color: var(--muted);
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  width: min(1240px, calc(100% - 36px));
  margin: 38px auto;
}

.article-card {
  padding: clamp(26px, 5vw, 58px);
}

.article-card h1,
.narrow-page h1 {
  margin: 10px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
}

.lede {
  max-width: 860px;
  color: var(--muted);
  font-size: 19px;
}

.article-body {
  margin-top: 30px;
  font-size: 17px;
}

.article-body h2 {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 29px;
}

.article-body h3 {
  margin-top: 30px;
  font-size: 22px;
}

.article-body p,
.article-body li {
  color: #26323d;
}

.article-body blockquote,
.supplier-note {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  background: #eef7f1;
}

.supplier-note {
  color: #24352b;
}

.article-aside {
  position: sticky;
  top: 90px;
  align-self: start;
}

.side-panel {
  padding: 22px;
  margin-bottom: 16px;
}

.side-panel.accent {
  border-color: rgba(31, 95, 143, .25);
  background: #eef6fb;
}

.panel-label {
  display: block;
  margin-bottom: 10px;
  color: var(--rust);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f2f6f8;
}

.section-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}

.article-media {
  margin: 28px 0;
}

.narrow-page {
  width: min(920px, calc(100% - 36px));
  margin: 46px auto 74px;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.list-stack {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.list-row {
  padding: 22px;
}

.list-row h2 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.related-card {
  display: block;
  min-height: 150px;
  padding: 20px;
  color: var(--ink);
  text-decoration: none;
}

.post-card,
.related-card,
.article-card,
.hero-panel {
  outline: 1px solid rgba(31, 95, 143, .04);
}

.post-card,
.related-card {
  transition: transform .18s ease, box-shadow .18s ease;
}

.post-card:hover,
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(23, 32, 42, .12);
}

.related-card strong {
  display: block;
  margin-top: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, .78);
  background: #142231;
}

.site-footer p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .topic-band,
  .post-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }

}
