*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      oklch(22% 0.075 158);
  --green-mid:  oklch(30% 0.09 158);
  --green-light:oklch(42% 0.09 158);
  --gold:       #ddd0b0;
  --gold-dim:   #c9b99a;
  --cream:      oklch(96% 0.016 78);
  --cream-warm: oklch(93% 0.022 76);
  --ink:        oklch(20% 0.055 158);
  --ink-soft:   oklch(38% 0.05 155);
  --ink-faint:  oklch(58% 0.04 152);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body  { font-family: var(--sans); background: var(--cream); color: var(--ink);
        -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ══════════════════════════════════════════════
   INDEX PAGE — atl-* classes
══════════════════════════════════════════════ */

/* HERO */
.atl-hero {
  position: relative;
  background: var(--green);
  overflow: hidden;
}
.atl-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-image: var(--hero-img, none);
  opacity: 0.32;
}
.atl-hero-inner {
  position: relative; z-index: 1;
  max-width: 960px; margin: 0 auto;
  padding: 160px 64px 140px;
}
.atl-eyebrow {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-dim); margin-bottom: 20px;
}
.atl-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 400; line-height: 1.05;
  color: var(--gold); margin-bottom: 18px;
}
.atl-hero-sub {
  font-size: 1rem; font-weight: 300; line-height: 1.6;
  color: oklch(72% 0.03 155);
}

/* PILLS */
.atl-tabs {
  background: var(--cream-warm);
  border-bottom: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 28px 64px;
  gap: 10px;
}
.atl-tabs::-webkit-scrollbar { display: none; }
.atl-tab {
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint);
  text-decoration: none; padding: 11px 26px;
  white-space: nowrap; flex-shrink: 0;
  border: 1px solid oklch(75% 0.03 78 / 0.3);
  border-radius: 999px;
  background: transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.atl-tab:hover { color: var(--ink); border-color: var(--ink-soft); }
.atl-tab.active {
  background: var(--green);
  color: var(--gold);
  border-color: var(--green);
  font-weight: 600;
}

/* CONTENT */
.atl-content { background: var(--cream); padding-bottom: 0; }
.atl-inner { max-width: 1100px; margin: 0 auto; padding: 0 64px; }

/* ROW */
.atl-row {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid oklch(75% 0.03 78 / 0.22);
  text-decoration: none;
}
.atl-row:last-of-type { border-bottom: none; }
.atl-row:hover .atl-row-img img { transform: scale(1.04); }
.atl-row:hover .atl-row-title { color: var(--green-mid); }
.atl-row-img {
  height: 260px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream-warm);
}
.atl-row-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  display: block;
  transition: transform 0.5s ease;
}
.atl-row-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
}
.atl-row-body { display: flex; flex-direction: column; }
.atl-row-cat {
  font-size: 0.63rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-dim);
  margin-bottom: 10px; display: block;
}
.atl-row-title {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 400; line-height: 1.2;
  color: var(--ink); margin-bottom: 12px;
  transition: color 0.15s;
}
.atl-row-excerpt {
  font-size: 0.9rem; line-height: 1.7;
  color: var(--ink-soft); font-weight: 300;
  margin-bottom: 14px;
}
.atl-row-meta {
  display: flex; gap: 6px; align-items: center;
  font-size: 0.72rem; color: var(--ink-faint);
  margin-top: auto;
}
.atl-meta-sep { color: var(--ink-faint); }

/* EMPTY */
.atl-empty { text-align: center; padding: 100px 24px; font-size: 1rem; color: var(--ink-faint); }

/* PAGINATION */
.atl-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; padding: 28px 64px 32px; background: var(--cream);
}
.atl-page-btn {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink);
  text-decoration: none; padding: 12px 28px;
  border: 1px solid oklch(75% 0.03 78 / 0.35);
  transition: background 0.15s, border-color 0.15s;
}
.atl-page-btn:hover { background: var(--cream-warm); border-color: var(--gold-dim); }
.atl-page-info { font-size: 0.82rem; color: var(--ink-faint); }

/* ══════════════════════════════════════════════
   RESPONSIVE — INDEX
══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .atl-hero-inner { padding: 120px 40px 100px; }
  .atl-inner { padding: 0 40px; }
  .atl-tabs { padding: 16px 40px; }
  .atl-row { grid-template-columns: 240px 1fr; gap: 24px; }
  .atl-row-img { height: 154px; }
  .atl-pagination { padding: 0 40px 72px; }
}
@media (max-width: 700px) {
  .atl-hero-inner { padding: 80px 20px 64px; }
  .atl-tabs { padding: 16px 16px; gap: 8px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; }
  .atl-tab { padding: 9px 18px; font-size: 0.68rem; flex-shrink: 0; }
  .atl-inner { padding: 0 20px; }
  .atl-row { grid-template-columns: 160px 1fr; gap: 14px; padding: 18px 0; }
  .atl-row-img { height: 120px; }
  .atl-row-title { font-size: 1.05rem; }
  .atl-row-excerpt { display: none; }
  .atl-pagination { padding: 0 20px 56px; gap: 16px; }
}

/* ══════════════════════════════════════════════
   SINGLE POST — post.php styles (unchanged)
══════════════════════════════════════════════ */

/* Hero overlay */
.post-hero { position: relative; width: 100%; aspect-ratio: 16/9; max-height: 68vh; overflow: hidden; }
.post-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    oklch(15% 0.075 158 / 0.2) 0%,
    oklch(15% 0.075 158 / 0.48) 55%,
    oklch(15% 0.075 158 / 0.74) 100%
  );
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 64px 80px 40px;
}
.post-hero-overlay .section-label { margin-bottom: 16px; }

