/*
Theme Name: Batomi
Theme URI: https://batomi.ge
Description: Premium editorial theme for the historical archive of Batumi. HTML/CSS foundation prepared for a WordPress conversion.
Version: 0.1.0
Text Domain: batomi
*/

/* -------------------------------------------------------------------------- */
/* Tokens                                                                     */
/* -------------------------------------------------------------------------- */
:root {
  --bg: #FDF9F3;
  --bg-soft: #F4E9D8;
  --paper: #E7D7BF;
  --brown: #5B3A27;
  --brown-dark: #2C211B;
  --brown-light: #8A735C;
  --sepia: #B89E7A;
  --border: #D6C2A3;
  --text: #272222;
  --text-muted: #6B6B6B;
  --white: #FFFFFF;

  --font-serif: "Noto Serif Georgian", Georgia, "Times New Roman", serif;
  --font-sans: "Noto Sans Georgian", Arial, Helvetica, sans-serif;

  --container: 1440px;
  --container-wide: 1440px;
  --header-h: 76px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(44, 33, 27, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --space: 1.25rem;
}

/* -------------------------------------------------------------------------- */
/* Reset                                                                      */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
}

body.is-loading,
body.lightbox-open { overflow: hidden; }

/* -------------------------------------------------------------------------- */
/* Preloader                                                                  */
/* -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(232, 215, 191, 0.55), transparent 70%),
    var(--bg);
  transition: opacity 0.55s var(--ease), visibility 0.55s var(--ease);
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.preloader__brand {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brown-dark);
  animation: preloader-breathe 1.6s var(--ease) infinite;
}

.preloader__bar {
  display: block;
  width: 96px;
  height: 2px;
  overflow: hidden;
  background: rgba(91, 58, 39, 0.15);
  border-radius: 2px;
}

.preloader__bar-fill {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--brown);
  border-radius: inherit;
  animation: preloader-slide 1.1s var(--ease) infinite;
}

@keyframes preloader-breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes preloader-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__brand,
  .preloader__bar-fill { animation: none; }
  .preloader { transition-duration: 0.01ms; }
}

.site-header,
.menu-item a,
.btn,
.icon-btn,
.nav-toggle,
.entry-meta,
.category-card,
.entry-title,
.footer-col,
.contact-list,
.site-info,
.stat__label,
.newsletter-form,
.search-panel__close,
.header-tools {
  font-family: var(--font-sans);
}

img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
address { font-style: normal; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--brown-dark);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus { top: 1rem; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* -------------------------------------------------------------------------- */
/* Layout                                                                     */
/* -------------------------------------------------------------------------- */
.container {
  width: min(calc(100% - 2.5rem), var(--container));
  margin-inline: auto;
}

.container--wide {
  width: min(calc(100% - 2.5rem), var(--container-wide));
}

.site-main { overflow: clip; }

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.45rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--brown);
  color: var(--white);
}

.btn--primary:hover { background: var(--brown-dark); }

.btn--dark {
  background: var(--brown-dark);
  color: var(--white);
}

.btn--dark:hover { background: #3d2d24; }

.btn--ghost {
  background: transparent;
  color: var(--brown);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--brown);
  background: var(--bg-soft);
}

