:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --surface: #fffdf9;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e0d5;
  --accent: #0f766e;
  --accent-700: #115e59;
  --accent-soft: #ccfbf1;
  --max: 72rem;
  --sidebar: 18rem;
  --measure: 42rem;
  --prose-img-width: 400px;
  --radius: 0.75rem;
  --radius-pill: 999px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-ui: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, #fde68a33, transparent 28rem),
    linear-gradient(180deg, #faf7f2 0%, var(--bg) 40%);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-700); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header + hamburger */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand {
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--accent); text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-menu {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
}
.site-menu a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.site-menu a:hover { color: var(--ink); }
.site-menu-children {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0 0 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-toggle { display: none; }
.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }

.site-main { padding: 2rem 0 4rem; }

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

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .site-header { position: relative; }
  .site-header .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(28, 25, 23, 0.08);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-header .site-nav .site-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .site-header .site-nav .site-menu li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
  }
  .site-header .site-nav .site-menu li:last-child { border-bottom: 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff !important;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 0;
}
.btn:hover { background: var(--accent-700); }

/* Cards / feed */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
@media (max-width: 700px) { .feed-grid { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--line);
  margin: 0;
}
.card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.card h2, .card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--accent); }
.card p { color: var(--muted); font-size: 0.98rem; }

.feed-grid .card:first-child {
  grid-column: 1 / -1;
}
.feed-grid .card:first-child .card-cover { aspect-ratio: 21 / 9; max-height: 22rem; }
.feed-grid .card:first-child h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.feed-grid .card:first-child .card-body { align-items: flex-start; padding: 1.75rem; }

/* Listing (archive / category) */
.archive-header {
  text-align: center;
  padding: 1.5rem 0 2.25rem;
}
.archive-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.archive-header p { color: var(--muted); }

.listing-feed { display: flex; flex-direction: column; gap: 1.75rem; }
.listing-feed .card:first-child .card-cover { aspect-ratio: 16 / 9; max-height: 20rem; }
.listing-feed .card:first-child h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

@media (min-width: 701px) {
  .listing-feed .card:not(:first-child) {
    display: grid;
    grid-template-columns: minmax(12rem, 40%) 1fr;
    align-items: stretch;
  }
  .listing-feed .card:not(:first-child) .card-cover {
    aspect-ratio: auto;
    height: 100%;
    min-height: 10rem;
  }
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-block,
.sidebar .region,
.sidebar .popular {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.region:empty { display: none; }
.popular { margin: 0; border: 0; }
.popular h2 {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.popular-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.popular-item a,
.popular-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
}
.popular-item a:hover,
.popular-link:hover { color: var(--accent); }
.popular-link {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
}
.popular-thumb {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.35rem;
  object-fit: cover;
  background: var(--line);
  display: block;
}
.popular-thumb-empty {
  border: 1px solid var(--line);
}
.popular-title {
  line-height: 1.35;
  padding-top: 0.1rem;
}

/* Article / page hero */
.article-hero { position: relative; margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; }
.article-hero .cover { margin: 0; }
.article-hero .cover img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  border-radius: 0;
}
.article-hero-text { padding: 2rem 1rem; text-align: center; }
.article-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 28ch;
  margin-inline: auto;
}
.article-hero:has(.cover) .article-hero-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.45), rgba(28, 25, 23, 0.72));
  color: #fff;
}
.article-hero:has(.cover) .article-hero-text h1 { color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45); }

/* Prose */
.prose { max-width: var(--measure); font-size: 1.1rem; line-height: 1.75; }
.prose h2, .prose h3 {
  font-family: var(--font-display);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.prose h2 { font-size: 1.55rem; }
.prose h3 { font-size: 1.25rem; }
.prose p { margin-bottom: 1.25rem; }
.prose a { text-decoration: underline; text-underline-offset: 0.18em; }
.prose img { border-radius: 0.5rem; margin: 1.5rem 0; }
.prose p img,
.prose figure:not(.cover) img {
  display: block;
  width: auto;
  max-width: min(100%, var(--prose-img-width, 400px));
  height: auto;
  margin: 1rem 0;
  cursor: zoom-in;
}
.prose blockquote {
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0.5rem;
  margin: 2rem 0;
  text-align: center;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink);
}
.prose ul, .prose ol { margin: 1.25rem 0; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.4rem; }
.prose pre {
  overflow: auto;
  padding: 1rem;
  background: #1c1917;
  color: #f5f5f4;
  border-radius: 0.5rem;
}

