/* =============================================================
   THINKER42 — Ghost Theme
   Ocean / Deep Blue aesthetic
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --deep:       #061425;
  --mid:        #0d2a4a;
  --light:      #1a5a8a;
  --surface:    #4a9ec4;
  --glow:       #7dd4f0;
  --white:      #e8f4ff;
  --white-dim:  rgba(232,244,255,0.55);
  --ink:        #111418;
  --ink-light:  #444c58;
  --paper:      #f7f8fa;
  --border:     #e8eaed;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--deep);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* =============================================================
   WATER HERO — shared
   ============================================================= */
.water-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
}

.water-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 75% 40%, #1a6fa0 0%, transparent 60%),
    radial-gradient(ellipse 80% 100% at 20% 60%, #0a3a6a 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 55% 80%, #0d5280 0%, transparent 50%),
    linear-gradient(160deg, #061c3a 0%, #0a2e55 40%, #0e4878 70%, #061425 100%);
  animation: waterShift 12s ease-in-out infinite alternate;
}

@keyframes waterShift {
  0%   { filter: brightness(1) hue-rotate(0deg); }
  50%  { filter: brightness(1.12) hue-rotate(5deg); }
  100% { filter: brightness(0.92) hue-rotate(-4deg); }
}

.caustics {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 30% 15% at 30% 25%, rgba(125,212,240,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 20% 10% at 70% 15%, rgba(125,212,240,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 25% 12% at 55% 45%, rgba(125,212,240,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 15% 8%  at 85% 60%, rgba(125,212,240,0.08) 0%, transparent 70%);
  animation: causticMove 8s ease-in-out infinite alternate;
}

@keyframes causticMove {
  0%   { opacity: 0.7; transform: scale(1) translateY(0); }
  100% { opacity: 1;   transform: scale(1.05) translateY(-10px); }
}

.bubbles-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(125,212,240,0.25);
  animation: bubbleRise linear infinite;
}

@keyframes bubbleRise {
  0%   { transform: translateY(0) translateX(0);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-110vh) translateX(20px); opacity: 0; }
}

/* =============================================================
   NAV
   ============================================================= */
.site-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 8vw;
  z-index: 20;
}

.site-nav__logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--white);
}

.site-nav__logo span { color: var(--glow); }

.site-nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.site-nav__links a {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.3s;
}

.site-nav__links a:hover { color: var(--glow); }

.site-nav__subscribe {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--glow);
  border: none;
  padding: 9px 22px;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  display: inline-block;
}

.site-nav__subscribe:hover { background: var(--white); }

/* =============================================================
   HOME HERO
   ============================================================= */
.home-hero {
  height: 100vh;
  min-height: 600px;
}

.home-hero__dolphin {
  position: absolute;
  right: -2%;
  top: 8%;
  width: 52%;
  max-width: 700px;
  opacity: 0.22;
  z-index: 2;
  animation: dolphinFloat 10s ease-in-out infinite;
}

@keyframes dolphinFloat {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-18px) rotate(1deg); }
}

.home-hero__content {
  position: relative;
  z-index: 5;
  padding: 0 8vw 12vh;
  max-width: 640px;
  animation: heroFadeIn 1.8s ease-out both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.home-hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 20px;
}

.home-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(64px, 10vw, 110px);
  font-weight: 300;
  line-height: 0.9;
  color: var(--white);
  margin-bottom: 28px;
}

.home-hero__title em {
  font-style: italic;
  color: var(--glow);
}

.home-hero__sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--white-dim);
  max-width: 420px;
  margin-bottom: 44px;
}

.home-hero__cta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-primary {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--glow);
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary:hover { background: var(--white); transform: translateY(-2px); }

.btn-text {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
  border-bottom: 1px solid rgba(125,212,240,0.3);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.btn-text:hover { color: var(--glow); border-color: var(--glow); }

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-hint__label {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(125,212,240,0.45);
}

.scroll-hint__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(125,212,240,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* =============================================================
   POSTS GRID (home)
   ============================================================= */
.posts-section {
  background: transparent;
  padding: 80px 8vw;
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 48px;
}

.posts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2px;
}

.post-card {
  background: var(--deep);
  padding: 36px 32px;
  transition: background 0.2s;
  display: block;
}

.post-card:hover { background: rgba(125,212,240,0.08); }

.post-card--featured {
  grid-row: 1 / 3;
  border-left: 3px solid var(--glow);
  padding: 48px 40px;
  background: rgba(8,30,58,0.35);
}

.post-card__tag {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--surface);
  margin-bottom: 14px;
}

.post-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 14px;
}

.post-card--featured .post-card__title {
  font-size: 30px;
  line-height: 1.25;
  margin-bottom: 20px;
}

.post-card__excerpt {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--white-dim);
  margin-bottom: 24px;
}

.post-card__meta {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #bbb;
}

/* =============================================================
   QUOTE BAND
   ============================================================= */
.quote-band {
  background: var(--deep);
  padding: 70px 8vw;
  position: relative;
  overflow: hidden;
}

.quote-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 80% 50%, #0d2a4a, transparent);
}

.quote-band__text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--white);
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.quote-band__text span { color: var(--glow); }

