/* Ao Nang Sanctuary — Shared Styles */

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

:root {
  --cream: #f6f1e9;
  --ink: #1c1a17;
  --moss: #4a5c3a;
  --moss-light: #6b7f5a;
  --gold: #9a7c4a;
  --rule: #c8bfae;
  --muted: #6b6357;
}

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

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

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  line-height: 1.75;
  min-height: 100vh;
}

/* Paper grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── Typography ── */

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 400; }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--moss); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

em { font-style: italic; }
strong { font-weight: 500; }

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* ── Layout ── */

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.container--wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

section { padding: 4rem 0; }

/* ── Site Header / Nav ── */

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
  position: relative;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover { color: var(--moss); }
.site-nav a.active { color: var(--moss); }

/* ── Hero ── */

.hero {
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--rule);
}

.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

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

.hero__subtitle {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2rem;
}

/* ── Pull Quote ── */

.pull-quote {
  border-left: 3px solid var(--moss);
  padding: 1rem 0 1rem 2rem;
  margin: 2.5rem 0;
}

.pull-quote p {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
}

.pull-quote cite {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.75rem;
  font-style: normal;
}

/* ── Schedule / Rhythm ── */

.rhythm-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.rhythm-item:first-child { border-top: 1px solid var(--rule); }

.rhythm-time {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}

.rhythm-desc strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.rhythm-desc small {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Check List ── */

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

.check-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.5rem;
}

.check-list li::before {
  content: '✓';
  color: var(--moss);
  font-size: 0.9rem;
  padding-top: 0.15rem;
}

.check-list li strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

/* ── Donation Box ── */

.donation-box {
  background: white;
  border: 1px solid var(--rule);
  padding: 2rem;
  margin: 2rem 0;
}

.donation-amount {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--moss);
  margin-bottom: 0.5rem;
}

/* ── CTA / Contact ── */

.cta-section {
  background: var(--moss);
  color: var(--cream);
  padding: 4rem 0;
}

.cta-section h2, .cta-section p { color: var(--cream); }
.cta-section a { color: var(--cream); }
.cta-section hr { border-color: rgba(255,255,255,0.2); }

.contact-item {
  margin: 0.75rem 0;
  font-size: 0.95rem;
}

.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  display: block;
  margin-bottom: 0.15rem;
}

/* ── Blog Index ── */

.blog-grid {
  display: grid;
  gap: 0;
}

.blog-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  display: block;
  color: inherit;
}

.blog-card:hover .blog-card__title { color: var(--moss); }

.blog-card__category {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.blog-card__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.blog-card__excerpt {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Blog Post ── */

.post-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3rem;
}

.post-category {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.post-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.post-meta {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.post-body { padding-bottom: 4rem; }

.post-body h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin: 2.5rem 0 1rem;
}

.post-body h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 2rem 0 0.75rem;
  color: var(--moss);
}

/* ── Post CTA Box ── */

.post-cta {
  background: var(--moss);
  color: var(--cream);
  padding: 2.5rem;
  margin: 3rem 0;
}

.post-cta h3 {
  color: var(--cream);
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.post-cta p { color: rgba(246,241,233,0.85); margin-bottom: 0.75rem; }
.post-cta a { color: var(--cream); }

/* ── Site Footer ── */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--moss); }

/* ── Back link ── */
.back-link {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
}
.back-link:hover { color: var(--moss); }

/* ── Photo placeholder ── */
.photo-placeholder {
  background: #e8e2d8;
  border: 1px solid var(--rule);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .site-nav { gap: 1rem; }
  .rhythm-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}
