/* Layout: a letter from Raghav. One centered column on white, lots of air, testimonials between sections, purple only where the reader should act or notice. */
:root {
  --paper: #ffffff;
  --paper-2: #f7f6f8;
  --ink: #1a1a1a;
  --ink-soft: #5e5e5c;
  --rule: #e6e5e8;
  --purple: #5b2d8e;
  --purple-hover: #43206b;
  --on-purple: #ffffff;
  --face: "Enriqueta", Rockwell, "Roboto Slab", Georgia, serif;
  --col: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131214; --paper-2: #1c1a1e; --ink: #ecebee; --ink-soft: #a6a4a9;
    --rule: #2d2b30; --purple: #b99ae8; --purple-hover: #d3bff3; --on-purple: #131214;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131214; --paper-2: #1c1a1e; --ink: #ecebee; --ink-soft: #a6a4a9;
  --rule: #2d2b30; --purple: #b99ae8; --purple-hover: #d3bff3; --on-purple: #131214;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--face);
  font-size: 1.1rem;
  line-height: 1.7;
}
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-hover); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

.col {
  max-width: calc(var(--col) + 32px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { font-family: var(--face); line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
strong { font-weight: 700; }

.label {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
}

/* Header */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .col {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 20px; padding-block: 18px;
}
.brand { font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.95rem; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--face); font-weight: 600; font-size: 1rem;
  padding: 14px 24px; border-radius: 4px; text-decoration: none; text-align: center;
  border: 2px solid var(--purple);
}
.btn-primary { background: var(--purple); color: var(--on-purple); }
.btn-primary:hover { background: var(--purple-hover); border-color: var(--purple-hover); color: var(--on-purple); }
.btn-ghost { color: var(--purple); background: transparent; }
.btn-ghost:hover { background: var(--paper-2); }
.cta { display: grid; gap: 8px; justify-items: start; }
.cta-note { font-size: 0.85rem; color: var(--ink-soft); }

/* Sections */
.sec { padding-block: clamp(64px, 10vw, 112px); }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec .col { display: grid; gap: 22px; }
.short-lines p + p { margin-top: -8px; }

/* Hero */
.hero .col { justify-items: start; gap: 24px; }
.portrait {
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--paper-2); border: 1px solid var(--rule);
  display: grid; place-items: center;
  font-size: 0.72rem; color: var(--ink-soft); text-align: center; line-height: 1.3;
}
.hero .lede { font-size: 1.25rem; }
.hl { color: var(--purple); font-weight: 600; }

/* Results */
.results ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px 32px;
}
.results li { display: grid; gap: 6px; align-content: start; }
.results strong { font-size: 1.9rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.results span { font-size: 0.95rem; line-height: 1.45; color: var(--ink-soft); }
.results small { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* Testimonials */
.quote { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--paper-2); border: 1px solid var(--rule);
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; color: var(--ink-soft);
}
.quote blockquote { margin: 0; display: grid; gap: 10px; }
.quote p { font-style: italic; font-size: 1.12rem; }
.quote footer { font-size: 0.85rem; color: var(--ink-soft); }

/* Claim */
.claim { font-weight: 700; font-size: clamp(1.4rem, 3.2vw, 1.85rem); line-height: 1.3; text-wrap: balance; }
.claim em { font-style: normal; color: var(--purple); }

/* Offers */
.offers { display: grid; gap: 20px; }
.offer {
  display: grid; gap: 14px; justify-items: start;
  padding: 26px; border: 1px solid var(--rule); border-radius: 6px;
}
.offer.featured { border: 2px solid var(--purple); }
.offer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; width: 100%; align-items: baseline; }
.price { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.offer p { color: var(--ink-soft); font-size: 1.02rem; }
.then { font-size: 0.88rem; color: var(--ink-soft); }

/* Case studies */
.cases { display: grid; gap: 0; }
.case { display: grid; gap: 14px; padding-block: 36px; border-top: 1px solid var(--rule); }
.case:first-child { border-top: 0; padding-top: 8px; }
.case h3 { font-size: 1.3rem; }
.case .result { color: var(--purple); font-weight: 600; }

.freebies { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.freebies li { display: grid; gap: 4px; }
.freebies p { color: var(--ink-soft); font-size: 1.02rem; }

.about-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.about-head .portrait { width: 84px; height: 84px; }
img.portrait { object-fit: cover; display: block; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); display: block; }

.site-foot { border-top: 1px solid var(--rule); }
.site-foot .col {
  padding-block: 26px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: 0.85rem; color: var(--ink-soft);
}
.site-foot a { color: var(--ink-soft); }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
}