.btn--sm {
  min-height: 38px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

/* -------------------------------------------------------------------------- */
/* Header  (header.php)                                                       */
/* -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 249, 243, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px rgba(44, 33, 27, 0.05);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.site-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  line-height: 0;
}

.site-branding__logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
}

.site-branding__tagline {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 168px;
  line-height: 1;
}

.site-branding__rule {
  flex: 1;
  height: 1px;
  background: var(--brown-dark);
  opacity: 0.55;
  position: relative;
}

.site-branding__rule::before,
.site-branding__rule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--brown-dark);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.7;
}

.site-branding__rule:first-child::before { left: 0; }
.site-branding__rule:first-child::after { right: -1px; }
.site-branding__rule:last-child::before { left: -1px; }
.site-branding__rule:last-child::after { right: 0; }

.site-branding__domain {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 0.68rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--brown-dark);
  text-transform: none;
}

.main-navigation { justify-self: end; }

.menu {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
}

.menu-item a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--brown-dark);
  transition: color 0.2s var(--ease);
}

.menu-item a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--brown);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.menu-item a:hover,
.current-menu-item a { color: var(--brown); }

.current-menu-item a::after,
.menu-item a:hover::after { transform: scaleX(1); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--brown-dark);
  border-radius: 50%;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--bg-soft);
  color: var(--brown);
}

.icon-btn i { font-size: 1rem; }
.icon-btn--facebook i { font-size: 1.05rem; }

.category-card__icon {
  width: auto;
  height: auto;
  font-size: 1.25rem;
  color: var(--brown);
  margin-bottom: 0.15rem;
  line-height: 1;
}

.bookmark i { font-size: 0.9rem; }

.stat i {
  font-size: 1.6rem;
  color: var(--sepia);
  line-height: 1;
}

.quote-block__lamp {
  width: auto;
  font-size: 2.75rem;
  color: var(--brown);
  margin-top: 0.35rem;
  line-height: 1;
}

.socials i { font-size: 0.9rem; }

.contact-list i {
  width: 16px;
  font-size: 0.9rem;
  color: var(--sepia);
  margin-top: 0.2rem;
  text-align: center;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: var(--brown-dark);
  left: 11px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle span { top: 19px; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.search-panel {
  display: none;
  border-top: 1px solid var(--border);
  background-color: var(--bg);
}

.search-panel.is-open { display: block; }

.search-panel__form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem 1.25rem 1.1rem;
}

.search-panel input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.55rem 0;
  font-size: 1.05rem;
  font-family: var(--font-serif);
  border-bottom: 1px solid var(--border);
  outline: none;
}

.search-panel input:focus { border-bottom-color: var(--brown); }

.search-panel__close {
  color: var(--brown-light);
  font-size: 0.8rem;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(280px, min(50%, 720px)) minmax(0, 1fr);
  height: 400px;
  max-height: 400px;
  overflow: hidden;
  background-color: #F8F0E2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto 0;
}

/* Right image bleeds to viewport edge when page is wider than 1440 */
@media (min-width: 1441px) {
  .hero {
    max-width: none;
    grid-template-columns:
      minmax(0, calc(var(--container) / 2 + (100vw - var(--container)) / 2))
      minmax(0, calc((100vw - var(--container)) / 2 + var(--container) / 2));
  }

  .hero__content {
    padding-left: max(1.5rem, calc((100vw - var(--container)) / 2 + 2rem));
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 2rem 4.5rem 2rem clamp(1.5rem, 4vw, 3.5rem);
  background-color: #F8F0E2;
  background-image: url("../images/hero-paper.png");
  background-repeat: repeat;
  background-size: 120px 124px;
  background-attachment: fixed;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.22;
  color: var(--brown-dark);
  letter-spacing: -0.02em;
}

.hero__text {
  margin-top: 1.15rem;
  margin-bottom: 1.5rem;
  color: var(--brown-dark);
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero__cta {
  min-width: 168px;
  border-radius: 2px;
  align-self: flex-start;
}

.hero__content::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% - 1px);
  width: 78px;
  pointer-events: none;
  background-color: #F8F0E2;
  background-image: url("../images/hero-paper.png");
  background-repeat: repeat;
  background-size: 120px 124px;
  background-attachment: fixed;
  -webkit-mask-image: url("../icons/tear-hero-mask.svg");
  mask-image: url("../icons/tear-hero-mask.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
  filter: drop-shadow(4px 0 8px rgba(44, 33, 27, 0.12));
}

.hero__media {
  position: relative;
  z-index: 1;
  min-height: 0;
  height: 100%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: sepia(0.5) contrast(1.12) grayscale(0.2) brightness(0.92);
}

/* -------------------------------------------------------------------------- */
/* Category rail                                                              */
/* -------------------------------------------------------------------------- */
.category-rail {
  padding: 2.75rem 0 1.5rem;
}

.category-rail__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1.35rem 1.15rem 1.2rem;
  background-color: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 148px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.category-card__icon {
  font-size: 1.25rem;
  color: var(--brown);
  margin-bottom: 0.15rem;
  line-height: 1;
}

.category-card h3 {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brown-dark);
  letter-spacing: 0.01em;
}

.category-card p {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------- */
/* Sections                                                                   */
/* -------------------------------------------------------------------------- */
.section {
  padding: 3.25rem 0;
}

.section__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 600;
  color: var(--brown-dark);
  letter-spacing: -0.02em;
}

.section__line {
  height: 1px;
  background: var(--border);
}

/* -------------------------------------------------------------------------- */
/* Story cards                                                                */
/* -------------------------------------------------------------------------- */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.entry-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border: 1px solid #E6DCCD;
  border-radius: 10px;
  overflow: hidden;
}

.entry-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--paper);
}

.entry-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.58) contrast(1.1) saturate(0.65) brightness(0.93);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}

.entry-card:hover img {
  transform: scale(1.045);
  filter: sepia(0.35) contrast(1.12) saturate(0.8) brightness(0.96);
}

