/* ══════════════════════════════════════════
   ZEN DENTISTRY — Custom Ghost Theme
   ══════════════════════════════════════════ */

:root {
  --bg: #FAFAF7;
  --bg2: #F0EDE8;
  --ink: #1a1a1a;
  --mid: #333;
  --soft: #666;
  --mute: #888;
  --light: #aaa;
  --accent: #8B7355;
  --border: rgba(0,0,0,0.06);
  --white: #fff;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--ink); }

/* ── BODY ── */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Lato', Helvetica, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: #C4B59A; color: var(--ink); }

.zen-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.zen-main { flex: 1; }


/* ══════════════════════════════════
   HEADER
   ══════════════════════════════════ */

.zen-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.5s ease;
}

.zen-head.scrolled {
  background: rgba(250,250,247,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.zen-head-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zen-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.zen-logo img {
  max-height: 36px;
  width: auto;
}

.zen-nav { display: flex; align-items: center; }

.zen-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}

.zen-nav a {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

.zen-nav a:hover,
.zen-nav .nav-current a {
  color: var(--accent);
}

.zen-head-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.zen-btn-text {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
}

.zen-btn-text:hover { color: var(--accent); }

.zen-hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--ink);
  padding: 4px;
}

@media (max-width: 768px) {
  .zen-nav, .zen-head-actions { display: none; }
  .zen-hamburger { display: block; }
}


/* ══════════════════════════════════
   MOBILE MENU
   ══════════════════════════════════ */

.zen-mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(250,250,247,0.98);
  backdrop-filter: blur(24px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.zen-mobile-menu.open { display: flex; }

.zen-mobile-close {
  position: absolute; top: 22px; right: 28px;
  background: none; border: none; font-size: 28px;
  cursor: pointer; color: var(--ink);
}

.zen-mobile-nav { text-align: center; }

.zen-mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.zen-mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
}

.zen-mobile-nav a:hover { color: var(--accent); }

.zen-mobile-actions { margin-top: 32px; }


/* ══════════════════════════════════
   BUTTONS
   ══════════════════════════════════ */

.zen-btn {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
}

.zen-btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.zen-btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
}

.zen-btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.zen-btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* ══════════════════════════════════
   HERO
   ══════════════════════════════════ */

.zen-hero {
  padding: clamp(140px, 20vw, 220px) 24px clamp(80px, 14vw, 160px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.zen-enso {
  position: absolute;
  width: min(440px, 70vw);
  height: min(440px, 70vw);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.06;
}

.zen-hero-inner { position: relative; z-index: 1; }

.zen-hero-kanji {
  font-family: 'Noto Serif JP', serif;
  font-size: 52px;
  font-weight: 200;
  color: var(--accent);
  opacity: 0.45;
  margin-bottom: 24px;
}

.zen-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(44px, 9vw, 84px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.zen-hero-sub {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  font-style: italic;
  color: var(--mute);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.5;
}

.zen-hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}


/* ══════════════════════════════════
   QUOTE BANNER
   ══════════════════════════════════ */

.zen-quote-banner {
  padding: 72px 24px;
  background: var(--bg2);
  text-align: center;
}

.zen-quote-banner blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 400;
  font-style: italic;
  color: #555;
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto 16px;
  border: none;
  padding: 0;
}

.zen-quote-banner cite {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
  font-style: normal;
}


/* ══════════════════════════════════
   SECTION LABEL
   ══════════════════════════════════ */

.zen-section-label {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 12px;
}


/* ══════════════════════════════════
   POST CARDS
   ══════════════════════════════════ */

.zen-feed { padding: 64px 24px; }

.zen-feed-inner {
  max-width: 800px;
  margin: 0 auto;
}

.zen-card {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

.zen-card:hover { transform: translateY(-2px); }

.zen-card-link { color: var(--ink); display: block; }
.zen-card-link:hover { color: var(--ink); }

.zen-card-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.zen-card-tag {
  font-family: 'Lato';
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.zen-card-date, .zen-card-reading {
  font-family: 'Lato';
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
}

.zen-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 10px;
}

.zen-card-excerpt {
  font-family: 'Lato';
  font-weight: 300;
  font-size: 17px;
  color: var(--soft);
  line-height: 1.75;
  max-width: 640px;
}


/* ══════════════════════════════════
   SUBSCRIBE CTA
   ══════════════════════════════════ */

.zen-subscribe {
  padding: 80px 24px;
  background: var(--bg2);
  text-align: center;
}

.zen-subscribe-inner { max-width: 480px; margin: 0 auto; }

.zen-subscribe-kanji {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  color: var(--light);
  margin-bottom: 16px;
}

.zen-subscribe-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 12px;
}

.zen-subscribe-desc {
  font-family: 'Lato';
  font-weight: 300;
  font-size: 16px;
  color: var(--mute);
  margin-bottom: 28px;
}

.zen-subscribe-form {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
}

.zen-subscribe-input {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-right: none;
  font-family: 'Lato';
  font-size: 15px;
  font-weight: 300;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.zen-subscribe-input::placeholder { color: var(--light); }

.zen-subscribe-form .zen-btn { border-left: none; }


/* ══════════════════════════════════
   PAGINATION
   ══════════════════════════════════ */

.zen-pagination {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 48px 24px;
}

.zen-pagination-link {
  font-family: 'Lato';
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}


/* ══════════════════════════════════
   ARTICLE PAGES
   ══════════════════════════════════ */

.zen-article-header {
  padding: clamp(120px, 16vw, 180px) 24px 48px;
  text-align: center;
}

.zen-article-header-inner {
  max-width: 720px;
  margin: 0 auto;
}

.zen-article-tag {
  font-family: 'Lato';
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 16px;
}

.zen-article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 60px);
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.zen-article-excerpt {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  color: var(--mute);
  line-height: 1.5;
  margin-bottom: 20px;
}

.zen-article-meta {
  font-family: 'Lato';
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
}

.zen-article-meta-sep { margin: 0 8px; }

.zen-article-image {
  max-width: 1000px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.zen-article-image figcaption {
  font-family: 'Lato';
  font-size: 13px;
  font-weight: 300;
  color: var(--light);
  margin-top: 12px;
  text-align: center;
}


/* ══════════════════════════════════
   ARTICLE CONTENT (gh-content)
   ══════════════════════════════════ */

.zen-article-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.zen-article-content p {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.9;
  color: var(--mid);
  margin-bottom: 28px;
}

.zen-article-content h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 36px);
  color: var(--ink);
  margin-top: 56px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.zen-article-content h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 26px;
  color: var(--ink);
  margin-top: 44px;
  margin-bottom: 14px;
  line-height: 1.35;
}

