/* ==========================================================================
   The Insider's Guide to Innovation @ Microsoft — site styles
   A derivative of the Regenerous Labs design system, re-tuned to the book
   cover: same structure (Manrope + Space Grotesk, pill buttons, 20px radii,
   quiet pastel grounds, em-dash lists, headline + colored period) but the
   accent system is the cover's loop — red / green / blue / yellow — with the
   orange "@" dot as the single signal color.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700; font-style: normal; font-display: swap;
}

:root {
  /* Structure (inherited from the Lab) */
  --ink: #2e3742;
  --slate: #506275;
  --muted: #7a8695;
  --hairline: rgba(80, 98, 117, 0.18);
  --hairline-soft: rgba(80, 98, 117, 0.10);

  /* Grounds */
  --paper: #ffffff;
  --paper-warm: #fbfaf7;
  --mist: #eef1f5;
  --cloud: #dde3ea;

  /* Cover-derived accents (the loop) */
  --loop-red:    #c8201c;
  --loop-green:  #6db33f;
  --loop-blue:   #2b55c9;
  --loop-yellow: #f2c62a;
  --dot:         #f0a020;   /* the "@" — the one signal color */

  /* Soft tints of the loop, for card grounds */
  --tint-red:    #fbe9e8;
  --tint-green:  #ecf5e4;
  --tint-blue:   #e7edfa;
  --tint-yellow: #fdf5d9;
  --tint-orange: #fdf0dc;

  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-meta: "Space Grotesk", ui-monospace, monospace;

  --r-lg: 20px; --r-md: 16px; --r-pill: 999px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1180px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-display); font-weight: 400;
  font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.1; letter-spacing: -0.025em; }
::selection { background: var(--tint-orange); }
:focus-visible { outline: 2px solid var(--loop-blue); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); z-index: 100; }
.skip:focus { left: 16px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-meta); font-size: 13px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.eyebrow.plain::before { display: none; }

.display { font-size: clamp(40px, 6vw, 76px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 300; }
.h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.03em; font-weight: 300; text-wrap: pretty; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; font-weight: 500; }
.lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; color: var(--slate); max-width: 72ch; text-wrap: balance; }
.body { max-width: 68ch; }
.dot-end { color: var(--dot); }
.em { font-weight: 500; }
.em.red { color: var(--loop-red); } .em.green { color: var(--loop-green); } .em.blue { color: var(--loop-blue); }

/* The cover's loop, drawn as an underline rule under one word */
.loop-word { position: relative; white-space: nowrap; font-weight: 500; isolation: isolate; }
.loop-word::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.04em; height: 0.07em; border-radius: 999px; z-index: -1;
  background: linear-gradient(90deg, var(--loop-red) 0 25%, var(--loop-green) 25% 50%, var(--loop-blue) 50% 75%, var(--loop-yellow) 75% 100%);
  opacity: .9;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: var(--r-pill);
  font: 500 17px/1 var(--font-display); letter-spacing: -0.005em;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background 200ms var(--ease), color 200ms var(--ease), transform 120ms var(--ease), border-color 200ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn .arrow { color: var(--dot); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--slate); }
