/* ==========================================================================
   The Work League — shared stylesheet
   Editorial, calm, premium. One brand source of truth in :root.
   Sections:
     1.  Design tokens (:root)
     2.  Reset & base
     3.  Typography helpers
     4.  Layout / containers
     5.  Skip link & focus
     6.  Buttons & text links
     7.  Header / navigation
     8.  Hero
     9.  Eyebrows & section headers
     10. Cards grid (benefits)
     11. Steps (how it works)
     12. Activities
     13. Split feature sections
     14. Trust list
     15. Closing CTA band
     16. Footer
     17. Playbook (TOC + prose)
     18. Responsive
   ========================================================================== */

/* ------------------------------------------------------------------ */
/* 1. Design tokens                                                    */
/* ------------------------------------------------------------------ */
:root {
  /* Palette — swap the brand from here. */
  --paper:  #F7F4EC; /* page background */
  --green:  #14331F; /* primary brand */
  --brass:  #C2A14D; /* accent */
  --ink:    #1A1D1A; /* body text */
  --muted:  #4A4F49; /* secondary text */
  --border: #DED8C7; /* hairlines, card borders */

  /* Derived surfaces */
  --paper-2: #FBFAF4;         /* slightly lifted card surface */
  --green-soft: #1C4128;      /* hover on green */
  --on-green: #F1EEDF;        /* readable cream text on green */
  --on-green-muted: #C9CDB9;  /* secondary text on green */

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* Spacing rhythm */
  --space-section: clamp(3.5rem, 8vw, 7rem);
  --container: 1120px;
  --measure: 66ch;

  --radius: 14px;
  --radius-sm: 10px;
}

/* ------------------------------------------------------------------ */
/* 2. Reset & base                                                     */
/* ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* clears the sticky header on anchor jumps */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ------------------------------------------------------------------ */
/* 3. Typography helpers                                               */
/* ------------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--green);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.005em; }

p { margin: 0 0 1.1em; }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--muted);
  line-height: 1.6;
}

.prose { max-width: var(--measure); }

.text-center { text-align: center; }

/* ------------------------------------------------------------------ */
/* 4. Layout / containers                                              */
/* ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

section { padding-block: var(--space-section); }

.section-narrow { max-width: 820px; margin-inline: auto; }

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* Small spacing utilities (keep spacing in CSS, not inline attributes). */
.mt-lg { margin-top: 2rem; }
.mt-xl { margin-top: 2.5rem; }
.pt-md { padding-top: 2rem; }

/* ------------------------------------------------------------------ */
/* 5. Skip link & focus                                                */
/* ------------------------------------------------------------------ */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--green);
  color: var(--on-green);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ------------------------------------------------------------------ */
/* 6. Buttons & text links                                             */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--on-green);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--green);
}
.btn-primary:active { transform: translateY(1px); }

/* Primary button sitting on a dark green band inverts on hover. */
.on-green .btn-primary {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--green);
}
.on-green .btn-primary:hover {
  background: var(--on-green);
  border-color: var(--on-green);
  color: var(--green);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--brass); color: var(--green); }

/* Editorial text link with a brass underline that thickens on hover. */
.link {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(var(--brass), var(--brass));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  padding-bottom: 2px;
  transition: background-size 0.18s ease;
}
.link:hover { background-size: 100% 6px; }
.link .arrow { transition: transform 0.18s ease; display: inline-block; }
.link:hover .arrow { transform: translateX(3px); }

/* Links on the dark green bands. */
.on-green .link { color: var(--brass); background-image: linear-gradient(var(--brass), var(--brass)); }
.on-green .link:hover { color: var(--on-green); }

/* ------------------------------------------------------------------ */
/* 7. Header / navigation                                              */
/* ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green);
  color: var(--on-green);
  border-bottom: 1px solid rgba(194, 161, 77, 0.28);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--on-green);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .mark { color: var(--brass); flex: none; }
.wordmark:hover { color: #fff; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.nav a:not(.btn) {
  color: var(--on-green-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.16s ease;
}
.nav a:not(.btn):hover { color: var(--on-green); }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav .btn-primary {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--green);
  padding: 0.6rem 1.15rem;
}
.nav .btn-primary:hover { background: var(--on-green); border-color: var(--on-green); }

/* Mobile toggle — hidden on desktop */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(241, 238, 223, 0.35);
  border-radius: 10px;
  color: var(--on-green);
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ------------------------------------------------------------------ */
/* 8. Hero                                                             */
/* ------------------------------------------------------------------ */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); }
.hero-inner { max-width: 900px; }
.hero h1 { margin-top: 0.6rem; color: var(--green); }
.hero .lead { max-width: 60ch; margin-top: 0.4rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
  margin-top: 2rem;
}

/* ------------------------------------------------------------------ */
/* 9. Eyebrows & section headers                                       */
/* ------------------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brass);
  display: inline-block;
}
.on-green .eyebrow { color: var(--brass); }
.on-green .eyebrow::before { background: var(--brass); }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ------------------------------------------------------------------ */
/* 10. Cards grid (benefits)                                           */
/* ------------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  border-top: 3px solid var(--brass);
}
.card .card-icon { color: var(--green); margin-bottom: 0.9rem; }
.card .card-icon svg { width: 30px; height: 30px; }
.card h3 { color: var(--green); margin-bottom: 0.35rem; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ------------------------------------------------------------------ */
/* 11. Steps (how it works)                                            */
/* ------------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li { counter-increment: step; }
.steps li .step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  margin-bottom: 1rem;
}
.steps li .step-num::before { content: counter(step); }
.steps h3 { color: var(--green); margin-bottom: 0.3rem; }
.steps p { color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------ */
/* 12. Activities                                                      */
/* ------------------------------------------------------------------ */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.activity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green);
}
.activity svg { width: 30px; height: 30px; color: var(--brass); }
.activity.is-more { color: var(--muted); }
.activities-note { color: var(--muted); font-size: 0.98rem; font-style: italic; }