.zen-article-content h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin-top: 36px;
  margin-bottom: 12px;
}

.zen-article-content blockquote {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px clamp(24px, 4vw, 40px);
  margin: 44px 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  font-style: italic;
  color: #555;
  line-height: 1.6;
}

.zen-article-content a {
  color: var(--accent);
  border-bottom: 1px solid rgba(139,115,85,0.3);
}

.zen-article-content a:hover {
  border-bottom-color: var(--accent);
}

.zen-article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px auto;
  max-width: 80px;
}

.zen-article-content ul,
.zen-article-content ol {
  font-size: 19px;
  line-height: 1.9;
  color: var(--mid);
  padding-left: 24px;
  margin-bottom: 28px;
}

.zen-article-content li { margin-bottom: 8px; }

.zen-article-content img { border-radius: 0; }

.zen-article-content figcaption {
  font-family: 'Lato';
  font-size: 13px;
  font-weight: 300;
  color: var(--light);
  text-align: center;
  margin-top: 12px;
}

.zen-article-content em { font-style: italic; }
.zen-article-content strong { font-weight: 700; }


/* ══════════════════════════════════
   ARTICLE FOOTER / TAGS
   ══════════════════════════════════ */

.zen-article-footer {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
}

.zen-article-tags { display: flex; gap: 12px; flex-wrap: wrap; }

.zen-tag-link {
  font-family: 'Lato';
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--border);
  padding: 6px 14px;
}

.zen-tag-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* ══════════════════════════════════
   AUTHOR BOX
   ══════════════════════════════════ */

.zen-author {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.zen-author-image {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.zen-author-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
}

.zen-author-bio {
  font-family: 'Lato';
  font-weight: 300;
  font-size: 16px;
  color: var(--mute);
  line-height: 1.7;
}


/* ══════════════════════════════════
   RELATED POSTS / COMMENTS
   ══════════════════════════════════ */

.zen-related { padding: 48px 24px; background: var(--bg2); }
.zen-related-inner { max-width: 800px; margin: 0 auto; }

.zen-comments { padding: 48px 24px; }
.zen-comments-inner { max-width: 700px; margin: 0 auto; }


/* ══════════════════════════════════
   TAG / AUTHOR HEADERS
   ══════════════════════════════════ */

.zen-tag-header,
.zen-author-header {
  padding: clamp(120px, 16vw, 180px) 24px 48px;
  text-align: center;
  background: var(--bg2);
}

.zen-tag-header-inner,
.zen-author-header-inner {
  max-width: 600px;
  margin: 0 auto;
}

.zen-tag-label {
  font-family: 'Lato';
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.zen-author-header-image {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 2px solid var(--border);
}


/* ══════════════════════════════════
   PAGE TEMPLATE
   ══════════════════════════════════ */

.zen-page-top {
  padding: clamp(120px, 16vw, 180px) 24px 48px;
  text-align: center;
}

.zen-page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 400;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.15;
}

.zen-page-subtitle {
  font-family: 'Lato';
  font-weight: 300;
  font-size: 17px;
  color: var(--mute);
  text-align: center;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}


/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */

.zen-foot {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.zen-foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
  text-align: center;
}

.zen-foot-kanji {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  color: var(--light);
  margin-bottom: 8px;
}

.zen-foot-title {
  font-family: 'Lato';
  font-size: 14px;
  font-weight: 300;
  color: var(--mute);
  margin-bottom: 16px;
}

.zen-foot-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.zen-foot-nav a {
  font-family: 'Lato';
  font-size: 12px;
  font-weight: 300;
  color: var(--mute);
}

.zen-foot-nav a:hover { color: var(--accent); }

.zen-foot-copy {
  font-family: 'Lato';
  font-size: 12px;
  font-weight: 300;
  color: var(--light);
}


/* ══════════════════════════════════
   GHOST CARD STYLES (auto-injected)
   ══════════════════════════════════ */

.kg-bookmark-card,
.kg-bookmark-container {
  border: 1px solid var(--border);
  border-radius: 0;
}

.kg-bookmark-title {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
}

.kg-bookmark-description {
  font-family: 'Lato';
  font-weight: 300;
  color: var(--soft);
}

.kg-gallery-image img { border-radius: 0; }

.kg-callout-card { border-radius: 0; }

.kg-toggle-card { border-radius: 0; }

/* ══════════════════════════════════
   KOENIG EDITOR — WIDTH CLASSES
   ══════════════════════════════════ */

.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: auto calc(50% - 50vw * 0.85);
}

.kg-width-full {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
