/* Andre LeClair — author and speaker.
   Palette comes from the DON'T SUCK cover, not from a logo: the only logo files
   he owns belong to Andre LeClair Properties and the "and Company" umbrella he
   cut. See the token block below.
   Mobile matters more than usual here: he reviews on his phone between sets. */

:root {
  /* Sampled from the DON'T SUCK cover — the one piece of branding readers
     already recognise. The old green came from his real-estate logo, which has
     no business on an author site. */
  --brand: #e42a27;
  --brand-dark: #c01f1c;
  --brand-darker: #971714;
  --brand-pale: #fef5f4;
  --brand-tint: #fde8e7;

  /* Cool near-black against plain white. DON'T SUCK is a hard red slab with
     white type and no ornament, and Andre writes the same way — short, blunt,
     no decoration. The ground should not soften that. */
  --ink: #0d0d0f;
  --ink-body: #33343a;
  --ink-mid: #6a6c74;
  --ink-light: #9b9da5;

  --paper: #ffffff;
  --paper-warm: #f4f4f2;
  --line: #e2e2e0;
  --white: #fff;

  --shadow-sm: 0 1px 2px rgba(23, 25, 15, .06);
  --shadow: 0 10px 30px rgba(23, 25, 15, .10);
  --shadow-lg: 0 24px 60px rgba(23, 25, 15, .18);

  /* A serif was wrong here: he is not a literary author and the book is not a
     literary book. Falling back to system-ui afterwards was worse — a site set
     in the browser's own UI font reads as unfinished. Archivo at 800/900 is the
     closest thing to the condensed bold caps on the DON'T SUCK jacket, the one
     piece of design his readers already recognise. Inter carries body text. */
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: var(--display);

  --wrap: 1140px;
  --gutter: 20px;
}

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

/* The browser hides [hidden] with `display: none`, but that is a UA rule and
   ANY author rule setting display beats it. `.store-layout { display: grid }`
   silently defeated `hidden` on the cart, so removing the last item left the
   lines and the Checkout button on screen while the cart itself was empty.
   Making it !important means `hidden` can be trusted anywhere. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-dark); }
a:hover { color: var(--brand-darker); }

/* Headlines are set heavy and tight, the way the book jacket sets his name.
   The scale is deliberately larger than a default template: a speaker's site
   has to carry from across a room on a phone held at arm's length. */
h1, h2, h3, h4 {
  font-family: var(--display); color: var(--ink); margin: 0 0 .5em;
  font-weight: 800; line-height: 1.02; letter-spacing: -.03em;
}
h1 { font-size: clamp(2.6rem, 7.5vw, 5rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.015em; }
p { margin: 0 0 1.1em; }

/* Set a phrase in the jacket's voice: condensed, uppercase, hard red. */
.shout {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.01em; line-height: .95;
}
.in-red { color: var(--brand); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding-inline: var(--gutter); }

.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-tint { background: var(--paper-warm); }
.eyebrow {
  font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-dark); margin-bottom: 14px; display: block;
}

/* ---------- Creed ---------- */
/* Andre's own description of himself, 2026-08-31. It carries the whole premise
   of a book called DON'T SUCK — the bluntness comes from wanting people to do
   well, not from contempt — so it is set large and given room, and deliberately
   not decorated with quote marks. It is not a testimonial; it is him talking. */
.creed {
  max-width: 24ch;
  margin: 0 auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4.2vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.creed .in-red { display: block; }
.creed-attrib {
  margin-top: 22px; text-align: center;
  font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-dark);
}
@media (max-width: 640px) { .creed { max-width: 18ch; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 252, 250, .92);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
/* An author's name IS the logo. Set in type rather than an image: the only
   logo files he owns are for Andre LeClair Properties and the "and Company"
   umbrella he cut, neither of which belongs on a book site. This echoes the
   byline on the DON'T SUCK cover. */
.logo { display: inline-flex; align-items: baseline; gap: 2px; text-decoration: none; }
.logo-mark {
  font: 700 19px/1 var(--sans); letter-spacing: .085em; color: var(--ink);
  white-space: nowrap;
}
.logo-dot { color: var(--brand); font-weight: 700; }
.site-footer .logo-mark { color: #f2f3ee; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-body); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: var(--brand-tint); color: var(--brand-darker); }
.nav a[aria-current="page"] { color: var(--brand-darker); font-weight: 600; }

.cart-link { display: inline-flex; align-items: center; gap: 7px; }
.cart-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--brand); color: #fff;
  font: 600 12px/1 var(--sans); font-variant-numeric: tabular-nums;
}

