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

:root {
  --ink:     #16221a;
  --deep:    #1a2820;
  --surface: #1f3026;
  --moss:    #355c3d;
  --river:   #4a8c5c;
  --foam:    #a8d5b5;
  --mist:    #d4ead9;
  --light:   #f0f7f2;
  --gold:    #c8a96e;
  --text:    #cce0d2;
  --subtle:  #8cb89a;
}

/* ── SCROLLBARS ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--deep);
}

::-webkit-scrollbar-thumb {
  background: var(--moss);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--river);
}

* { scrollbar-width: thin; scrollbar-color: var(--moss) var(--deep); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  background: linear-gradient(to bottom, rgba(14,26,20,0.95) 0%, transparent 100%);
  backdrop-filter: blur(2px);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--light);
  letter-spacing: 0.12em;
  text-decoration: none;
}

.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--subtle);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--mist); }

.nav-links .nav-encyclopedia {
  color: var(--gold);
  border: 1px solid rgba(200,169,110,0.3);
  padding: 0.4rem 0.9rem;
}

.nav-links .nav-encyclopedia:hover {
  background: rgba(200,169,110,0.1);
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--subtle);
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 4rem 6rem;
  overflow: hidden;
}

.water-rings {
  position: absolute;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  pointer-events: none;
}

.ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid;
  animation: ripple 6s ease-out infinite;
}

.ring:nth-child(1) { width: 120px; height: 120px; border-color: rgba(90,175,110,0.9); animation-delay: 0s; }
.ring:nth-child(2) { width: 250px; height: 250px; border-color: rgba(90,175,110,0.65); animation-delay: 0.8s; }
.ring:nth-child(3) { width: 400px; height: 400px; border-color: rgba(90,175,110,0.42); animation-delay: 1.6s; }
.ring:nth-child(4) { width: 560px; height: 560px; border-color: rgba(90,175,110,0.22); animation-delay: 2.4s; }
.ring:nth-child(5) { width: 700px; height: 700px; border-color: rgba(90,175,110,0.10); animation-delay: 3.2s; }

@keyframes ripple {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.05); }
}

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--river);
  border-radius: 50%;
  animation: float linear infinite;
  opacity: 0;
}

@keyframes float {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-80px) translateX(20px); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--gold);
  display: block;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--light);
  margin-bottom: 2rem;
}

.hero-title em { font-style: italic; color: var(--foam); }

.hero-sub {
  font-size: 1rem;
  color: var(--subtle);
  max-width: 420px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--moss);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--moss), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.6); opacity: 1; }
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--river);
  color: var(--light);
  border: none;
  padding: 0.9rem 2.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}

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

.btn-ghost {
  color: var(--subtle);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--moss);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.btn-ghost:hover { color: var(--mist); border-color: var(--foam); }

/* ── INTRO ── */
.intro {
  position: relative;
  z-index: 1;
  padding: 7rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  border-top: 1px solid rgba(74,140,92,0.15);
}

.intro-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--mist);
  line-height: 1.4;
}

.intro-quote .author {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.5rem;
}

.intro-text p {
  color: var(--subtle);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.intro-text p strong { color: var(--foam); font-weight: 400; }

/* ── POSTS SECTION ── */
.posts {
  position: relative;
  z-index: 1;
  padding: 5rem 4rem 8rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid rgba(74,140,92,0.15);
  padding-bottom: 1.5rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--light);
}

.section-link {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtle);
  text-decoration: none;
  transition: color 0.3s;
}

.section-link:hover { color: var(--foam); }

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

.post-card {
  background: var(--surface);
  padding: 2.5rem;
  transition: background 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.post-card:hover { background: var(--deep); }

.post-card.featured {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  background: var(--moss);
}

.post-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,26,20,0.9) 0%, rgba(42,74,48,0.3) 100%);
}

.post-card.featured > * { position: relative; z-index: 1; }

.post-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  display: block;
}

.post-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  color: var(--light);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-card.featured .post-title { font-size: 1.9rem; }
.post-card:not(.featured) .post-title { font-size: 1.2rem; }

.post-excerpt {
  font-size: 0.85rem;
  color: var(--subtle);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  font-size: 0.7rem;
  color: var(--moss);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.post-meta::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--river);
  display: block;
}

/* ── ABOUT STRIP ── */
.about-strip {
  position: relative;
  z-index: 1;
  padding: 6rem 4rem;
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8rem;
  align-items: center;
}

.about-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.about-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--light);
  line-height: 1.2;
  margin-bottom: 2rem;
}

.about-title em { font-style: italic; color: var(--foam); }

.about-body {
  color: var(--subtle);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.about-stats { display: flex; gap: 3rem; }

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--river);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moss);
}

.about-visual { position: relative; height: 400px; }

.about-box {
  position: absolute;
  border: 1px solid rgba(74,140,92,0.3);
}

.about-box:nth-child(1) {
  inset: 0;
  background: linear-gradient(135deg, var(--moss) 0%, var(--ink) 100%);
  overflow: hidden;
}

.about-box:nth-child(1)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(74,140,92,0.3), transparent 60%);
}

.about-box:nth-child(2) {
  width: 180px;
  height: 120px;
  bottom: -2rem;
  left: -2rem;
  background: var(--deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  border-color: rgba(74,140,92,0.4);
  z-index: 2;
}

.about-box-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.about-box-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--light);
  font-style: italic;
}

