*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --paper: #f5efe4;
  --paper-strong: #fbf7ef;
  --ink: #1d2429;
  --muted: #5e666b;
  --line: rgba(29, 36, 41, 0.12);
  --line-strong: rgba(29, 36, 41, 0.24);
  --panel: rgba(255, 252, 247, 0.82);
  --shadow: 0 20px 60px rgba(48, 34, 18, 0.12);
  --accent-rust: #c86f39;
  --accent-olive: #506a5d;
  --accent-gold: #d6a74a;
  --accent-blue: #376d8e;
  --accent-red: #9f4f45;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(200, 111, 57, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(80, 106, 93, 0.14), transparent 26%),
    linear-gradient(180deg, #f8f2e7 0%, var(--paper) 45%, #efe6d6 100%);
  font-family: "Public Sans", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(29, 36, 41, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 36, 41, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(245, 239, 228, 0.78);
  border-bottom: 1px solid rgba(29, 36, 41, 0.08);
}

.header-inner,
.notice-inner,
.footer-grid,
.footer-bottom,
.hero-grid,
.page-heading,
.split-grid {
  display: flex;
  gap: 1.25rem;
}

.header-inner {
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  gap: 0.9rem;
  align-items: center;
  text-decoration: none;
}

.brand strong,
.footer-title {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand small,
.footer-copy,
.footer-bottom,
.top-nav a,
.notice-inner p,
.link-card p,
.metric-card p,
.info-card p,
.detail-card p,
.section-heading p,
.plant-summary,
.search-label,
.section-note {
  color: var(--muted);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(200, 111, 57, 0.2), rgba(80, 106, 93, 0.12));
  font-weight: 700;
}

.top-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-nav a {
  text-decoration: none;
  font-size: 0.95rem;
}

.top-nav a:hover,
.link-card a:hover,
.plant-card a:hover {
  color: var(--accent-rust);
}

.notice-band {
  border-top: 1px solid rgba(29, 36, 41, 0.08);
}

.notice-inner {
  align-items: center;
  padding: 0.65rem 0;
}

.notice-tag,
.badge,
.chip,
.link-stat,
.info-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.notice-tag {
  background: rgba(200, 111, 57, 0.12);
  color: var(--accent-rust);
  padding: 0.35rem 0.65rem;
}

.hero-section,
.page-hero {
  padding: 4rem 0 2rem;
}

.hero-grid {
  align-items: stretch;
}

.hero-grid > * {
  flex: 1;
}

.hero-copy,
.hero-panel,
.metric-card,
.info-card,
.link-card,
.plant-card,
.detail-card,
.hero-tag-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.hero-copy {
  padding: 2.5rem;
}

.hero-panel {
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(80, 106, 93, 0.18), transparent 40%),
    linear-gradient(120deg, rgba(200, 111, 57, 0.06), transparent 55%);
  pointer-events: none;
}

.panel-kicker,
.hero-panel-list,
.page-heading,
.section-heading,
.search-form,
.metric-grid,
.info-grid,
.link-grid,
.plant-grid,
.bar-list,
.detail-list,
.owner-grid,
.trend-chart,
.footer-links,
.chip-row {
  display: grid;
  gap: 1rem;
}

.panel-kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.panel-kicker strong {
  font-family: "Newsreader", serif;
  font-size: 1.6rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-weight: 700;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 18ch;
}

h3 {
  font-size: 1.35rem;
}

.hero-deck,
.page-heading p:last-child {
  max-width: 60ch;
  font-size: 1.08rem;
}

.eyebrow,
.metric-card span,
.detail-card span,
.trend-label,
.search-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.search-form {
  margin-top: 1.6rem;
  position: relative;
}

.search-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-row input {
  flex: 1 1 280px;
  min-width: 0;
  padding: 1rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
}

.search-row button {
  border: 0;
  border-radius: 999px;
  padding: 1rem 1.4rem;
  font: inherit;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-rust), #b65529);
  color: #fff;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 14px 30px rgba(184, 85, 41, 0.25);
}

.search-row button:hover,
.chip:hover {
  transform: translateY(-1px);
}

.search-error {
  color: #8d2f29;
  margin: 0;
}

[data-search-suggestions] {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(255, 252, 248, 0.98);
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  box-shadow: 0 18px 36px rgba(34, 29, 24, 0.12);
  overflow: hidden;
}

.search-suggestion {
  display: block;
  width: 100%;
  border: 0;
  padding: 0.85rem 1rem;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.search-suggestion + .search-suggestion {
  border-top: 1px solid var(--line-soft);
}

.search-suggestion:hover,
.search-suggestion.active {
  background: rgba(232, 201, 173, 0.25);
}

.chip-row {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.chip {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.65);
  padding: 0.75rem 0.9rem;
  cursor: pointer;
}

.chip-row-links {
  margin-top: 0.2rem;
}

.chip-link {
  text-decoration: none;
}

.search-suggestion-groups {
  display: grid;
  gap: 1rem;
}

.search-suggestion-group {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.46);
}

.compact-heading {
  margin-bottom: 1rem;
}