.entry-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.95rem 1rem 1rem;
  flex: 1;
}

.entry-title {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
  transition: color 0.2s var(--ease);
}

.entry-card:hover .entry-title { color: var(--brown); }

.entry-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  font-size: 0.75rem;
  color: #8A8A8A;
  letter-spacing: 0.01em;
}

.entry-meta__info {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bookmark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #9A9A9A;
  flex-shrink: 0;
}

.bookmark:hover { color: var(--brown); }

/* -------------------------------------------------------------------------- */
/* Stats                                                                      */
/* -------------------------------------------------------------------------- */
.stats {
  position: relative;
  isolation: isolate;
  color: var(--bg);
  padding: 4.5rem 0;
  margin-top: 1rem;
}

.stats__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.stats__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.7) contrast(1.05) brightness(0.38) saturate(0.5);
}

.stats::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(44, 33, 27, 0.72), rgba(44, 33, 27, 0.82));
}

.stats__intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.75rem;
}

.stats__intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.stats__intro p {
  color: rgba(253, 249, 243, 0.78);
  font-size: 0.95rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.stat i {
  font-size: 1.6rem;
  color: var(--sepia);
  line-height: 1;
}

.stat__value {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat__label {
  font-size: 0.88rem;
  color: rgba(253, 249, 243, 0.8);
  max-width: 14ch;
}

/* -------------------------------------------------------------------------- */
/* Quote + newsletter                                                         */
/* -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  padding-bottom: 4.5rem;
}

.quote-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.quote-block__lamp {
  font-size: 2.75rem;
  color: var(--brown);
  margin-top: 0.35rem;
  line-height: 1;
}

.quote-block blockquote {
  margin: 0;
  padding-left: 1.35rem;
  border-left: 2px solid var(--brown);
}

.quote-block p {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.55;
  color: var(--brown-dark);
  font-weight: 500;
}

.quote-block p::before {
  content: "“";
  display: block;
  font-size: 3.2rem;
  line-height: 0.6;
  color: var(--sepia);
  margin-bottom: 0.7rem;
  font-family: Georgia, serif;
}

.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-style: normal;
  color: var(--text-muted);
}

.newsletter {
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 1.75rem 1.6rem 1.6rem;
  border-radius: 6px;
}

.newsletter h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--brown-dark);
  margin-bottom: 0.45rem;
}

.newsletter > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.newsletter-form label {
  font-size: 0.78rem;
  color: var(--brown-light);
}

.newsletter-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  outline: none;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--brown);
}

.newsletter-form .btn { width: 100%; }

.newsletter-form__note {
  font-size: 0.8rem;
  color: var(--brown);
}

/* -------------------------------------------------------------------------- */
/* Footer  (footer.php)                                                       */
/* -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--brown-dark);
  color: rgba(253, 249, 243, 0.82);
  padding: 3.75rem 0 1.75rem;
}

.site-footer a { color: rgba(253, 249, 243, 0.82); }
.site-footer a:hover { color: var(--white); }

.site-footer__inner {
  position: relative;
  z-index: 1;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
  line-height: 0;
  color: var(--paper);
}

.site-footer__logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(220px, 70%);
  object-fit: contain;
}

.site-footer__tagline {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 168px;
  line-height: 1;
}

.site-footer__rule {
  flex: 1;
  height: 1px;
  background: var(--paper);
  opacity: 0.55;
  position: relative;
}

.site-footer__rule::before,
.site-footer__rule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--paper);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.7;
}

.site-footer__rule:first-child::before { left: 0; }
.site-footer__rule:first-child::after { right: -1px; }
.site-footer__rule:last-child::before { left: -1px; }
.site-footer__rule:last-child::after { right: 0; }

.site-footer__domain {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 0.68rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--paper);
  text-transform: none;
  line-height: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(2, minmax(120px, 0.75fr)) minmax(200px, 1.05fr);
  gap: 2.5rem 2.75rem;
  align-items: start;
}

.footer-about p {
  max-width: 34ch;
  font-size: 0.88rem;
  line-height: 1.75;
  margin: 0 0 1.25rem;
  color: rgba(253, 249, 243, 0.72);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.socials a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(184, 158, 122, 0.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--paper);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.socials a:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--brown-dark);
}

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 1.15rem;
}

.footer-col ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact-list { display: grid; gap: 0.85rem; }
.contact-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.7rem;
  align-items: start;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.45;
}

.contact-list i {
  width: 16px;
  font-size: 0.88rem;
  color: var(--sepia);
  margin-top: 0.15rem;
  text-align: center;
}

.site-info {
  margin: 2.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(184, 158, 122, 0.22);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(253, 249, 243, 0.5);
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .category-rail__grid { grid-template-columns: repeat(3, 1fr); }
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }
  .main-navigation {
    position: fixed;
    inset: var(--header-h) 0 0 auto;
    width: min(86vw, 360px);
    background: var(--bg);
    border-left: 1px solid var(--border);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    justify-self: stretch;
    box-shadow: -16px 0 40px rgba(44, 33, 27, 0.08);
  }
  .main-navigation.is-open { transform: translateX(0); }
  .menu { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .menu-item a { font-size: 1.05rem; padding: 0.55rem 0; }
  .header-tools { justify-self: end; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
}

@media (max-width: 760px) {
  .container,
  .container--wide { width: min(calc(100% - 1.5rem), var(--container)); }

  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    max-width: none;
    margin-inline: 0;
  }

  .hero__media {
    width: 100%;
    height: 200px;
    order: -1;
  }

  .hero__content::after {
    display: none;
  }

  .hero__content {
    align-items: flex-start;
    text-align: left;
    padding: 1.5rem 1.25rem 2rem;
  }

  .hero__cta {
    align-self: flex-start;
  }

  .category-rail__grid { grid-template-columns: repeat(2, 1fr); }
  .stories-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .section__head { grid-template-columns: 1fr auto; gap: 0.75rem; }
  .section__line { display: none; }
  .quote-block { grid-template-columns: 1fr; justify-items: start; }
  .quote-block__lamp { font-size: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 520px) {
  .category-rail__grid { gap: 0.65rem; }
  .category-card { min-height: 0; padding: 1.1rem 0.95rem; }
  .stats { padding: 3.2rem 0; }
  .site-branding__logo { height: 36px; }
  .site-branding__domain { font-size: 0.62rem; }
  .site-branding__tagline { max-width: 140px; }
}

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

/* -------------------------------------------------------------------------- */
/* Internal pages                                                             */
/* -------------------------------------------------------------------------- */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  background: #F8F0E2;
  background-image: url("../images/hero-paper.png");
  background-repeat: repeat;
  background-size: 120px 124px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumbs a:hover { color: var(--brown); }

.page-hero__title-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.page-hero__icon {
  font-size: 1.6rem;
  color: var(--brown);
  margin-top: 0.35rem;
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--brown-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-hero__lead {
  margin-top: 0.55rem;
  max-width: 54ch;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.65;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2.5rem;
  align-items: start;
}

.archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.archive-sort {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.archive-sort select {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  color: var(--text);
}

.archive-sidebar {
  display: grid;
  gap: 1.25rem;
}

.widget {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1.15rem;
}

.widget__title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown-dark);
  margin-bottom: 0.9rem;
}

.widget-list { display: grid; gap: 0.45rem; }
.widget-list a {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
}
.widget-list a:hover { color: var(--brown); }
.widget-list span { color: var(--text-muted); }

.widget-posts { display: grid; gap: 0.85rem; }
.widget-posts a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.75rem;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brown-dark);
  line-height: 1.35;
}
.widget-posts img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 3px;
  filter: sepia(0.45) contrast(1.08);
}
.widget-posts a:hover { color: var(--brown); }

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 2.5rem;
}

