@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400&family=Space+Mono:wght@400;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #14171f;
  --ink-soft: #1c202b;
  --parchment: #f4efe2;
  --parchment-dim: #ece4d1;
  --body-ink: #232620;
  --pine: #3e6259;
  --sealwax: #a13d2e;
  --brass: #b08d57;
  --muted: #6b6f63;

  --display: 'Fraunces', serif;
  --serif: 'Source Serif 4', serif;
  --mono: 'Space Mono', monospace;
  --ui: 'Inter', sans-serif;

  --radius: 3px;
  --max-w: 1180px;
  --header-max-w: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--serif);
  line-height: 1.6;
}

::selection { background: var(--sealwax); color: var(--parchment); }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Dotted typewriter link ---------- */
.dotted-link {
  text-decoration: none;
  border-bottom: 1px dotted var(--brass);
  padding-bottom: 2px;
  color: inherit;
  transition: border-color .2s ease, color .2s ease;
}
.dotted-link:hover { border-color: var(--sealwax); color: var(--sealwax); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 23, 31, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(176, 141, 87, 0.25);
}
.site-header .wrap {
  max-width: var(--header-max-w);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--parchment);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 9px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(176,141,87,0.4);
  transition: border-color .2s ease, background .2s ease;
}
.brand:hover {
  border-color: var(--brass);
  background: rgba(176,141,87,0.08);
}
nav.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 8px;
  column-gap: 18px;
  font-family: var(--ui);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}
nav.site-nav a {
  text-decoration: none;
  color: var(--parchment-dim);
  opacity: 0.8;
  transition: opacity .2s ease;
  white-space: nowrap;
}
nav.site-nav a:hover { opacity: 1; }
nav.site-nav a.nav-active {
  opacity: 1;
  color: var(--brass);
  border-bottom-color: var(--brass);
}
nav.site-nav .admin-link {
  opacity: 1;
  font-family: var(--ui);
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--brass);
  color: var(--parchment);
  border-bottom: none;
}
nav.site-nav .admin-link:hover {
  background: var(--brass);
  color: var(--ink);
}
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(176,141,87,0.4);
  color: var(--parchment-dim);
  opacity: 1;
  transition: border-color .2s ease, color .2s ease;
  flex-shrink: 0;
}
.nav-search-btn svg { width: 16px; height: 16px; }
.nav-search-btn:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid rgba(176,141,87,0.4);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--brass);
  margin: 0 auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle-open span:nth-child(2) { opacity: 0; }
.nav-toggle-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  nav.site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 2px;
    background: var(--ink);
    border-bottom: 1px solid rgba(176,141,87,0.25);
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .25s ease, opacity .2s ease, padding .25s ease, visibility 0s linear .25s;
  }
  nav.site-nav.nav-open {
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 12px 28px 22px;
    opacity: 1;
    visibility: visible;
    transition: max-height .25s ease, opacity .2s ease, padding .25s ease;
  }
  nav.site-nav a { padding: 10px 0; width: 100%; }
  nav.site-nav .admin-link {
    width: auto;
    padding: 8px 16px;
    border-top: 1px solid rgba(176,141,87,0.15);
    padding-top: 18px;
    margin-top: 8px;
  }
  .nav-search-btn {
    width: auto;
    height: auto;
    border: none;
    justify-content: flex-start;
    padding: 10px 0;
    gap: 10px;
  }
  .nav-search-btn::after {
    content: "Search";
    font-family: var(--ui);
    font-size: 15px;
  }
  .site-header .wrap { position: relative; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  background: var(--ink);
  color: var(--brass);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease, color .2s ease;
  z-index: 100;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--brass); color: var(--ink); }

