/* ============================================================
   youcantculture.com — site styles
   Mobile-first. Tokens live in tokens.css (:root custom props).
   Breakpoints: default = mobile, 640px = tablet, 1024px = desktop.
   ============================================================ */

/* ── Reset / base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

/* ── A11y helpers ────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -40px; left: 0; padding: 8px 16px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; z-index: 100;
}
.skip-link:focus { top: 0; }

/* Focus states — visible outline on keyboard nav */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ── Layout primitives ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px)  { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 56px; } }

/* ── Shared type treatments ──────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.eyebrow--red   { color: var(--red); }
.eyebrow--ochre { color: var(--ochre); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 14px;
}

.section-lede {
  font-size: clamp(15px, 2.4vw, 17px);
  color: var(--ink-2);
  max-width: 64ch;
  line-height: 1.55;
  margin: 0 0 32px;
}

/* Red strikethrough on "Culture" — used in hero + brand */
.strikethrough {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.strikethrough::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: 52%;
  height: clamp(3px, 0.9vw, 7px);
  background: var(--red);
  transform: skewY(-1.5deg);
  pointer-events: none;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  min-height: 44px; /* touch target */
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.btn--ink      { background: var(--ink);   color: var(--paper); border-color: var(--ink); }
.btn--ink:hover,
.btn--ink:focus-visible     { background: var(--ink-2); border-color: var(--ink-2); }
.btn--outline  { background: transparent;  color: var(--ink);   border-color: var(--ink); }
.btn--outline:hover,
.btn--outline:focus-visible { background: var(--ink); color: var(--paper); }
.btn--red      { background: var(--red);   color: var(--paper); border-color: var(--red); }
.btn--red:hover,
.btn--red:focus-visible     { background: #9a2a15; border-color: #9a2a15; }
.btn--ochre    { background: var(--ochre); color: var(--ink-dark); border-color: var(--ochre); }
.btn--ochre:hover,
.btn--ochre:focus-visible   { background: #b8892f; border-color: #b8892f; }

/* ── Header + nav ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-3);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.brand__accent { color: var(--red); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  margin-left: auto;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after  { position: absolute; top:  6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

.primary-nav {
  display: none;
  width: 100%;
}
.primary-nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0 20px;
  border-top: 1px solid var(--paper-3);
}
.primary-nav__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.primary-nav__links a {
  text-decoration: none;
  color: var(--ink-2);
}
.primary-nav__links a:hover,
.primary-nav__links a:focus-visible { color: var(--ink); }

/* Nav becomes horizontal on tablet+ */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-header__inner { flex-wrap: nowrap; }
  .primary-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    width: auto;
    padding: 0;
    border: none;
  }
  .primary-nav__links {
    flex-direction: row;
    gap: 28px;
  }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero { padding: 48px 0 56px; }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 10vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 16px 0 0;
}
.hero__lede {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.8vw, 22px);
  line-height: 1.35;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 20px 0 0;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}
.hero__formats {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin: 22px 0 0;
  text-transform: none;
}
.hero__cover {
  display: flex;
  justify-content: center;
  order: -1; /* cover above text on mobile */
}
.hero__cover img {
  width: clamp(220px, 48vw, 420px);
  height: auto;
  transform: rotate(-3deg);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.35),
    0 10px 20px -10px rgba(0,0,0,0.2);
}
@media (min-width: 1024px) {
  .hero { padding: 80px 0 60px; }
  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
  .hero__cover { order: 0; }
  .hero__cover img {
    width: 440px;
    transform: rotate(-3deg) scale(1.05);
  }
}