.aqua-lines { position: absolute; inset: 0; overflow: hidden; }

.aqua-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(90,175,110,0.55), transparent);
  animation: waveLine 4s ease-in-out infinite;
}

.aqua-line:nth-child(1) { top: 30%; animation-delay: 0s; }
.aqua-line:nth-child(2) { top: 55%; animation-delay: 1.3s; }
.aqua-line:nth-child(3) { top: 75%; animation-delay: 2.6s; }

@keyframes waveLine {
  0%, 100% { transform: scaleX(0.8) translateX(5%); opacity: 0.4; }
  50%       { transform: scaleX(1) translateX(-2%); opacity: 0.8; }
}

/* ── COLLAB ── */
.collab {
  position: relative;
  z-index: 1;
  padding: 7rem 4rem;
  text-align: center;
  overflow: hidden;
}

.collab::before {
  content: 'POTAMOS';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18vw;
  font-weight: 300;
  color: rgba(42,74,48,0.12);
  letter-spacing: 0.2em;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.collab > * { position: relative; z-index: 1; }

.collab-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.collab-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--light);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.collab-sub {
  color: var(--subtle);
  font-size: 1rem;
  max-width: 440px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  padding: 3rem 4rem;
  border-top: 1px solid rgba(74,140,92,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--moss);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

footer a { color: var(--subtle); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--foam); }

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--subtle);
  letter-spacing: 0.15em;
}

/* ── BLOG LIST ── */
.page-hero {
  position: relative;
  padding: 10rem 4rem 5rem;
  border-bottom: 1px solid rgba(74,140,92,0.15);
}

.page-hero-content { max-width: 600px; }

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--light);
  margin-bottom: 1rem;
}

.page-sub {
  font-size: 1rem;
  color: var(--subtle);
  line-height: 1.8;
}

.blog-list { padding: 4rem; }

.blog-categories {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(74,140,92,0.15);
}

.cat-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--subtle);
}

.cat-link {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  text-decoration: none;
  border: 1px solid rgba(74,140,92,0.3);
  padding: 0.3rem 0.8rem;
  transition: all 0.3s;
}

.cat-link:hover { color: var(--mist); border-color: var(--river); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px;
}

.blog-card {
  background: var(--surface);
  padding: 2.5rem;
  text-decoration: none;
  display: block;
  transition: background 0.3s;
}

.blog-card:hover { background: var(--deep); }

/* ── BLOG SINGLE ── */
.post-single { max-width: 100%; }

.post-header {
  padding: 10rem 4rem 4rem;
  border-bottom: 1px solid rgba(74,140,92,0.15);
  background: linear-gradient(to bottom, var(--deep), var(--ink));
}

.post-header-inner { max-width: 800px; }

.post-single-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--light);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.post-header-meta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--subtle);
  text-transform: uppercase;
}

.post-body {
  display: flex;
  justify-content: center;
  padding: 5rem 4rem;
}

.post-content {
  max-width: 700px;
  width: 100%;
}

.post-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--light);
  margin: 3rem 0 1.2rem;
}

.post-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--foam);
  margin: 2rem 0 1rem;
}

.post-content p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-content li { margin-bottom: 0.5rem; }

.post-content strong { color: var(--foam); font-weight: 500; }

.post-content a { color: var(--river); text-decoration: none; border-bottom: 1px solid rgba(74,140,92,0.4); }
.post-content a:hover { color: var(--foam); }

.post-footer {
  padding: 2rem 4rem 5rem;
  border-top: 1px solid rgba(74,140,92,0.15);
  max-width: 800px;
  margin: 0 auto;
}

/* ── GENERIC PAGE ── */
.page-single { max-width: 100%; }

.page-single-header {
  padding: 10rem 4rem 4rem;
  border-bottom: 1px solid rgba(74,140,92,0.15);
}

.page-header-inner { max-width: 800px; }

.page-single-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--light);
}

.page-body {
  display: flex;
  justify-content: center;
  padding: 5rem 4rem;
}

.page-content {
  max-width: 700px;
  width: 100%;
}

.page-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--light);
  margin: 3rem 0 1.2rem;
}

.page-content p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.page-content ul { color: var(--text); font-size: 1rem; line-height: 1.85; margin-bottom: 1.5rem; padding-left: 1.5rem; }
.page-content li { margin-bottom: 0.5rem; }
.page-content strong { color: var(--foam); font-weight: 500; }
.page-content a { color: var(--river); text-decoration: none; }
.page-content a:hover { color: var(--foam); }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1.2rem 2rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(14,26,20,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .hero { padding: 0 2rem 5rem; }
  .water-rings { left: 70%; }
  .intro { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 2rem; }
  .posts { padding: 4rem 2rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .about-strip { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 2rem; }
  .about-visual { height: 260px; }
  .collab { padding: 5rem 2rem; }
  footer { padding: 2rem; flex-direction: column; gap: 1rem; text-align: center; }
  .page-hero, .post-header, .page-single-header { padding: 8rem 2rem 3rem; }
  .blog-list, .post-body, .page-body, .post-footer { padding: 3rem 2rem; }
  .blog-grid { grid-template-columns: 1fr; }
}
