/* ============================================================
   BEYONDSURFACE — Dr. Pranav Thusay
   Blog — Identity · Surgery · Reinvention
   Palette: White · Gold · Rolex Green
   ============================================================ */

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

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

:root {
  --green:      #006039;
  --green-dk:   #003D25;
  --green-md:   #0A7A47;
  --green-card: #0A2D1D;
  --green-bdr:  #1A4A32;

  --white:   #FAFCFA;
  --bg-alt:  #F0F7F3;
  --text:    #0C2318;
  --card:    #FFFFFF;
  --border:  #C5DDD3;
  --muted:   #4A6A58;
  --silver:  #6B8C79;
  --light:   #C8E0D5;
  --cream:   #E8F4EE;

  --gold:    #C8A96D;
  --gold-lt: #DFC28E;
  --gold-dk: #9A7540;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}

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

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  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='1'/%3E%3C/svg%3E");
  background-size: 180px; opacity: 0.022; mix-blend-mode: multiply;
}

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #fff; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 7vw, 6.5rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.25rem); }
p  { font-size: clamp(0.875rem, 1.1vw, 1rem); color: var(--silver); }

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }
.gold { color: var(--gold); }
.serif { font-family: var(--serif); }

/* ═══════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem clamp(1.5rem, 5vw, 4rem);
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s var(--ease), box-shadow 0.4s;
}
nav.scrolled {
  background: rgba(250,252,250,0.97);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(0,96,57,0.10), 0 4px 24px rgba(0,60,37,0.06);
}
nav.scrolled .nav-logo-main { color: var(--text); }
nav.scrolled .nav-links a   { color: var(--muted); }
nav.scrolled .hamburger span { background: var(--text); }

.nav-logo { display: flex; flex-direction: column; }
.nav-logo-main {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 500;
  letter-spacing: 0.12em; color: #FAFCFA; transition: color 0.3s;
}
.nav-logo-sub {
  font-size: 0.55rem; letter-spacing: 0.3em;
  color: var(--gold); text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(200,224,213,0.85); transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: #FAFCFA; transition: all 0.3s; }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--green-dk) 0%, var(--green) 60%, var(--green-md) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(7rem, 15vw, 12rem) clamp(1.5rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem);
  position: relative; overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(200,169,109,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.65rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 40px; height: 1px; background: var(--gold); opacity: 0.6;
}

.hero h1 { color: #FAFCFA; max-width: 900px; line-height: 1.05; margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--gold-lt); }

.hero-sub {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem); color: var(--light);
  max-width: 540px; margin-bottom: 3rem; line-height: 1.75;
}

.hero-meta {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.hero-author {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--cream); display: flex; align-items: center; gap: 0.75rem;
}
.hero-author-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.scroll-cue {
  position: absolute; bottom: 2.5rem; right: clamp(1.5rem, 5vw, 4rem);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(200,224,213,0.5);
}
.scroll-cue-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(200,224,213,0.4), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{transform:scaleY(1);opacity:.5} 50%{transform:scaleY(.5);opacity:1} }

/* ═══════════════════════════════════════════
   FILTER BAR
   ═══════════════════════════════════════════ */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 64px; z-index: 50;
  padding: 1rem clamp(1.5rem, 5vw, 4rem);
}
.filter-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 0.75rem; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.filter-inner::-webkit-scrollbar { display: none; }

.filter-btn {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.45rem 1.1rem; border-radius: 2rem; border: 1px solid var(--border);
  background: transparent; color: var(--muted); cursor: pointer;
  white-space: nowrap; transition: all 0.25s; font-family: var(--sans);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--green); border-color: var(--green); color: #fff;
}
.filter-btn.active { background: var(--green); }

/* ═══════════════════════════════════════════
   BLOG GRID
   ═══════════════════════════════════════════ */
.blog-section { padding: clamp(4rem, 8vw, 7rem) 0; }

.section-header { text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-eyebrow {
  font-size: 0.65rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center;
  justify-content: center; gap: 1rem;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; display: block; width: 30px; height: 1px; background: var(--gold); opacity: 0.5;
}
.section-header h2 { color: var(--text); }
.section-header p { max-width: 500px; margin: 1rem auto 0; }

/* Featured post — spans full width */
.post-featured {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; background: var(--card);
  border: 1px solid var(--border); border-radius: 4px;
  overflow: hidden; margin-bottom: 2px;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.post-featured:hover {
  box-shadow: 0 20px 60px rgba(0,60,37,0.12);
  transform: translateY(-2px);
}
.post-featured-img {
  position: relative; overflow: hidden; min-height: 480px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dk) 100%);
  display: flex; align-items: center; justify-content: center;
}
.post-featured-img-inner {
  font-family: var(--serif); font-size: clamp(5rem, 10vw, 9rem);
  color: rgba(255,255,255,0.06); font-weight: 300; user-select: none;
  position: absolute; bottom: 1rem; right: 1.5rem;
}
.post-featured-img .post-category-badge {
  position: absolute; top: 1.5rem; left: 1.5rem;
}
.post-featured-body {
  padding: clamp(2.5rem, 4vw, 4rem);
  display: flex; flex-direction: column; justify-content: center;
}

