/* John David Copy — standalone HTML (no WordPress) */
:root {
  --ink: #1c1612;
  --muted: #6a5a4c;
  --paper: #fffdf8;
  --sand: #f3ebe0;
  --peach: #c18861;
  --peach-dark: #a86f4a;
  --line: rgba(28, 22, 18, 0.14);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Lato", system-ui, -apple-system, sans-serif;
  --container: min(1140px, calc(100% - 2.5rem));
  --header-h: 76px;
  --tab-bg: #e8dfd3;
  --tab-active: #c18861;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding-top: 52px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 12px; z-index: 200000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Design switcher */
.jd-design-switch {
  position: fixed; z-index: 100000; top: 10px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center;
  padding: 6px 8px; border-radius: 999px;
  background: rgba(26, 22, 18, 0.92); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  font: 600 12px/1.2 var(--sans);
}
.jd-design-switch__label {
  color: rgba(244, 239, 230, 0.55); padding: 0 6px 0 8px;
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 10px;
}
.jd-design-switch__btn {
  color: #f4efe6; text-decoration: none; padding: 7px 12px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.jd-design-switch__btn:hover { background: rgba(255, 255, 255, 0.08); }
.jd-design-switch__btn.is-active { background: #fff; color: #1a1612; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 9000;
  background: rgba(255, 253, 248, 0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  min-height: var(--header-h);
}
.header-inner {
  max-width: 1140px; width: 100%; margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.site-logo img { height: 52px; width: auto; }
.nav-toggle {
  display: none; margin-left: auto;
  border: 1px solid var(--line); background: #fff;
  padding: 0.45rem 0.65rem; border-radius: 6px; cursor: pointer;
}
.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 0.15rem;
}
.site-nav a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 0.5rem 0.85rem; border-radius: 4px;
  letter-spacing: 0.01em;
}
.site-nav a:hover { background: rgba(0, 0, 0, 0.04); }
.site-nav .has-sub { position: relative; }
.site-nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  padding: 0.35rem 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: 0.2s ease;
}
.site-nav .has-sub:hover .sub,
.site-nav .has-sub:focus-within .sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav .sub a { display: block; padding: 0.5rem 1rem; font-size: 0.88rem; }
.header-cta .btn-contact {
  text-decoration: none; font-size: 0.88rem;
  padding: 0.55rem 1rem; border: 1px solid var(--line); border-radius: 4px;
}
.header-cta .btn-contact:hover { background: var(--ink); color: #fff; }

/* Sections */
.section { padding: 3.5rem 1.25rem; }
.section--tight { padding: 2.5rem 1.25rem; }
.container { width: var(--container); margin: 0 auto; }
.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  text-align: center; margin: 0 0 0.35rem;
}
.section-rule {
  width: 4.5rem; height: 1px; margin: 0.35rem auto 1.25rem;
  background: rgba(28, 22, 18, 0.28); border: 0;
}
.section-lead {
  text-align: center; color: var(--muted);
  max-width: 36rem; margin: 0 auto 1.5rem; line-height: 1.5;
}

/* Hero essence */
.hero-essence {
  min-height: 220px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 3rem 1.25rem 4rem;
  background: linear-gradient(180deg, #faf6ef 0%, #fff 100%);
}
.hero-essence h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 0;
}
.hero-wave { line-height: 0; margin-top: -1px; }
.hero-wave svg { display: block; width: 100%; height: 48px; }

/* Portrait + quote */
.quote-band {
  padding: 0 1.25rem 2rem; text-align: center;
}
.quote-card {
  max-width: 520px; margin: 0 auto 1.5rem;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(40, 28, 18, 0.12);
}
.quote-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.quote-text {
  max-width: 42rem; margin: 0 auto 1.25rem;
  font-family: var(--serif); font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55; font-style: italic;
}
.quote-text footer {
  font-style: normal; font-weight: 600; margin-top: 0.75rem; font-size: 0.95rem;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.72rem 1.25rem; border-radius: 6px;
  text-decoration: none; font-size: 0.92rem; border: 0; cursor: pointer;
}
.btn--peach { background: var(--peach); color: #fff; }
.btn--peach:hover { background: var(--peach-dark); }
.btn--outline {
  background: #fff; border: 1px solid rgba(28, 22, 18, 0.22); color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: #fff; }
.actions-center { text-align: center; }

/* Welcoming */
.welcoming {
  background: var(--sand) url("/images/mountain-bg.jpg") center/cover fixed;
  position: relative;
}
.welcoming::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255, 252, 246, 0.82);
}
.welcoming .container { position: relative; z-index: 1; }
.community-photo {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

/* Quick links */
.quicklinks {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
  padding: 2rem 1.25rem 3rem;
}
.quicklink {
  text-decoration: none; border-radius: 14px; overflow: hidden;
  background: var(--sand); min-height: 160px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; padding: 1rem; text-align: center;
  border: 1px solid rgba(28, 22, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quicklink:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); }
.quicklink--portrait { padding: 0; justify-content: stretch; }
.quicklink--portrait img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.quicklink__icon { width: 42px; height: 42px; margin-bottom: 0.5rem; opacity: 0.85; }
.quicklink h3 { font-size: 0.95rem; margin: 0 0 0.2rem; font-weight: 600; }
.quicklink p { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* Media collection */
.media-world {
  background: var(--sand) url("/images/watercolor.jpg") center/cover;
  padding: 3.5rem 1.25rem;
  position: relative;
}
.media-world::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255, 252, 246, 0.55);
}
.media-world .container { position: relative; z-index: 1; }
.media-block { margin-bottom: 2.5rem; }
.media-row {
  display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: start;
}
.media-row--flip { grid-template-columns: 1fr 2fr; }
.media-row h3 {
  font-family: var(--serif); font-size: 1.5rem; margin: 0 0 0.75rem;
}
.media-copy p { color: var(--muted); line-height: 1.5; margin: 0 0 1rem; }
.media-copy .btn-list { display: flex; flex-direction: column; gap: 0.5rem; }
.media-copy .btn-list a { font-size: 0.85rem; }

/* Embeds */
.jd-embed {
  width: 100%; border: 0; background: transparent; display: block; overflow: hidden;
}
.jd-embed--wisdom { min-height: 280px; height: 320px; }
.jd-embed--cinematic { min-height: 380px; height: 420px; }
.jd-embed--interviews { min-height: 380px; height: 460px; }
.jd-embed--events { min-height: 420px; height: 480px; }

/* Books */
.books-section { background: #fff; }
.book-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem;
}
.book-grid img {
  border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}
.book-grid a:hover img { transform: scale(1.03); }
.book-series {
  display: grid; grid-template-columns: 1fr 3fr; gap: 1.5rem;
  margin-bottom: 2rem; align-items: start;
}
.book-series h3 { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 0.5rem; }
.book-series p { color: var(--muted); line-height: 1.5; font-size: 0.95rem; }

/* Community */
.community-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.community-grid a { border-radius: 10px; overflow: hidden; }

/* Gallery */
.gallery-scroll {
  display: flex; gap: 0.75rem; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.gallery-scroll img {
  flex: 0 0 auto; width: 220px; height: 220px;
  object-fit: cover; border-radius: 10px; scroll-snap-align: start;
}

/* Footer */
.site-footer {
  background: #1a1612; color: #f4efe6;
  padding: 3rem 1.25rem 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  width: var(--container); margin: 0 auto 2rem;
}
.site-footer h4 {
  font-family: var(--serif); margin: 0 0 0.75rem; font-size: 1.1rem;
}
.site-footer p, .site-footer a {
  font-size: 0.9rem; line-height: 1.55; color: rgba(244, 239, 230, 0.85);
}
.site-footer a { text-decoration: underline; }
.footer-bottom {
  text-align: center; font-size: 0.8rem;
  color: rgba(244, 239, 230, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem; width: var(--container); margin: 0 auto;
}
.newsletter-form input {
  width: 100%; padding: 0.6rem 0.75rem; margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06);
  color: #fff; border-radius: 4px;
}
.social-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.social-links a {
  text-decoration: none; padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 4px;
  font-size: 0.82rem;
}

/* Video modal */
.jd-video-modal {
  position: fixed; inset: 0; z-index: 100001;
  display: none; place-items: center;
  background: rgba(12, 10, 8, 0.72); padding: 1rem;
}
.jd-video-modal.is-open { display: grid; }
.jd-video-modal__panel {
  width: min(960px, 100%); aspect-ratio: 16/9;
  background: #000; position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.jd-video-modal__panel iframe { width: 100%; height: 100%; border: 0; }
.jd-video-modal__close {
  position: absolute; top: -2.4rem; right: 0;
  border: 0; background: transparent; color: #fff;
  font-size: 1.6rem; cursor: pointer;
}

/* Responsive */
@media (max-width: 980px) {
  .media-row, .media-row--flip, .book-series { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .quicklinks { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 1rem; display: none; flex-direction: column;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding-left: 0.5rem;
  }
  .header-cta { display: none; }
  .quicklinks { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .community-grid { grid-template-columns: 1fr; }
  .jd-design-switch { left: 10px; right: 10px; transform: none; top: 8px; }
}