/* ---------- Loading skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, rgba(176,141,87,0.08) 25%, rgba(176,141,87,0.18) 37%, rgba(176,141,87,0.08) 63%);
  background-size: 400% 100%;
  animation: skeleton-pulse 1.4s ease infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-pulse {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.skeleton-text { height: 14px; margin-bottom: 10px; }
.skeleton-title { height: 34px; width: 60%; margin-bottom: 18px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-family: var(--ui);
  font-size: 12.5px;
  color: var(--parchment-dim);
  opacity: 0.75;
  margin: 0 0 20px;
}
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--brass); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }

/* ---------- Share buttons ---------- */
.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0;
  padding-top: 30px;
  border-top: 1px solid rgba(176,141,87,0.2);
  position: relative;
  flex-wrap: wrap;
}
.share-label {
  font-family: var(--ui);
  font-size: 12.5px;
  color: var(--parchment-dim);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(176,141,87,0.4);
  background: transparent;
  color: var(--parchment-dim);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.share-btn:hover { border-color: var(--brass); color: var(--brass); }
.share-copied {
  font-family: var(--ui);
  font-size: 12px;
  color: var(--pine);
  opacity: 0;
  transition: opacity .2s ease;
}
.share-copied.show { opacity: 1; }

/* ---------- Related posts ---------- */
.related-posts { margin: 10px 0 50px; }
.related-heading {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 22px;
}

/* ---------- Prev/next post ---------- */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 10px 0 50px;
}
.post-nav-link {
  text-decoration: none;
  color: inherit;
  padding: 18px 20px;
  border: 1px solid rgba(176,141,87,0.25);
  border-radius: var(--radius);
  transition: border-color .2s ease;
}
.post-nav-link:hover { border-color: var(--brass); }
.post-nav-link.next { text-align: right; }
.post-nav-dir {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass);
  display: block;
  margin-bottom: 6px;
}
.post-nav-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
}
@media (max-width: 560px) {
  .post-nav { grid-template-columns: 1fr; }
}

/* ---------- Footer socials ---------- */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--ui);
  font-size: 13px;
  transition: color .2s ease;
}
.footer-socials a svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-socials a:hover { color: var(--brass); }

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 15% -10%, rgba(62,98,89,0.35), transparent 60%),
    radial-gradient(ellipse 500px 400px at 100% 10%, rgba(161,61,46,0.15), transparent 60%);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--brass);
  font-weight: 500;
}
.hero p.lede {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--parchment-dim);
  max-width: 54ch;
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--brass);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--parchment);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--brass); color: var(--ink); }
.btn.solid {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--parchment);
}
.btn.solid:hover { background: #4a7367; border-color: #4a7367; }
.btn.danger { border-color: var(--sealwax); color: var(--sealwax); }
.btn.danger:hover { background: var(--sealwax); color: var(--parchment); }

/* ---------- Section shell ---------- */
section.page-section { padding: 90px 0; }
section.page-section + section.page-section {
  border-top: 1px solid rgba(176, 141, 87, 0.2);
}
.section-head { margin-bottom: 48px; }
.section-head .kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin: 0;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
.about-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(176,141,87,0.35);
  background: var(--ink-soft);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-body { color: var(--parchment-dim); font-size: 17px; max-width: 62ch; }
.about-body p { margin: 0 0 18px; }
.about-location {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--brass);
  margin-top: 20px;
  display: inline-block;
}
@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 220px; }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  columns: 3 260px;
  column-gap: 20px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(176,141,87,0.25);
  background: var(--ink-soft);
  position: relative;
}
.gallery-item img { width: 100%; display: block; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-caption {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--parchment-dim);
  padding: 10px 12px;
  border-top: 1px solid rgba(176,141,87,0.2);
}
.empty-state {
  font-family: var(--ui);
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

/* ---------- Music ---------- */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.music-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.music-poster {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(176,141,87,0.3);
  background: var(--ink-soft);
  margin-bottom: 12px;
}
.music-poster img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.music-card:hover .music-poster img { transform: scale(1.04); }
.music-play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,23,31,0.15);
  opacity: 0;
  transition: opacity .2s ease;
}
.music-card:hover .music-play-badge { opacity: 1; }
.music-play-badge span {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--sealwax);
  display: flex; align-items: center; justify-content: center;
  color: var(--parchment);
  font-size: 16px;
}
.music-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--parchment);
  margin: 0;
}