/* ── Pullquote band ──────────────────────────────────────────── */
.pullquote {
  background: var(--ink-dark);
  color: var(--paper);
  padding: 48px 0;
}
.pullquote .eyebrow { color: var(--ochre); }
.pullquote__text {
  font-family: var(--font-display);
  font-size: clamp(24px, 4.5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22em;
  margin: 0;
}
.pullquote__text em { color: var(--ochre); font-style: italic; }

/* ── Three cycles ────────────────────────────────────────────── */
.cycles { padding: 56px 0 40px; }
.cycles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 32px 0 0;
}
.cycle-card {
  border: 1px solid var(--paper-3);
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cycle-card__header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--paper-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cycle-card__body { padding: 20px 18px; }
.cycle-card__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.6vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.cycle-card__arm {
  padding-left: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.cycle-card__arm:last-child { margin-bottom: 0; }
.cycle-card__arm--pos { border-left: 2px solid var(--green); }
.cycle-card__arm--neg { border-left: 2px solid var(--red); }
.cycle-card__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cycle-card__arm--pos .cycle-card__label { color: var(--green); }
.cycle-card__arm--neg .cycle-card__label { color: var(--red); }

@media (min-width: 768px) {
  .cycles__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .cycles { padding: 80px 0 60px; }
  .cycles__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ── Featured diagram ────────────────────────────────────────── */
.featured-diagram { padding: 0 0 56px; }
.featured-diagram__wrap {
  margin: 0;
  background: #fff;
  border: 1px solid var(--paper-3);
  padding: clamp(16px, 3.5vw, 40px);
}
@media (min-width: 1024px) {
  .featured-diagram { padding: 0 0 80px; }
}

/* ── Diagnostic teaser ───────────────────────────────────────── */
.diagnostic {
  background: var(--paper-2);
  border-top: 1px solid var(--paper-3);
  border-bottom: 1px solid var(--paper-3);
  padding: 56px 0;
}
.diagnostic__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.diagnostic__preview {
  background: #fff;
  border: 1px solid var(--paper-3);
  padding: clamp(20px, 3.5vw, 28px);
  font-size: 14px;
}
.diagnostic__q-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.diagnostic__question {
  font-size: clamp(16px, 2.4vw, 18px);
  font-weight: 500;
  margin: 0 0 18px;
  line-height: 1.4;
}
.diagnostic__options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.diagnostic__options li {
  padding: 12px 14px;
  border: 1px solid var(--paper-3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.diagnostic__options li::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .diagnostic { padding: 80px 0; }
  .diagnostic__inner {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
  }
}

/* ── Reflections ─────────────────────────────────────────────── */
.reflections {
  background: var(--paper-2);
  padding: 56px 0;
}
.reflection-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 32px 0 28px;
}
.reflection-cards > li {
  list-style: none;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--paper-3);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reflection-cards__chapter {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
}
.reflection-cards blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 3vw, 22px);
  line-height: 1.35;
  color: var(--ink);
  /* A soft left rule underlines the "prompt as quotation" treatment
     without competing with the card border. */
  padding-left: 12px;
  border-left: 2px solid var(--paper-3);
}
.reflections__footnote {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0 0 20px;
  line-height: 1.55;
}
.reflections__download {
  margin-top: 4px;
}

@media (min-width: 640px) {
  .reflection-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .reflections { padding: 80px 0; }
  .reflection-cards { gap: 20px; margin: 40px 0 32px; }
}

/* ── Authors ─────────────────────────────────────────────────── */
.authors {
  background: var(--paper-2);
  padding: 56px 0;
}
.authors__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 28px 0 0;
}
.author {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.author__mark {
  width: clamp(80px, 18vw, 120px);
  height: clamp(100px, 22vw, 150px);
  background: var(--paper-3);
  border: 1px solid var(--paper-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 48px);
  color: var(--ink-4);
  flex-shrink: 0;
}
.author__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.6vw, 26px);
  font-weight: 500;
  margin: 0;
}
.author__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 4px 0 10px;
}
.author__bio {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

@media (min-width: 768px) {
  .authors__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (min-width: 1024px) {
  .authors { padding: 72px 0 80px; }
}

/* ── Newsletter ──────────────────────────────────────────────── */
.newsletter {
  background: var(--ink-dark);
  color: var(--paper);
  padding: 56px 0;
}
.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.newsletter .eyebrow { color: var(--ochre); }
.newsletter__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.8vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 500;
  margin: 0;
}
.newsletter__form { width: 100%; }
.newsletter__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter__row input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--ochre);
  color: var(--paper);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  min-height: 44px;
}
.newsletter__row input::placeholder { color: rgba(241, 236, 225, 0.4); }
.newsletter__fine {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 12px 0 0;
}
/* Inline status line after the form submits — tone driven by
   data-tone set by the JS handler. ok = ochre (matches the submit
   button), err = red, pending = muted. */
