/* political.wiki — seapunk / forest-green ocean / card-grid / garamond-classic */

:root {
  --deep-kelp: #0A2818;
  --ocean-teal: #208868;
  --bubble-cyan: #40D8C8;
  --biolum: #80F0D0;
  --sand: #E8E0C8;
  --hud-green: #30C870;
  --coral: #D08060;

  --gutter: 16px;
  --card-pad: 48px;
  --card-min: 280px;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--deep-kelp);
  color: var(--sand);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.85;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
}

/* ----------------------------------------------------------- BUBBLES */
.bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--biolum), var(--bubble-cyan));
  opacity: 0.28;
  animation: bubble-rise linear infinite;
  filter: blur(0.3px);
}

@keyframes bubble-rise {
  0%   { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0; }
  10%  { opacity: 0.32; }
  50%  { transform: translate3d(20px, -55vh, 0) scale(1); opacity: 0.32; }
  100% { transform: translate3d(-15px, -110vh, 0) scale(1.08); opacity: 0; }
}

/* ----------------------------------------------------------- OCEAN SURFACE */
.ocean-surface {
  position: relative;
  min-height: 100vh;
  padding: 6vh 8vw 8vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  isolation: isolate;
  z-index: 2;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(64, 216, 200, 0.08), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(32, 136, 104, 0.18), transparent 55%),
    var(--deep-kelp);
}

.surface-waves {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 80px;
  pointer-events: none;
}
.surface-waves.bottom { top: auto; bottom: 0; }

.wave { width: 100%; height: 100%; display: block; }

.surface-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  z-index: 3;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--biolum);
  opacity: 0.92;
  margin-bottom: 28px;
}

.domain-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 7vw, 96px);
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--sand);
  opacity: 0;
  animation: fade-in 800ms ease-out 200ms forwards;
  margin-bottom: 24px;
  text-shadow: 0 0 24px rgba(64, 216, 200, 0.18);
}

.lede {
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: clamp(16px, 1.2vw, 19px);
  color: rgba(232, 224, 200, 0.86);
  line-height: 1.8;
}

.surface-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.meta-pill {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hud-green);
  border: 1px solid rgba(48, 200, 112, 0.45);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(10, 40, 24, 0.55);
  backdrop-filter: blur(6px);
}

/* ----------------------------------------------------------- HUD FRAMES */
.hud {
  position: absolute;
  width: 200px;
  height: 100px;
  z-index: 4;
  pointer-events: none;
}

.hud-tl { top: 24px; left: 24px; }
.hud-tr { top: 24px; right: 24px; }
.hud-arc { bottom: 24px; left: 50%; transform: translateX(-50%); }

.hud-stroke {
  fill: none;
  stroke: var(--hud-green);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-hud 1000ms ease-out 400ms forwards;
}

.hud-arc-fill {
  stroke: var(--bubble-cyan);
  stroke-width: 2;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: draw-hud 1400ms ease-out 700ms forwards;
}

.hud-text {
  fill: var(--hud-green);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes draw-hud {
  to { stroke-dashoffset: 0; }
}

@keyframes fade-in {
  to { opacity: 1; }
}

/* ----------------------------------------------------------- ARTICLE GRID */
.article-grid-section {
  padding: 10vh 6vw 8vh;
  position: relative;
  z-index: 2;
  background: var(--deep-kelp);
}

.article-grid-section.alt {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(64, 216, 200, 0.06), transparent 55%),
    var(--deep-kelp);
}

.section-head {
  max-width: 1280px;
  margin: 0 auto 48px;
  border-left: 2px solid var(--ocean-teal);
  padding-left: 20px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0.01em;
  color: var(--sand);
  margin-bottom: 8px;
}

.section-sub {
  font-size: clamp(14px, 1vw, 16px);
  color: rgba(232, 224, 200, 0.72);
  max-width: 640px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr));
  gap: var(--gutter);
  max-width: 1280px;
  margin: 0 auto;
}

/* ----------------------------------------------------------- ARTICLE CARD */
.card {
  position: relative;
  background: rgba(10, 40, 24, 0.78);
  border: 1px solid var(--ocean-teal);
  border-radius: 4px;
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms ease-out, transform 300ms ease-out, box-shadow 300ms ease-out;
  animation: border-cycle 6s linear infinite;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes border-cycle {
  0%   { border-color: var(--deep-kelp); }
  33%  { border-color: var(--ocean-teal); }
  66%  { border-color: var(--bubble-cyan); }
  100% { border-color: var(--deep-kelp); }
}

.card-cover {
  position: relative;
  height: 140px;
  margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) 24px;
  overflow: hidden;
  background: var(--ocean-teal);
}

.card-cover-art {
  position: absolute;
  inset: 0;
  filter: grayscale(0.8) sepia(0.2) hue-rotate(140deg) saturate(1.4) brightness(0.7);
  transition: filter 400ms ease-out;
}

