/* ============================================================
   SUKHVINDER JAVEED — 2026 BRAND SYSTEM
   One job: sell the book.
   Voice: direct, dry, precise. British English. No em dashes.
   Palette: ink black · paper white · editorial red · signal yellow
   Type: Fraunces (display serif) · Inter (interface + body)
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Colour */
  --ink:        #0E0E0E;
  --ink-90:     #161616;
  --ink-soft:   #4A4A4A;
  --ink-faint:  #8A8A8A;
  --paper:      #FFFFFF;
  --paper-warm: #F6F2EA;   /* warm "book paper" sections */
  --paper-warm-2:#EFE9DD;
  --line:       rgba(14, 14, 14, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);

  --red:        #D81E2C;   /* eyebrows + accents */
  --red-deep:   #B0121E;
  --gold:       #FFD23F;   /* the CTA colour */
  --gold-deep:  #F2B705;
  --gold-ink:   #1A1400;   /* text on gold */

  /* Type */
  --serif: 'Fraunces', 'Times New Roman', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Scale */
  --maxw: 1180px;
  --maxw-narrow: 780px;
  --gut: clamp(1.25rem, 4vw, 3rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Elevation */
  --shadow-sm: 0 2px 10px rgba(14,14,14,.08);
  --shadow-md: 0 18px 50px rgba(14,14,14,.16);
  --shadow-book: 0 40px 80px -20px rgba(14,14,14,.45);
}

/* ---------- GLOBAL RESET (new pages) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- PAGE SHELL ---------- */
.brand-2026 {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
  text-rendering: optimizeLegibility;
}

.brand-2026 *,
.brand-2026 *::before,
.brand-2026 *::after { box-sizing: border-box; }

.brand-2026 img { max-width: 100%; display: block; }

.brand-2026 ::selection { background: var(--gold); color: var(--gold-ink); }

/* ---------- LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--warm { background: var(--paper-warm); }
.section--ink  { background: var(--ink); color: var(--paper); }

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: clamp(.7rem, .8vw, .78rem);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1.1rem;
}
.section--ink .eyebrow { color: var(--gold); }

.display {
  font-family: var(--serif);
  font-weight: 600;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.section--ink .display { color: var(--paper); }

.display--xl { font-size: clamp(2.6rem, 7vw, 5.4rem); }
.display--l  { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.display--m  { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.08; }

.lede {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 400;
  margin: 0;
}
.section--ink .lede { color: rgba(255,255,255,.78); }

.prose p {
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.75;
  color: var(--ink-90);
  margin: 0 0 1.4em;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; }

/* Law callout used inside copy */
.law-tag {
  display: block;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--red);
  margin-top: .35rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  --bg: var(--gold);
  --fg: var(--gold-ink);
  display: inline-flex;
  align-items: center;
  gap: .65em;
  padding: 1.05rem 1.9rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg);
  border: 2px solid var(--bg);
  border-radius: 4px;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  will-change: transform;
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(242,183,5,.4); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn--gold { --bg: var(--gold); --fg: var(--gold-ink); }
.btn--gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); }

.btn--ink { --bg: var(--ink); --fg: #fff; }
.btn--ink:hover { box-shadow: 0 12px 28px rgba(14,14,14,.3); background: var(--ink-90); }

.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.section--ink .btn--ghost { --fg: #fff; border-color: rgba(255,255,255,.5); }
.section--ink .btn--ghost:hover { background: #fff; color: var(--ink); }

.btn--lg { padding: 1.2rem 2.4rem; font-size: 1.08rem; }
.btn--block { width: 100%; justify-content: center; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.link-arrow:hover { gap: .75em; color: var(--red); }

/* ---------- CREDENTIALS STRIP ---------- */
.credentials {
  background: var(--ink);
  color: #fff;
  border-block: 1px solid rgba(255,255,255,.08);
}
.credentials__track {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.5rem;
  padding-block: 1.15rem;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  text-align: center;
}
.credentials__track .dot { color: var(--gold); }

/* ---------- PULL-QUOTE / REVIEW CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm);
}
.section--warm .quote-card { background: #fff; }
.quote-card .mark {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: .6;
  color: var(--gold-deep);
  display: block;
  margin-bottom: .6rem;
}
.quote-card p {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 1.2rem;
}
.quote-card cite {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- CTA BAND (black) ---------- */
.cta-band { text-align: center; }
.cta-band .display { margin-bottom: 1.2rem; }
.cta-band .lede { margin: 0 auto 2.2rem; max-width: 46ch; }

/* ---------- DIVIDER ---------- */
.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- REVEAL ANIMATION ----------
   Gated behind html.js so content is always visible when JS is off
   or IntersectionObserver never fires (progressive enhancement). */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn:hover { transform: none; }
}

/* ---------- ANCHOR LINE (brand signature) ---------- */
.anchor-line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
}
