:root {
  --ink: #1c241e;
  --muted: #5a675c;
  --paper: #f7f2ea;
  --paper-2: #f0e9de;
  --card: #fffcf8;
  --line: rgba(28, 36, 30, 0.10);
  --green: #1f3d30;
  --green-2: #2f5a43;
  --sand: #d9cbb3;
  --max: 1080px;
  --shadow-soft: 0 10px 32px rgba(28, 36, 30, 0.07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1200px 480px at 12% -10%, rgba(217, 203, 179, 0.28), transparent 55%),
    var(--paper);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--green-2); }
.wrap { width: min(var(--max), calc(100% - 2.6rem)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 242, 234, 0.97);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.8rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink);
}
.brand img {
  width: 60px; height: 60px; object-fit: contain;
  background: var(--card);
  border-radius: 50%;
  border: 1px solid var(--line);
}
.brand strong { font-weight: 650; letter-spacing: -0.02em; }
.brand span { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 400; }
nav { display: flex; align-items: center; gap: 1.1rem; font-size: 0.95rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green); color: var(--paper) !important;
  text-decoration: none; font-weight: 600;
  padding: 0.72rem 1.2rem; border-radius: 999px;
  border: 0; box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset;
}
.btn:hover { background: var(--green-2); }
.btn-ghost {
  background: transparent; color: var(--ink) !important;
  border: 1px solid var(--line);
}

.hero { padding: 2.7rem 0 1.2rem; }
.kicker {
  font-size: 0.76rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.85rem;
}
h1, h2, .serif { font-family: Fraunces, Georgia, serif; font-weight: 550; letter-spacing: -0.03em; }
.hero h1 {
  font-size: clamp(2.05rem, 5.2vw, 3.45rem);
  line-height: 1.1; max-width: 18.5ch; margin-bottom: 1.05rem;
}
.hero .lead {
  max-width: 40rem; font-size: 1.14rem; color: var(--muted);
  margin-bottom: 1.65rem; line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.2rem; }

.featured {
  display: grid; gap: 0;
  border-radius: 1.35rem; overflow: hidden;
  border: 1px solid var(--line);
  background: #10161a;
  box-shadow: var(--shadow-soft);
}
.featured img { width: 100%; height: min(62vh, 520px); object-fit: cover; }
.featured .cap {
  padding: 1.15rem 1.3rem 1.3rem;
  color: var(--paper);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  align-items: baseline;
}
.featured .cap a { color: var(--sand); text-decoration: none; font-weight: 600; }
.featured .cap small { color: rgba(246,241,232,0.7); }

.section { padding: 3.5rem 0; }
.section h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); margin-bottom: 1.55rem; }
.grid-3 { display: grid; gap: 1.15rem; }
@media (min-width: 800px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.5rem 1.4rem 1.65rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.65) inset;
}
.panel .n {
  font-family: Fraunces, serif; color: var(--green);
  font-size: 1.35rem; display: block; margin-bottom: 0.4rem;
}
.panel h3 { font-size: 1.06rem; margin-bottom: 0.4rem; }
.panel p { color: var(--muted); font-size: 0.97rem; line-height: 1.55; }

.trust {
  display: grid; gap: 1.25rem;
  background: var(--green);
  color: var(--paper);
  border-radius: 1.35rem;
  padding: 1.85rem 1.55rem;
}
@media (min-width: 800px) { .trust { grid-template-columns: 1.25fr 1fr 1fr; gap: 1.5rem; } }
.trust h2 { color: var(--paper); margin: 0 0 0.45rem; font-size: 1.5rem; }
.trust h3 { font-size: 1.05rem; }
.trust p { color: rgba(247,242,234,0.84); font-size: 0.96rem; line-height: 1.5; }