.quote-band__source {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(125,212,240,0.45);
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

/* =============================================================
   ARTICLE HERO
   ============================================================= */
.article-hero {
  height: 28vh;
  min-height: 200px;
  justify-content: flex-end;
}

.article-hero__content {
  position: relative;
  z-index: 5;
  padding: 0 8vw 32px;
  max-width: 860px;
  animation: heroFadeIn 1.4s ease-out both;
}

.article-hero__tag {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 16px;
}

.article-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.article-hero__meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--white-dim);
}

.article-hero__meta span {
  color: rgba(125,212,240,0.6);
  margin: 0 8px;
}

/* =============================================================
   ARTICLE BODY
   ============================================================= */
.article-body {
  background: transparent;
  padding: 72px 8vw;
  display: grid;
  grid-template-columns: 1fr min(680px, 100%) 1fr;
}

.article-body > * {
  grid-column: 2;
}

.article-content {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--white);
}

.article-content p { margin-bottom: 1.6em; }

.article-content h2 {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
  margin: 2em 0 0.8em;
  color: var(--white);
}

.article-content h3 {
  font-size: 22px;
  font-weight: 400;
  margin: 1.8em 0 0.6em;
}

.article-content blockquote {
  border-left: 3px solid var(--glow);
  padding: 4px 0 4px 28px;
  margin: 2em 0;
  font-style: italic;
  color: var(--white-dim);
}

.article-content a {
  color: var(--glow);
  border-bottom: 1px solid rgba(125,212,240,0.3);
  transition: border-color 0.2s;
}

.article-content a:hover { border-color: var(--glow); }

.article-content img {
  width: 100%;
  margin: 2em 0;
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background: var(--deep);
  padding: 60px 8vw 40px;
  color: var(--white-dim);
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(125,212,240,0.1);
  margin-bottom: 32px;
}

.site-footer__brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--white);
}

.site-footer__brand span { color: var(--glow); }

.site-footer__tagline {
  font-size: 12px;
  font-weight: 300;
  color: rgba(125,212,240,0.45);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

.site-footer__links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.site-footer__links a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.3s;
}

.site-footer__links a:hover { color: var(--glow); }

.site-footer__bottom {
  font-size: 11px;
  color: rgba(125,212,240,0.25);
  display: flex;
  justify-content: space-between;
}

/* =============================================================
   PAGINATION
   ============================================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 60px 0;
  background: transparent;
}

.pagination a, .pagination span {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-dim);
  padding: 10px 20px;
  border: 1px solid rgba(232,244,255,0.2);
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--deep);
  color: var(--white);
  border-color: var(--deep);
}

/* =============================================================
   KOENIG EDITOR — required classes
   ============================================================= */
.kg-width-wide {
  grid-column: 1 / 4;
  width: 85vw;
  max-width: 1200px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.kg-width-full {
  grid-column: 1 / 4;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.kg-image { max-width: 100%; }

.kg-embed-card { margin: 2em 0; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: 1fr 1fr;
  }
  .post-card--featured {
    grid-column: 1 / 3;
    grid-row: auto;
  }
  .site-nav__links { display: none; }
}

@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
  .post-card--featured { grid-column: auto; }
  .site-nav { padding: 20px 6vw; }
  .home-hero__content { padding: 0 6vw 10vh; }
  .article-body { padding: 48px 6vw; }
  .posts-section { padding: 60px 6vw; }
  .site-footer { padding: 48px 6vw 32px; }
  .site-footer__top { flex-direction: column; gap: 32px; }
}


/* --- Latest post card in hero --- */
.hero-latest {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  display: block;
  max-width: 340px;
  padding: 26px 28px;
  background: rgba(8, 30, 58, 0.45);
  border: 1px solid rgba(156, 195, 224, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  animation: heroFadeIn 1.8s ease-out 0.5s both;
}
.hero-latest:hover {
  background: rgba(12, 44, 80, 0.6);
  border-color: rgba(156, 195, 224, 0.5);
  transform: translate(-50%, -53px);
}
.hero-latest__label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 12px;
}
.hero-latest__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 12px;
}
.hero-latest__meta {
  font-size: 12px;
  font-weight: 300;
  color: var(--white-dim);
  margin-bottom: 16px;
}
.hero-latest__arrow {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--glow);
}
@media (max-width: 900px) {
  .hero-latest {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 36px 8vw 0;
    max-width: none;
  }
  .home-hero { height: auto; min-height: 100vh; padding-bottom: 8vh; }
}

/* --- Back / Related section --- */
.back-related {
  padding: 60px 8vw;
  background: transparent;
}
.back-related a[style] {
  color: var(--white-dim) !important;
  border-bottom-color: rgba(232,244,255,0.2) !important;
}
.section-label {
  color: var(--white-dim);
}
.post-card__title { color: var(--white); }
.post-card__tag, .post-card__meta { color: var(--white-dim); }
.post-card {
  border-color: rgba(232,244,255,0.15);
}
.post-card:hover { border-color: rgba(125,212,240,0.4); }

/* subscribe heading and text on dark bg */
#subscribe h2 { color: var(--white) !important; }
#subscribe p  { color: var(--white-dim) !important; }
#subscribe input {
  background: rgba(8,30,58,0.5) !important;
  border-color: rgba(232,244,255,0.2) !important;
  color: var(--white) !important;
}
#subscribe button {
  background: var(--glow) !important;
  color: var(--deep) !important;
}
