/* ============================================================
   avons.github.io — landing page styles
   landing.css · v1.0
   ============================================================ */

body { font-family: "DM Sans", system-ui, sans-serif;; background: var(--bg); }

/* ── Hero ── */
.hero {
  padding: 56px 64px 48px;
  border-bottom: 1px solid var(--rule);
  max-width: 720px;
}
.hero h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.12;
  color: var(--black); margin-bottom: 20px;
}
.hero h1 em { font-style: italic; font-weight: 400; }
.hero p {
  font-size: 1.05rem; line-height: 1.8;
  color: var(--dark-grey); font-weight: 300;
}

/* ── Layout ── */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  padding: 0 64px;
}
.main-col {
  padding: 48px 56px 80px 0;
  border-right: 1px solid var(--rule);
}
.sidebar { padding: 48px 0 80px 40px; }
.sidebar-section { margin-bottom: 40px; }
.sidebar-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--light-grey); margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--rule);
}
.sidebar p {
  font-size: 0.85rem; line-height: 1.75;
  color: var(--mid-grey); font-weight: 300; margin-bottom: 12px;
}
.sidebar-section:first-child p:nth-child(2),
.sidebar-section:first-child p:nth-child(3) {
  font-family: 'Kalam', cursive;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--dark-grey);

.sidebar a {
  color: var(--dark-grey); text-decoration: none;
  font-size: 0.85rem; font-weight: 400;
}
.sidebar a:hover { color: var(--black); opacity: 1; text-decoration: none; }
}
.sidebar a {
  color: var(--dark-grey); text-decoration: none;
  font-size: 0.85rem; font-weight: 400;
}
.sidebar a:hover { color: var(--black); opacity: 1; text-decoration: none; }

/* ── Topic list ── */
.topic-list { list-style: none; }
.topic-list li {
  padding: 8px 0; border-bottom: 1px solid var(--rule);
  font-size: 0.85rem; color: var(--dark-grey);
  display: flex; justify-content: space-between; align-items: center;
}
.topic-list li a {
  text-decoration: none;
  color: var(--dark-grey);
  font-weight: 400;
  flex: 1;
}
.topic-list li a:hover {
  color: var(--black);
}
.topic-list li:last-child { border-bottom: none; }
.topic-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem; color: var(--light-grey);
  margin-left: 8px;
}

/* ── Curriculum Grid ── */
.curriculum-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 32px;
}
.curriculum-stage {
  border-left: 2px solid var(--rule);
  padding-left: 32px;
  position: relative;
}
.curriculum-stage::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0;
  width: 8px;
  height: 8px;
  background: var(--black);
  border-radius: 50%;
}
.stage-header {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  background: var(--soft-bg);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
}
.curriculum-stage .article-card {
  padding: 24px 0;
}
.curriculum-stage .article-title {
  font-size: 1.25rem;
}

/* ── Article cards ── */
.article-card {
  padding: 32px 0; border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: start;
  text-decoration: none; color: inherit;
  transition: opacity 0.15s;
}
.article-card:hover { opacity: 0.7; }
.article-card:last-child { border-bottom: none; }
.article-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--light-grey);
  margin-bottom: 10px; display: flex; gap: 16px; flex-wrap: wrap;
}
.article-tag { color: var(--dark-grey); font-weight: 500; }
.article-title {
  font-family: "DM Serif Display", serif;
  font-size: 1.5rem; font-weight: 700; line-height: 1.2;
  color: var(--black); margin-bottom: 8px;
}

.article-subtitle {
  font-family: "DM Sans", sans-serif;
  font-style: italic; font-size: 0.92rem;
  color: var(--mid-grey); margin-bottom: 12px;
}
.article-desc {
  font-size: 0.9rem; line-height: 1.7;
  color: var(--dark-grey); font-weight: 300; max-width: 580px;
}
.article-arrow {
  font-size: 1.4rem; color: var(--rule);
  margin-top: 4px; flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}
.article-card:hover .article-arrow { color: var(--black); transform: translateX(4px); }
.featured-marker {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--off-black); color: var(--bg);
  padding: 3px 8px; margin-bottom: 14px;
}

/* ── Animations ── */
.hero, .article-card, .sidebar-section { opacity: 0; animation: fadeUp 0.5s forwards; }
.hero                         { animation-delay: 0.05s; }
.article-card:nth-child(1)    { animation-delay: 0.12s; }
.article-card:nth-child(2)    { animation-delay: 0.20s; }
.article-card:nth-child(3)    { animation-delay: 0.28s; }
.sidebar-section:nth-child(1) { animation-delay: 0.15s; }
.sidebar-section:nth-child(2) { animation-delay: 0.22s; }
.sidebar-section:nth-child(3) { animation-delay: 0.29s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero { padding: 40px 24px 36px; }
  .content-wrap { grid-template-columns: 1fr; padding: 0 24px; }
  .main-col { padding: 40px 0; border-right: none; }
  .sidebar { padding: 0 0 48px; border-top: 1px solid var(--rule); }
}
