/*
 * SavvyLearn brand book (Sam, Nov 30, 2026). Built on the site's own styles.css,
 * so every component shown here is the live one.
 */

.bb-hero {
  padding: 150px 0 72px;
  border-bottom: 2px solid var(--ink);
}

.bb-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}

.bb-hero h1 {
  font-size: clamp(44px, 5.2vw, 78px);
  line-height: 1;
}

.bb-hero .lead {
  max-width: 560px;
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.55;
}

.bb-hero-canvas {
  width: 100%;
  height: clamp(240px, 24vw, 340px);
}

.bb-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 96px;
  align-items: start;
}

.bb-split .section-lead:first-child {
  margin-top: 0;
}

.bb-rules {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.bb-rules li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 17px;
}

.bb-dot {
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: translateY(2px);
}

.bb-dot-red {
  background: var(--red);
}

.bb-dot-blue {
  background: var(--blue);
}

.bb-dot-yellow {
  background: var(--yellow);
}

.bb-list {
  display: grid;
  gap: 10px;
  margin-top: 40px;
  max-width: 760px;
}

.bb-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-2);
}

.bb-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
}

.bb-list-plain {
  margin-top: 0;
}

.bb-list-plain li {
  color: var(--ink);
  font-size: 18px;
}

/* Tiles: brick cards that frame a sample */

.bb-tile {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--edge);
  overflow: hidden;
}

.bb-tile-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 32px;
}

.bb-tile figcaption,
.bb-caption {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line-strong);
  font-size: 15px;
  color: var(--ink-2);
}

.bb-tile figcaption h3 {
  font-size: 21px;
  color: var(--ink);
}

.bb-tile figcaption p {
  margin-top: 8px;
}

.bb-tile-ink {
  background: var(--ink);
}

.bb-tile-blue {
  background-color: var(--blue);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 6px, transparent 6.5px);
  background-size: 32px 32px;
}

.bb-tile-ink figcaption,
.bb-tile-blue figcaption,
.bb-tile-blue .bb-caption {
  background: #ffffff;
}

.bb-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.bb-logos img {
  width: 288px;
  height: auto;
}

.bb-logos .bb-mark {
  width: 96px;
}

/* Color */

.bb-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.bb-swatch {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--edge);
  overflow: hidden;
  padding-bottom: 18px;
}

.bb-chip {
  display: block;
  height: 112px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  background: var(--c);
}

.bb-swatch-red {
  --c: #d8432f;
}

.bb-swatch-yellow {
  --c: #f2b632;
}

.bb-swatch-white {
  --c: #f4f2ec;
}

.bb-swatch-blue {
  --c: #2f5da8;
}

.bb-swatch-ink {
  --c: #16181d;
}

.bb-swatch-ink2 {
  --c: #5d6068;
}

.bb-swatch-stone {
  --c: #f1f0ec;
}

.bb-swatch-cream {
  --c: #fbf1d8;
}

.bb-swatch h3,
.bb-swatch p {
  padding: 0 18px;
}

.bb-swatch h3 {
  font-size: 19px;
}

.bb-swatch p {
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.bb-swatch .bb-hex {
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Type */

.bb-type {
  margin-top: 56px;
  border-top: 2px solid var(--ink);
}

.bb-type-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 40px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.bb-type-meta {
  font-size: 14.5px;
  color: var(--ink-2);
}

.bb-type-sample {
  font-family: var(--display);
  color: var(--ink);
}

.bb-type-display {
  font-size: clamp(44px, 5.2vw, 78px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.bb-type-h2 {
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.bb-type-h3 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.bb-type-body {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
}

.bb-type-small {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
}

/* Bricks */

.bb-brick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.bb-canvas {
  width: 100%;
  height: 240px;
}

.bb-flat-demo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  height: 240px;
  padding: 24px 40px;
}

.bb-flat-demo svg {
  width: 180px;
  height: auto;
}

.bb-card-demo {
  position: relative;
  width: 220px;
  padding: 22px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--edge);
  font-weight: 600;
  --stud: var(--yellow);
}

.bb-card-demo::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 20px;
  width: 74px;
  height: 8px;
  background-image:
    linear-gradient(var(--stud), var(--stud)),
    linear-gradient(var(--stud), var(--stud)),
    linear-gradient(var(--stud), var(--stud));
  background-size: 18px 8px;
  background-position:
    2px 0,
    28px 0,
    54px 0;
  background-repeat: no-repeat;
  filter: drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink));
}

.bb-subhead {
  margin-top: 64px;
  font-size: 26px;
}

.bb-note {
  margin-top: 12px;
  max-width: 640px;
  color: var(--ink-2);
}

.bb-sizes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.bb-size {
  width: 100%;
  height: 130px;
}

.bb-sizes p {
  margin-top: 8px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

/* Components */

.bb-components {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.bb-row {
  flex-wrap: wrap;
  gap: 20px 28px;
}

.bb-tab-demo {
  display: inline-block;
  cursor: default;
}

.bb-flow-demo {
  width: 100%;
  margin: 0;
}

.bb-baseplate .bb-tile-art {
  justify-content: flex-start;
}

.bb-baseplate .button-ink {
  background: var(--yellow);
  color: var(--ink);
}

/* Motion */

.bb-specs {
  display: grid;
  margin: 32px 0 0;
  border-top: 2px solid var(--ink);
}

.bb-specs div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.bb-specs dt {
  font-weight: 600;
}

.bb-specs dd {
  margin: 0;
  color: var(--ink-2);
}

.bb-motion {
  width: 100%;
  height: clamp(320px, 34vw, 460px);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--edge);
}

@media (max-width: 1100px) {
  .bb-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .bb-swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .bb-hero {
    padding: 112px 0 48px;
  }

  .bb-hero-inner,
  .bb-logos,
  .bb-brick-grid,
  .bb-components {
    grid-template-columns: minmax(0, 1fr);
  }

  .bb-hero h1 {
    font-size: 40px;
  }

  .bb-hero .lead {
    font-size: 17px;
  }

  .bb-logos img {
    width: 220px;
  }

  .bb-type-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .bb-sizes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bb-flow-demo {
    flex-direction: column;
  }
}

/* Grown-up pass (Nov 30, 2026): hairlines instead of ink rules, no studs on the
   demo card, an ink closing band instead of the blue baseplate. */

.bb-hero {
  border-bottom: 1px solid var(--line);
}

.bb-tile-cream {
  background: var(--duck-pale);
}

.bb-tile-cream figcaption {
  background: #ffffff;
}

.bb-swatch,
.bb-type,
.bb-specs {
  box-shadow: none;
}

.bb-swatch {
  border: 1px solid var(--line-strong);
}

.bb-chip {
  border-bottom: 1px solid var(--line-strong);
}

.bb-type,
.bb-specs {
  border-top: 1px solid var(--line-strong);
}

.bb-card-demo {
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.bb-card-demo::after {
  display: none;
}

.bb-flat-demo {
  gap: 24px;
}

.bb-list li::before,
.bb-dot {
  border: 0;
}

.bb-motion {
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.bb-baseplate .button-ink {
  background: var(--red);
  color: #ffffff;
}

.bb-tile-ink .bb-caption {
  background: #ffffff;
}

.bb-components .bb-tile {
  display: flex;
  flex-direction: column;
}

.bb-components .bb-caption {
  flex: 1;
}
