/* ==========================================================================
   Cute Wendy Design System
   ========================================================================== */

:root {
  --color-primary: #7a3550;
  --color-primary-dark: #5c253b;
  --color-secondary: #b08196;
  --color-accent: #3f7d6a;
  --color-accent-hover: #2e5d4e;
  --color-surface: #fdf7f4;
  --color-surface-card: #ffffff;
  --color-ink: #2e131f;
  --color-ink-muted: #5e4752;
  --color-border: rgba(122, 53, 80, 0.12);

  --font-display: 'Quicksand', Georgia, 'Times New Roman', serif;
  --font-body: 'Catamaran', Georgia, 'Times New Roman', serif;

  --stripe-bg-1: #fdf7f4;
  --stripe-bg-2: #f7ebf1;
  --stripe-bg-3: #eff6f2;
  --stripe-bg-4: #f3e9ef;

  --sidebar-width: 270px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.craft-body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--color-ink);
  background-color: var(--color-surface);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover, a:focus {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Layout - Navigation Rail & Main Content
   ========================================================================== */

.craft-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.craft-sidebar {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.craft-brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--color-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.sidebar-nav {
  margin-top: 0.5rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0;
  margin: 0;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-ink-muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.sidebar-footer {
  display: none;
}

.craft-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.craft-content {
  flex: 1;
  width: 100%;
}

.mobile-footer {
  padding: 2rem 1.5rem;
  background-color: var(--color-primary-dark);
  color: var(--color-surface);
  text-align: center;
  font-size: 0.95rem;
}

.mobile-footer a {
  color: var(--color-secondary);
}

.mobile-footer a:hover {
  color: var(--color-surface);
}

.mobile-meta-links {
  margin-top: 0.5rem;
}

/* Desktop Rail Layout */
@media (min-width: 900px) {
  .craft-app {
    flex-direction: row;
  }

  .craft-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    border-bottom: none;
    border-right: 1px solid var(--color-border);
    padding: 3rem 2rem 2rem;
    justify-content: space-between;
    z-index: 100;
    overflow-y: auto;
  }

  .sidebar-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-title {
    font-size: 2.1rem;
  }

  .brand-subtitle {
    margin-top: 0.25rem;
  }

  .sidebar-nav {
    margin-top: 2.5rem;
    margin-bottom: auto;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.85rem;
  }

  .nav-link {
    font-size: 1.15rem;
    display: inline-block;
  }

  .sidebar-footer {
    display: block;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
  }

  .footer-details {
    font-size: 0.85rem;
    color: var(--color-ink-muted);
  }

  .footer-meta-links {
    margin-top: 0.35rem;
  }

  .craft-viewport {
    margin-left: var(--sidebar-width);
  }

  .mobile-footer {
    display: none;
  }
}

/* ==========================================================================
   Homepage Split Hero
   ========================================================================== */

.hero-bipartite {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: auto;
}

.hero-banner-field {
  background-color: var(--color-primary);
  color: var(--color-surface);
  padding: 3.5rem 1.75rem;
  display: flex;
  align-items: center;
}

.banner-inner {
  max-width: 580px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-surface);
  padding: 0.35rem 0.85rem;
  border-radius: 3px;
  margin-bottom: 1.25rem;
}

.hero-display-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1.12;
  font-weight: 700;
  color: var(--color-surface);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.3rem;
  line-height: 1.5;
  color: rgba(253, 247, 244, 0.9);
  font-weight: 400;
}

.hero-editorial-field {
  background-color: var(--color-surface);
  padding: 3.5rem 1.75rem;
  display: flex;
  align-items: center;
}

.editorial-inner {
  max-width: 680px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-ink);
}

.editorial-inner h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.editorial-inner p {
  margin-bottom: 1.25rem;
}

@media (min-width: 900px) {
  .hero-bipartite {
    flex-direction: row;
    min-height: 70vh;
  }

  .hero-banner-field,
  .hero-editorial-field {
    flex: 1;
    width: 50%;
    padding: 4.5rem 3.5rem;
  }
}

/* ==========================================================================
   Section Pitch / Workroom Pillars
   ========================================================================== */

.workroom-pillars {
  background-color: #f5e9ef;
  padding: 3.5rem 1.75rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.pillars-container {
  max-width: 1000px;
  margin: 0 auto;
}

.pillars-section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 700px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  background-color: var(--color-surface-card);
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(46, 19, 31, 0.04);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-size: 1.025rem;
  line-height: 1.6;
  color: var(--color-ink-muted);
}

/* ==========================================================================
   Articles Stripe Stack
   ========================================================================== */

