/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:       #faf8f4;
  --cream-mid:   #f0ebe2;
  --cream-dark:  #e0d8cc;
  --earth:       #8a6a50;
  --earth-dark:  #5c4033;
  --earth-light: #b8956e;
  --ink:         #2a1f18;
  --ink-mid:     #5a4a40;
  --ink-light:   #8a7a70;
  --accent:      #b85c38;
  --accent-soft: #f5ece6;
  --white:       #ffffff;
  --font-serif:  'Lora', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --max-width:   1100px;
  --radius:      8px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ── */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-logo { display: flex; flex-direction: column; gap: 2px; }

.nav-logo-main {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--earth-dark);
  letter-spacing: 0.01em;
}

.nav-logo-tagline {
  font-size: 0.7rem;
  color: var(--ink-light);
  letter-spacing: 0.06em;
  font-style: italic;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--ink-mid);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink-mid);
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 80vh;
  min-height: 480px;
  max-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.hero-bg-fallback {
  background: linear-gradient(160deg, #c4a882 0%, #8a6a50 50%, #5c4033 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,18,10,0.75) 0%, rgba(30,18,10,0.2) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 56px;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.25;
  max-width: 640px;
}

.hero-title a { color: inherit; }
.hero-title a:hover { text-decoration: underline; text-decoration-color: rgba(255,255,255,0.5); }

.hero-meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-top: 10px;
}

.hero-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: background 0.2s;
}

.hero-btn:hover { background: #9a4a2a; }

/* ── Posts grid ── */
.posts-section { padding: 64px 24px; }

.section-heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--earth-dark);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cream-dark);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(90,60,40,0.1);
}

.post-card-img-link { display: block; }

.post-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-img { transform: scale(1.03); }

.post-card-img-placeholder {
  height: 220px;
  background: linear-gradient(135deg, var(--earth-light), var(--earth));
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-img-placeholder span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

.post-card-body { padding: 20px; }

.post-card-destination {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 6px;
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 6px;
}

.post-card-title a:hover { color: var(--accent); }

.post-card-date {
  font-size: 0.75rem;
  color: var(--ink-light);
  margin-bottom: 10px;
}

.post-card-summary {
  font-size: 0.875rem;
  color: var(--ink-mid);
  line-height: 1.6;
  margin-bottom: 14px;
}

.post-card-link {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.post-card-link:hover { text-decoration: underline; }

/* ── About strip ── */
.about-strip {
  padding: 0 24px 72px;
}

.about-inner {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.about-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--earth);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--earth-dark);
  margin-bottom: 6px;
}

.about-bio {
  font-size: 0.875rem;
  color: var(--ink-mid);
  line-height: 1.6;
  margin-bottom: 10px;
}

.about-link {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

.about-link:hover { text-decoration: underline; }

/* ── Single post ── */
.post-hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  max-height: 640px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,18,10,0.8) 0%, rgba(30,18,10,0.15) 60%, transparent 100%);
}

.post-hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 48px;
}

.post-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}

.post-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.25;
  max-width: 720px;
}

.post-title-plain {
  color: var(--ink);
  margin: 32px 0 8px;
}

.post-header-text {
  padding-top: 48px;
}

.post-meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 10px;
}

.post-header-text .post-meta {
  color: var(--ink-light);
}

.post-body { padding: 56px 24px 72px; }

.post-content {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink);
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--earth-dark);
  margin: 2.5rem 0 1rem;
}

.post-content h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--earth-dark);
  margin: 2rem 0 0.75rem;
}

.post-content p { margin-bottom: 1.5rem; }

.post-content a { color: var(--accent); text-decoration: underline; }

.post-content img {
  width: 100%;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.post-content blockquote {
  border-left: 3px solid var(--earth-light);
  padding: 12px 24px;
  margin: 2rem 0;
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink-mid);
}

.post-content ul, .post-content ol {
  margin: 0 0 1.5rem 1.5rem;
}

.post-content li { margin-bottom: 0.5rem; }

.post-tags {
  max-width: 720px;
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  background: var(--cream-mid);
  border-radius: 20px;
  color: var(--ink-mid);
  border: 1px solid var(--cream-dark);
}

.tag:hover { background: var(--accent-soft); color: var(--accent); }

.post-nav {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-dark);
  font-size: 0.875rem;
  gap: 16px;
}

.post-nav a { color: var(--accent); }
.post-nav a:hover { text-decoration: underline; }
.post-nav-next { text-align: right; }

/* ── List page ── */
.list-page { padding: 56px 24px 72px; }

.list-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--earth-dark);
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cream-dark);
}

/* ── Footer ── */
.site-footer {
  background: var(--earth-dark);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.footer-tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.9); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero { height: 60vh; }
  .about-inner { flex-direction: column; text-align: center; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-nav { flex-direction: column; }
  .post-nav-next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
