/* ============================================================
   Yan Yoga — cyan.yoga
   Static site styles
   ============================================================ */

:root {
  --teal-900: #0a3d3c;
  --teal-700: #0e7c7b;
  --teal-500: #16a5a3;
  --teal-300: #7fd1cf;
  --cream:    #f7f4ee;
  --sand:     #ece5d8;
  --ink:      #243133;
  --ink-soft: #4a5a5c;
  --white:    #ffffff;
  --shadow:   0 18px 50px -24px rgba(10, 61, 60, 0.35);
  --radius:   14px;
  --maxw:     1180px;
  --serif:    "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:     "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--teal-500); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--teal-900);
  margin: 0 0 .4em;
  letter-spacing: .2px;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1.2em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .72rem;
  font-weight: 800;
  color: var(--teal-500);
  margin-bottom: 1rem;
}

.section { padding: clamp(70px, 9vw, 130px) 0; }
.section--sand { background: var(--sand); }
.section--teal { background: var(--teal-900); color: var(--cream); }
.section--teal h1, .section--teal h2, .section--teal h3 { color: var(--cream); }

.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid var(--teal-700);
  background: var(--teal-700);
  color: var(--white);
  transition: all .25s ease;
}
.btn:hover { background: var(--teal-900); border-color: var(--teal-900); color: var(--white); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--teal-700); }
.btn--ghost:hover { background: var(--teal-700); color: var(--white); }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--teal-900); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--teal-900); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.site-header.scrolled {
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 6px 30px -18px rgba(10,61,60,.5);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--teal-900);
  letter-spacing: 1px;
}
.brand__tag {
  font-size: .62rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 7px;
}
/* On hero, before scroll, lighten text */
.site-header:not(.scrolled) .brand__name { color: var(--cream); text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.site-header:not(.scrolled) .brand__tag { color: rgba(247,244,238,.85); }
.site-header:not(.scrolled) .nav-links a { color: var(--cream); text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.site-header:not(.scrolled) .nav-toggle span { background: var(--cream); }

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--teal-500);
  transition: width .25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--teal-900);
  transition: all .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
  transform: scale(1.05);
}
.hero__slide.active { opacity: 1; animation: kenburns 8s ease forwards; }
@keyframes kenburns { from { transform: scale(1.05);} to { transform: scale(1.13);} }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(10,61,60,.72) 0%, rgba(10,61,60,.38) 55%, rgba(10,61,60,.55) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { color: var(--cream); margin-bottom: .2em; }
.hero__lead { font-size: 1.25rem; max-width: 560px; color: rgba(247,244,238,.95); }
.hero__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  border-left: 3px solid var(--teal-300);
  padding-left: 22px;
  margin: 30px 0 38px;
  color: var(--cream);
}
.hero__quote cite { display: block; font-size: .85rem; font-style: normal; letter-spacing: 2px; text-transform: uppercase; margin-top: 10px; color: var(--teal-300); }

.hero__dots { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 12px; }
.hero__dots button {
  width: 11px; height: 11px; border-radius: 50%;
  border: none; background: rgba(247,244,238,.45); cursor: pointer; transition: all .25s ease; padding: 0;
}
.hero__dots button.active { background: var(--cream); transform: scale(1.3); }

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
  position: relative;
  padding: clamp(140px, 20vw, 220px) 0 clamp(50px, 8vw, 90px);
  background-size: cover;
  background-position: center;
  color: var(--cream);
  text-align: center;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,61,60,.55), rgba(10,61,60,.7));
}
.page-banner > .container { position: relative; z-index: 2; }
.page-banner h1 { color: var(--cream); }
.page-banner p { color: rgba(247,244,238,.9); max-width: 600px; margin: 0 auto; }

/* ---------- Intro / two-column ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 50px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 30px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .3s ease;
}
.card:hover { transform: translateY(-6px); }
.card__icon {
  width: 54px; height: 54px; margin: 0 auto 18px;
  color: var(--teal-500);
}
.card h3 { font-size: 1.4rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Quote band ---------- */
.quote-band { text-align: center; }
.quote-band blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.4;
  max-width: 880px;
  margin: 0 auto;
  color: var(--cream);
}
.quote-band cite {
  display: block; margin-top: 26px;
  font-family: var(--sans); font-style: normal;
  letter-spacing: 3px; text-transform: uppercase; font-size: .8rem;
  color: var(--teal-300);
}

/* ---------- About specifics ---------- */
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.credential-logo { margin-top: 26px; }
.credential-logo img { width: 170px; height: auto; display: block; }

/* ---------- Gallery ---------- */
.gallery {
  columns: 3;
  column-gap: 16px;
}
.gallery figure { margin: 0 0 16px; break-inside: avoid; }
.gallery img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .35s ease, box-shadow .35s ease;
  box-shadow: 0 10px 30px -18px rgba(10,61,60,.5);
}
.gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,61,60,.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(247,244,238,.15); color: var(--cream);
  border: none; cursor: pointer; border-radius: 50%;
  width: 50px; height: 50px; font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(247,244,238,.3); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav.next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Musings / blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 36px; }
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .3s ease;
}
.post-card:hover { transform: translateY(-6px); }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.post-card__date { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--teal-500); font-weight: 800; margin-bottom: 10px; }
.post-card h3 { margin-bottom: .4em; }
.post-card p { color: var(--ink-soft); font-size: .96rem; flex: 1; }
.post-card .read-more { font-weight: 800; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; margin-top: 8px; }

/* ---------- Article (single post) ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article__meta { font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--teal-500); font-weight: 800; margin-bottom: 14px; }
.article figure { margin: 36px 0; }
.article figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.article blockquote {
  border-left: 3px solid var(--teal-300);
  padding-left: 22px; margin: 28px 0;
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--teal-900);
}
.verse { background: var(--sand); border-radius: var(--radius); padding: 26px 30px; font-size: .98rem; }
.verse p { margin: 0 0 .6em; }
.verse p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-info p { color: var(--ink-soft); }
.contact-info .email-display { font-size: 1.3rem; font-family: var(--serif); color: var(--teal-700); font-weight: 600; word-break: break-all; }
.form-placeholder {
  border: 2px dashed var(--teal-300);
  border-radius: var(--radius);
  background: var(--white);
  padding: 50px 30px;
  text-align: center;
  color: var(--ink-soft);
}
.form-placeholder code { background: var(--sand); padding: 2px 8px; border-radius: 6px; font-size: .85rem; color: var(--teal-900); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: rgba(247,244,238,.8);
  padding: 64px 0 30px;
  text-align: center;
}
.site-footer .brand__name { color: var(--cream); }
.footer-nav { list-style: none; padding: 0; margin: 26px 0; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.footer-nav a { color: rgba(247,244,238,.8); font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.footer-nav a:hover { color: var(--cream); }
.footer-quote { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--teal-300); max-width: 600px; margin: 0 auto 26px; }
.footer-copy { font-size: .78rem; letter-spacing: 1px; color: rgba(247,244,238,.55); border-top: 1px solid rgba(247,244,238,.15); padding-top: 24px; margin-top: 30px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: flex; z-index: 1100; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh; width: min(78vw, 320px);
    background: var(--teal-900);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 60px;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,.3);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a, .site-header:not(.scrolled) .nav-links a { color: var(--cream); font-size: 1rem; text-shadow: none; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery { columns: 2; }
}
@media (max-width: 540px) {
  .gallery { columns: 1; }
  body { font-size: 16px; }
}
