:root {
  --bg: #f7f3ee;
  --ink: #3c2f1f;
  --muted: #7a6956;
  --accent: #ff6b6b;
  --surface: rgba(255, 255, 255, 0.9);
  --border: rgba(60, 47, 31, 0.12);
  font-family: "Crimson Text", Georgia, serif;
  font-size: 18px;
  color: var(--ink);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

.writing-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: .5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.stage-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stage-label {
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-size: 0.75rem;
  color: rgba(60, 47, 31, 0.6);
}

.stage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.stage-pill {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: rgba(60, 47, 31, 0.65);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.stage-pill.current {
  background: var(--ink);
  color: #fff7ef;
  border-color: var(--ink);
}

.writing-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: visible;
}

.writing-hero h1 {
  font-size: 3.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
}

.writing-hero p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(60, 47, 31, 0.85);
  margin-bottom: 0;
}

.writing-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: visible;
  margin-top: 0.5rem;
}

.writing-panel {
  padding: 1.6rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 25px 60px rgba(60, 47, 31, 0.08);
  position: relative;
}

.writing-panel-with-connector {
  margin-right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.4rem;
  font-size: 0.7rem;
  color: rgba(60, 47, 31, 0.6);
}

.panel-title {
  font-size: 1.6rem;
  margin: 0.8rem 0;
  font-weight: 400;
}

.panel-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(60, 47, 31, 0.85);
}

.excerpt {
  font-style: italic;
}

.text-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
  width: 100%;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(60, 47, 31, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.8rem;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  /* margin-top: 1.5rem; */
  width: fit-content;
}

.cta-button::after {
  content: '→';
  font-size: 1rem;
}

.cta-button:hover {
  background: var(--ink);
  color: #fefaf5;
}


.cta-panel {
  padding: 2.5rem;
  border-radius: 26px;
  background: #fffdf9;
  border: 1px solid rgba(255, 107, 107, 0.2);
  box-shadow: 0 30px 70px rgba(60, 47, 31, 0.1);
  text-align: left;
}

.cta-label {
  text-transform: uppercase;
  letter-spacing: 0.35rem;
  font-size: 0.75rem;
  color: rgba(60, 47, 31, 0.6);
}

.cta-panel h2 {
  font-size: 2.4rem;
  margin: 0.8rem 0;
  font-weight: 400;
}

.cta-panel p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(60, 47, 31, 0.8);
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  margin-top: 1.2rem;
}

.primary-cta::after {
  content: "→";
}

.primary-cta:hover {
  background: var(--ink);
  color: #fff7ef;
}

.secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--muted);
  margin-left: 1rem;
}

.secondary-cta::after {
  content: "↗";
  font-size: 0.85rem;
}

.secondary-cta:hover {
  color: var(--ink);
}

.cta-note {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(60, 47, 31, 0.55);
}

.footer-note {
  margin-top: 4rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.footer-note p {
  margin: 0;
}

@media (max-width: 640px) {
  .writing-shell {
    padding: 0rem 1.25rem 3rem;
  }

  .writing-hero h1 {
    font-size: 2.4rem;
  }

  .cta-panel {
    padding: 2rem;
  }

  .footer-note {
    margin-top: 3rem;
    font-size: 0.85rem;
  }
}
