:root {
  --ftw-bg: #f8f9fb;
  --ftw-surface: #ffffff;
  --ftw-surface-muted: #f2f4f7;
  --ftw-text: #101214;
  --ftw-text-muted: #59626e;
  --ftw-border: #d8dde3;
  --ftw-border-strong: #bcc5ce;
  --ftw-accent: #c0392b;
  --ftw-accent-dark: #a13024;
  --ftw-radius-sm: 8px;
  --ftw-radius-md: 12px;
  --ftw-radius-lg: 18px;
  --ftw-shadow-soft: 0 8px 20px rgba(16, 18, 20, 0.06);
}

.ftw-homepage {
  background: radial-gradient(circle at top left, #fff 0%, var(--ftw-bg) 48%);
  color: var(--ftw-text);
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
}

.ftw-homepage * {
  box-sizing: border-box;
}

.ftw-nav,
.ftw-hero,
.ftw-section,
.ftw-about,
.ftw-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.ftw-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ftw-border);
}

.ftw-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ftw-text);
  text-decoration: none;
}

.ftw-logo span {
  color: var(--ftw-accent);
}

.ftw-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ftw-nav-links a {
  text-decoration: none;
  color: var(--ftw-text-muted);
  font-size: 14px;
  font-weight: 500;
}

.ftw-nav-links a:hover {
  color: var(--ftw-text);
}

.ftw-nav-cta {
  border: 1px solid var(--ftw-accent);
  color: var(--ftw-accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  padding: 11px 16px;
}

.ftw-nav-cta:hover {
  background: rgba(192, 57, 43, 0.07);
}

.ftw-hero {
  padding-top: 64px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--ftw-border);
}

.ftw-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ftw-accent);
}

.ftw-hero-eyebrow-line {
  width: 26px;
  height: 2px;
  border-radius: 99px;
  background: var(--ftw-accent);
}

.ftw-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.ftw-hero h1 em {
  color: var(--ftw-accent);
  font-style: normal;
}

.ftw-hero-sub {
  margin: 20px 0 0;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ftw-text-muted);
}

.ftw-hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ftw-btn-primary {
  background: var(--ftw-accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 18px;
  display: inline-block;
}

.ftw-btn-primary:hover {
  background: var(--ftw-accent-dark);
}

.ftw-btn-secondary {
  color: var(--ftw-text);
  text-decoration: none;
  border: 1px solid var(--ftw-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 18px;
}

.ftw-btn-secondary:hover {
  border-color: var(--ftw-border-strong);
}

.ftw-hero-stats {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--ftw-border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ftw-stat-num {
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

.ftw-stat-label {
  margin-top: 8px;
  color: var(--ftw-text-muted);
  font-size: 13px;
}

.ftw-section {
  padding-top: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--ftw-border);
}

.ftw-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.ftw-section-title {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.ftw-section-link {
  color: var(--ftw-accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.ftw-pillars {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ftw-pillar {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--ftw-surface);
  border: 1px solid var(--ftw-border);
  border-radius: var(--ftw-radius-md);
  padding: 18px;
  box-shadow: var(--ftw-shadow-soft);
}

.ftw-pillar:hover {
  border-color: var(--ftw-accent);
  transform: translateY(-1px);
}

.ftw-pillar-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ftw-pillar-desc {
  color: var(--ftw-text-muted);
  line-height: 1.5;
  font-size: 14px;
  margin-bottom: 12px;
}

.ftw-pillar-count {
  color: var(--ftw-accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ftw-post-card-featured {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--ftw-surface);
  border: 1px solid var(--ftw-border);
  border-radius: var(--ftw-radius-lg);
  padding: 24px;
  box-shadow: var(--ftw-shadow-soft);
}

.ftw-post-card-featured:hover {
  border-color: var(--ftw-border-strong);
}

.ftw-featured-label {
  display: inline-block;
  border-radius: 999px;
  background: var(--ftw-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 6px 10px;
}

.ftw-featured-title {
  margin-top: 14px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ftw-featured-desc {
  margin-top: 12px;
  color: var(--ftw-text-muted);
  line-height: 1.6;
  max-width: 800px;
}

.ftw-post-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ftw-post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--ftw-radius-md);
  border: 1px solid var(--ftw-border);
  background: var(--ftw-surface);
  padding: 16px;
}

.ftw-post-card:hover {
  border-color: var(--ftw-border-strong);
}

.ftw-post-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ftw-accent);
  text-transform: uppercase;
}

.ftw-post-title {
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.ftw-post-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ftw-text-muted);
}

.ftw-empty {
  margin: 0;
  color: var(--ftw-text-muted);
}

.ftw-podcast-row {
  display: grid;
  gap: 12px;
}

.ftw-ep-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  background: var(--ftw-surface);
  border: 1px solid var(--ftw-border);
  border-radius: var(--ftw-radius-md);
  padding: 14px 16px;
}

.ftw-ep-card:hover {
  border-color: var(--ftw-border-strong);
}

.ftw-ep-play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--ftw-accent);
  color: #fff;
  font-size: 15px;
}

.ftw-ep-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.ftw-ep-meta {
  margin-top: 3px;
  font-size: 13px;
  color: var(--ftw-text-muted);
}

.ftw-email-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px;
}

.ftw-email-bar {
  background: linear-gradient(130deg, #f4f6fa 0%, #edf1f7 100%);
  border: 1px solid var(--ftw-border);
  border-radius: var(--ftw-radius-lg);
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ftw-email-copy h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.ftw-email-copy p {
  margin: 8px 0 0;
  color: var(--ftw-text-muted);
}

.ftw-about {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-top: 20px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ftw-border);
}

.ftw-about-avatars {
  display: flex;
}

.ftw-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-weight: 700;
  border: 2px solid #fff;
}

.ftw-avatar-p {
  margin-left: -10px;
  background: var(--ftw-accent);
}

.ftw-about-text h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.ftw-about-text p {
  margin: 10px 0 14px;
  color: var(--ftw-text-muted);
  line-height: 1.7;
}

.ftw-about-link {
  color: var(--ftw-accent);
  text-decoration: none;
  font-weight: 600;
}

.ftw-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  padding-bottom: 34px;
}

.ftw-footer-left {
  color: var(--ftw-text-muted);
  font-size: 13px;
}

.ftw-footer-links {
  display: flex;
  gap: 14px;
}

.ftw-footer-links a {
  color: var(--ftw-text-muted);
  text-decoration: none;
  font-size: 13px;
}

.ftw-footer-links a:hover {
  color: var(--ftw-text);
}

@media (max-width: 980px) {
  .ftw-nav {
    flex-wrap: wrap;
  }

  .ftw-nav-links {
    width: 100%;
    order: 3;
    padding-top: 8px;
    border-top: 1px solid var(--ftw-border);
    overflow-x: auto;
    white-space: nowrap;
  }

  .ftw-pillars,
  .ftw-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .ftw-hero,
  .ftw-section,
  .ftw-about,
  .ftw-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ftw-email-wrap {
    padding: 24px 16px;
  }

  .ftw-hero-stats {
    grid-template-columns: 1fr;
  }

  .ftw-pillars,
  .ftw-post-grid {
    grid-template-columns: 1fr;
  }

  .ftw-email-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .ftw-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