/* Grid of cards */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2px;
}

.post-card {
  background: var(--card); border: 1px solid var(--border);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  display: flex; flex-direction: column;
  cursor: pointer;
}
.post-card:hover {
  box-shadow: 0 12px 40px rgba(0,60,37,0.10);
  transform: translateY(-3px);
}

.post-category-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 2rem;
  background: var(--bg-alt); color: var(--green); border: 1px solid var(--border);
  margin-bottom: 1.25rem; width: fit-content;
}
.post-category-badge.clearform {
  background: rgba(0,96,57,0.06); color: var(--green); border-color: var(--green-bdr);
}
.post-category-badge.performe {
  background: rgba(200,169,109,0.08); color: var(--gold-dk); border-color: rgba(200,169,109,0.25);
}

.post-card h3 {
  color: var(--text); margin-bottom: 0.75rem; line-height: 1.2;
  transition: color 0.25s;
}
.post-card:hover h3 { color: var(--green); }

.post-card p {
  flex: 1; margin-bottom: 1.5rem;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

.post-meta {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 1rem; margin-top: auto;
}
.post-date { font-size: 0.65rem; letter-spacing: 0.12em; color: var(--silver); }
.post-read-more {
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--green); display: flex; align-items: center; gap: 0.4rem;
  transition: gap 0.25s;
}
.post-card:hover .post-read-more { gap: 0.7rem; }
.post-read-more::after { content: '→'; }

/* Featured card body */
.post-featured-body .post-category-badge { margin-bottom: 1.5rem; }
.post-featured-body h2 { color: var(--text); margin-bottom: 1rem; line-height: 1.1; }
.post-featured-body p { margin-bottom: 2rem; font-size: 1rem; line-height: 1.8; }
.post-featured-body .post-meta { margin-top: auto; }

/* ═══════════════════════════════════════════
   NEWSLETTER STRIP
   ═══════════════════════════════════════════ */
.newsletter {
  background: linear-gradient(135deg, var(--green-dk) 0%, var(--green) 100%);
  padding: clamp(4rem, 8vw, 7rem) 0;
  text-align: center; position: relative; overflow: hidden;
}
.newsletter::before {
  content: 'BS'; font-family: var(--serif); font-size: 22rem; font-weight: 300;
  color: rgba(255,255,255,0.03); position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.newsletter .section-eyebrow { color: var(--gold-lt); }
.newsletter .section-eyebrow::before,
.newsletter .section-eyebrow::after { background: var(--gold); }
.newsletter h2 { color: #FAFCFA; margin-bottom: 1rem; }
.newsletter p { color: var(--light); max-width: 440px; margin: 0 auto 2.5rem; }

.nl-form { display: flex; gap: 0; max-width: 460px; margin: 0 auto; border-radius: 3px; overflow: hidden; }
.nl-form input {
  flex: 1; padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-right: none; color: #fff; font-family: var(--sans);
  font-size: 0.85rem; outline: none;
}
.nl-form input::placeholder { color: rgba(200,224,213,0.5); }
.nl-form button {
  padding: 1rem 1.75rem; background: var(--gold); border: none;
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--green-dk); cursor: pointer;
  transition: background 0.25s;
}
.nl-form button:hover { background: var(--gold-lt); }

/* ═══════════════════════════════════════════
   ABOUT STRIP
   ═══════════════════════════════════════════ */
.about-strip {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--bg-alt);
}
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}
.about-label {
  font-size: 0.6rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.about-label::before { content: ''; display: block; width: 30px; height: 1px; background: var(--gold); }
.about-text h2 { color: var(--text); margin-bottom: 1.25rem; }
.about-text p { margin-bottom: 1rem; }
.about-text .btn { margin-top: 1rem; }
.about-visual {
  aspect-ratio: 4/5; max-height: 520px;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dk) 100%);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 8rem; font-weight: 300;
  color: rgba(255,255,255,0.07); user-select: none; overflow: hidden; position: relative;
}
.about-visual::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid rgba(200,169,109,0.2); border-radius: 4px;
}