.pagination__btn {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--brown-dark);
  background: var(--white);
}
.pagination__btn:hover,
.pagination__btn.is-active {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-album {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1px solid #E6DCCD;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.gallery-album:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.gallery-album__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper);
}
.gallery-album__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.55) contrast(1.1) saturate(0.6);
  transition: transform 0.6s var(--ease);
}
.gallery-album:hover .gallery-album__media img { transform: scale(1.05); }
.gallery-album__count {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(44, 33, 27, 0.78);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.72rem;
}
.gallery-album__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1rem 1.05rem;
}
.gallery-album__title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown-dark);
}
.gallery-album__open {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--brown);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  background: var(--paper);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.55) contrast(1.1) saturate(0.6);
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--white);
  background: linear-gradient(transparent, rgba(44, 33, 27, 0.75));
}

/* Lightbox */
.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 20, 16, 0.88);
}
.lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 980px);
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}
.lightbox__figure {
  margin: 0;
  width: 100%;
  background: #1a1410;
  border-radius: 6px;
  overflow: hidden;
}
.lightbox__img {
  width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
  filter: sepia(0.35) contrast(1.08);
  margin-inline: auto;
}
.lightbox__caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--paper);
  background: rgba(44, 33, 27, 0.95);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(253, 249, 243, 0.12);
  color: var(--white);
  border: 1px solid rgba(253, 249, 243, 0.2);
}
.lightbox__close { top: -3.2rem; right: 0; }
.lightbox__nav--prev { left: -0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: -0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(253, 249, 243, 0.22); }
.lightbox__share {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  background: var(--brown);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lightbox__share:hover {
  background: #1877f2;
  color: var(--white);
}

.share-facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-light);
  transition: color 0.2s var(--ease);
}
.share-facebook:hover { color: #1877f2; }

.entry-meta .share-facebook {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.entry-meta .share-facebook:hover { color: #1877f2; }

.single__share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.single__share .share-facebook {
  color: var(--brown);
}
.single__share .share-facebook:hover {
  color: #1877f2;
  border-color: #1877f2;
}

.person-card__share,
.video-card__share,
.video-card__share a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--brown-light);
  transition: color 0.2s var(--ease);
}
.person-card__share:hover,
.video-card__share a:hover { color: #1877f2; }

.icon-btn--facebook {
  color: var(--brown-dark);
}
.icon-btn--facebook:hover {
  color: #1877f2;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.person-card {
  background: var(--white);
  border: 1px solid #E6DCCD;
  border-radius: 10px;
  overflow: hidden;
}
.person-card__media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper);
}
.person-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.5) contrast(1.1) grayscale(0.15);
}
.person-card__body { padding: 1rem; }
.person-card__body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--brown-dark);
}
.person-card__body p {
  margin-top: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.video-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  margin-bottom: 0.75rem;
}
.video-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.5) contrast(1.1) brightness(0.85);
}
.video-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.4rem;
  background: rgba(44, 33, 27, 0.28);
}
.video-card__time {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  background: rgba(44, 33, 27, 0.8);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.72rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info { display: grid; gap: 1rem; }

.contact-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.contact-card i {
  color: var(--brown);
  font-size: 1.05rem;
  margin-top: 0.2rem;
}
.contact-card h3 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brown-dark);
  margin-bottom: 0.25rem;
}
.contact-card p {
  font-size: 0.95rem;
  color: var(--text);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 1.6rem;
}
.contact-form h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--brown-dark);
  margin-bottom: 1.15rem;
}
.form-row {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
}
.form-row label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--brown-light);
}
.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  outline: none;
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--brown); }

