/*
Theme Name: Nocturne Lens
Author: Codex
Description: Современная тёмная тема для фотоблога на Bootstrap 5: атмосферная главная, выразительные карточки, плавные анимации и аккуратная типографика публикаций.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nocturne-lens
Tags: blog, photography, dark, portfolio, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --nl-bg: #0b0c0e;
  --nl-surface: #111316;
  --nl-surface-2: #17191d;
  --nl-line: rgba(255, 255, 255, 0.11);
  --nl-line-strong: rgba(255, 255, 255, 0.2);
  --nl-text: #f3f0ea;
  --nl-muted: #a7a39d;
  --nl-accent: #d6aa74;
  --nl-display: "Cormorant Garamond", Georgia, serif;
  --nl-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nl-radius: 1.25rem;
  --nl-radius-lg: 2rem;
  --nl-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --nl-transition: 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  overflow-x: hidden;
  background: var(--nl-bg);
  color: var(--nl-text);
  font-family: var(--nl-sans);
  font-size: 1rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 12% 4%, rgba(214, 170, 116, 0.08), transparent 28rem),
    radial-gradient(circle at 86% 42%, rgba(89, 109, 126, 0.09), transparent 34rem);
  content: "";
  pointer-events: none;
}

::selection {
  background: var(--nl-accent);
  color: #111;
}

a {
  color: var(--nl-accent);
  text-underline-offset: 0.2em;
  transition: color 180ms ease, opacity 180ms ease;
}

a:hover { color: #efd0a9; }

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

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--nl-text);
  font-family: var(--nl-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

p:last-child { margin-bottom: 0; }

.site-main { min-height: 75vh; }

.skip-link {
  position: fixed;
  z-index: 1100;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  transform: translateY(-150%);
  border-radius: 999px;
  background: #fff;
  color: #111;
}

.skip-link:focus { transform: none; }

:focus-visible {
  outline: 2px solid var(--nl-accent);
  outline-offset: 4px;
}

.container { max-width: 900px; }

.section-space { padding-block: clamp(5rem, 10vw, 9rem); }

.eyebrow {
  margin-bottom: 1rem;
  color: var(--nl-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.btn {
  --bs-btn-border-radius: 999px;
  --bs-btn-padding-x: 1.35rem;
  --bs-btn-padding-y: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform var(--nl-transition), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

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

.btn-light {
  --bs-btn-color: #101113;
  --bs-btn-bg: #f3f0ea;
  --bs-btn-border-color: #f3f0ea;
  --bs-btn-hover-color: #101113;
  --bs-btn-hover-bg: var(--nl-accent);
  --bs-btn-hover-border-color: var(--nl-accent);
}

/* Header */
.site-header {
  padding: 0.7rem 0;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(7, 8, 10, 0.66), transparent);
  transition: padding var(--nl-transition), background-color var(--nl-transition), border-color var(--nl-transition), backdrop-filter var(--nl-transition);
}

.site-header.is-scrolled,
.admin-bar .site-header.is-scrolled {
  padding: 0.35rem 0;
  border-color: var(--nl-line);
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
}