/* ---------- Vlog (mirrors Music styling) ---------- */
.vlog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.vlog-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.vlog-poster {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(176,141,87,0.3);
  background: var(--ink-soft);
  margin-bottom: 12px;
}
.vlog-poster img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.vlog-card:hover .vlog-poster img { transform: scale(1.04); }
.vlog-play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,23,31,0.15);
  opacity: 0;
  transition: opacity .2s ease;
}
.vlog-card:hover .vlog-play-badge { opacity: 1; }
.vlog-play-badge span {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--sealwax);
  display: flex; align-items: center; justify-content: center;
  color: var(--parchment);
  font-size: 16px;
}
.vlog-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--parchment);
  margin: 0;
}

/* ---------- Blog category filters ---------- */
.category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: -20px 0 44px;
}
.cat-filter-btn {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid rgba(176,141,87,0.4);
  background: transparent;
  color: var(--parchment-dim);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cat-filter-btn:hover { border-color: var(--brass); color: var(--parchment); }
.cat-filter-btn.active {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}
.blog-search-row { margin-bottom: 36px; }
.blog-search-input {
  width: 100%;
  max-width: 360px;
  font-family: var(--ui);
  font-size: 14px;
  padding: 11px 16px;
  border-radius: 20px;
  border: 1px solid rgba(176,141,87,0.35);
  background: var(--ink-soft);
  color: var(--parchment);
}
.blog-search-input::placeholder { color: var(--muted); }
.blog-search-input:focus { outline: none; border-color: var(--brass); }

/* ---------- Site-wide search page ---------- */
.search-hero-input {
  width: 100%;
  font-family: var(--ui);
  font-size: 16px;
  padding: 16px 22px;
  border-radius: 30px;
  border: 1px solid rgba(176,141,87,0.4);
  background: var(--ink-soft);
  color: var(--parchment);
  margin-bottom: 40px;
}
.search-hero-input::placeholder { color: var(--muted); }
.search-hero-input:focus { outline: none; border-color: var(--brass); }
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.search-result-item {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px 4px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(176,141,87,0.15);
  transition: background .15s ease;
}
.search-result-item:hover { background: rgba(176,141,87,0.06); }
.search-result-thumb {
  flex-shrink: 0;
  width: 96px;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-soft);
  border: 1px solid rgba(176,141,87,0.3);
}
.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-thumb-fallback { width: 100%; height: 100%; }
.search-result-body { min-width: 0; }
.search-result-type {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass);
  margin-bottom: 6px;
}
.search-result-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 4px;
}
.search-result-snippet {
  color: var(--parchment-dim);
  font-size: 14px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .search-result-thumb { width: 72px; }
  .search-result-snippet { white-space: normal; }
}

/* ---------- From the journal (homepage card grid) ---------- */
.journal-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.journal-head-row h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin: 0;
}
.journal-all-link {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}
.journal-all-link:hover { color: var(--brass); }
.journal-divider {
  border: none;
  border-top: 1px solid rgba(176,141,87,0.25);
  margin: 0 0 40px;
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 860px) {
  .journal-grid { grid-template-columns: 1fr; }
}
.journal-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(176,141,87,0.25);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-soft);
  transition: border-color .2s ease;
}
.journal-card:hover { border-color: var(--brass); }
.journal-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--ink-soft);
  overflow: hidden;
}
.journal-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.journal-card:hover .journal-thumb img { transform: scale(1.04); }
.journal-thumb-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: rgba(244,239,226,0.3);
  text-align: center;
  padding: 16px;
}
.journal-dot {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sealwax);
  box-shadow: 0 0 0 3px rgba(20,23,31,0.5);
}
.journal-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.journal-date {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass);
  display: block;
  margin-bottom: 12px;
}
.journal-categories { margin: -4px 0 10px; }
.journal-category-tag {
  display: inline-block;
  font-family: var(--ui);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(176,141,87,0.4);
  color: var(--brass);
  margin: 0 6px 6px 0;
}
.journal-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 12px;
  transition: color .2s ease;
}
.journal-card:hover .journal-title { color: var(--brass); }
.journal-excerpt {
  color: var(--parchment-dim);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}
