:root {
  /* Landing-page palette */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --purple-950: #1a0a2e;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --accent: #3b82f6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04),
            0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-hover: 0 4px 8px rgba(16, 24, 40, 0.08),
                  0 20px 48px rgba(16, 24, 40, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  /* Same dark diagonal gradient as the landing page */
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 55%, #1a0a2e 100%)
              fixed;
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; }

/* The top bar now comes from the shared module (/shared/bar.css + bar.js). */

/* ── Hero (on the gradient) ──────────────────── */
.hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px clamp(20px, 5vw, 48px) 40px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 48px);
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  margin: 0 0 20px;
}
.hero .lead {
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* ── Content region (sits directly on the gradient) ── */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 5vw, 60px) 40px;
}

/* ── Postcards ───────────────────────────────── */
.postcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.postcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.postcard__media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  /* subtle slate→purple tint echoing the hero */
  background: linear-gradient(135deg, #eef2f7, #ede9f6);
  color: #94a3b8;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.postcard__placeholder {
  padding: 6px 12px;
  border: 1px dashed #c3cad8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
}
/* Real cover image fills the media area, cropping to the 16:9 frame. */
.postcard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.postcard__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--slate-900);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
}

.postcard__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
  flex: 1;
}
.postcard__category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.postcard__title {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.postcard__excerpt {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.postcard__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.postcard__author { display: inline-flex; align-items: center; gap: 8px; }
.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  display: inline-block;
}
.dot { color: #cbd5e1; }

/* ── Featured postcard (wide) ────────────────── */
.postcard--feature {
  flex-direction: row;
  margin-bottom: 40px;
}
.postcard--feature .postcard__media {
  flex: 1 1 46%;
  aspect-ratio: auto;
  min-height: 260px;
}
.postcard--feature .postcard__body {
  flex: 1 1 54%;
  justify-content: center;
  padding: 32px 36px;
  gap: 14px;
}
.postcard--feature .postcard__title { font-size: 26px; }
.postcard--feature .postcard__excerpt { font-size: 16px; }

/* ── Grid ────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── CTA (dark, matches hero) ────────────────── */
.cta {
  margin-top: 64px;
  text-align: center;
  background: linear-gradient(135deg, #1e293b, #1a0a2e);
  color: #fff;
  border-radius: 24px;
  padding: 56px 24px;
}
.cta h2 { margin: 0 0 10px; font-size: 30px; font-weight: 800; }
.cta p { margin: 0 0 28px; color: rgba(255, 255, 255, 0.85); font-size: 18px; }
.cta__btn {
  display: inline-block;
  background: #fff;
  color: var(--slate-900);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s;
}
.cta__btn:hover { transform: translateY(-2px); }

/* ── Footer (on the gradient) ────────────────── */
.footer {
  text-align: center;
  padding: 32px 24px 48px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}
.footer a { color: #93c5fd; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .postcard--feature { flex-direction: column; }
  .postcard--feature .postcard__media { min-height: 200px; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; gap: 12px; }
}