/* ═══════════════════════════════════════════
   BUTTON
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.9rem 2rem; border: 1px solid; cursor: pointer;
  transition: all 0.3s var(--ease); font-family: var(--sans);
  border-radius: 2px;
}
.btn-gold {
  background: var(--gold); border-color: var(--gold); color: var(--green-dk);
}
.btn-gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); }
.btn-outline {
  background: transparent; border-color: var(--green); color: var(--green);
}
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-ghost-light {
  background: transparent; border-color: rgba(200,224,213,0.3); color: var(--light);
}
.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
  background: var(--green-dk); color: var(--light);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--green-bdr);
  margin-bottom: 2rem;
}
.footer-brand .nav-logo-main { color: var(--cream); }
.footer-brand p { font-size: 0.8rem; color: var(--light); margin-top: 0.75rem; max-width: 280px; }

.footer-links { display: flex; gap: 4rem; }
.footer-col h5 {
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.8rem; color: var(--light); transition: color 0.25s; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.7rem; color: var(--silver); }
.footer-bottom a { color: var(--gold); }

/* ═══════════════════════════════════════════
   SINGLE POST PAGE
   ═══════════════════════════════════════════ */
.post-hero {
  background: linear-gradient(160deg, var(--green-dk) 0%, var(--green) 100%);
  padding: clamp(8rem, 14vw, 12rem) clamp(1.5rem, 5vw, 4rem) clamp(4rem, 7vw, 6rem);
}
.post-hero .post-category-badge { margin-bottom: 1.5rem; }
.post-hero .post-category-badge.clearform { background: rgba(255,255,255,0.1); color: var(--gold); border-color: rgba(200,169,109,0.3); }
.post-hero .post-category-badge.performe  { background: rgba(255,255,255,0.1); color: var(--gold); border-color: rgba(200,169,109,0.3); }
.post-hero h1 { color: #FAFCFA; max-width: 860px; margin-bottom: 1.5rem; }
.post-hero-sub { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--light); max-width: 620px; line-height: 1.75; }
.post-hero-meta {
  margin-top: 2.5rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid var(--green-bdr);
}
.post-hero-meta-item { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cream); }
.post-hero-meta-item span { color: var(--gold); }

.post-body {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.post-content {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.9;
  color: var(--text);
}
.post-content p { color: var(--text); margin-bottom: 1.75rem; font-size: inherit; }
.post-content h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 3rem 0 1.25rem; color: var(--text); }
.post-content h3 { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.75rem); margin: 2.5rem 0 1rem; color: var(--text); }
.post-content blockquote {
  margin: 2.5rem 0; padding: 2rem 2.5rem;
  border-left: 3px solid var(--gold);
  background: var(--bg-alt); border-radius: 0 4px 4px 0;
}
.post-content blockquote p {
  font-family: var(--serif); font-size: 1.3rem; font-style: italic;
  color: var(--text); margin: 0; line-height: 1.6;
}
.post-content ul, .post-content ol {
  margin: 1.5rem 0 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.post-content li { color: var(--text); font-size: inherit; }
.post-content strong { font-weight: 600; color: var(--green-dk); }
.post-content em { font-style: italic; color: var(--muted); }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

.post-tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.post-tag {
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border: 1px solid var(--border); border-radius: 2rem;
  color: var(--muted); transition: all 0.2s;
}
.post-tag:hover { border-color: var(--green); color: var(--green); background: var(--bg-alt); }

/* Author card */
.author-card {
  margin-top: 4rem; padding: 2.5rem;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 4px; display: flex; gap: 2rem; align-items: flex-start;
}
.author-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dk) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.75rem; color: rgba(255,255,255,0.4);
}
.author-info h4 { font-family: var(--serif); color: var(--text); margin-bottom: 0.4rem; }
.author-info .author-title { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.author-info p { font-size: 0.88rem; }

/* Related posts */
.related-posts { padding: clamp(4rem, 7vw, 6rem) 0; background: var(--bg-alt); }

/* ═══════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured-img { min-height: 260px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { max-height: 300px; aspect-ratio: 16/7; }
  .footer-links { gap: 2rem; flex-wrap: wrap; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .posts-grid { grid-template-columns: 1fr; }
  .nl-form { flex-direction: column; }
  .nl-form input { border-right: 1px solid rgba(255,255,255,0.15); border-bottom: none; }
  .author-card { flex-direction: column; gap: 1.25rem; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--green-dk);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 2.5rem; opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--serif); font-size: 2.5rem; font-weight: 300;
  color: var(--light); transition: color 0.25s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-close {
  position: absolute; top: 1.5rem; right: clamp(1.5rem, 5vw, 4rem);
  font-size: 1.5rem; color: var(--light); cursor: pointer;
  background: none; border: none; line-height: 1;
}