.journal-read {
  font-family: var(--ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ---------- Blog list ---------- */
.entry-list { display: flex; flex-direction: column; }
.entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 30px 0;
  border-top: 1px solid rgba(176,141,87,0.2);
  text-decoration: none;
  color: inherit;
}
.entry.has-thumb {
  grid-template-columns: 112px 1fr;
  gap: 24px;
  align-items: start;
}
.entry-thumb {
  width: 112px;
  height: 112px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(176,141,87,0.3);
  background: var(--ink-soft);
  flex-shrink: 0;
}
.entry-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.entry:hover .entry-thumb img { transform: scale(1.05); }
.entry:first-child { border-top: none; }
.entry-date {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--brass);
  display: block;
  margin-bottom: 6px;
}
.entry-title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px;
  transition: color .2s ease;
}
.entry:hover .entry-title { color: var(--brass); }
.entry-excerpt {
  color: var(--parchment-dim);
  font-size: 15.5px;
  margin: 0 0 12px;
  max-width: 62ch;
}
.entry-more {
  font-family: var(--ui);
  font-size: 13px;
  color: var(--brass);
}
@media (max-width: 560px) {
  .entry.has-thumb { grid-template-columns: 1fr; }
  .entry-thumb { width: 100%; height: 170px; }
}

/* ---------- Single post ---------- */
.post-header { padding: 70px 0 40px; }
.post-header .entry-date { display: block; margin-bottom: 16px; }
.category-tags { margin-top: 16px; }
.category-tag {
  display: inline-block;
  font-family: var(--ui);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(176,141,87,0.4);
  color: var(--brass);
  margin-right: 8px;
}
.post-header h1 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 600;
  margin: 0;
}
.post-cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(176,141,87,0.3);
  margin: 0 0 50px;
}
.post-content {
  font-size: 18px;
  color: var(--parchment-dim);
}
.post-content p { margin: 0 0 22px; }
.post-content h2 {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  margin: 42px 0 18px;
}
.post-content h3 {
  font-family: var(--display);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
  margin: 34px 0 14px;
}
.post-content blockquote {
  margin: 0 0 24px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--brass);
  color: var(--parchment-dim);
  font-style: italic;
}
.post-content ul, .post-content ol { margin: 0 0 24px; padding-left: 24px; }
.post-content li { margin-bottom: 8px; }
.post-content a {
  color: var(--brass);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.post-content a:hover { color: var(--sealwax); }
.post-content figure,
.post-block-image {
  margin: 0 0 34px;
}
.post-content figure img,
.post-block-image img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(176,141,87,0.3);
}
.post-content figcaption,
.post-block-image figcaption {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--brass);
  margin-top: 10px;
}

/* ---------- Books ---------- */
.subsection-head {
  margin: 0 0 30px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.subsection-head h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}
.books-block + .books-block { margin-top: 64px; }
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px;
}
.book-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.book-cover {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(176,141,87,0.3);
  background: var(--ink-soft);
  margin-bottom: 14px;
  position: relative;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.book-card.is-link:hover .book-cover img { transform: scale(1.04); }
.book-cover .book-cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 15px;
  color: var(--brass);
  text-align: center;
  padding: 16px;
}
.book-cover .read-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,23,31,0.15);
  opacity: 0;
  transition: opacity .2s ease;
}
.book-card.is-link:hover .read-badge { opacity: 1; }
.read-badge span {
  font-family: var(--ui);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--sealwax);
  color: var(--parchment);
}
.book-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 6px;
}
.book-desc {
  color: var(--parchment-dim);
  font-size: 14.5px;
  margin: 0 0 10px;
  line-height: 1.55;
}
.book-buy-link {
  font-family: var(--ui);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px dotted var(--brass);
  align-self: flex-start;
}
.book-buy-link:hover { color: var(--sealwax); border-color: var(--sealwax); }

