/* The Method — editorial layout. */
:root {
  --method-ink: var(--sw-charcoal);
  --method-muted: #4a4a4a;
  --method-gold: #c8a96e;
  --method-light-gold: #e8e0d0;
  --method-bg: var(--sw-ivory);
  --method-surface: #f3efe8;
  --method-reading-width: 780px;
  --method-toc-width: 710px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.method-page {
  margin: 0;
  background: var(--method-bg);
  color: var(--method-ink);
  font-family: "Inter", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
.method-page :where(h1, h2, h3, h4, p, blockquote) { margin: 0; }
.method-page a { color: inherit; }
.method-page :where(.method-toc, .method-document) a { text-decoration: none; }
.method-page :where(.method-toc, .method-document) a:hover { color: #9b7542; }

/* Cover */
.method-cover {
  min-height: 100svh;
  padding: clamp(40px, 6vw, 88px) 28px;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--method-light-gold);
}
.method-cover__inner {
  width: min(100%, 840px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.method-toc__eyebrow {
  color: var(--sw-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.method-cover h1 {
  max-width: 900px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(66px, 9vw, 132px);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.method-cover .cover-rule {
  width: 70px;
  height: 2px;
  margin: 48px 0 35px;
  background: var(--method-gold);
}
.method-cover .cover-taglines { display: grid; gap: 6px; }
.method-cover .cover-taglines p {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(21px, 2.3vw, 30px);
  line-height: 1.4;
  color: var(--method-muted);
}

/* Native web navigation replaces print-only page numbers and dotted leaders. */
.method-toc { background: var(--method-surface); padding: clamp(80px, 10vw, 136px) 28px; }
.method-toc__inner { max-width: var(--method-toc-width); margin: 0 auto; }
.method-toc h2 {
  margin-top: 18px;
  margin-bottom: 43px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.2;
}
.method-toc__primary { display: grid; }
.method-toc__primary a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid #dbd1bf;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.45;
}
.method-toc__primary a span:last-child {
  color: var(--sw-gold);
  font: 400 16px "Inter", sans-serif;
}
.method-toc__chapter {
  display: grid;
  padding: 8px 0 13px 22px;
  border-bottom: 1px solid #dbd1bf;
}
.method-toc__primary .method-toc__chapter a {
  display: block;
  padding: 8px 0;
  border: 0;
  color: var(--method-muted);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

/* Main essay */
.method-document { padding: 0 28px 110px; }
.method-section {
  max-width: var(--method-reading-width);
  margin: 0 auto;
  padding: clamp(88px, 10vw, 145px) 0 0;
  scroll-margin-top: 24px;
}
.method-section + .method-section {
  margin-top: clamp(74px, 9vw, 124px);
  border-top: 1px solid var(--method-light-gold);
}
.method-section .section-eyebrow, .method-section .step-label {
  margin-bottom: 18px;
  color: var(--sw-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.method-section .section-title {
  margin-bottom: 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -.025em;
}
.method-section .title-rule { width: 44px; height: 2px; background: var(--method-gold); margin: 22px 0 43px; }
.method-section p {
  margin-bottom: 18px;
  font-size: clamp(16px, 1.45vw, 18px);
  font-weight: 300;
  line-height: 1.85;
}
.method-section strong { font-weight: 600; }
.method-section em { font-style: italic; }
.method-section hr { border: 0; border-top: 1px solid var(--method-light-gold); margin: 44px 0; }
.method-section h3 {
  margin: 54px 0 16px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
  scroll-margin-top: 24px;
}
.method-section .pull-quote {
  margin: 39px 0;
  padding: 21px 26px;
  border-left: 3px solid var(--method-gold);
  background: rgba(200, 169, 110, .07);
}
.method-section .pull-quote p {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.65;
}
.method-section .pull-quote p + p { margin-top: 20px; }
.method-section--level .step-number {
  margin-bottom: 7px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(84px, 12vw, 116px);
  font-weight: 700;
  line-height: 1;
  color: #dfd4c2;
}
.method-section--level .step-label { margin-bottom: 20px; }
.method-section--level .step-title {
  margin-bottom: 21px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.2;
}
.method-section .gateway {
  display: grid;
  gap: 6px;
  margin-bottom: 40px;
}
.method-section .gateway__label {
  margin: 0;
  color: var(--sw-gold);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .25em;
  line-height: 1.5;
  text-transform: uppercase;
}
.method-section .gateway__question {
  margin: 0;
  color: var(--method-ink);
  font-size: clamp(18px, 1.6vw, 20px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
}
.method-section .contrast-lines span { display: block; }
.method-section .question-list { padding: 0; margin: 22px 0 30px; list-style: none; }
.method-section .question-list li {
  position: relative;
  padding: 8px 0 8px 25px;
  font-size: clamp(16px, 1.45vw, 18px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.8;
}
.method-section .question-list li::before {
  position: absolute;
  left: 0;
  content: '—';
  color: var(--sw-gold);
}
.method-section .identity-block {
  margin: 40px 0;
  padding: 31px 34px;
  border-top: 2px solid var(--method-gold);
  background: var(--method-surface);
}
.method-section .identity-block h4 {
  margin: 0 0 14px;
  color: var(--sw-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.method-section .identity-block p:last-child { margin-bottom: 0; }

@media (max-width: 620px) {
  .method-cover { padding: 54px 23px 45px; min-height: 92svh; }
  .method-cover h1 { font-size: clamp(48px, 13vw, 80px); }
  .method-cover .cover-rule { margin: 35px 0 29px; }
  .method-toc { padding: 76px 23px; }
  .method-document { padding: 0 23px 88px; }
  .method-section { padding-top: 82px; }
  .method-section + .method-section { margin-top: 68px; }
  .method-section .pull-quote { padding: 20px 21px; }
  .method-section .identity-block { padding: 27px 22px; }
}
@media print {
  body.method-page { background: #fff; }
  .method-cover { min-height: auto; padding: 80px 0 60px; page-break-after: always; }
  .method-toc { background: #fff; padding: 30px 0; page-break-after: always; }
  .method-document { padding: 0; }
  .method-section { max-width: 100%; padding-top: 40px; break-before: page; }
  .method-section + .method-section { margin-top: 0; }
  .method-section .pull-quote, .method-section .identity-block { break-inside: avoid; }
}