/* Cart page */
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.cart-line img { border-radius: 6px; box-shadow: var(--shadow-sm); }
.qty-group { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); }
.qty-group button {
  width: 34px; height: 36px; border: 0; background: none; cursor: pointer;
  font-size: 17px; color: var(--ink-mid); line-height: 1;
}
.qty-group button:hover { background: var(--paper-warm); color: var(--ink); }
.qty-group input {
  width: 44px; height: 36px; border: 0; border-inline: 1px solid var(--line);
  text-align: center; font: inherit; font-size: 15px; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.qty-group input::-webkit-outer-spin-button, .qty-group input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-line-price { text-align: right; font-family: var(--sans); font-weight: 600; font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
@media (max-width: 620px) {
  .cart-line { grid-template-columns: 64px 1fr; gap: 14px; }
  .cart-line-price { grid-column: 2; text-align: left; }
}

/* Video cards + lightbox.
   The grid shows thumbnails only. Nothing embeds YouTube until the visitor
   asks for it, so the page stays fast, sets no third-party cookies on load,
   and never offers a "Watch on YouTube" link that sends people away. */
.video-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; cursor: pointer; text-align: left; padding: 0; width: 100%;
  font: inherit; color: inherit; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.video-card:hover { box-shadow: var(--shadow); border-color: var(--brand-tint); transform: translateY(-2px); }
.video-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.video-thumb { position: relative; aspect-ratio: 16/9; background: var(--ink-800); overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-badge {
  position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%;
  background: rgba(23, 25, 15, .62); display: grid; place-items: center;
  transition: background .18s, transform .18s;
}
.video-card:hover .play-badge { background: var(--brand); transform: scale(1.06); }
.play-badge::after {
  content: ""; width: 0; height: 0; margin-left: 5px;
  border-left: 19px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.video-card-body { padding: 18px 20px 20px; }
.video-card-body h3 { font-size: 1.08rem; margin: 0 0 6px; }
.video-card-body p { font-size: .92rem; color: var(--ink-mid); margin: 0; }

.vlightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(12, 13, 8, .88); padding: 24px;
  align-items: center; justify-content: center;
}
.vlightbox.open { display: flex; }
.vlightbox-content { width: min(1000px, 100%); max-height: 90vh; overflow: auto; }
.vlightbox-video { aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; }
.vlightbox-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.vlightbox-meta { color: #e9ebe3; padding: 18px 4px 0; }
.vlightbox-meta h3 { color: #fff; font-size: 1.35rem; margin: 0 0 6px; }
.vlightbox-meta p { color: #b9beb0; margin: 0; font-size: .95rem; }
.vlightbox-close {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px;
  border-radius: 50%; border: 0; cursor: pointer; font-size: 26px; line-height: 1;
  background: rgba(255, 255, 255, .14); color: #fff;
}
.vlightbox-close:hover { background: rgba(255, 255, 255, .26); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 10px;
  box-shadow: var(--shadow-lg); font-size: 15px; z-index: 100;
  display: flex; align-items: center; gap: 14px;
}
.toast a { color: var(--brand); font-weight: 600; text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 38px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 8px; border-radius: 6px; font-size: 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 15px 28px; border-radius: 3px; border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-darker); }
.btn-ghost { background: none; color: var(--ink-mid); padding-inline: 6px; }
.btn-ghost:hover { color: var(--ink); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ----------
   Full-bleed and near-black. A pale hero with a small portrait beside text is
   what a stock author template does, and it undersells him. His book is a hard
   red slab and his opening line is "don't suck" — the front door should hit
   with the same directness. */
.hero {
  background: var(--ink); color: #e9e9ec;
  padding: clamp(52px, 8vw, 104px) 0 clamp(52px, 8vw, 104px);
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero .eyebrow { color: var(--brand); }
.hero-lede {
  font-size: clamp(1.08rem, 2vw, 1.32rem); color: #b6b8c0;
  margin-bottom: 1.7em; max-width: 38ch; line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-secondary {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3);
}
.hero .btn-secondary:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; object-fit: cover; aspect-ratio: 4/5;
  border-radius: 2px; filter: grayscale(1) contrast(1.08);
}
/* A red edge rather than a rounded card — echoes the jacket's hard block. */
.hero-media::after {
  content: ""; position: absolute; inset: auto -14px -14px auto;
  width: 62%; height: 34%; background: var(--brand); z-index: -1;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 380px; }
  .hero-media img { aspect-ratio: 3/2; }
}

/* Inner pages get a compact version of the same dark opening, so the site has
   one architecture rather than a bold homepage bolted to plain documents. */
.page-head {
  background: var(--ink); color: #e9e9ec;
  padding: clamp(44px, 6vw, 76px) 0 clamp(40px, 5.5vw, 64px);
  text-align: center;
}
.page-head h1 { color: #fff; margin-bottom: .25em; }
.page-head .eyebrow { color: var(--brand); }
.page-head p {
  color: #b6b8c0; font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  max-width: 48ch; margin: 0 auto; line-height: 1.55;
}

/* The roles line under "Meet Andre". Set in the display face so it reads as a
   subtitle rather than a paragraph, with the slashes stepped back in red. */
.page-head .roles {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.35rem); letter-spacing: .04em;
  text-transform: uppercase; color: #cfd1d8; max-width: none;
}
.page-head .roles span { color: var(--brand); margin: 0 .4em; font-weight: 400; }

/* Credibility strip. Facts he has actually earned, stated flatly. */
.proof {
  background: var(--brand); color: #fff;
  padding: 18px 0;
}
.proof-inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px clamp(20px, 5vw, 52px); text-align: center;
}
.proof span {
  font: 600 clamp(13px, 1.6vw, 15px)/1.3 var(--sans);
  letter-spacing: .04em; text-transform: uppercase;
}
.proof b { font-weight: 900; font-family: var(--display); }

/* ---------- Book ---------- */
.book-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 760px) { .book-grid { grid-template-columns: 1fr; } .book-cover-wrap { max-width: 240px; } }
.book-cover-wrap img { filter: drop-shadow(0 18px 34px rgba(23,25,15,.22)); }
.rating { display: flex; align-items: center; gap: 8px; color: var(--ink-mid); font-size: 15px; margin-bottom: 18px; }
.stars { color: var(--brand); letter-spacing: 2px; }
.retail-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.retail-links a {
  font-size: 14px; text-decoration: none; color: var(--ink-body);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; background: var(--white);
}
.retail-links a:hover { border-color: var(--brand); color: var(--brand-darker); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card-grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

.pill {
  display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 2px; background: var(--brand-tint); color: var(--brand-darker);
}
.pill-muted { background: var(--paper-warm); color: var(--ink-mid); }

/* ---------- Bio sections ---------- */
.bio-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; margin-bottom: clamp(40px, 6vw, 72px); }
.bio-block:nth-child(even) .bio-media { order: 2; }
.bio-media img { border-radius: 14px; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 760px) {
  .bio-block { grid-template-columns: 1fr; }
  .bio-block:nth-child(even) .bio-media { order: 0; }
}

/* ---------- Signup ---------- */
.signup { background: var(--ink); color: #e9ebe3; }
.signup h2 { color: #fff; }
.signup p { color: #b9beb0; }
.signup-form { display: flex; gap: 10px; max-width: 480px; flex-wrap: wrap; }
.signup-form input {
  flex: 1 1 220px; padding: 15px 16px; border-radius: 3px; border: 1px solid #3a3d33;
  background: #232619; color: #fff; font: inherit; font-size: 16px;
}
.signup-form input::placeholder { color: #7d8274; }
.signup-form input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.signup-note { font-size: 13px; color: #8d9284; margin-top: 12px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font: 600 14px/1.4 var(--sans); color: var(--ink); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-light); font-size: 13px; }
.input, select.input, textarea.input {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 3px;
  font: inherit; font-size: 16px; background: var(--white); color: var(--ink);
}
.input:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row > * { flex: 1 1 140px; }

/* ---------- Store ---------- */
.store-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (max-width: 900px) { .store-layout { grid-template-columns: 1fr; } }
.order-summary { position: sticky; top: 92px; }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--ink-mid); font-size: 15px; }
.line-total {
  border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px;
  color: var(--ink); font-weight: 700; font-size: 19px; font-family: var(--sans);
}
.price-lg { font-family: var(--sans); font-weight: 700; font-size: 2rem; color: var(--ink); }

/* Simulated Stripe hosted page. Deliberately its own look so nobody mistakes
   this for Andre's site or for the genuine Stripe checkout. */
.stripe-shell { background: #f6f9fc; min-height: 100vh; }
.stripe-card {
  max-width: 460px; margin: 0 auto; background: #fff; border-radius: 12px;
  box-shadow: 0 15px 35px rgba(60,66,87,.12), 0 5px 15px rgba(0,0,0,.08); padding: 30px;
}
.stripe-head { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.stripe-head .mark { width: 30px; height: 30px; border-radius: 7px; background: #635bff; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; }
.stripe-brand { font: 600 15px var(--sans); color: #3c4257; }

/* ---------- Notices ---------- */
.notice {
  border-radius: 10px; padding: 14px 18px; font-size: 14.5px; line-height: 1.55;
  border: 1px solid; margin-bottom: 24px;
}
.notice-test { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.notice-info { background: var(--brand-tint); border-color: #cbe6b5; color: var(--brand-darker); }
.notice strong { font-weight: 700; }

.empty-state {
  border: 1px dashed var(--line); border-radius: 3px; padding: 48px 24px; text-align: center;
  background: var(--white);
}
.empty-state h3 { margin-bottom: .4em; }
.empty-state p { color: var(--ink-mid); max-width: 46ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9ba093; padding: 52px 0 34px; margin-top: auto; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 30px; }
.site-footer a { color: #c3c8ba; text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.footer-nav { display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.footer-brand img { height: 30px; opacity: .85; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid #2c2f24; padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

body { display: flex; flex-direction: column; min-height: 100vh; }

/* On a short page `main` grows to push the footer down, and that leftover
   height used to render as bare page background — a pale band between the dark
   sign-up strip and the dark footer that read as a broken layout. Growing the
   LAST section instead means the leftover belongs to whatever section is
   already there, so it keeps that section's colour. No effect on tall pages. */
main { flex: 1 0 auto; display: flex; flex-direction: column; }
main > :last-child { flex: 1 0 auto; }

.tabular { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--ink-mid); }
.small { font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