.narrow { width: min(calc(100% - 2.5rem), 780px); }

.single__header { padding: 2rem 0 1rem; }
.single__meta {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.single__title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.single__hero {
  margin: 1.25rem 0 2rem;
  max-height: 420px;
  overflow: hidden;
}
.single__hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: sepia(0.5) contrast(1.1) saturate(0.65);
}
.single__body {
  padding-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.single__body p { margin-bottom: 1.15rem; }
.single__body blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 2px solid var(--brown);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--brown-dark);
}
.single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 1.5rem;
}
.single__tags a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--brown-dark);
  background: var(--bg-soft);
}
.single__tags a:hover { border-color: var(--brown); }
.single__nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.single__nav a { color: var(--brown); }
.single__nav a:hover { color: var(--brown-dark); }

@media (max-width: 980px) {
  .archive-layout,
  .contact-layout { grid-template-columns: 1fr; }
  .gallery-grid,
  .people-grid,
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox__nav--prev { left: 0.4rem; }
  .lightbox__nav--next { right: 0.4rem; }
  .lightbox__close { top: 0.75rem; right: 0.75rem; }
}

@media (max-width: 600px) {
  .gallery-grid,
  .people-grid,
  .video-grid { grid-template-columns: 1fr; }
  .single__hero img { height: 240px; }
  .page-hero__title-row { gap: 0.75rem; }
}

/* -------------------------------------------------------------------------- */
/* WP theme: custom uploaded icons                                            */
/* -------------------------------------------------------------------------- */
img.batomi-icon--image,
.batomi-icon--image {
  display: block;
  width: 1.35em;
  height: 1.35em;
  object-fit: contain;
}

.category-card__icon.batomi-icon--image {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.15rem;
}

.page-hero__icon.batomi-icon--image {
  width: 2rem;
  height: 2rem;
}

.quote-block__lamp.batomi-icon--image {
  width: 2.75rem;
  height: 2.75rem;
}

.stat .batomi-icon--image {
  width: 1.6rem;
  height: 1.6rem;
  margin-inline: auto;
}

.contact-card .batomi-icon--image,
.contact-list .batomi-icon--image {
  width: 1.1rem;
  height: 1.1rem;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
  font-family: var(--font-sans);
}

.pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--brown-dark);
  border-radius: var(--radius);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  color: var(--white);
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content img { max-width: 100%; height: auto; }