.card:hover .card-cover-art {
  filter: grayscale(0.5) sepia(0.15) hue-rotate(120deg) saturate(1.5) brightness(0.85);
}

/* SVG-based duotone card art (no external images) */
.card-cover-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.card-category {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hud-green);
  margin-bottom: 10px;
}

.card-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--sand);
  margin-bottom: 14px;
}

.card-preview {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(232, 224, 200, 0.74);
  flex: 1;
  margin-bottom: 18px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(48, 200, 112, 0.85);
  border-top: 1px solid rgba(32, 136, 104, 0.4);
  padding-top: 14px;
}

.card-meta .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--bubble-cyan);
  border-radius: 50%;
  margin: 0 8px;
  vertical-align: middle;
}

.card:hover {
  box-shadow: 0 0 0 1px var(--biolum), 0 8px 28px rgba(64, 216, 200, 0.18);
  animation-duration: 2s;
}

.card:hover .card-meta {
  color: var(--bubble-cyan);
}

/* ----------------------------------------------------------- DEEP DIVE */
.deep-dive {
  padding: 8vh 6vw;
  position: relative;
  z-index: 2;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(32, 136, 104, 0.22), transparent 60%),
    var(--deep-kelp);
  clip-path: polygon(
    0 4%, 5% 1%, 10% 3%, 15% 0, 20% 2%, 25% 0, 30% 3%, 35% 1%, 40% 2%, 45% 0,
    50% 2%, 55% 0, 60% 2%, 65% 0, 70% 3%, 75% 1%, 80% 2%, 85% 0, 90% 3%, 95% 1%, 100% 2%,
    100% 100%, 0 100%
  );
}

.deep-dive-frame {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 56px;
  border: 1px solid rgba(48, 200, 112, 0.4);
  background: rgba(10, 40, 24, 0.55);
  backdrop-filter: blur(4px);
}

.deep-corner {
  position: absolute;
  width: 60px;
  height: 60px;
}
.deep-corner-tl { top: -1px; left: -1px; }
.deep-corner-tr { top: -1px; right: -1px; }
.deep-corner-bl { bottom: -1px; left: -1px; }
.deep-corner-br { bottom: -1px; right: -1px; }

.deep-tag {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bubble-cyan);
  margin-bottom: 18px;
}

.deep-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--sand);
  margin-bottom: 22px;
}

.deep-body {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.85;
  color: rgba(232, 224, 200, 0.86);
  margin-bottom: 36px;
  max-width: 760px;
}

.deep-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  border-top: 1px solid rgba(48, 200, 112, 0.3);
  padding-top: 26px;
}

.deep-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.deep-stat-value {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  color: var(--biolum);
  line-height: 1;
}

.deep-stat-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hud-green);
}

/* ----------------------------------------------------------- REFERENCE POOL */
.reference-pool {
  position: relative;
  z-index: 2;
  padding: 10vh 6vw 6vh;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(32, 136, 104, 0.2), transparent 60%),
    var(--deep-kelp);
  border-top: 1px solid rgba(32, 136, 104, 0.4);
}

.pool-frame {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.pool-tag {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hud-green);
  margin-bottom: 36px;
  padding-left: 14px;
  border-left: 2px solid var(--ocean-teal);
}

.pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  margin-bottom: 48px;
}

.pool-col-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--sand);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(48, 200, 112, 0.3);
}

.pool-list {
  list-style: none;
}

.pool-list li {
  font-size: 14px;
  line-height: 2;
  color: rgba(232, 224, 200, 0.74);
  position: relative;
  padding-left: 14px;
  cursor: default;
  transition: color 200ms ease-out;
}

.pool-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--bubble-cyan);
  border-radius: 50%;
  opacity: 0.7;
}

.pool-list li:hover {
  color: var(--biolum);
}

.pool-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(32, 136, 104, 0.4);
}

.pool-mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--sand);
  letter-spacing: 0.02em;
}

.pool-meta {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(48, 200, 112, 0.85);
}

/* ----------------------------------------------------------- RESPONSIVE */
@media (max-width: 720px) {
  .ocean-surface { padding: 12vh 6vw 10vh; min-height: 90vh; }
  .hud { width: 130px; height: 70px; }
  .hud-tl { top: 14px; left: 14px; }
  .hud-tr { top: 14px; right: 14px; }
  .hud-arc { width: 160px; height: 80px; bottom: 14px; }
  .card { padding: 28px; }
  .card-cover { margin: -28px -28px 18px; }
  .deep-dive-frame { padding: 40px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .domain-title,
  .hud-stroke,
  .hud-arc-fill,
  .card,
  .bubble {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
    transform: none;
  }
  .card { opacity: 1; transform: none; }
}