.admin-bar .site-header { top: 32px; }

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-family: var(--nl-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.navbar-brand:hover { color: #fff; }

.brand-mark {
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid var(--nl-accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(11, 12, 14, 0.9);
  background: var(--nl-accent);
}

.brand-logo img {
  display: block;
  width: auto;
  max-width: min(240px, 56vw);
  max-height: 48px;
}

.navbar-toggler {
  padding: 0.5rem;
  border-color: var(--nl-line-strong);
  border-radius: 50%;
}

.navbar-toggler:focus { box-shadow: 0 0 0 0.15rem rgba(214, 170, 116, 0.22); }

.navbar-nav .nav-link,
.navbar-nav > li > a {
  position: relative;
  padding: 0.55rem 0.75rem !important;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.navbar-nav .nav-link:hover,
.navbar-nav .current-menu-item > .nav-link,
.navbar-nav .current_page_item > a { color: #fff; }

.navbar-nav .sub-menu {
  min-width: 13rem;
  margin: 0;
  padding: 0.5rem;
  border: 1px solid var(--nl-line);
  border-radius: 1rem;
  background: rgba(17, 19, 22, 0.98);
  list-style: none;
}

.navbar-nav .sub-menu a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 0.6rem;
  color: var(--nl-muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.navbar-nav .sub-menu a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-cta { margin-left: 0.6rem; }

/* Reading progress */
.reading-progress {
  position: fixed;
  z-index: 1100;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
}

.admin-bar .reading-progress { top: 32px; }

.reading-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--nl-accent);
  box-shadow: 0 0 18px rgba(214, 170, 116, 0.7);
}

/* Hero */
.hero {
  position: relative;
  min-height: max(720px, 96svh);
  overflow: hidden;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  background: inherit;
  background-position: center;
  background-size: cover;
  content: "";
  transform: scale(1.03);
  animation: hero-breathe 16s ease-out both;
}

@keyframes hero-breathe { to { transform: scale(1.09); } }

.hero__shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.15) 20%, rgba(8, 9, 11, 0.42) 58%, rgba(8, 9, 11, 0.94) 100%),
    linear-gradient(90deg, rgba(8, 9, 11, 0.5), transparent 70%);
}

.hero__container {
  z-index: 2;
  display: grid;
  min-height: inherit;
  align-items: end;
  padding-top: clamp(8rem, 14vw, 11rem);
}

.hero__row {
  width: auto;
}

.hero__eyebrow { color: #f6d7ae; }

.hero__title {
  max-width: 1100px;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  color: #fff;
  font-size: clamp(4rem, 10vw, 9.5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.82;
  text-wrap: balance;
}

.hero__footer {
  max-width: 1000px;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.28);
}

.hero__excerpt {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,0.76);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero__excerpt p { margin: 0; }

.hero__scroll {
  position: absolute;
  z-index: 3;
  right: 1.5rem;
  bottom: 2.5rem;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
}

.hero__scroll span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 -7px 0 rgba(255,255,255,0.45), 0 7px 0 rgba(255,255,255,0.7);
}

/* Journal */
.journal-section { background: linear-gradient(180deg, #0b0c0e 0%, #0e1013 100%); }

.section-heading { margin-bottom: clamp(3rem, 6vw, 5rem); }

.section-heading h2,
.archive-hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.section-heading > p {
  max-width: 430px;
  color: var(--nl-muted);
}

.story-card {
  overflow: hidden;
  border: 1px solid var(--nl-line);
  border-radius: var(--nl-radius-lg);
  background: var(--nl-surface);
  color: inherit;
  text-decoration: none;
  transition: transform var(--nl-transition), border-color var(--nl-transition), box-shadow var(--nl-transition);
}

.story-card:hover {
  border-color: rgba(214, 170, 116, 0.38);
  color: inherit;
  transform: translateY(-8px);
  box-shadow: var(--nl-shadow);
}

.story-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--nl-surface-2);
}

.story-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,6,0.4), transparent 45%);
  content: "";
  opacity: 0.5;
  transition: opacity var(--nl-transition);
}

.story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.04);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), filter var(--nl-transition);
}

.story-card:hover .story-card__media img { transform: scale(1.055); filter: saturate(1) contrast(1.02); }

.story-card__arrow {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  background: rgba(9,10,11,0.26);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: transform var(--nl-transition), background-color var(--nl-transition);
}