/* ------------------------------------------------------------------ */
/* 13. Split feature sections                                          */
/* ------------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.split .split-body p { color: var(--muted); }
.feature-list {
  list-style: none;
  margin: 1.2rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--brass);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ------------------------------------------------------------------ */
/* 14. Trust list                                                      */
/* ------------------------------------------------------------------ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.trust-item { border-top: 1px solid var(--border); padding-top: 1.1rem; }
.trust-item h3 { font-size: 1.15rem; color: var(--green); margin-bottom: 0.3rem; }
.trust-item p { color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------ */
/* 15. Closing CTA band                                                */
/* ------------------------------------------------------------------ */
.cta-band {
  background: var(--green);
  color: var(--on-green);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-green-muted); }
.cta-inner { max-width: 720px; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
  margin-top: 1.75rem;
}

/* ------------------------------------------------------------------ */
/* 16. Footer                                                          */
/* ------------------------------------------------------------------ */
.site-footer {
  background: var(--green);
  color: var(--on-green-muted);
  border-top: 1px solid rgba(194, 161, 77, 0.28);
  padding-block: 2.5rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.95rem;
}
.site-footer .sep { color: rgba(194, 161, 77, 0.6); }
.site-footer a {
  color: var(--on-green-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-footer a:hover { color: var(--on-green); border-bottom-color: var(--brass); }
.site-footer .e46 { color: var(--brass); font-style: italic; }
.site-footer .spacer { flex: 1 1 auto; }

/* ------------------------------------------------------------------ */
/* 17. Playbook (prose + accordions)                                   */
/* ------------------------------------------------------------------ */
.playbook-layout { display: block; }
.playbook-content { min-width: 0; max-width: var(--measure); margin-inline: auto; }
.playbook-content h2 {
  padding-top: 0.5rem;
  margin-top: 2.5rem;
  scroll-margin-top: 90px;
}
.playbook-content > h2:first-of-type { margin-top: 0; }
.playbook-part {
  border-top: 3px solid var(--brass);
  padding-top: 1.5rem;
  margin-top: 3.5rem;
  scroll-margin-top: 90px;
}
.playbook-part:first-of-type { margin-top: 1.5rem; }
.playbook-content h3 {
  color: var(--green);
  margin-top: 2rem;
  scroll-margin-top: 90px;
  font-size: 1.35rem;
}
.playbook-content h4 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--green);
  text-transform: none;
  letter-spacing: 0;
  margin: 1.5rem 0 0.4rem;
}
.playbook-content p { color: var(--muted); }
.playbook-content ul { padding-left: 1.15rem; margin: 0 0 1.2rem; }
.playbook-content li { margin-bottom: 0.5rem; color: var(--muted); }
.playbook-content li strong,
.playbook-content p strong { color: var(--ink); font-weight: 600; }
.playbook-content ul li::marker { color: var(--brass); }
.playbook-intro { font-size: 1.15rem; color: var(--muted); max-width: var(--measure); }

/* Screenshot placeholders — real images get dropped into the same folder later.
   The frame reads as an intentional figure both empty and once populated. */
.shot {
  width: fit-content;      /* frame hugs the image's real shape — no letterbox bars */
  max-width: 100%;
  margin: 1.5rem auto 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 0.5rem;
}
.shot img {
  display: block;
  max-width: 100%;    /* scale down to fit the column, keeping the image's own ratio */
  max-height: 620px;  /* and cap tall/portrait shots so they don't dominate */
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  /* Subtle hatch shows through only while the file is absent. */
  background:
    repeating-linear-gradient(-45deg, rgba(194, 161, 77, 0.07) 0 14px, transparent 14px 28px),
    var(--paper);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Accordions — playbook Parts (main) and their sections (subs). No JS; native
   <details>. Kept open by default so the table-of-contents links still reveal
   their target on every browser. */
.acc {
  border-top: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.acc-main {
  border-top: 2px solid var(--brass);
  margin-top: 2.5rem;
}
.acc-main:first-of-type { margin-top: 0.5rem; }
.acc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 0;
}
.acc-summary::-webkit-details-marker { display: none; }
.acc-summary:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}
.acc-summary-main { padding: 1.4rem 0; }
.acc-label { display: block; }
.acc-summary .acc-title,
.acc-summary .acc-subtitle { margin: 0; padding: 0; }
.acc-summary:hover .acc-title,
.acc-summary:hover .acc-subtitle { color: var(--brass); }
.acc-chevron {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--brass);
  transition: transform 0.2s ease;
}
.acc[open] > .acc-summary .acc-chevron { transform: rotate(180deg); }
.acc-body { padding-bottom: 1.25rem; }
.acc-intro { color: var(--muted); }

.page-head { padding-bottom: 0; }
.page-head .container { padding-top: var(--space-section); }

/* ------------------------------------------------------------------ */
/* 18. Responsive                                                      */
/* ------------------------------------------------------------------ */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* Mobile navigation */
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--green);
    border-bottom: 1px solid rgba(194, 161, 77, 0.28);
    padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(241, 238, 223, 0.12);
    font-size: 1.05rem;
  }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn-primary {
    margin-top: 0.9rem;
    justify-content: center;
    padding: 0.85rem 1.15rem;
    font-size: 1.05rem;
  }
  .site-header .container { position: relative; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .hero-actions { gap: 0.9rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