.btn.ghost { background: transparent; color: var(--ink); border-color: rgba(80,98,117,.35); }
.btn.ghost:hover { background: var(--mist); }
.btn.accent { background: var(--dot); color: var(--ink); }
.btn.accent:hover { background: #f4b445; }
.btn.accent .arrow { color: var(--ink); }
.btn.sm { padding: 12px 20px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); }
.brand .at { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--dot); color: #fff; font-family: var(--font-meta); font-size: 15px; font-weight: 700; line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: var(--r-pill); font-size: 15px; font-weight: 500; color: var(--slate); transition: background 200ms var(--ease), color 200ms var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--mist); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 4px;
         padding: 12px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--hairline); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 17px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .brand span.full { display: none; }
}
@media (min-width: 761px) { .brand span.short { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.mist { background: var(--mist); }
.section.warm { background: var(--paper-warm); }
.section.ink { background: var(--ink); color: #fff; }
.section.ink .eyebrow { color: var(--cloud); }
.section.ink .lead { color: var(--cloud); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); max-width: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); background: var(--paper-warm); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 28px; }
.hero .display { font-size: clamp(40px, 5vw, 68px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-family: var(--font-meta); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; }
.hero-art::before { content: ""; position: absolute; inset: 12% 2% 6% 2%; border-radius: 50%; background: radial-gradient(closest-side, var(--mist), transparent); z-index: -1; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
}

/* ---------- Praise (press logos line + quotes) ---------- */
.praise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .praise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .praise-grid { grid-template-columns: 1fr; } }
.quote-card {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 18px; position: relative;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.quote-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(46,55,66,.08); }
.quote-card .mark { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 56px; line-height: .5; color: var(--dot); height: 24px; }
.quote-card.red .mark { color: var(--loop-red); } .quote-card.green .mark { color: var(--loop-green); }
.quote-card.blue .mark { color: var(--loop-blue); } .quote-card.yellow .mark { color: #d9ab13; }
.quote-card blockquote { margin: 0; flex: 1; }
.quote-card p { font-size: 17px; line-height: 1.55; margin: 0; color: var(--ink); flex: 1; }
.quote-card cite { font-style: normal; display: grid; gap: 2px; }
.quote-card cite b { font-weight: 500; font-size: 15px; }
.quote-card cite span { font-family: var(--font-meta); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.quote-card.featured { grid-column: span 2; background: var(--ink); color: #fff; border-color: transparent; }
.quote-card.featured p { color: #fff; font-size: clamp(20px, 2vw, 26px); font-weight: 300; letter-spacing: -0.01em; }
.quote-card.featured cite span { color: var(--cloud); }
@media (max-width: 640px) { .quote-card.featured { grid-column: span 1; } }

.press-line { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin-top: 40px; color: var(--muted); }
.press-line .eyebrow { color: var(--muted); }
.press-line b { font-weight: 500; color: var(--slate); font-size: 17px; letter-spacing: -0.01em; }

/* ---------- Questions block ---------- */
.questions { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .questions { grid-template-columns: 1fr; } }
.q-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 861px) { .q-list { padding-top: 44px; } }
.q-list li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.4; font-weight: 300; letter-spacing: -0.01em; }
.q-list li::before { content: "—"; color: var(--dot); font-weight: 500; }

/* ---------- Chapters ---------- */
.chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.chapter {
  border-radius: var(--r-lg); padding: 26px 26px 24px; min-height: 180px;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 18px;
  background: #fff; border: 1px solid var(--hairline);
}
.chapter .tag { font-family: var(--font-meta); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); display: flex; align-items: center; gap: 10px; }
.chapter .tag::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--dot)); }
.chapter h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }
.chapter p { margin: 0; color: var(--slate); font-size: 16px; line-height: 1.45; }
.chapter.c-red { --c: var(--loop-red); background: var(--tint-red); border-color: transparent; }
.chapter.c-green { --c: var(--loop-green); background: var(--tint-green); border-color: transparent; }
.chapter.c-blue { --c: var(--loop-blue); background: var(--tint-blue); border-color: transparent; }
.chapter.c-yellow { --c: var(--loop-yellow); background: var(--tint-yellow); border-color: transparent; }
.chapter.c-orange { --c: var(--dot); background: var(--tint-orange); border-color: transparent; }

.analysis { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.num-tile { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 14px; }
.num-tile .n { font-weight: 200; font-size: 72px; line-height: .85; letter-spacing: -0.05em; color: var(--dot); }
.num-tile h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.num-tile p { margin: 0; color: var(--slate); font-size: 16px; line-height: 1.45; }

/* ---------- Leaders ---------- */
.leaders { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.leaders span { font-size: 15px; padding: 8px 14px; border-radius: var(--r-pill); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.leaders span.more { background: var(--dot); color: var(--ink); border-color: transparent; font-weight: 500; }

/* ---------- Authors ---------- */
.authors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .authors { grid-template-columns: 1fr; } }
.author { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 24px; }
@media (max-width: 480px) { .author { grid-template-columns: 1fr; } .author img { max-width: 200px; } }
.author img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); filter: grayscale(.9) contrast(1.02); background: var(--mist); }
.author .role { font-family: var(--font-meta); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); }
.author h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin: 6px 0 10px; }
.author .rule { width: 32px; height: 2px; background: var(--dot); margin: 0 0 14px; }
.author p { font-size: 16px; color: var(--slate); line-height: 1.5; }
.author a.link { font-weight: 500; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.author a.link .arrow { color: var(--dot); }

/* ---------- Buy band ---------- */
.buy { text-align: center; }
.buy .section-head { margin-inline: auto; text-align: center; justify-items: center; }
.buy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.buy-note { margin-top: 28px; font-size: 15px; color: var(--muted); }
.buy-note.alt { margin-top: 8px; color: var(--slate); }
.buy-note.alt a { font-weight: 500; color: var(--ink); }
.buy-note.alt .arrow { color: var(--dot); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cloud); padding: 56px 0 40px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-meta); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .fine { grid-column: 1 / -1; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 5vw, 56px); background: var(--paper-warm); }
.page-hero .wrap { display: grid; gap: 20px; justify-items: start; }
.page-hero .lead { max-width: 72ch; }