.feed-lead {
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.85rem;
  font-size: 1.08rem;
}
.feed-list { display: grid; gap: 1.35rem; }
.card {
  display: grid; grid-template-columns: 1fr;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 1.25rem; overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(28, 36, 30, 0.09);
}
@media (min-width: 720px) {
  .card { grid-template-columns: 300px 1fr; }
  .card img { height: 100%; min-height: 200px; }
}
.card img {
  width: 100%; height: 230px; object-fit: cover;
  background: var(--paper-2);
}
.card .body { padding: 1.35rem 1.45rem 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.card .meta { margin-bottom: 0.35rem; letter-spacing: 0.01em; }
.card h2 { font-size: 1.42rem; margin: 0 0 0.45rem; line-height: 1.2; }
.card-line { color: var(--muted); font-size: 0.98rem; line-height: 1.45; }
.meta { color: var(--muted); font-size: 0.88rem; }

article.page { padding: 2.2rem 0 3.8rem; }
article.page .meta {
  margin-bottom: 0.55rem;
  letter-spacing: 0.02em;
}
article.page h1 {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  margin: 0 0 1.35rem;
  max-width: 20ch;
  line-height: 1.12;
}
article.page figure {
  margin: 0 0 1.7rem;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: var(--paper-2);
}
article.page figure img { width: 100%; height: auto; }
article.page .prose {
  max-width: 42rem;
  font-size: 1.12rem;
  line-height: 1.7;
}
article.page .prose p { margin-bottom: 1.1rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.7rem 0 2.1rem;
  color: var(--muted); font-size: 0.9rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 640px) {
  nav .hide-sm { display: none; }
  .brand img { width: 48px; height: 48px; }
  .wrap { width: min(var(--max), calc(100% - 2rem)); }
  .hero { padding-top: 2.1rem; }
}

.featured-rotator {
  position: relative;
  border-radius: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #10161a;
  box-shadow: var(--shadow-soft);
}
.featured-rotator .slides { position: relative; min-height: 220px; background: #10161a; }
.featured-rotator .slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  pointer-events: none;
}
.featured-rotator .slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.featured-rotator .slide img {
  width: 100%;
  height: min(62vh, 520px);
  object-fit: cover;
  display: block;
}
.featured-rotator .cap {
  position: relative; z-index: 2;
  padding: 1rem 1.2rem 1.15rem;
  color: var(--paper);
  background: #141b20;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  align-items: baseline;
  border-top: 1px solid rgba(246,241,232,0.08);
}
.featured-rotator .cap strong { display: block; font-weight: 650; font-size: 1.02rem; }
.featured-rotator .cap span { color: rgba(246,241,232,0.8); font-size: 0.9rem; }
.featured-rotator .cap small { color: rgba(246,241,232,0.62); font-size: 0.85rem; }
.featured-rotator .dots {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 5.2rem;
  display: flex; justify-content: center; gap: 0.15rem;
  pointer-events: none;
}
.featured-rotator .dots button {
  pointer-events: auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0; padding: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.featured-rotator .dots button::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: rgba(246,241,232,0.4);
}
.featured-rotator .dots button.is-active::after { background: var(--sand); width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.featured-rotator .live {
  position: absolute; z-index: 3; top: 0.9rem; left: 0.9rem;
  font-size: 0.74rem; letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(247,242,234,0.92);
  background: rgba(20, 27, 32, 0.72);
  border: 1px solid rgba(246,241,232,0.18);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
}
@media (prefers-reduced-motion: reduce) {
  .featured-rotator .slide { transition: none; }
  .card { transition: none; }
  .card:hover { transform: none; }
}


/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 1.65rem 0.42rem 0.75rem;
  cursor: pointer;
  line-height: 1.2;
  max-width: 9.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%235a675c' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
}
.lang-switch select:hover,
.lang-switch select:focus {
  color: var(--ink);
  outline: none;
  border-color: rgba(28, 36, 30, 0.22);
}
@media (max-width: 640px) {
  .lang-switch select {
    font-size: 0.78rem;
    padding: 0.38rem 1.45rem 0.38rem 0.62rem;
    max-width: 7.8rem;
  }
  nav { gap: 0.55rem; }
}

/* Original-language note on place pages */
.original-note {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
}
.original-note[hidden] { display: none !important; }

/* RTL support */
html[dir="rtl"] .site-header .wrap,
html[dir="rtl"] .site-footer .wrap,
html[dir="rtl"] .featured-rotator .cap,
html[dir="rtl"] .hero-actions {
  direction: rtl;
}
html[dir="rtl"] .brand { flex-direction: row; }
html[dir="rtl"] nav { flex-direction: row; }
html[dir="rtl"] .featured-rotator .live {
  left: auto;
  right: 0.9rem;
}
html[dir="rtl"] .lang-switch select {
  background-position: left 0.65rem center;
  padding: 0.42rem 0.75rem 0.42rem 1.65rem;
}
html[dir="rtl"] .card { direction: rtl; }
html[dir="rtl"] article.page { direction: rtl; }
html[dir="rtl"] .trust { direction: rtl; }
html[dir="rtl"] .grid-3 { direction: rtl; }