.compact-heading h2 {
  font-size: 1.35rem;
  max-width: none;
}

.compact-link-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric-grid.compact {
  margin-top: 1.4rem;
}

.metric-card,
.info-card,
.link-card,
.detail-card {
  padding: 1.25rem;
}

.metric-card strong,
.detail-card strong {
  display: block;
  font-size: 1.55rem;
  margin-top: 0.3rem;
}

.section {
  padding: 2rem 0 4rem;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.1));
  border-top: 1px solid rgba(29, 36, 41, 0.06);
  border-bottom: 1px solid rgba(29, 36, 41, 0.06);
}

.section-heading {
  margin-bottom: 1.4rem;
}

.section-heading p:last-child {
  max-width: 56ch;
}

.info-grid,
.link-grid,
.plant-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

.content-stack {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.content-paragraph {
  margin: 0;
  max-width: 68ch;
}

.link-card,
.info-card,
.plant-card,
.hero-tag-card {
  position: relative;
  overflow: hidden;
}

.link-card::before,
.info-card::before,
.plant-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 38%);
  pointer-events: none;
}

.link-card a,
.plant-card a {
  text-decoration: none;
}

.link-stat,
.info-stat {
  margin-top: 1rem;
  padding: 0.35rem 0.7rem;
  background: rgba(80, 106, 93, 0.12);
  color: var(--accent-olive);
}

.plant-card {
  padding: 1.25rem;
}

.plant-card-top,
.plant-meta,
.breadcrumbs,
.footer-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.plant-card-top {
  justify-content: space-between;
  align-items: flex-start;
}

.badge {
  padding: 0.4rem 0.7rem;
  border: 1px solid transparent;
}

.tone-natural-gas {
  background: rgba(200, 111, 57, 0.12);
  color: var(--accent-rust);
  border-color: rgba(200, 111, 57, 0.16);
}

.tone-nuclear {
  background: rgba(80, 106, 93, 0.14);
  color: var(--accent-olive);
  border-color: rgba(80, 106, 93, 0.18);
}

.tone-coal {
  background: rgba(29, 36, 41, 0.12);
  color: var(--ink);
  border-color: rgba(29, 36, 41, 0.16);
}

.tone-wind {
  background: rgba(55, 109, 142, 0.12);
  color: var(--accent-blue);
  border-color: rgba(55, 109, 142, 0.16);
}

.tone-solar {
  background: rgba(214, 167, 74, 0.16);
  color: #915e00;
  border-color: rgba(214, 167, 74, 0.2);
}

.tone-neutral {
  background: rgba(29, 36, 41, 0.08);
  color: var(--muted);
  border-color: rgba(29, 36, 41, 0.12);
}

.plant-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.plant-meta-bottom {
  margin-top: 0.3rem;
}

.page-heading,
.split-grid {
  justify-content: space-between;
}

.page-heading > *:first-child,
.split-grid > * {
  flex: 1;
}

.hero-tag-card {
  padding: 1.25rem;
  align-self: flex-start;
  min-width: 220px;
}

.hero-tag-card span,
.hero-tag-card small {
  color: var(--muted);
}

.hero-tag-card strong {
  display: block;
  font-size: 2rem;
  font-family: "Newsreader", serif;
}

.bar-list {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.bar-row {
  display: grid;
  gap: 0.45rem;
}

.bar-label-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.bar-track {
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(29, 36, 41, 0.08);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  min-width: 4%;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.data-table th,
.data-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(29, 36, 41, 0.08);
}

.data-table th {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.trend-chart {
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  align-items: end;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.45);
}

.trend-column {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}

.trend-bar-wrap {
  width: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
}

.trend-bar {
  width: 100%;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, rgba(200, 111, 57, 0.88), rgba(80, 106, 93, 0.72));
}

.trend-value {
  font-size: 0.78rem;
  color: var(--muted);
}

.breadcrumbs {
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--muted);
}

.breadcrumbs span[aria-current="page"] {
  color: var(--ink);
}

.breadcrumbs > *:not(:last-child)::after {
  content: "/";
  margin-left: 0.8rem;
  color: rgba(29, 36, 41, 0.3);
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(29, 36, 41, 0.08);
  background: rgba(255, 255, 255, 0.24);
}

.footer-grid {
  justify-content: space-between;
  align-items: flex-start;
}

.footer-grid > * {
  flex: 1;
}

.footer-links {
  flex-direction: column;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(29, 36, 41, 0.08);
}

@media (max-width: 960px) {
  .header-inner,
  .notice-inner,
  .footer-grid,
  .page-heading,
  .split-grid,
  .hero-grid {
    flex-direction: column;
  }

  .hero-copy {
    padding: 2rem;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1.1rem, 1160px);
  }

  .hero-section,
  .page-hero {
    padding-top: 3rem;
  }

  .hero-copy,
  .hero-panel,
  .metric-card,
  .info-card,
  .link-card,
  .plant-card,
  .detail-card,
  .hero-tag-card {
    border-radius: 22px;
  }

  .search-row button,
  .search-row input {
    width: 100%;
  }

  .trend-chart {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
