/*
Theme Name: Atlas Journal
Theme URI: https://example.invalid/atlas-journal
Author: ZAIS Travel Network
Description: A lightweight editorial travel theme for destination guides and practical itineraries.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: atlas-journal
*/

:root {
  --accent: #d46848;
  --accent-dark: #9b3d28;
  --ink: #17332f;
  --muted: #63736e;
  --paper: #fbfaf6;
  --wash: #eef3ef;
  --line: #dce3df;
  --white: #fff;
  --shadow: 0 22px 60px rgba(19, 51, 47, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.72 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(251,250,246,.94); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { text-decoration: none; }
.brand-name { display: block; font: 800 25px/1.1 Georgia, serif; letter-spacing: -.02em; }
.brand-tagline { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.menu { display: flex; flex-wrap: wrap; gap: 22px; margin: 0; padding: 0; list-style: none; }
.menu a { text-decoration: none; font-size: 14px; font-weight: 750; }
.menu a:hover { color: var(--accent-dark); }

.hero { position: relative; min-height: 610px; display: grid; align-items: end; overflow: hidden; background: #24433e; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,24,22,.08), rgba(9,24,22,.88)); }
.hero-copy { position: relative; z-index: 1; max-width: 820px; padding: 110px 0 74px; color: var(--white); }
.eyebrow { margin: 0 0 16px; color: #f2c17a; font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.hero h1 { margin: 0; font-size: clamp(50px, 8vw, 92px); line-height: .96; }
.hero p { max-width: 660px; margin: 24px 0 0; font-size: 20px; color: rgba(255,255,255,.88); }
.button { display: inline-flex; margin-top: 26px; padding: 13px 22px; border-radius: 999px; color: var(--white); background: var(--accent); text-decoration: none; font-size: 14px; font-weight: 850; }
.button:hover { background: var(--accent-dark); }

.section { padding: 82px 0; }
.section-alt { background: var(--wash); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.section-heading h2 { max-width: 690px; margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: 1.05; }
.section-heading p { max-width: 390px; margin: 0; color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: 0 10px 32px rgba(20,50,45,.05); }
.post-card-image { display: block; aspect-ratio: 16/10; overflow: hidden; background: #d9e3de; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover img { transform: scale(1.035); }
.post-card-body { padding: 24px; }
.meta { color: var(--accent-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.post-card h3 { margin: 12px 0 11px; font-size: 28px; line-height: 1.15; }
.post-card h3 a { text-decoration: none; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; }
.text-link { display: inline-block; margin-top: 18px; color: var(--accent-dark); font-size: 14px; font-weight: 850; text-decoration: none; }

.editorial-note { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.editorial-note h2 { margin: 0; font-size: clamp(40px, 6vw, 66px); line-height: 1.02; }
.editorial-note p { color: var(--muted); }

.page-header { padding: 88px 0 46px; text-align: center; }
.page-header h1 { max-width: 900px; margin: 0 auto; font-size: clamp(44px, 7vw, 76px); line-height: 1; }
.page-header .deck { max-width: 720px; margin: 24px auto 0; color: var(--muted); font-size: 20px; }
.featured { width: min(1180px, calc(100% - 40px)); margin: 0 auto 56px; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow); }
.featured img { width: 100%; aspect-ratio: 1200/630; object-fit: cover; }
.prose { padding-bottom: 90px; }
.prose > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.prose h2 { margin-top: 48px; font-size: 38px; line-height: 1.15; }
.prose h3 { margin-top: 36px; font-size: 27px; }
.prose p, .prose li { color: #344b46; }
.prose blockquote { padding: 24px 28px; border-left: 5px solid var(--accent); background: var(--wash); font: 22px/1.5 Georgia, serif; }
.prose .wp-block-separator { margin-top: 48px; margin-bottom: 48px; border-color: var(--line); }
.archive-grid { padding-bottom: 90px; }
.pagination { margin-top: 45px; }

.site-footer { padding: 58px 0 26px; color: #dce9e5; background: #102a26; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 45px; }
.site-footer h2, .site-footer h3 { color: var(--white); }
.site-footer h2 { margin: 0; font-size: 34px; }
.site-footer h3 { margin-top: 0; font-size: 19px; }
.site-footer p, .site-footer a { color: #b8cac5; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 8px 0; }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #8fa7a1; font-size: 13px; }

@media (max-width: 850px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: 19px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .editorial-note, .footer-grid { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { min-height: 530px; }
  .hero-copy { padding-bottom: 50px; }
  .menu { gap: 14px; }
  .section { padding: 60px 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 16px; }
  .post-grid { grid-template-columns: 1fr; }
  .page-header { padding-top: 62px; }
}
