/*
Theme Name: RotaRoam Editorial
Theme URI: https://rotaroam.com
Author: RotaRoam
Description: A bilingual, editorial travel theme built for useful guides, responsible monetisation and calm reading.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: rotaroam
*/

:root {
  --ink: #15312e;
  --ink-soft: #52615e;
  --paper: #f7f4ec;
  --paper-2: #eee9dd;
  --white: #fffdf8;
  --teal: #0f645c;
  --teal-dark: #0b433e;
  --coral: #d65f42;
  --sun: #e5b85b;
  --line: rgba(21, 49, 46, .16);
  --shadow: 0 18px 50px rgba(21, 49, 46, .11);
  --radius: 22px;
  --wrap: min(1240px, calc(100vw - 40px));
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 9999; padding: 10px 14px; background: var(--ink); color: #fff; transform: translateY(-140%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 80; border-bottom: 1px solid var(--line); background: rgba(247, 244, 236, .9); backdrop-filter: blur(18px); }
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -.04em; text-decoration: none; font-size: 1.22rem; }
.brand-mark { width: 35px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50% 50% 50% 14%; background: var(--teal); color: #fff; font-family: var(--serif); font-style: italic; }
.primary-nav { display: flex; align-items: center; gap: 28px; font-size: .92rem; font-weight: 680; }
.primary-nav a { text-decoration: none; }
.primary-nav a:hover { color: var(--coral); }
.lang-switch { padding: 8px 12px; border: 1px solid var(--ink); border-radius: 999px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-weight: 750; }

.eyebrow { margin: 0 0 14px; color: var(--coral); font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero { padding: clamp(48px, 7vw, 96px) 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(520px, 1.22fr); align-items: center; gap: clamp(42px, 6vw, 90px); }
.hero h1 { max-width: 760px; margin: 0; font-family: var(--serif); font-size: clamp(3.4rem, 6.5vw, 6.9rem); line-height: .91; font-weight: 500; letter-spacing: -.055em; }
.hero h1 em { color: var(--teal); font-weight: 500; }
.hero-copy { max-width: 600px; margin: 26px 0 34px; color: var(--ink-soft); font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-size: .92rem; font-weight: 780; text-decoration: none; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); background: var(--teal); }
.button.ghost { background: transparent; color: var(--ink); }
.hero-media { position: relative; min-height: 600px; }
.hero-media img { width: 100%; height: 100%; min-height: 600px; object-fit: cover; border-radius: 40% 40% 22px 22px / 18% 18% 22px 22px; box-shadow: var(--shadow); }
.hero-note { position: absolute; right: -18px; bottom: 32px; width: 220px; padding: 18px 20px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); transform: rotate(-2deg); }
.hero-note strong { display: block; font-family: var(--serif); font-size: 1.2rem; }
.hero-note span { color: var(--ink-soft); font-size: .78rem; }

.signal-bar { border-block: 1px solid var(--line); background: var(--white); }
.signal-grid { min-height: 78px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.signal { padding: 12px 26px; border-right: 1px solid var(--line); }
.signal:first-child { padding-left: 0; }
.signal:last-child { border: 0; }
.signal strong { display: block; font-family: var(--serif); font-size: 1.2rem; }
.signal span { color: var(--ink-soft); font-size: .78rem; }

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); align-items: end; gap: 50px; margin-bottom: 38px; }
.section-head h2 { max-width: 760px; margin: 0; font-family: var(--serif); font-size: clamp(2.45rem, 4.6vw, 4.7rem); line-height: .98; font-weight: 500; letter-spacing: -.045em; }
.section-head p:last-child { margin: 0; color: var(--ink-soft); }

.featured-grid { display: grid; grid-template-columns: 1.45fr .75fr .75fr; gap: 20px; }
.story-card { position: relative; min-height: 430px; overflow: hidden; border-radius: var(--radius); background: var(--teal-dark); color: #fff; box-shadow: 0 1px 0 var(--line); }
.story-card:first-child { min-height: 620px; grid-row: span 2; }
.story-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.story-card:hover img { transform: scale(1.035); }
.story-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(8,31,29,.85) 100%); }
.story-card-content { position: absolute; z-index: 2; inset: auto 0 0; padding: 28px; }
.story-card .kicker { color: #f7d88f; font-size: .7rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.story-card h3 { margin: 8px 0 12px; font-family: var(--serif); font-size: clamp(1.45rem, 2.3vw, 2.45rem); line-height: 1.03; font-weight: 500; }
.story-card h3 a { text-decoration: none; }
.story-meta { display: flex; gap: 12px; color: rgba(255,255,255,.78); font-size: .78rem; }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.guide-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .25s, box-shadow .25s; }
.guide-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.guide-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.guide-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.guide-card:hover img { transform: scale(1.035); }
.guide-card-body { padding: 24px; }
.guide-card h3 { margin: 9px 0 12px; font-family: var(--serif); font-size: 1.72rem; line-height: 1.08; font-weight: 500; letter-spacing: -.02em; }
.guide-card h3 a { text-decoration: none; }
.guide-card p { margin: 0 0 18px; color: var(--ink-soft); font-size: .92rem; }
.guide-card .read { color: var(--teal); font-weight: 800; font-size: .82rem; text-decoration: none; }
.card-kicker { color: var(--coral); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }

.method { color: #fff; background: var(--teal-dark); }
.method-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.method h2 { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 5rem); line-height: .96; font-weight: 500; }
.method-copy { color: rgba(255,255,255,.72); }
.method-steps { display: grid; gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
.method-step { display: grid; grid-template-columns: 48px 1fr; gap: 22px; padding: 28px; background: var(--teal-dark); }
.method-step > span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--sun); font-family: var(--serif); }
.method-step h3 { margin: 0 0 5px; font-size: 1rem; }
.method-step p { margin: 0; color: rgba(255,255,255,.7); font-size: .9rem; }

.ad-slot { width: 100%; margin: 28px auto; display: grid; place-items: center; min-height: 90px; color: var(--ink-soft); background: rgba(255,255,255,.55); border: 1px dashed var(--line); border-radius: 14px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.ad-slot.is-loaded { min-height: 0; border: 0; background: transparent; }

.article-hero { padding: 54px 0 0; }
.breadcrumbs { color: var(--ink-soft); font-size: .78rem; }
.article-hero h1 { max-width: 1020px; margin: 22px 0 18px; font-family: var(--serif); font-size: clamp(3rem, 6.2vw, 6.5rem); font-weight: 500; line-height: .95; letter-spacing: -.05em; }
.article-dek { max-width: 820px; margin: 0 0 22px; color: var(--ink-soft); font-size: 1.15rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--ink-soft); font-size: .78rem; }
.article-cover { margin: 44px 0 0; aspect-ratio: 2.1 / 1; overflow: hidden; border-radius: var(--radius); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-grid { display: grid; grid-template-columns: minmax(0, 760px) 260px; gap: 80px; align-items: start; padding-top: 58px; padding-bottom: 100px; }
.prose { font-family: var(--serif); font-size: 1.18rem; color: #233c39; }
.prose > p:first-child { font-size: 1.43rem; line-height: 1.48; color: var(--ink); }
.prose h2 { margin: 2.35em 0 .7em; font-family: var(--sans); font-size: 1.75rem; line-height: 1.15; letter-spacing: -.03em; }
.prose h3 { margin: 2em 0 .6em; font-family: var(--sans); font-size: 1.15rem; }
.prose p { margin: 0 0 1.25em; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.prose blockquote { margin: 2em 0; padding: 24px 28px; border-left: 4px solid var(--coral); background: var(--white); font-size: 1.18rem; }
.prose a { color: var(--teal); }
.toc { position: sticky; top: 106px; padding: 22px; border-top: 3px solid var(--ink); background: var(--white); font-size: .8rem; }
.toc strong { display: block; margin-bottom: 12px; }
.toc a { display: block; padding: 7px 0; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.toc a:hover { color: var(--coral); }

.archive-hero { padding: 76px 0 42px; }
.archive-hero h1, .page-content h1 { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 6vw, 6rem); font-weight: 500; line-height: .96; }
.page-content { max-width: 820px; padding: 76px 0 110px; }
.page-content .entry-content { margin-top: 30px; font-family: var(--serif); font-size: 1.14rem; }
.pagination { margin-top: 45px; }

.site-footer { padding: 70px 0 28px; color: #fff; background: #0a2926; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 70px; }
.site-footer .brand { color: #fff; }
.site-footer h3 { margin: 0 0 14px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer p, .site-footer a { color: rgba(255,255,255,.7); font-size: .86rem; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.58); font-size: .72rem; }

.consent { position: fixed; z-index: 100; right: 18px; bottom: 18px; width: min(440px, calc(100vw - 36px)); padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 14px; color: var(--ink-soft); font-size: .82rem; }
.consent-actions { display: flex; gap: 8px; }
.consent button { padding: 9px 13px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-size: .76rem; font-weight: 750; }
.consent button.accept { background: var(--ink); color: #fff; }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 500px; }
  .hero-media img { min-height: 500px; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .story-card:first-child { grid-column: 1 / -1; min-height: 540px; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: minmax(0, 1fr) 230px; gap: 45px; }
}

@media (max-width: 760px) {
  :root { --wrap: min(100% - 28px, 1240px); }
  body { font-size: 16px; }
  .menu-toggle { display: block; }
  .primary-nav { position: fixed; inset: 76px 0 0; display: none; align-content: start; padding: 35px 22px; background: var(--paper); font-size: 1.25rem; }
  .primary-nav.open { display: grid; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: clamp(3.25rem, 15vw, 5rem); }
  .hero-media, .hero-media img { min-height: 390px; }
  .hero-note { right: 12px; bottom: 18px; }
  .signal-grid { grid-template-columns: 1fr 1fr; }
  .signal { border-bottom: 1px solid var(--line); }
  .signal:nth-child(2) { border-right: 0; }
  .section-head, .method-grid, .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .featured-grid, .guide-grid { grid-template-columns: 1fr; }
  .story-card, .story-card:first-child { min-height: 430px; grid-column: auto; }
  .article-cover { aspect-ratio: 4 / 3; }
  .article-grid { grid-template-columns: 1fr; padding-top: 38px; }
  .toc { position: static; grid-row: 1; }
  .footer-bottom { flex-direction: column; }
}