.story-card:hover .story-card__arrow { background: var(--nl-accent); color: #111; transform: rotate(45deg); }

.story-card__body { padding: clamp(1.35rem, 3vw, 2rem); }

.story-card__title {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 500;
}

.story-card__excerpt { color: var(--nl-muted); font-size: 0.92rem; }
.story-card__excerpt p { margin: 0; }

.post-meta {
  color: var(--nl-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-meta a { color: inherit; text-decoration: none; }
.post-meta a:hover { color: var(--nl-accent); }

.meta-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 0.45rem;
  border-radius: 50%;
  background: var(--nl-accent);
  vertical-align: middle;
}

.manifesto {
  padding: clamp(2.2rem, 6vw, 5rem);
  border: 1px solid var(--nl-line);
  border-radius: var(--nl-radius-lg);
  background: linear-gradient(135deg, rgba(214,170,116,0.1), rgba(255,255,255,0.02));
}

.manifesto blockquote {
  margin: 0;
  font-family: var(--nl-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

/* Archives and pages */
.archive-hero,
.page-header {
  padding-top: clamp(9rem, 18vw, 14rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.archive-hero p,
.archive-description { max-width: 620px; margin-top: 1.5rem; color: var(--nl-muted); }

.archive-hero .eyebrow { margin-top: 0; color: var(--nl-accent); }
.archive-hero .archive-description p { margin-top: 0; }

.page-header h1 {
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 500;
}

.page-cover {
  margin-bottom: clamp(4rem, 9vw, 7rem);
}

.page-cover img {
  width: 100%;
  max-height: 72vh;
  border-radius: var(--nl-radius-lg);
  object-fit: cover;
}

.empty-state {
  max-width: 680px;
  margin: 2rem auto;
  padding: clamp(3rem, 8vw, 6rem);
  border: 1px solid var(--nl-line);
  border-radius: var(--nl-radius-lg);
  background: var(--nl-surface);
}

.empty-state h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); }

/* Single post */
.single-hero {
  position: relative;
  display: flex;
  min-height: min(86svh, 920px);
  align-items: flex-end;
  padding: 12rem 0 clamp(4rem, 9vw, 7rem);
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
}

.single-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,8,9,0.2) 10%, rgba(7,8,9,0.56) 60%, rgba(7,8,9,0.96) 100%);
}

.single-hero .post-meta { margin-bottom: 1.5rem; color: rgba(255,255,255,0.7); }

.single-hero h1 {
  max-width: 1200px;
  margin-bottom: 1.5rem;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.88;
  text-wrap: balance;
}

.single-hero__lead {
  max-width: 760px;
  color: rgba(255,255,255,0.74);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.entry-content {
  padding-top: clamp(4.5rem, 9vw, 8rem);
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
  color: #d7d3cc;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
}

.entry-content.container {
  max-width: 980px;
}

.entry-content > * { margin-top: 0; margin-bottom: 1.7em; }
.entry-content > *:last-child { margin-bottom: 0; }

.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 1.7em; margin-bottom: 0.65em; }
.entry-content h2 { font-size: clamp(2.6rem, 5vw, 4.3rem); }
.entry-content h3 { font-size: clamp(2rem, 4vw, 3.2rem); }

.entry-content a { text-decoration-thickness: 1px; }

.entry-content blockquote,
.entry-content .wp-block-quote {
  position: relative;
  margin: clamp(3rem, 7vw, 5rem) 0;
  padding: 0.25rem 0 0.25rem clamp(1.5rem, 4vw, 3rem);
  border: 0;
  border-left: 1px solid var(--nl-accent);
  color: var(--nl-text);
  font-family: var(--nl-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.12;
}

.entry-content blockquote cite { display: block; margin-top: 1rem; color: var(--nl-muted); font-family: var(--nl-sans); font-size: 0.75rem; }

.entry-content figure,
.entry-content .wp-block-image { margin-block: clamp(2.5rem, 6vw, 5rem); }

.entry-content img { border-radius: var(--nl-radius); }

.entry-content figcaption,
.wp-caption-text {
  margin-top: 0.85rem;
  color: var(--nl-muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.entry-content .alignwide {
  width: min(1240px, calc(100vw - 2rem));
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content .alignfull {
  width: 100vw;
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.wp-block-gallery { gap: 1rem !important; }
.wp-block-gallery img { height: 100% !important; object-fit: cover; }

.entry-content .nocturne-lightbox {
  display: block;
  overflow: hidden;
  border-radius: var(--nl-radius);
  cursor: zoom-in;
}

.entry-content .nocturne-lightbox img {
  display: block;
  width: 100%;
  transition: filter var(--nl-transition), transform var(--nl-transition);
}

.entry-content .nocturne-lightbox:hover img {
  filter: brightness(0.88);
  transform: scale(1.012);
}

.glightbox-container {
  font-family: var(--nl-sans);
}

.glightbox-clean .gslide-description {
  border-top: 1px solid var(--nl-line);
  background: #101215;
}

.glightbox-clean .gslide-title {
  color: var(--nl-text);
  font-family: var(--nl-display);
  font-size: 1.35rem;
}

.glightbox-clean .gslide-desc {
  color: var(--nl-muted);
  font-size: 0.82rem;
}

.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background-color: rgba(17, 19, 22, 0.78);
  backdrop-filter: blur(12px);
}

.glightbox-clean .gclose:hover,
.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
  background-color: var(--nl-accent);
}

.wp-block-separator {
  border-color: var(--nl-line);
  opacity: 1;
}

.wp-block-button__link {
  border-radius: 999px;
  background: var(--nl-text);
  color: var(--nl-bg);
  font-family: var(--nl-sans);
  font-size: 0.8rem;
  font-weight: 700;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--nl-line);
}

.post-tags a {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--nl-line);
  border-radius: 999px;
  color: var(--nl-muted);
  font-size: 0.7rem;
  text-decoration: none;
}

.post-tags a:hover { border-color: var(--nl-accent); color: var(--nl-accent); }

.post-author { padding-bottom: clamp(4rem, 8vw, 7rem); }

.author-card {
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid var(--nl-line);
  border-radius: var(--nl-radius-lg);
  background: var(--nl-surface);
}

.author-card img { border-radius: 50%; filter: grayscale(0.25); }
.author-card h2 { margin-bottom: 0.5rem; font-size: 2.2rem; }
.author-card p { color: var(--nl-muted); }

.post-navigation-wrap { padding-bottom: clamp(5rem, 10vw, 9rem); }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--nl-line); border-radius: var(--nl-radius-lg); background: var(--nl-line); }
.post-navigation .nav-previous,
.post-navigation .nav-next { background: var(--nl-surface); }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { display: block; min-height: 10rem; padding: clamp(1.5rem, 4vw, 2.5rem); color: inherit; text-decoration: none; transition: background var(--nl-transition); }
.post-navigation a:hover { background: var(--nl-surface-2); }
.post-navigation span { display: block; margin-bottom: 1rem; color: var(--nl-muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.post-navigation strong { display: block; font-family: var(--nl-display); font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 500; line-height: 1.08; }

/* Comments and forms */
.comments-area { padding-top: 1rem; padding-bottom: clamp(5rem, 10vw, 9rem); }
.comments-title,
.comment-reply-title { margin-bottom: 2.5rem; font-size: clamp(2.5rem, 5vw, 4rem); }
.comment-list { margin: 0 0 4rem; padding: 0; list-style: none; }
.comment-list .children { margin: 1.5rem 0 0 2rem; list-style: none; }
.comment-body { margin-bottom: 1rem; padding: 1.5rem; border: 1px solid var(--nl-line); border-radius: var(--nl-radius); background: var(--nl-surface); }
.comment-meta { margin-bottom: 1rem; }
.comment-author img { margin-right: 0.75rem; border-radius: 50%; }
.comment-metadata { margin-top: 0.35rem; font-size: 0.72rem; }
.comment-metadata a { color: var(--nl-muted); text-decoration: none; }
.comment-content { color: #d1cec7; }
.reply a { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.comment-form label { display: block; margin-bottom: 0.45rem; color: var(--nl-muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--nl-line);
  border-radius: 0.85rem;
  outline: none;
  background: var(--nl-surface);
  color: var(--nl-text);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
textarea:focus { border-color: var(--nl-accent); box-shadow: 0 0 0 3px rgba(214,170,116,0.1); }
.search-form { display: flex; gap: 0.5rem; }
.search-form label { flex: 1; }
.search-submit { padding: 0.75rem 1.1rem; border: 0; border-radius: 999px; background: var(--nl-text); color: var(--nl-bg); font-weight: 700; }

/* Pagination */
.navigation.pagination { margin-top: clamp(3rem, 7vw, 5rem); }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.page-numbers { display: grid; min-width: 2.75rem; height: 2.75rem; padding: 0 0.85rem; place-items: center; border: 1px solid var(--nl-line); border-radius: 999px; color: var(--nl-muted); text-decoration: none; }
.page-numbers:hover,
.page-numbers.current { border-color: var(--nl-accent); background: var(--nl-accent); color: #111; }

/* 404 */
.not-found { min-height: 88vh; padding: 10rem 0 5rem; }
.not-found__code { margin: 0; color: rgba(255,255,255,0.05); font-family: var(--nl-display); font-size: clamp(10rem, 35vw, 26rem); font-weight: 600; letter-spacing: -0.08em; line-height: 0.55; }
.not-found h1 { margin: 0.6rem 0 1rem; font-size: clamp(3rem, 7vw, 6rem); }
.not-found > div > p:not(.eyebrow):not(.not-found__code) { color: var(--nl-muted); }

/* Footer */
.site-footer { padding-bottom: 1.5rem; }
.footer-panel { overflow: hidden; padding: clamp(2rem, 6vw, 5rem); border: 1px solid var(--nl-line); border-radius: var(--nl-radius-lg); background: #101215; }
.footer-title { margin-bottom: 1rem; font-size: clamp(3.5rem, 7vw, 6.5rem); font-weight: 500; }
.footer-description { max-width: 520px; color: var(--nl-muted); }
.footer-heading,
.footer-widget__title { margin-bottom: 1.2rem; font-family: var(--nl-sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-menu li { margin-bottom: 0.65rem; }
.footer-menu a,
.footer-widget a { color: var(--nl-muted); text-decoration: none; }
.footer-menu a:hover,
.footer-widget a:hover { color: var(--nl-text); }
.footer-note,
.footer-widget { color: var(--nl-muted); font-size: 0.88rem; }
.footer-bottom { margin-top: clamp(3rem, 7vw, 6rem); padding-top: 1.5rem; border-top: 1px solid var(--nl-line); color: #74726e; font-size: 0.72rem; letter-spacing: 0.04em; }
.footer-bottom a { color: var(--nl-muted); text-decoration: none; }

/* Reveal motion */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 850ms cubic-bezier(0.22, 1, 0.36, 1), transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.has-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
.has-reveal .row > [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.has-reveal .row > [data-reveal]:nth-child(3) { transition-delay: 160ms; }

/* WordPress essentials */
.alignleft { float: left; margin: 0.4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-right: auto; margin-left: auto; }
.wp-caption { max-width: 100%; }
.gallery-caption { color: var(--nl-muted); }
.bypostauthor > .comment-body { border-color: rgba(214,170,116,0.4); }
.sticky .story-card { border-color: rgba(214,170,116,0.45); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); border: 0; white-space: nowrap; }
.screen-reader-text:focus { z-index: 100000; top: 5px; left: 5px; display: block; width: auto; height: auto; padding: 15px 23px 14px; clip: auto !important; background: #fff; color: #111; font-size: 14px; }

@media (min-width: 992px) {
  .navbar-nav .menu-item-has-children { position: relative; }
  .navbar-nav .sub-menu { position: absolute; top: 100%; left: 0; visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease; }
  .navbar-nav .menu-item-has-children:hover > .sub-menu,
  .navbar-nav .menu-item-has-children:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
}

@media (max-width: 991.98px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .reading-progress { top: 46px; }
  .navbar-collapse { margin-top: 0.75rem; padding: 1rem; border: 1px solid var(--nl-line); border-radius: 1rem; background: rgba(11,12,14,0.96); backdrop-filter: blur(18px); }
  .navbar-nav { align-items: stretch !important; }
  .navbar-nav .nav-link,
  .navbar-nav > li > a { padding: 0.75rem 0.4rem !important; }
  .navbar-nav .sub-menu { border: 0; background: transparent; }
  .nav-cta { margin: 0.8rem 0 0; }
  .hero__scroll { display: none; }
}

@media (max-width: 767.98px) {
  .admin-bar .site-header { top: 46px; }
  .hero { min-height: 780px; }
  .hero__title { font-size: clamp(3.7rem, 18vw, 6rem); line-height: 0.88; }
  .single-hero { min-height: 760px; }
  .single-hero h1 { font-size: clamp(3.6rem, 16vw, 6rem); }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .post-navigation .nav-next { text-align: left; }
  .entry-content .alignwide { width: calc(100vw - 1.5rem); }
  .comment-list .children { margin-left: 0.8rem; padding-left: 0; }
}

@media (max-width: 575.98px) {
  .hero .row { padding-bottom: 1rem !important; }
  .hero__footer { align-items: stretch !important; }
  .hero__footer .btn { width: 100%; }
  .story-card { border-radius: 1.4rem; }
  .manifesto,
  .footer-panel { border-radius: 1.4rem; }
  .search-form { flex-direction: column; }
}

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

@media print {
  .site-header,
  .site-footer,
  .reading-progress,
  .post-navigation-wrap,
  .comments-area { display: none !important; }
  body { background: #fff; color: #111; }
  .single-hero { min-height: auto; padding: 2rem 0; background: none !important; }
  .single-hero__shade { display: none; }
  .single-hero h1,
  .entry-content { color: #111; }
}
