/* The Still Point — an independent companion to retreat & contemplative life in Belize.
   Custom contemplative editorial theme. Content is fully visible with CSS alone;
   JavaScript is progressive enhancement only. */

:root {
  --teal: #1f5c63;
  --teal-deep: #14454b;
  --teal-soft: #2f767e;
  --gold: #c98a2b;
  --gold-soft: #e0a94a;
  --cream: #f7f2e7;
  --cream-2: #fbf7ee;
  --paper: #fffdf8;
  --ink: #2a2724;
  --muted: #6b625a;
  --line: #e6ddca;
  --shadow: 0 10px 30px rgba(20, 69, 75, 0.10);
  --maxw: 760px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -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.72;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--gold); }
.prose a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--gold); }

/* Safeguard: never leave content hidden waiting on JS (portfolio rule). */
[data-aos] { opacity: 1 !important; transform: none !important; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--teal); color: var(--cream); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 247, 238, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  max-width: 1120px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 1.6rem; letter-spacing: .01em;
  color: var(--teal-deep); white-space: nowrap;
}
.brand:hover { color: var(--teal-deep); }
.nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: flex-end;
}
.nav-links a {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 500;
  color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal-deep); border-bottom-color: var(--gold); }

/* ---------- Hero (home) ---------- */
.hero {
  background-size: cover; background-position: center;
  min-height: 66vh; display: flex; align-items: flex-end;
  color: var(--cream);
}
.hero-inner { max-width: 1120px; margin: 0 auto; padding: 56px 24px; width: 100%; }
.hero-brand {
  font-family: var(--serif); font-weight: 600; font-size: clamp(2.8rem, 7vw, 5rem);
  margin: 0; line-height: 1; text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero-tag {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  margin: .5rem 0 0; color: #fbf3e2; max-width: 34ch; text-shadow: 0 1px 12px rgba(0,0,0,.4);
}

/* ---------- Page header (inner) ---------- */
.page-header { border-bottom: 1px solid var(--line); background: var(--cream-2); }
.ph-inner { max-width: var(--maxw); margin: 0 auto; padding: 26px 24px 0; }
.kicker {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold);
  font-weight: 600;
}

/* ---------- Prose ---------- */
main { display: block; }
.prose {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 12px;
  animation: rise .7s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.prose h1 {
  font-family: var(--serif); font-weight: 600; color: var(--teal-deep);
  font-size: clamp(2.1rem, 4.6vw, 3rem); line-height: 1.08; margin: .2em 0 .5em;
}
.prose h2 {
  font-family: var(--serif); font-weight: 600; color: var(--teal);
  font-size: 1.7rem; line-height: 1.2; margin: 2em 0 .5em;
  padding-bottom: .25em; border-bottom: 1px solid var(--line);
}
.prose h3 { font-family: var(--serif); font-weight: 600; color: var(--teal); font-size: 1.35rem; margin: 1.5em 0 .4em; }
.prose p { margin: 0 0 1.15em; }
.prose .lede {
  font-family: var(--serif); font-size: 1.42rem; line-height: 1.5; color: #40534f; font-style: italic;
  margin-bottom: 1.2em;
}
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose strong { color: var(--teal-deep); }
.prose em { color: #4a4540; }

/* ---------- Figures ---------- */
.page-figure {
  margin: 1.8em 0 2em; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.page-figure img { width: 100%; }

/* ---------- Feedback form ---------- */
.feedback-form { display: grid; gap: 14px; margin: 1.2em 0; max-width: 520px; }
.feedback-form label { display: grid; gap: 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.feedback-form input, .feedback-form textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px;
}
.feedback-form input:focus, .feedback-form textarea:focus { outline: none; border-color: var(--teal-soft); box-shadow: 0 0 0 3px rgba(47,118,126,.15); }
.feedback-form button {
  justify-self: start; font-family: var(--sans); font-weight: 600; font-size: .95rem;
  background: var(--teal); color: var(--cream); border: 0; border-radius: 8px; padding: 12px 26px; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.feedback-form button:hover { background: var(--teal-deep); transform: translateY(-1px); }
.form-note { font-size: .85rem; color: var(--muted); font-style: italic; }

.error-page { padding-top: 64px; padding-bottom: 40px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: #d8e5e4; margin-top: 48px; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 44px 24px 40px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-nav a { color: #cfe0df; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; }
.footer-nav a:hover { color: var(--gold-soft); }
.disclaimer {
  max-width: 720px; margin: 22px auto 0; text-align: center; font-size: .9rem; line-height: 1.6;
  color: #b9cecc; background: rgba(0,0,0,.14); border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px; padding: 16px 20px;
}
.copyright { text-align: center; font-size: .8rem; color: #8fb0ad; margin: 18px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .site-nav { justify-content: center; }
  .nav-links { justify-content: center; }
  .brand { width: 100%; text-align: center; }
  .hero { min-height: 56vh; }
  .prose h2 { font-size: 1.5rem; }
  .prose .lede { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .prose { animation: none; }
}