/* ---------- E-book reader ---------- */
.ebook-frame-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(176,141,87,0.3);
  background: var(--ink-soft);
  margin: 0 0 24px;
}
.ebook-frame-wrap iframe {
  width: 100%;
  height: 82vh;
  min-height: 480px;
  border: none;
  display: block;
}
.ebook-fallback {
  font-family: var(--ui);
  font-size: 14px;
  color: var(--parchment-dim);
  margin-bottom: 40px;
}

/* ---------- Support ---------- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.support-card {
  border: 1px solid rgba(176,141,87,0.3);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--ink-soft);
}
.support-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  margin-bottom: 14px;
}
.support-platform {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 10px;
}
.support-note {
  color: var(--parchment-dim);
  font-size: 14.5px;
  margin: 0 0 16px;
  line-height: 1.55;
  white-space: pre-line;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
  margin-bottom: 46px;
}
.contact-item .contact-label {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass);
  display: block;
  margin-bottom: 8px;
}
.contact-item .contact-value {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--parchment-dim);
}
.contact-item a.contact-value { text-decoration: none; }
.contact-item a.contact-value:hover { color: var(--brass); }
.contact-socials-head {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass);
  display: block;
  margin-bottom: 16px;
}

/* ---------- Placeholder page (Others) ---------- */
.placeholder-block {
  text-align: center;
  padding: 40px 0 30px;
}
.placeholder-block p {
  color: var(--parchment-dim);
  font-size: 16px;
  max-width: 48ch;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
footer.site-footer {
  padding: 50px 0;
  border-top: 1px solid rgba(176,141,87,0.2);
  font-family: var(--ui);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Admin ---------- */
body.admin { background: var(--parchment); color: var(--body-ink); }
.admin-header {
  background: var(--ink);
  color: var(--parchment);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.admin-shell { max-width: 1000px; margin: 0 auto; padding: 40px 28px 100px; }
.admin-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(35,38,32,0.15);
}
.admin-tab {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 18px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.admin-tab.active { color: var(--pine); border-color: var(--pine); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--body-ink);
}
.field .hint { font-family: var(--ui); font-size: 12px; color: var(--muted); margin-top: 6px; }
.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=file],
.field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid rgba(35,38,32,0.25);
  border-radius: var(--radius);
  background: #fff;
  color: var(--body-ink);
}
.field textarea { resize: vertical; min-height: 120px; font-family: var(--ui); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--pine); outline-offset: 1px; }