.muted { color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-700);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Related — карточки с обложкой (Related Posts) */
.related {
  margin-top: 3rem;
  padding-top: 0.5rem;
}
.related h2 {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: center;
  margin: 0 0 1.75rem;
  color: var(--ink);
}
.related h2::before,
.related h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.related-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}
@media (max-width: 900px) { .related-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .related-list { grid-template-columns: 1fr; } }
.related-item a,
.related-link { color: var(--ink); text-decoration: none; }
.related-item a:hover .related-title,
.related-link:hover .related-title { color: var(--accent); }
.related-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}
.related-thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--line);
  display: block;
  border-radius: 0;
}
.related-thumb-empty { border: 1px solid var(--line); }
.related-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  max-width: 22ch;
}
.related-date {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.related-item .muted { margin: 0.35rem 0 0; font-size: 0.95rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d6d3d1;
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}
.site-footer a { color: #e7e5e4; }
.site-footer a:hover { color: #fff; }
.site-footer .inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}
.site-footer .site-menu { justify-content: center; gap: 1.5rem; }
.site-footer .site-menu a {
  color: #a8a29e;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.site-footer .site-menu a:hover { color: #fff; }
.site-footer .region {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  width: 100%;
}

/* 404 */
.not-found {
  padding: 3rem 0 4rem;
}
.not-found-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}
.not-found-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem 3rem;
  align-items: center;
  max-width: 48rem;
  margin-inline: auto;
}
.not-found-code {
  font-family: var(--font-ui);
  font-size: clamp(5rem, 14vw, 8.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
  text-align: center;
}
.not-found-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.not-found-links {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.not-found-links a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.not-found-links a:hover { text-decoration: underline; }
.not-found-search {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  max-width: 22rem;
}
.not-found-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font: inherit;
  color: var(--ink);
}
.not-found-search .btn {
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1rem;
}
@media (max-width: 700px) {
  .not-found-body { grid-template-columns: 1fr; text-align: center; }
  .not-found-links { list-style-position: inside; padding-left: 0; }
  .not-found-search { margin-inline: auto; }
}

.simple-prose {
  max-width: 36rem;
  margin-inline: auto;
  padding: 4rem 0;
  text-align: center;
}
.simple-prose h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 1rem 0;
}

/* Engagement + comments */
.ww-engagement {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.ww-engagement-meta {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.ww-like {
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.ww-like:hover { color: var(--accent-700); }
.ww-engagement-sep { opacity: 0.5; }
.ww-views {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
}
.ww-views-icon {
  display: inline-flex;
  color: var(--accent);
}
.ww-views-icon svg { display: block; }
.ww-views-count,
.ww-likes-count { font-variant-numeric: tabular-nums; }

/* Share — editorial: иконки в ряд, без пилюль */
.ww-share {
  margin: 0 0 2.25rem;
  padding: 0;
  border: 0;
  text-align: center;
}
.ww-share-label {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 0.85rem;
}
.ww-share-label::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: 0.65rem auto 0;
  background: var(--ink);
}
.ww-share-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}
.ww-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.ww-share-btn .ww-share-icon {
  flex-shrink: 0;
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}
.ww-share-btn-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ww-share-btn:hover,
.ww-share-btn:focus-visible {
  color: var(--accent-700);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-soft);
  outline: none;
}
.ww-share-copy.is-copied,
.ww-share-btn[aria-pressed="true"] {
  color: var(--accent-700);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.ww-comments-title,
.ww-comment-compose-title {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0 0 0.65rem;
}
.ww-comments-title::after,
.ww-comment-compose-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: 0.75rem auto 0;
  background: var(--ink);
}
.ww-comments-list {
  margin: 2rem 0 2.75rem;
  display: flex;
  flex-direction: column;
}
.ww-comments-empty {
  text-align: center;
  margin: 1rem 0 0;
}
.ww-comment {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.ww-comment:first-child { border-top: 1px solid var(--line); }
.ww-comment-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.ww-comment-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ww-comment-name {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.ww-comment-date {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ww-comment-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}
.ww-comment-body p { margin: 0; }

.ww-comment-compose {
  max-width: 40rem;
  margin: 0 auto;
  padding-top: 0.5rem;
}
.ww-comment-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.75rem 0 1.25rem;
}
.ww-comment-form input[type="text"],
.ww-comment-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}
.ww-comment-form input[type="text"]:focus,
.ww-comment-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.ww-comment-form textarea {
  min-height: 8rem;
  resize: vertical;
}
.ww-comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.ww-comment-submit {
  border-radius: 0;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.5rem;
}
.ww-comment-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* N11 widgets */
.ww-toc {
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.ww-toc-list { margin: 0; padding-left: 1.2rem; }
.ww-toc-list a { text-decoration: none; }
.ww-toc-list a:hover { text-decoration: underline; }
.ww-toc-h3 { margin-left: 0.75rem; list-style-type: circle; }
.ww-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.ww-download-body { display: flex; flex-direction: column; gap: 0.2rem; }
.ww-download-meta { color: var(--muted); font-size: 0.9rem; }
.ww-download-link {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid var(--line);
}
.gallery figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }
.callout {
  margin: 1.25rem 0;
  padding: 0.9rem 1rem;
  border-radius: 0.45rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.callout-title { display: block; margin-bottom: 0.35rem; }
.callout-info { border-color: #93c5fd; background: #eff6ff; }
.callout-tip { border-color: #6ee7b7; background: #ecfdf5; }
.callout-warning { border-color: #fcd34d; background: #fffbeb; }
.callout-note { border-color: #d8b4fe; background: #faf5ff; }

/* Lightbox */
.ww-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: oklch(20% 0.02 260 / 0.72);
  cursor: zoom-out;
}
.ww-lightbox.is-open { display: flex; }
.ww-lightbox img {
  max-width: min(100%, 96vw);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 0.35rem;
  box-shadow: 0 1rem 3rem oklch(0% 0 0 / 0.35);
  cursor: default;
}
.ww-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.92);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.ww-lightbox-close:hover { background: #fff; }

.search-page .search-label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.search-page input[type="search"] {
  width: 100%;
  max-width: 32rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  font: inherit;
  background: var(--surface);
}