.articles-stripe-stack {
  width: 100%;
}

.stripe-stack-header {
  padding: 3rem 1.75rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stack-heading {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--color-primary);
}

.stripe-stack-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.stripe-row {
  width: 100%;
  padding: 3.5rem 1.75rem;
  transition: background-color 0.2s ease;
}

.stripe-color-1 { background-color: var(--stripe-bg-1); }
.stripe-color-2 { background-color: var(--stripe-bg-2); }
.stripe-color-3 { background-color: var(--stripe-bg-3); }
.stripe-color-4 { background-color: var(--stripe-bg-4); }

.stripe-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.stripe-item-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.stripe-item-title a {
  color: var(--color-ink);
  text-decoration: none;
}

.stripe-item-title a:hover {
  color: var(--color-primary);
}

.stripe-item-summary {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-ink-muted);
  margin-bottom: 1rem;
}

.stripe-item-meta {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Header for list pages */
.section-page-header {
  background-color: var(--color-primary);
  color: var(--color-surface);
  padding: 4rem 1.75rem;
}

.section-header-inner {
  max-width: 800px;
  margin: 0 auto;
}

.section-page-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  color: var(--color-surface);
}

.section-page-lead {
  font-size: 1.3rem;
  line-height: 1.5;
  color: rgba(253, 247, 244, 0.9);
}

/* ==========================================================================
   Single Article & Page Layout
   ========================================================================== */

.single-article-container {
  width: 100%;
}

.article-header {
  background-color: var(--color-primary);
  color: var(--color-surface);
  padding: 4rem 1.75rem 3.5rem;
}

.article-header-inner {
  max-width: 780px;
  margin: 0 auto;
}

.article-kicker {
  margin-bottom: 1rem;
}

.kicker-link, .kicker-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-secondary);
  text-decoration: none;
}

.kicker-link:hover {
  color: var(--color-surface);
}

.article-main-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1.18;
  font-weight: 700;
  color: var(--color-surface);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.article-standfirst {
  font-size: 1.3rem;
  line-height: 1.6;
  color: rgba(253, 247, 244, 0.92);
  margin-bottom: 1.5rem;
}

.article-meta-bar {
  font-size: 0.95rem;
  color: var(--color-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
}

.article-body-wrapper {
  padding: 4rem 1.75rem 6rem;
  background-color: var(--color-surface);
}

/* ==========================================================================
   Editorial Prose Typography & Lists Rule (MANDATORY REQUIREMENT)
   "Include a list rule that covers BOTH the article prose container AND the homepage intro container."
   ========================================================================== */

.sewing-prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-ink);
}

.sewing-prose p {
  margin-bottom: 1.75rem;
}

.sewing-prose h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.3;
  color: var(--color-primary);
  margin-top: 2.75rem;
  margin-bottom: 1rem;
}

.sewing-prose h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.35;
  color: var(--color-accent);
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

.sewing-prose blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-ink-muted);
  background-color: rgba(63, 125, 106, 0.05);
  border-radius: 0 4px 4px 0;
}

.sewing-prose hr {
  border: 0;
  height: 1px;
  background-color: var(--color-border);
  margin: 3rem 0;
}

/* LIST RULE MANDATORY: COVERS BOTH ARTICLE PROSE CONTAINER AND HOMEPAGE INTRO CONTAINER */
.sewing-prose ul,
.sewing-prose ol,
.hero-intro ul,
.hero-intro ol {
  padding-left: 2rem;
  margin-top: 1.25rem;
  margin-bottom: 1.75rem;
}

.sewing-prose li,
.hero-intro li {
  margin-bottom: 0.65rem;
  line-height: 1.75;
}

.sewing-prose strong,
.hero-intro strong {
  color: var(--color-primary-dark);
}

/* Table styling within article body */
.sewing-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1.05rem;
}

.sewing-prose th,
.sewing-prose td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.sewing-prose th {
  font-family: var(--font-display);
  background-color: rgba(122, 53, 80, 0.06);
  color: var(--color-primary);
  font-weight: 700;
}

/* Prevent horizontal scroll on small viewports */
@media (max-width: 480px) {
  .hero-display-title {
    font-size: 2.1rem;
  }
  .article-main-title,
  .section-page-title {
    font-size: 2.1rem;
  }
  .stripe-item-title {
    font-size: 1.65rem;
  }
  .stripe-row {
    padding: 2.5rem 1.25rem;
  }
  .sewing-prose ul,
  .sewing-prose ol,
  .hero-intro ul,
  .hero-intro ol {
    padding-left: 1.5rem;
  }
}