.newsletter__status {
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 0;
  color: var(--ochre);
}
.newsletter__status[data-tone="err"]     { color: #e8896a; }
.newsletter__status[data-tone="pending"] { color: rgba(241, 236, 225, 0.55); }
@media (min-width: 640px) {
  .newsletter__row { flex-direction: row; }
}
@media (min-width: 1024px) {
  .newsletter__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--paper-3);
  padding: 28px 0;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.site-footer__nav a {
  color: inherit;
  text-decoration: none;
}
.site-footer__nav a:hover,
.site-footer__nav a:focus-visible { color: var(--ink); }
.site-footer__copy { margin: 0; }
@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .site-footer__nav { gap: 20px; }
}

/* ============================================================
   Print styles — optimize for paper.
   Strips nav, footer nav, buttons, forms, and interactive panels
   that don't translate. Keeps the argument: hero, pullquote,
   cycles, reflection prompts, author bios.
   ============================================================ */
@media print {
  /* Reset to paper-friendly defaults. */
  body {
    background: #fff !important;
    color: #000;
    font-size: 11pt;
    line-height: 1.45;
  }
  .container { max-width: 100%; padding: 0; }
  * { box-shadow: none !important; }

  /* Drop everything that only makes sense on screen. */
  .site-header,
  .site-footer,
  .nav-toggle, .primary-nav,
  .skip-link,
  .hero__ctas, .hero__formats,
  .diagnostic,
  .newsletter,
  .reflections__download {
    display: none !important;
  }

  /* Keep the hero but calm it down — no rotation, no shadow, no
     paper-colored band. */
  .hero { padding: 0; }
  .hero__inner { display: block; }
  .hero__cover { display: none; }
  .hero__title { font-size: 32pt; line-height: 1; color: #000; }
  .hero__lede { font-size: 13pt; color: #222; }
  .strikethrough::after { background: #000; }

  /* Section surfaces: flatten dark panels, keep typography. */
  .pullquote { background: #fff; color: #000; padding: 24pt 0; }
  .pullquote__text { color: #000; font-size: 20pt; }
  .pullquote__text em { color: #000; font-style: italic; }
  .eyebrow, .eyebrow--red, .eyebrow--ochre { color: #555 !important; }

  /* Cycle cards: simple boxes. */
  .cycles__grid { display: block; }
  .cycle-card {
    break-inside: avoid;
    margin-bottom: 10pt;
    border: 1pt solid #ccc;
    background: #fff !important;
  }
  .cycle-card__arm--pos { border-left: 2pt solid #000; }
  .cycle-card__arm--neg { border-left: 2pt solid #000; }
  .cycle-card__arm--pos .cycle-card__label { color: #000; }
  .cycle-card__arm--neg .cycle-card__label { color: #000; }

  /* Reflection cards keep their prompts but lose the panel-fill. */
  .reflections { background: #fff; }
  .reflection-cards { display: block; }
  .reflection-cards > li {
    break-inside: avoid;
    border: 1pt solid #ccc;
    margin-bottom: 8pt;
    background: #fff !important;
  }
  .reflection-cards__chapter { color: #555; }

  /* Authors: one per line; strip the initial-mark box. */
  .authors { background: #fff; }
  .authors__grid { display: block; }
  .author { margin-bottom: 12pt; break-inside: avoid; }
  .author__mark { display: none; }

  /* Expose URLs for any remaining links on paper. Skip in-page
     anchors (they're not useful printed) and mailtos (they'd dump
     mailto: contact@...). */
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
    word-break: break-all;
  }
  a { color: #000; text-decoration: underline; }
  a[href^="#"], a[href^="mailto:"] { text-decoration: none; }

  /* Page breaks before major sections so the book's argument reads
     chapter-like on paper. */
  .pullquote, .cycles, .featured-diagram, .reflections, .authors {
    break-before: auto;
  }
}