/* Fallback header */
.post-header { background: var(--green); padding: 72px 48px 64px; }
.post-header .section-label { margin-bottom: 16px; }

.section-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-dim);
}
.post-hero-title {
  font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 400; line-height: 1.1; color: var(--gold);
  max-width: 900px; margin-bottom: 24px;
}
.post-hero-meta { display: flex; gap: 20px; align-items: center; }
.post-hero-meta span { font-size: 0.82rem; color: oklch(65% 0.03 155); }
.post-hero-meta .sep { color: oklch(45% 0.03 155); }

/* Two-column body */
.post-body {
  max-width: 1320px; margin: 0 auto;
  padding: 64px 48px 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px; align-items: start;
}

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--ink-faint); text-decoration: none; margin-bottom: 40px;
}
.back-link::before { content: '←'; }
.back-link:hover { color: var(--ink); }

/* Article content */
.post-content h2 { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; line-height: 1.2; color: var(--ink); margin: 48px 0 16px; }
.post-content h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--ink); margin: 32px 0 12px; }
.post-content p  { font-size: 1.05rem; line-height: 1.85; color: var(--ink-soft); font-weight: 300; margin-bottom: 22px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 20px; }
.post-content li { font-size: 1.05rem; line-height: 1.8; color: var(--ink-soft); font-weight: 300; margin-bottom: 6px; }
.post-content strong { font-weight: 500; color: var(--ink); }
.post-content hr { border: none; border-top: 1px solid oklch(75% 0.03 78 / 0.3); margin: 40px 0; }
.post-content blockquote { border-left: 3px solid var(--gold-dim); padding-left: 24px; margin: 32px 0; }
.post-content blockquote p { font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--ink); font-weight: 400; }
.post-content table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 0.92rem; }
.post-content th { background: var(--cream-warm); font-weight: 500; padding: 10px 14px; text-align: left; border-bottom: 2px solid oklch(75% 0.03 78 / 0.3); }
.post-content td { padding: 10px 14px; border-bottom: 1px solid oklch(75% 0.03 78 / 0.18); color: var(--ink-soft); vertical-align: top; }

/* Post CTA */
.post-cta { background: var(--cream-warm); padding: 64px 48px; text-align: center; border-top: 1px solid oklch(75% 0.03 78 / 0.3); }
.post-cta-eye { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 16px; }
.post-cta h3 { font-family: var(--serif); font-size: 2rem; font-weight: 400; color: var(--ink); margin-bottom: 12px; }
.post-cta p  { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 28px; }
.post-cta a  { display: inline-block; background: var(--green); color: var(--gold); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 16px 44px; text-decoration: none; transition: opacity 0.2s; }
.post-cta a:hover { opacity: 0.85; }

/* Sidebar */
.post-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 40px; }
.sidebar-block { border-top: 1px solid oklch(75% 0.03 78 / 0.3); padding-top: 24px; }
.sidebar-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 20px; }
.sidebar-posts { display: flex; flex-direction: column; gap: 14px; }
.sidebar-card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid oklch(75% 0.03 78 / 0.28); overflow: hidden; background: #fff; transition: box-shadow 0.2s; }
.sidebar-card:hover { box-shadow: 0 4px 16px oklch(20% 0.06 158 / 0.10); }
.sidebar-card:hover .sidebar-card-title { color: var(--green-mid); }
.sidebar-card-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; flex-shrink: 0; }
.sidebar-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.4s ease; display: block; }
.sidebar-card:hover .sidebar-card-img img { transform: scale(1.04); }
.sidebar-card-img--placeholder { background: linear-gradient(135deg, oklch(30% 0.09 158), oklch(35% 0.07 78)); }
.sidebar-card-body { padding: 10px 12px 12px; }
.sidebar-card-cat { font-size: 0.63rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dim); display: block; margin-bottom: 4px; }
.sidebar-card-title { font-size: 0.84rem; font-weight: 400; color: var(--ink); line-height: 1.35; margin-bottom: 4px; transition: color 0.15s; }
.sidebar-card-date { font-size: 0.7rem; color: var(--ink-faint); }
.sidebar-empty { font-size: 0.9rem; color: var(--ink-faint); }
.sidebar-cta-mini { background: var(--cream-warm); padding: 24px; border: none; }
.sidebar-cta-text { font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 18px; }
.sidebar-cta-btn { display: inline-block; background: var(--green); color: var(--gold); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 11px 22px; text-decoration: none; transition: opacity 0.15s; }
.sidebar-cta-btn:hover { opacity: 0.85; }

.post-date { font-size: 0.82rem; color: var(--ink-faint); margin-top: 8px; }

/* Post responsive */
@media (max-width: 1024px) {
  .post-body { grid-template-columns: 1fr; gap: 48px; padding: 48px 32px 64px; }
  .post-sidebar { position: static; flex-direction: row; flex-wrap: wrap; gap: 32px; }
  .sidebar-block { flex: 1 1 280px; }
  .post-hero { aspect-ratio: 16/10; max-height: none; }
  .post-hero-overlay { padding: 48px 40px 28px; }
}
@media (max-width: 700px) {
  .post-hero { aspect-ratio: 4/3; }
  .post-hero-overlay { padding: 32px 28px 20px; }
  .post-hero-title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .post-header { padding: 48px 24px 40px; }
  .post-body { padding: 32px 24px 48px; }
  .post-cta { padding: 40px 24px; }
  .post-sidebar { flex-direction: column; }
}
