:root {
  --soil: #241c3d;
  --moss: #3d4d8c;
  --moss-2: #6a62b0;
  --leaf: #8eb0e8;
  --cream: #f3f0fa;
  --paper: #faf8ff;
  --sand: #d9d2ee;
  --gold: #7f8fe0;
  --clay: #6d5cae;
  --ink: #221c33;
  --muted: #6a6280;
  --line: rgba(34, 28, 51, 0.12);
  --shadow: 0 24px 60px rgba(36, 28, 61, 0.16);
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(127, 143, 224, 0.28), transparent 50%),
    radial-gradient(900px 400px at 100% 0%, rgba(109, 92, 174, 0.16), transparent 45%),
    var(--cream);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), var(--clay));
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.25);
}
.brand b {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
}
nav a {
  text-decoration: none;
  color: var(--muted);
}
nav a:hover, nav a.active { color: var(--moss); }

.hero {
  position: relative;
  min-height: 78vh;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--soil) center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28,24,58,.18) 0%, rgba(36,32,78,.52) 55%, rgba(28,24,58,.78) 100%);
}
.hero-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 48px 48px 42px;
  color: #f6f4ff;
}
.kicker {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(246,244,255,.4);
  border-radius: 999px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
}
.hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.95;
  margin: 18px 0 14px;
  max-width: 14ch;
}
.hero p { max-width: 46ch; margin: 0 0 22px; color: rgba(246,244,255,.88); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--soil);
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
}
.btn.ghost {
  background: transparent;
  color: #f6f4ff;
  border: 1px solid rgba(246,244,255,.45);
  margin-left: 10px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: -34px auto 56px;
  position: relative;
  z-index: 2;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.stat b {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  display: block;
  color: var(--moss);
}
.stat span { color: var(--muted); font-size: 14px; }

h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 12px;
}
.lead { color: var(--muted); max-width: 62ch; }

.section { padding: 24px 0 72px; }
.grid-3, .grid-2 {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.15fr 0.85fr; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(36, 28, 61, 0.08);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.card img, .photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #d4cce8;
}
.card .body { padding: 22px; }
.tag {
  color: var(--clay);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  margin: 8px 0 8px;
  font-weight: 500;
}

.panel {
  background: var(--moss);
  color: #f4f2fb;
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.panel h2 { color: #fff; }
.panel .lead { color: rgba(244,242,251,.78); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}
.num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--soil);
  font-weight: 800;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.month {
  background: var(--paper);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line);
}
.month b { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); }
.month p { margin: 8px 0 0; font-size: 15px; }

.article {
  background: var(--paper);
  border-radius: 28px;
  padding: 42px;
  border: 1px solid var(--line);
}
.article p { font-size: 17px; }
.article h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.05;
  margin: 10px 0 18px;
}
.meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.cover {
  border-radius: 22px;
  height: min(420px, 50vh);
  width: 100%;
  object-fit: cover;
  margin: 8px 0 28px;
}

.note {
  background: #e6e0f4;
  border-left: 4px solid var(--gold);
  padding: 16px 18px;
  border-radius: 0 16px 16px 0;
}

footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.jokes {
  margin: 0 auto 28px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.jokes h2 {
  font-size: 28px;
  margin-bottom: 6px;
}
.jokes .lead { margin: 0 0 18px; }
.joke-carousel { position: relative; }
.joke-slides { position: relative; }
.joke-slide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  animation: jokeFade 0.45s ease;
}
.joke-slide[hidden] {
  display: none !important;
}
@keyframes jokeFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.joke-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.joke-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: var(--sand);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.joke-dot.is-active {
  background: var(--gold);
  transform: scale(1.15);
}
.joke {
  margin: 0;
  padding: 16px 18px;
  background: var(--cream);
  border-radius: 16px;
  border-left: 4px solid var(--gold);
}
.joke p { margin: 0 0 8px; color: var(--ink); }
.joke p:last-child { margin-bottom: 0; }
.joke cite {
  display: block;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  margin-top: 10px;
}

@media (max-width: 900px) {
  .grid-3, .grid-2, .calendar, .stats { grid-template-columns: 1fr; }
  .joke-slide.is-active { grid-template-columns: 1fr; }
  .hero-copy { padding: 28px 22px; }
  .btn.ghost { margin-left: 0; margin-top: 10px; }
  .article, .panel { padding: 24px; }
}
