/*
Theme Name: Wanderloom
Theme URI: https://wanderloom.com/
Author: Wanderloom
Description: A fast, lightweight, magazine-style travel blog theme. No page builder, no bundled plugins, built-in SEO, schema, table of contents, newsletter, contact form and ad slots.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.7
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: wanderloom
Tags: blog, news, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
  --ink: #12302F;
  --ink-2: #1E4A48;
  --coral: #E06A4E;
  --coral-d: #C4553B;
  --gold: #D8A24A;
  --sand: #F7F1E8;
  --paper: #FFFDF9;
  --text: #1F2A2A;
  --muted: #5B6867;
  --line: #E7DFD3;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(18, 48, 47, .25);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral-d); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 999; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 780px; }
.section { padding: 72px 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: #DCE7E5; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-d); margin-bottom: 8px; }
.section--dark .eyebrow { color: var(--gold); }
.link-more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-more::after { content: " \2192"; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 0; background: var(--coral); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--coral-d); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 253, 249, .94); -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.site-brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.site-brand img { height: 40px; width: auto; }
.site-brand .custom-logo { max-height: 44px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a { display: block; white-space: nowrap; padding: 10px 12px; font-size: .95rem; font-weight: 500; color: var(--text); text-decoration: none; border-radius: 8px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--coral-d); background: var(--sand); }
.main-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 230px; display: none; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.header-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--sand); }
.nav-toggle { display: none; }
.search-panel { display: none; border-top: 1px solid var(--line); padding: 18px 0; background: var(--paper); }
.search-panel.is-open { display: block; }

/* ---------- Search form ---------- */
.search-form { display: flex; background: #fff; border-radius: 999px; padding: 6px; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 640px; }
.search-form input[type=search] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 18px; outline: none; font-size: 1rem; }
.search-form button { border-radius: 999px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; color: #fff; background: var(--ink); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 29, .35) 0%, rgba(10, 30, 29, .55) 60%, rgba(10, 30, 29, .85) 100%); }
.hero__content { position: relative; z-index: 2; padding: 80px 20px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 4.6rem); max-width: 900px; margin-bottom: 18px; }
.rotator { display: inline-block; color: var(--gold); font-style: italic; min-width: 4ch; transition: opacity .35s, transform .35s; }
.rotator.is-out { opacity: 0; transform: translateY(12px); }
.hero__lead { font-size: 1.15rem; max-width: 620px; color: #E9F0EE; margin-bottom: 28px; }
.hero__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; font-size: .9rem; align-items: center; }
.hero__chips a { color: #fff; text-decoration: none; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; }
.hero__chips a:hover { background: #fff; color: var(--ink); }
.hero__credit { position: absolute; right: 16px; bottom: 12px; z-index: 2; font-size: .72rem; color: rgba(255, 255, 255, .7); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--coral-d); text-decoration: none; position: relative; z-index: 2; }
.card__title { font-size: 1.25rem; margin: 8px 0 10px; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__excerpt { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.card__meta { margin-top: auto; font-size: .82rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.card--overlay { color: #fff; border: 0; min-height: 300px; justify-content: flex-end; background: var(--ink); }
.card--overlay .card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.card--overlay::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 35%, rgba(8, 25, 24, .88)); pointer-events: none; }
.card--overlay .card__body { position: relative; z-index: 2; flex: 0; }
.card--overlay .card__title a, .card--overlay .card__meta { color: #fff; }
.card--overlay .card__cat { color: var(--gold); }
.card--row { flex-direction: row; }
.card--row .card__media { width: 42%; aspect-ratio: auto; flex-shrink: 0; }

/* Mosaic */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 20px; }
.mosaic > :first-child { grid-row: span 2; }
.mosaic > :first-child .card__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.mosaic > :nth-child(4) { grid-column: span 2; }

/* Category chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; gap: 8px; align-items: center; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .92rem; }
.chip:hover, .chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { opacity: .65; }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.cat-tile { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; text-decoration: none; color: #fff; background: var(--ink-2); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 25, 24, .85)); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile span { position: relative; z-index: 2; padding: 18px; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.cat-tile small { display: block; font-family: var(--sans); font-size: .8rem; font-weight: 500; opacity: .8; margin-top: 4px; }

/* Tips list */
.tips-list { counter-reset: tip; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.tip-item { counter-increment: tip; display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.tip-item::before { content: counter(tip, decimal-leading-zero); font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--coral); line-height: 1; }
.tip-item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tip-item h3 a { color: var(--ink); text-decoration: none; }
.tip-item p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Split budget/luxury */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.split__col { border-radius: 20px; padding: 32px; }
.split__col--budget { background: #EAF2EF; }
.split__col--luxury { background: var(--ink); color: #D7E3E1; }
.split__col--luxury h2, .split__col--luxury h3 a { color: #fff; }
.split__col--luxury .eyebrow { color: var(--gold); }
.mini-post { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(0, 0, 0, .08); align-items: center; }
.split__col--luxury .mini-post { border-color: rgba(255, 255, 255, .12); }
.mini-post img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.mini-post h3 { font-size: 1.05rem; margin: 0; }
.mini-post h3 a { color: var(--ink); text-decoration: none; }

/* Newsletter */
.newsletter { position: relative; border-radius: 24px; padding: clamp(32px, 6vw, 64px); background: var(--coral); color: #fff; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.newsletter::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--gold); opacity: .35; }
.newsletter h2 { color: #fff; margin-bottom: 10px; }
.newsletter p { margin: 0; color: #FFF1EC; }
.newsletter-form { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter-form input[type=email] { flex: 1 1 220px; min-width: 0; padding: 14px 20px; border-radius: 999px; border: 0; }
.newsletter-form .btn { background: var(--ink); }
.newsletter-form .btn:hover { background: #0A1E1D; }
.newsletter-form small { flex-basis: 100%; color: #FFE6DE; font-size: .8rem; }
.newsletter-form small a { color: #fff; }

/* Gallery / social */
.gallery-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.gallery-strip a { aspect-ratio: 1; overflow: hidden; border-radius: 10px; display: block; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-strip a:hover img { transform: scale(1.08); }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.social-links a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); color: inherit; }
.social-links a:hover { background: var(--coral); color: #fff; }
.social-links--light a { background: var(--sand); color: var(--ink); }

/* Ads */
.ad-slot { margin: 40px auto; text-align: center; max-width: 100%; overflow: hidden; }
.ad-slot__label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 6px; }
.ad-slot--sidebar { margin: 0 0 24px; }

/* ---------- Page headers / archives ---------- */
.page-hero { background: var(--sand); padding: 48px 0 44px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 10px; }
.page-hero .lead { color: var(--muted); font-size: 1.1rem; max-width: 720px; margin: 0; }
.page-hero--image { position: relative; color: #fff; background: var(--ink); padding: 110px 0 60px; border: 0; overflow: hidden; }
.page-hero--image img.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero--image .wrap { position: relative; z-index: 2; }
.page-hero--image h1, .page-hero--image .lead, .page-hero--image .breadcrumbs, .page-hero--image .breadcrumbs a { color: #fff; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--coral-d); }
.pagination { margin-top: 48px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; }
.pagination .current, .pagination .page-numbers:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty-state { text-align: center; padding: 60px 20px; }

/* ---------- Single post ---------- */
.post-hero { padding: 40px 0 0; }
.post-hero .card__cat { display: inline-block; margin-bottom: 10px; }
.post-hero h1 { max-width: 920px; }
.post-dek { font-size: 1.2rem; color: var(--muted); max-width: 760px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; font-size: .9rem; color: var(--muted); margin: 18px 0 28px; }
.post-meta img { width: 40px; height: 40px; border-radius: 50%; }
.post-meta a { color: var(--ink); font-weight: 600; text-decoration: none; }
.post-meta svg, .search-form .btn svg { display: inline-block; vertical-align: -3px; }
.post-figure { margin: 0 0 40px; }
.post-figure img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 20px; }
.post-figure figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.post-sidebar { position: sticky; top: 96px; }
.toc { background: var(--sand); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 24px; }
.toc summary { font-family: var(--serif); font-weight: 700; color: var(--ink); cursor: pointer; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; }
.toc[open] summary::after { content: "\2212"; }
.toc ol { margin: 12px 0 0; padding-left: 18px; font-size: .92rem; }
.toc li { margin: 6px 0; }
.toc ol ol { margin-top: 4px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a.is-active, .toc a:hover { color: var(--coral-d); font-weight: 600; }
.toc--inline { display: none; }
.facts { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 32px; background: #fff; }
.facts h2 { font-size: 1.2rem; margin-bottom: 14px; }
.facts dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 24px; margin: 0; }
.facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.disclosure-note { font-size: .85rem; background: #FFF6E6; border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 8px; margin-bottom: 28px; color: #5A4A2A; }
.entry-content { font-size: 1.08rem; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin-top: 1.8em; scroll-margin-top: 96px; }
.entry-content h3 { margin-top: 1.5em; scroll-margin-top: 96px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content img { border-radius: 12px; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; text-align: center; }
.entry-content blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--coral); font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: .95rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--sand); font-weight: 600; }
.entry-content .callout { background: #EAF2EF; border-radius: 12px; padding: 18px 22px; margin: 1.6em 0; }
.entry-content .callout p:last-child { margin: 0; }
.entry-content .product-box { display: flex; gap: 18px; align-items: center; border: 1px dashed var(--gold); border-radius: 14px; padding: 18px; margin: 1.6em 0; background: #FFFCF4; }
.faq { margin: 48px 0 0; }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.faq summary { padding: 16px 20px; font-weight: 600; cursor: pointer; color: var(--ink); }
.faq details > div { padding: 0 20px 16px; color: var(--muted); }
.share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 40px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share strong { margin-right: 6px; font-size: .9rem; }
.share a, .share button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--sand); color: var(--ink); border: 0; cursor: pointer; }
.share a:hover, .share button:hover { background: var(--coral); color: #fff; }
.tags a { display: inline-block; font-size: .82rem; padding: 4px 12px; background: var(--sand); border-radius: 999px; margin: 0 6px 6px 0; text-decoration: none; color: var(--ink); }
.author-box { display: flex; gap: 20px; padding: 28px; border-radius: 20px; background: var(--sand); margin: 40px 0; }
.author-box img { width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0; }
.author-box h3 { margin-bottom: 6px; }
.author-box p { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.related { padding: 64px 0; background: var(--sand); }

/* Comments */
.comments-area { margin-top: 48px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-author img { border-radius: 50%; float: left; margin-right: 12px; }
.comment-meta { font-size: .85rem; color: var(--muted); }
.comment-respond input:not([type=submit]):not([type=checkbox]), .comment-respond textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.comment-respond .submit { padding: 12px 24px; border-radius: 999px; border: 0; background: var(--coral); color: #fff; font-weight: 600; cursor: pointer; }

/* ---------- Forms ---------- */
.wl-form { display: grid; gap: 16px; }
.wl-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wl-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.wl-form input, .wl-form textarea, .wl-form select { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.wl-form input:focus, .wl-form textarea:focus { border-color: var(--ink-2); outline: none; box-shadow: 0 0 0 3px rgba(30, 74, 72, .15); }
.wl-form .hp { position: absolute; left: -9999px; }
.wl-notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; }
.wl-notice--ok { background: #E3F2EA; color: #1D5B3A; }
.wl-notice--err { background: #FCE8E3; color: #8A2E1B; }

/* Static page content */
.page-content { padding: 56px 0 80px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.contact-card { background: var(--sand); border-radius: 20px; padding: 28px; }
.sitemap-cols { columns: 2 280px; column-gap: 48px; }
.sitemap-cols section { break-inside: avoid; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: #0D2423; color: #B9C9C7; padding: 72px 0 0; font-size: .94rem; }
.site-footer a { color: #DCE7E5; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h2 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-brand img { height: 42px; width: auto; margin-bottom: 16px; }
.footer-bottom { margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 20px; display: none; font-size: .9rem; }
.cookie-bar.is-visible { display: block; }
.cookie-bar .actions { display: flex; gap: 8px; margin-top: 12px; }
.cookie-bar .btn { padding: 9px 18px; font-size: .9rem; }

/* WordPress core classes */
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption-text { font-size: .82rem; color: var(--muted); }
.sticky, .bypostauthor, .gallery-caption { }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
  .toc--inline { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: grid; }
  .main-nav { position: fixed; inset: 72px 0 0 0; background: var(--paper); padding: 20px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; margin: 0; }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { font-size: 1.1rem; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 16px; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 320px 240px 240px; }
  .mosaic > :first-child { grid-row: auto; grid-column: span 2; }
  .mosaic > :nth-child(4) { grid-column: auto; }
  .split, .newsletter, .contact-grid { grid-template-columns: 1fr; }
  .tips-list { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .wrap { padding: 0 16px; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 260px; }
  .mosaic > :first-child { grid-column: auto; }
  .card--row { flex-direction: column; }
  .card--row .card__media { width: 100%; aspect-ratio: 3 / 2; }
  .wl-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
  .site-brand img { height: 34px; }
  .search-form .btn { padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .post-sidebar, .share, .related, .ad-slot, .newsletter, .comments-area { display: none !important; }
}