.card {
  background: #fff;
  border: 1px solid rgba(35,38,32,0.12);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 22px;
}
.card h3 {
  font-family: var(--display);
  font-size: 19px;
  margin: 0 0 20px;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 34px;
  border: 1px solid rgba(35,38,32,0.12);
}
.login-card .seal {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--pine);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--pine);
  margin: 0 auto 20px;
}
.login-card h1 {
  font-family: var(--display);
  font-size: 24px;
  text-align: center;
  margin: 0 0 28px;
}
.login-error {
  font-family: var(--ui);
  font-size: 13px;
  color: var(--sealwax);
  margin-top: 14px;
  display: none;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(35,38,32,0.1);
}
.list-row:first-child { border-top: none; }
.list-row .thumb {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--parchment-dim);
  flex-shrink: 0;
}
.list-row .meta { flex: 1; min-width: 0; }
.list-row .meta .title {
  font-family: var(--ui); font-weight: 600; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.list-row .meta .sub { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.badge {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge.published { background: rgba(62,98,89,0.15); color: var(--pine); }
.badge.draft { background: rgba(107,111,99,0.15); color: var(--muted); }
.badge.category { background: rgba(176,141,87,0.18); color: var(--brass); margin-left: 6px; }

.row-actions { display: flex; gap: 8px; }
.icon-btn {
  font-family: var(--ui);
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(35,38,32,0.2);
  background: #fff;
  cursor: pointer;
  color: var(--body-ink);
}
.icon-btn:hover { border-color: var(--pine); color: var(--pine); }
.icon-btn.danger:hover { border-color: var(--sealwax); color: var(--sealwax); }

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--ui);
  font-size: 13.5px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--brass);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.gallery-admin-item {
  border: 1px solid rgba(35,38,32,0.15);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.gallery-admin-item img { width: 100%; height: 110px; object-fit: cover; }
.gallery-admin-item .gi-body { padding: 8px 10px; }
.gallery-admin-item .gi-body input {
  width: 100%; border: none; font-family: var(--ui); font-size: 12px;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.gallery-admin-item .gi-body input:focus { border-color: var(--pine); outline: none; }
.gallery-admin-item .gi-actions { display: flex; justify-content: space-between; padding: 0 10px 10px; }

/* ---------- Rich text content editor (admin) ---------- */
.category-checks { display: flex; gap: 20px; flex-wrap: wrap; }
.cat-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ui);
  font-size: 14px;
  cursor: pointer;
  color: var(--body-ink);
}
.cat-check input { width: auto; margin: 0; }

.rte-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(35,38,32,0.2);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #faf8f2;
}
.rte-btn {
  font-family: var(--ui);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  color: var(--body-ink);
}
.rte-btn:hover { border-color: rgba(35,38,32,0.2); }
.rte-btn-photo { font-weight: 600; }
.rte-select {
  font-family: var(--ui);
  font-size: 13px;
  padding: 6px 8px;
  border-radius: var(--radius);
  border: 1px solid rgba(35,38,32,0.2);
  background: #fff;
  cursor: pointer;
}
.rte-editor {
  min-height: 260px;
  padding: 16px 18px;
  border: 1px solid rgba(35,38,32,0.2);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  background: #fff;
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.6;
  color: var(--body-ink);
}
.rte-editor:focus { outline: 2px solid var(--pine); outline-offset: -2px; }
.rte-editor:empty:before {
  content: attr(data-placeholder);
  color: var(--muted);
  font-style: italic;
}
.rte-editor p { margin: 0 0 14px; }
.rte-editor h2 { font-family: var(--display); font-size: 22px; margin: 20px 0 12px; }
.rte-editor h3 { font-family: var(--display); font-size: 18px; margin: 18px 0 10px; }
.rte-editor blockquote {
  margin: 0 0 14px;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--brass);
  color: var(--muted);
  font-style: italic;
}
.rte-editor ul, .rte-editor ol { margin: 0 0 14px; padding-left: 22px; }
.rte-editor figure { margin: 0 0 18px; }
.rte-editor figure img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.rte-editor figcaption {
  font-family: var(--ui);
  font-size: 12.5px;
  color: var(--muted);
  padding: 6px 2px;
}
.rte-editor figcaption:focus { outline: 1px solid rgba(62,98,89,0.4); }
.rte-editor figcaption:empty:before {
  content: attr(data-placeholder);
  font-style: italic;
  color: var(--muted);
  opacity: 0.7;
}

/* ---------- Post content block editor (admin) — legacy, kept for old posts ---------- */
.block-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.content-block {
  border: 1px solid rgba(35,38,32,0.15);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}
.content-block textarea {
  width: 100%;
  font-family: var(--ui);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(35,38,32,0.2);
  border-radius: var(--radius);
  min-height: 90px;
  resize: vertical;
}
.content-block img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.content-block input[type=text] {
  width: 100%;
  font-family: var(--ui);
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid rgba(35,38,32,0.2);
  border-radius: var(--radius);
}
.block-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.block-type-label {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.block-actions { display: flex; gap: 6px; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