/* ---------- Reviews page ---------- */
.reviews-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* ---------- Media page ---------- */
.tagline { font-size: clamp(20px, 2vw, 26px); font-weight: 300; letter-spacing: -0.015em; color: var(--ink); margin: -4px 0 0; }
.tagline .em { color: var(--dot); font-weight: 500; }
.channels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1100px) { .channels { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .channels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .channels { grid-template-columns: 1fr; } }
.channel { display: flex; flex-direction: column; justify-content: flex-start; gap: 16px; padding: 22px; border-radius: var(--r-lg); min-height: 220px;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease); }
.channel:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(46,55,66,.08); }
.channel .tag { font-family: var(--font-meta); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); display: flex; align-items: center; gap: 10px; }
.channel .tag::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.channel h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }
.channel p { margin: 0; color: var(--slate); font-size: 15px; line-height: 1.45; }
.channel .link { font-weight: 500; font-size: 15px; display: inline-flex; gap: 6px; margin-top: auto; }
.channel .link .arrow { color: var(--c); }
.channel.c-blue { --c: var(--loop-blue); background: var(--tint-blue); }
.channel.c-orange { --c: var(--dot); background: var(--tint-orange); }
.channel.c-red { --c: var(--loop-red); background: var(--tint-red); }
.channel.c-green { --c: var(--loop-green); background: var(--tint-green); }
.channel.c-yellow { --c: var(--loop-yellow); background: var(--tint-yellow); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: 500 14px var(--font-display); padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--hairline); background: #fff; color: var(--slate); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: transparent; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.video { display: grid; gap: 12px; }
.video[hidden] { display: none; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); cursor: pointer; border: 0; padding: 0; width: 100%; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform 400ms var(--ease); }
.yt:hover img { transform: scale(1.03); }
.yt .play { position: absolute; inset: 0; display: grid; place-items: center; }
.yt .play span { width: 64px; height: 64px; border-radius: 50%; background: var(--dot); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.yt .play svg { width: 24px; height: 24px; margin-left: 3px; fill: var(--ink); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .meta { font-family: var(--font-meta); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.video h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.podcasts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.podcast { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 22px 22px 18px; display: grid; gap: 10px; align-content: start; }
.podcast h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.podcast .link { font-size: 14px; font-weight: 500; color: var(--slate); display: inline-flex; gap: 6px; }
.podcast .link .arrow { color: var(--dot); }
.podcast iframe { width: 100%; height: 152px; border: 0; border-radius: 12px; margin-top: 6px; }
.speaking { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 28px; }
@media (max-width: 700px) { .speaking { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-meta); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.field input, .field textarea {
  font: 400 17px var(--font-display); color: var(--ink); padding: 14px 16px;
  border: 1px solid var(--hairline); border-radius: 12px; background: var(--paper-warm); width: 100%;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--loop-blue); background: #fff; }
.field textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 16px 20px; border-radius: 12px; background: var(--tint-green); border: 1px solid rgba(109,179,63,.3); }

/* ---------- Utilities ---------- */
br.wide { display: none; }
@media (min-width: 900px) { br.wide { display: inline; } }
.stack { display: grid; gap: 16px; }
.mt-l { margin-top: clamp(32px, 5vw, 56px); }
.center { text-align: center; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