/* Inner pages */
.nav a[aria-current="page"] { color: var(--ink); }
.reads { display: grid; gap: 20px; }
.read { display: grid; gap: 12px; padding: 26px; border: 1px solid var(--rule); border-radius: 6px; }
.read p { color: var(--ink-soft); font-size: 1.02rem; }
.dims { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-soft); font-size: 1.02rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.steps li { display: grid; gap: 8px; padding-left: 20px; border-left: 2px solid var(--rule); }
.steps .when { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); font-weight: 600; }
.diff { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.diff li { padding-left: 26px; position: relative; }
.diff li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 12px; height: 2px; background: var(--purple); }
.faq { display: grid; }
.faq details { border-top: 1px solid var(--rule); padding-block: 18px; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--purple); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { display: grid; gap: 12px; padding-top: 12px; color: var(--ink-soft); }
.avatar img.no-zoom { transform: none; }

/* Testimonial sections sit tighter than content sections */
.sec:has(> .col > .quote) { padding-block: clamp(28px, 4vw, 44px); }

/* Larger photos (+25%) */
.portrait { width: 140px; height: 140px; }
.about-head .portrait { width: 105px; height: 105px; }
.quote { grid-template-columns: 65px minmax(0, 1fr); }
.avatar { width: 65px; height: 65px; }

/* Toolkit cards */
.tools { display: grid; gap: 20px; }
.tool { display: grid; gap: 12px; justify-items: start; padding: 26px; border: 1px solid var(--rule); border-radius: 6px; }
.tool .when { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); font-weight: 600; }
.tool p { color: var(--ink-soft); font-size: 1.02rem; }
.tool .meta { font-size: 0.9rem; }
.tool a { font-weight: 600; }

/* Tick and cross lists */
.diff.will li::before, .diff.wont li::before { width: auto; height: auto; background: none; top: 0; font-weight: 700; }
.diff.will li::before { content: "\2713"; color: var(--purple); }
.diff.wont li::before { content: "\2715"; color: var(--ink-soft); }

/* Writing */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.post-item { display: grid; gap: 8px; padding-block: 28px; border-top: 1px solid var(--rule); }
.post-item:first-child { border-top: 0; padding-top: 0; }
.post-item h3 a { color: var(--ink); text-decoration: none; }
.post-item h3 a:hover { color: var(--purple); }
.post-item p { color: var(--ink-soft); font-size: 1.02rem; }
.label a { color: inherit; }
.post-body { display: grid; gap: 18px; }
.post-body ul, .post-body ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.post-body figure { margin: 8px 0; }
.post-body img { width: 100%; height: auto; border-radius: 6px; display: block; }

/* Results strip: each metric links to its case study */
.results a.result-link { display: grid; gap: 6px; align-content: start; color: inherit; text-decoration: none; }
.results a.result-link .go { font-style: normal; font-size: 0.82rem; color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.results a.result-link:hover strong { color: var(--purple); }
.results a.result-link:hover .go { color: var(--purple-hover); }
.case { scroll-margin-top: 24px; }
.case:target h3 { color: var(--purple); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Stacked testimonials */
.quotes { display: grid; gap: 32px; margin-top: 8px; }

/* Publications list */
.pubs { margin: 0; padding-left: 1.1em; display: grid; gap: 12px; font-size: 0.95rem; line-height: 1.5; }
.pubs em { color: var(--ink-soft); }
