/* SY Books — component + layout styles. Built on tokens.css.
   "See yourself clearly." Cool, literary, grounded. */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

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

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sy-body);
  font-size: var(--sy-body-md);
  line-height: 1.6;
  color: var(--sy-ink);
  background: var(--sy-paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--sy-teal); outline-offset: 2px; border-radius: 4px; }

/* ---- Type helpers ---- */
.sy-display { font-family: var(--sy-display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.06; color: var(--sy-ink); }
.sy-eyebrow { font-size: var(--sy-meta); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sy-plum); }
.sy-lead { font-size: var(--sy-body-lg); color: var(--sy-ink-soft); line-height: 1.55; }
.sy-muted { color: var(--sy-ink-mute); }

/* ---- Layout ---- */
.sy-wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.sy-section { padding: clamp(48px, 8vw, var(--sy-6)) 0; }

/* ---- Buttons ---- */
.sy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sy-body); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: var(--sy-r-pill);
  background: var(--sy-teal); color: #fff;
  transition: background var(--sy-fast) var(--sy-ease), transform var(--sy-fast) var(--sy-ease);
}
.sy-btn:hover { background: var(--sy-teal-deep); }
.sy-btn:active { transform: translateY(1px); }
.sy-btn--block { width: 100%; padding: 15px 24px; }
.sy-btn--ghost { background: var(--sy-surface); color: var(--sy-ink); border: 1px solid var(--sy-line); }
.sy-btn--ghost:hover { background: #fff; border-color: var(--sy-ink-mute); }
.sy-btn--onteal { background: var(--sy-surface); color: var(--sy-ink); }
.sy-btn--onteal:hover { background: #fff; }
.sy-btn--onink { background: var(--sy-surface); color: var(--sy-ink); }
.sy-btn .lucide { width: 1.1em; height: 1.1em; stroke-width: 1.6; }

.sy-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--sy-plum);
  background: color-mix(in srgb, var(--sy-plum) 9%, var(--sy-surface));
  border: 1px solid color-mix(in srgb, var(--sy-plum) 22%, transparent);
  padding: 6px 12px; border-radius: var(--sy-r-pill);
}
.sy-pill .lucide { width: 14px; height: 14px; stroke-width: 1.6; }

/* ---- Top nav (marketing) ---- */
.sy-nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--sy-paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--sy-line);
}
.sy-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.sy-nav__links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); }
.sy-nav__links a { font-size: 15px; color: var(--sy-ink-soft); transition: color var(--sy-fast) var(--sy-ease); }
.sy-nav__links a:hover { color: var(--sy-ink); }
.sy-nav__links a.sy-nav__cta { color: #fff; padding: 9px 18px; font-size: 14px; }
.sy-nav__links a.sy-nav__cta:hover { color: #fff; }
.sy-nav__toggle { display: none; }

/* ---- Brand mark ---- */
.sy-brand { display: inline-flex; align-items: center; gap: 10px; }
.sy-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(var(--sy-teal) 0 50%, color-mix(in srgb, var(--sy-teal) 26%, transparent) 50% 100%);
}
.sy-mark--sm { width: 24px; height: 24px; }
.sy-mark--lg { width: 44px; height: 44px; }
.sy-wordmark { font-family: var(--sy-display); font-weight: 600; font-size: 20px; color: var(--sy-ink); letter-spacing: -0.01em; }

/* ---- Hero ---- */
.sy-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(40px, 7vw, 88px) 0; }
.sy-hero__title { font-family: var(--sy-display); font-weight: 500; font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.02em; line-height: 1.02; margin: 16px 0 20px; }
.sy-hero__body { font-size: var(--sy-body-lg); color: var(--sy-ink-soft); max-width: 30ch; }
.sy-hero__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.sy-hero__note { font-size: 14px; color: var(--sy-ink-mute); }
.sy-hero__media { position: relative; }
.sy-hero__img { aspect-ratio: 4/5; border-radius: var(--sy-r-lg); background:
  repeating-linear-gradient(135deg, #e2e5df 0 12px, #eaece7 12px 24px); border: 1px solid var(--sy-line);
  display: flex; align-items: center; justify-content: center; }
.sy-hero__img .ph { font-size: 13px; color: var(--sy-ink-mute); background: var(--sy-surface); padding: 5px 12px; border-radius: var(--sy-r-pill); }
.sy-quote-float {
  position: absolute; left: -18px; bottom: 34px; max-width: 210px;
  background: var(--sy-ink); color: #fff; padding: 18px 20px; border-radius: var(--sy-r-md);
  box-shadow: 0 18px 40px -18px rgba(38,42,47,.5);
}
.sy-quote-float p { font-family: var(--sy-display); font-size: 17px; line-height: 1.3; }
.sy-quote-float .who { display: block; margin-top: 10px; font-family: var(--sy-body); font-size: 12px; color: var(--sy-plum-lt); }

/* ---- Section heads ---- */
.sy-sec-head { max-width: 620px; margin-bottom: clamp(28px, 4vw, 44px); }
.sy-sec-head h2 { font-family: var(--sy-display); font-weight: 500; font-size: clamp(28px, 3.4vw, var(--sy-d2)); letter-spacing: -0.015em; line-height: 1.1; margin-top: 12px; }
.sy-sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }

/* ---- Band (alt background) ---- */
.sy-band { background: #E7EAE5; }

/* ---- Framework cards ---- */
.sy-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.sy-card { background: var(--sy-surface); border: 1px solid var(--sy-line); border-radius: var(--sy-r-md); padding: clamp(20px, 2.4vw, 28px); }
.sy-fw__icon { color: var(--sy-teal); width: 26px; height: 26px; stroke-width: 1.6; }
.sy-fw h3 { font-family: var(--sy-display); font-weight: 500; font-size: 21px; margin: 16px 0 10px; }
.sy-fw p { color: var(--sy-ink-soft); font-size: 15.5px; margin-bottom: 18px; }

/* ---- Book list (homepage 3-col rows) ---- */
.sy-booklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px) clamp(20px, 3vw, 40px); }
.sy-bookrow { display: flex; gap: 14px; align-items: center; }
.sy-bookrow__meta { display: flex; flex-direction: column; }
.sy-bookrow__meta .fw { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sy-plum); }
.sy-bookrow__meta .t { display: block; font-family: var(--sy-display); font-size: 17px; line-height: 1.2; margin: 3px 0; color: var(--sy-ink); }
.sy-bookrow__meta .a { display: block; font-size: 13.5px; color: var(--sy-ink-mute); }

/* ---- Book cover component ---- */
.sy-cover {
  position: relative; aspect-ratio: 2/3; border-radius: var(--sy-r-md); overflow: hidden;
  container-type: size; box-shadow: 0 10px 26px -14px rgba(38,42,47,.45);
  transition: transform 220ms var(--sy-ease);
}
.sy-cover--sm { width: 62px; flex: none; }
.sy-cover img, .sy-cover .sy-cover__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sy-cover__fallback { display: flex; }
.sy-cover__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,25,.55) 0%, rgba(20,22,25,0) 30%, rgba(20,22,25,0) 55%, rgba(20,22,25,.7) 100%); }
.sy-cover__ring { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.sy-cover__dot { position: absolute; top: 8cqi; right: 8cqi; width: 9cqi; height: 9cqi; border-radius: 50%; background: linear-gradient(var(--sy-plum-lt) 0 50%, color-mix(in srgb, var(--sy-plum-lt) 30%, transparent) 50% 100%); }
.sy-cover__label { position: absolute; top: 8cqi; left: 8cqi; font-size: 5.2cqi; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.82); text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.sy-cover__foot { position: absolute; left: 8cqi; right: 8cqi; bottom: 7cqi; }
.sy-cover__foot .t { font-family: var(--sy-display); font-weight: 500; font-size: 9.5cqi; line-height: 1.05; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.sy-cover__foot .a { font-size: 5.4cqi; color: rgba(255,255,255,.82); margin-top: 3cqi; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
a.sy-cover-link:hover .sy-cover { transform: translateY(-4px); }

/* framework tints for fallback covers */
.fw-clarity { background: linear-gradient(160deg, #2F6C6A, #234E4D); }
.fw-foundations { background: linear-gradient(160deg, #5B6B7B, #3c4854); }
.fw-traps { background: linear-gradient(160deg, #7C5570, #4f3548); }

/* ---- Transformation quote cards ---- */
.sy-stories { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: stretch; }
.sy-quote-big { background: var(--sy-ink); color: #fff; border-radius: var(--sy-r-lg); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.sy-quote-big .mark { font-family: var(--sy-display); font-size: 40px; color: var(--sy-plum-lt); line-height: 0.5; }
.sy-quote-big p { font-family: var(--sy-display); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; margin: 18px 0 22px; }
.sy-quote-big .who { font-family: var(--sy-body); font-size: 13.5px; color: var(--sy-plum-lt); }
.sy-quote-col { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.sy-quote-sm { background: var(--sy-surface); border: 1px solid var(--sy-line); border-radius: var(--sy-r-md); padding: 24px; }
.sy-quote-sm p { font-size: 16px; color: var(--sy-ink); }
.sy-quote-sm .who { font-size: 13px; color: var(--sy-ink-mute); margin-top: 12px; }

/* ---- Teal CTA band ---- */
.sy-cta-band { background: var(--sy-teal); color: #fff; border-radius: var(--sy-r-lg); padding: clamp(32px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.sy-cta-band h2 { font-family: var(--sy-display); font-weight: 500; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.015em; max-width: 20ch; }
.sy-cta-band p { color: rgba(255,255,255,.82); margin-top: 10px; max-width: 46ch; }

/* ---- Footer ---- */
.sy-footer { border-top: 1px solid var(--sy-line); padding: 30px 0; }
.sy-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sy-footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.sy-footer__links a { font-size: 14px; color: var(--sy-ink-soft); }
.sy-footer__links a:hover { color: var(--sy-ink); }
.sy-footer__copy { font-size: 13px; color: var(--sy-ink-mute); }

/* ---- Entry animation ---- */
@media (prefers-reduced-motion: no-preference) {
  .sy-animate { opacity: 0; transform: translateY(10px); animation: syUp 320ms var(--sy-ease) forwards; }
  @keyframes syUp { to { opacity: 1; transform: none; } }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .sy-hero { grid-template-columns: 1fr; }
  .sy-hero__media { order: -1; }
  .sy-stories { grid-template-columns: 1fr; }
  .sy-grid3 { grid-template-columns: 1fr; }
  .sy-booklist { grid-template-columns: 1fr; }
  .sy-sec-head--row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .sy-nav__links { display: none; }
  .sy-nav__links.is-open { display: flex; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; gap: 14px; background: var(--sy-paper); border-bottom: 1px solid var(--sy-line); padding: 18px clamp(20px,4vw,40px) 24px; }
  .sy-nav__toggle { display: inline-flex; }
  .sy-cta-band { flex-direction: column; align-items: flex-start; }
}
