@font-face {
  font-family: "TIBUMO-FONT";
  src: url("../fonts/TIBUMO-FONT.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0152-0153, U+0178, U+2018-2019, U+20AC, U+F000;
}

:root {
  --tibumo-blue: #4499F9;
  --tibumo-green: #69A623;
  --tibumo-orange: #EB7624;
  --tibumo-purple: #8335CE;
  --tibumo-yellow: #F5BE32;
  --tibumo-pink: #FF69B4;
  --tibumo-skin: #F6E8DA;
  --tibumo-black: #1A1A1A;
  --tibumo-cream: #F9F6F1;
  --brand-font: "TIBUMO-FONT", "Nunito", sans-serif;
  --text-font: "Nunito", sans-serif;
  --surface: #fffaf4;
  --surface-strong: #fffaf4;
  --line: rgba(26, 26, 26, 0.13);
  --muted: rgba(26, 26, 26, 0.70);
  --shadow-action: 0 1px 3px rgba(26, 26, 26, 0.12), inset 0 -1px 0 rgba(26, 26, 26, 0.08);
  --shadow-action-hover: 0 2px 6px rgba(26, 26, 26, 0.14), inset 0 -1px 0 rgba(26, 26, 26, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding-top: 72px;
  font-family: var(--text-font);
  color: var(--tibumo-black);
  background: var(--tibumo-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.brand-home {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 18%, rgba(68, 153, 249, 0.10), transparent 24%),
    radial-gradient(circle at 100% 44%, rgba(235, 118, 36, 0.10), transparent 25%),
    radial-gradient(circle at 6% 76%, rgba(131, 53, 206, 0.08), transparent 22%),
    var(--tibumo-cream);
}

.brand-home::before {
  content: "";
  position: absolute;
  top: clamp(88px, 9vw, 132px);
  left: 0;
  width: 100vw;
  height: min(780px, calc(100vh - 120px));
  z-index: -1;
  pointer-events: none;
  transform: none;
  background: url("../img/brand/home-doodle-light.webp") center / cover no-repeat;
  opacity: 0.208;
}

.brand-home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(143, 78, 37, 0.030) 1px, transparent 1px),
    linear-gradient(rgba(143, 78, 37, 0.024) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.16;
}

.brand-home > * {
  position: relative;
  z-index: 1;
}

.brand-home__hero,
.brand-home-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.brand-home__hero {
  padding: clamp(42px, 6vw, 74px) 0 clamp(36px, 5vw, 58px);
}

.brand-home__intro {
  max-width: 820px;
}

.brand-home__eyebrow,
.brand-home-badge,
.brand-home-kicker {
  color: var(--tibumo-orange);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-home__eyebrow {
  margin: 0 0 14px;
}

.brand-home__title {
  margin: 0;
  max-width: 740px;
  font-family: var(--brand-font);
  font-size: 48px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
}

.brand-home__lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
}

.brand-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.brand-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 13px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--tibumo-orange);
  font-family: var(--text-font);
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow-action);
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.brand-home-button:hover,
.brand-home-button:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  color: var(--tibumo-purple);
  box-shadow: var(--shadow-action-hover);
  outline: none;
}

.brand-home-button:focus-visible {
  outline: 3px solid var(--tibumo-purple);
  outline-offset: 3px;
}

.brand-home-button--primary { background: var(--tibumo-orange); color: #fff; }

.brand-home-button--primary:hover,
.brand-home-button--primary:focus-visible {
  background: var(--tibumo-purple);
  color: #fff;
}

@media (max-width: 820px) {
  .brand-home__actions {
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 24px;
  }
  .brand-home__actions .brand-home-button {
    flex: 1 1 0;
    width: auto;
    min-height: 42px;
    padding: 8px 10px;
    line-height: 1.15;
    text-align: center;
  }
}

.brand-home-tile,
.brand-home-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.brand-home-section {
  position: relative;
  isolation: isolate;
  padding: clamp(56px, 7vw, 86px) 0 clamp(42px, 6vw, 72px);
  border-top: 0;
}

.brand-home-section::after {
  content: "";
  position: absolute;
  inset: 0 50%;
  width: 100vw;
  margin-left: -50vw;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, rgba(68, 153, 249, 0.055), transparent 24%),
    radial-gradient(circle at 88% 54%, rgba(105, 166, 35, 0.050), transparent 26%);
  opacity: 0.82;
}

.brand-home-section:nth-of-type(2)::after {
  background:
    radial-gradient(circle at 8% 34%, rgba(131, 53, 206, 0.060), transparent 24%),
    radial-gradient(circle at 92% 18%, rgba(235, 118, 36, 0.060), transparent 24%);
}

.brand-home-section:nth-of-type(3)::after {
  background:
    radial-gradient(circle at 10% 20%, rgba(245, 190, 50, 0.060), transparent 24%),
    radial-gradient(circle at 90% 72%, rgba(68, 153, 249, 0.055), transparent 26%);
}

.brand-home-section:nth-of-type(4)::after {
  background:
    radial-gradient(circle at 7% 72%, rgba(255, 105, 180, 0.050), transparent 24%),
    radial-gradient(circle at 90% 24%, rgba(105, 166, 35, 0.050), transparent 26%);
}

.brand-home-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 1120px);
  height: 9px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: url("../img/brand/tibumo-color-bar.png") center / 100% 100% no-repeat;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.10);
}

.brand-home-section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.42fr);
  gap: 28px;
  align-items: end;
  margin-bottom: clamp(24px, 4vw, 38px);
}

.brand-home-section__title,
.brand-home-panel__title {
  margin: 0;
  max-width: 100%;
  font-family: var(--brand-font);
  font-size: 48px;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: normal;
}
.brand-home-section__title--logo { display: flex; align-items: center; min-height: clamp(96px, 11vw, 132px); }
.brand-home-section__title--logo img { display: block; width: clamp(170px, 18vw, 252px); height: auto; object-fit: contain; }
.brand-home-section__title-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.brand-home-logo-switch { display: block; }
.brand-home-section__title--logo .brand-home-logo--dark, :root[data-theme="dark"] .brand-home-section__title--logo .brand-home-logo--light { display: none; }
:root[data-theme="dark"] .brand-home-section__title--logo .brand-home-logo--dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-home-section__title--logo .brand-home-logo--light { display: none; } :root:not([data-theme="light"]) .brand-home-section__title--logo .brand-home-logo--dark { display: block; } }
#resources-title { scroll-margin-top: calc(var(--site-nav-height, 72px) + 24px); }

.brand-home-rainbow-title {
  white-space: normal;
}

.brand-home__title span:nth-child(5n+1), .brand-home-rainbow-title span:nth-child(5n+1) { color: var(--tibumo-blue); }
.brand-home__title span:nth-child(5n+2), .brand-home-rainbow-title span:nth-child(5n+2) { color: var(--tibumo-green); }
.brand-home__title span:nth-child(5n+3), .brand-home-rainbow-title span:nth-child(5n+3) { color: var(--tibumo-orange); }
.brand-home__title span:nth-child(5n+4), .brand-home-rainbow-title span:nth-child(5n+4) { color: var(--tibumo-purple); }
.brand-home__title span:nth-child(5n+5), .brand-home-rainbow-title span:nth-child(5n+5) { color: var(--tibumo-pink); }

.brand-home-section__text,
.brand-home-panel__text {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
}

.brand-home-grid {
  display: grid;
  gap: 16px;
}

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

.brand-home-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brand-home-grid--resources {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.brand-home-grid--books {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.brand-home-tile {
  --tile-color: var(--tibumo-orange);
  --tile-text: var(--tibumo-black);
  --tile-muted: rgba(26, 26, 26, 0.72);
  min-height: 168px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  border-color: color-mix(in srgb, var(--tile-color) 28%, var(--line));
  background: var(--surface);
  color: var(--tile-text);
}

.brand-home-tile--large {
  min-height: 286px;
  padding: clamp(22px, 3vw, 30px);
}

.brand-home-app-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.74fr);
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.brand-home-app-card__content {
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand-home-app-card__media {
  min-height: 100%;
  border-left: 1px solid var(--line);
  background: var(--tibumo-skin);
}

.brand-home-app-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand-home-tile--available {
  --tile-color: var(--tibumo-green);
  background: var(--surface-strong);
  border-top: 5px solid var(--tibumo-green);
}

.brand-home-tile--pending {
  --tile-color: var(--tibumo-purple);
  grid-column: 1 / -1;
  border-top: 5px solid var(--tibumo-purple);
}

.brand-home-tile--soon {
  border-top: 5px solid var(--tibumo-orange);
}

.brand-home-tile--blue {
  --tile-color: var(--tibumo-blue);
  border-top-color: var(--tile-color);
}

.brand-home-tile--green {
  --tile-color: var(--tibumo-green);
  border-top-color: var(--tile-color);
}

.brand-home-tile--orange {
  --tile-color: var(--tibumo-orange);
  border-top-color: var(--tile-color);
}

.brand-home-tile--purple {
  --tile-color: var(--tibumo-purple);
  border-top-color: var(--tile-color);
}

.brand-home-tile--yellow {
  --tile-color: var(--tibumo-pink);
  border-top-color: var(--tile-color);
}

.brand-home-tile > div:first-child:not(.brand-home-resource-card__visual) {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand-home-tile h3,
.brand-home-panel h3 {
  margin: 0;
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.08;
}

.brand-home-tile p,
.brand-home-panel p {
  margin: 0;
  color: var(--tile-muted, var(--muted));
  font-weight: 750;
}

.brand-home-tile > .brand-home-actions,
.brand-home-tile .brand-home-actions,
.brand-home-status {
  margin-top: auto;
}

.brand-home-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
}

.brand-home-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

.brand-home-badge--pending { color: var(--tibumo-purple); }
.brand-home-badge--soon { color: var(--tile-color); }

.brand-home-status {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.brand-home-resource-card {
  overflow: hidden;
  gap: 0;
  padding: 0;
}

.brand-home-resource-card__visual {
  position: relative;
  height: clamp(132px, 13vw, 164px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tile-color) 10%, transparent), transparent 72%),
    linear-gradient(rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.46)),
    var(--tibumo-skin);
}

.brand-home-resource-card__content {
  min-width: 0;
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-home-resource-card .brand-home-actions {
  padding: 0 16px 16px;
}

.brand-home-resource-card__visual img {
  position: absolute;
  display: block;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 7px 16px rgba(26, 26, 26, 0.16);
}

.brand-home-resource-card--writing .resource-shot,
.brand-home-resource-card--coloriages .resource-shot {
  width: auto;
  aspect-ratio: 210 / 297;
  object-fit: contain;
  object-position: center;
}

.brand-home-resource-card--writing .resource-shot--1 {
  left: 8%;
  top: 11%;
  height: 78%;
  transform: rotate(-6deg);
  z-index: 2;
}

.brand-home-resource-card--writing .resource-shot--2 {
  right: 19%;
  top: 17%;
  height: 69%;
  transform: rotate(5deg);
  z-index: 1;
}

.brand-home-resource-card--writing .resource-shot--3 {
  right: 6%;
  bottom: 9%;
  height: 58%;
  transform: rotate(-3deg);
  z-index: 3;
}

.brand-home-resource-card--coloriages .resource-shot--1 {
  left: 7%;
  top: 10%;
  height: 78%;
  transform: rotate(-5deg);
  z-index: 2;
}

.brand-home-resource-card--coloriages .resource-shot--2 {
  left: 33%;
  top: 16%;
  height: 68%;
  transform: rotate(4deg);
  z-index: 1;
}

.brand-home-resource-card--coloriages .resource-shot--3 {
  right: 7%;
  bottom: 10%;
  height: 66%;
  transform: rotate(-2deg);
  z-index: 3;
}

.brand-home-resource-card--silhouettes .resource-shot {
  width: auto;
  aspect-ratio: 210 / 297;
  object-fit: contain;
  object-position: center;
  padding: 0;
}

.brand-home-resource-card--silhouettes .resource-shot--1 {
  left: 7%;
  top: 10%;
  height: 78%;
  transform: rotate(-5deg);
  z-index: 2;
}

.brand-home-resource-card--silhouettes .resource-shot--2 {
  left: 33%;
  top: 16%;
  height: 68%;
  transform: rotate(4deg);
  z-index: 1;
}

.brand-home-resource-card--silhouettes .resource-shot--3 {
  right: 7%;
  bottom: 10%;
  height: 66%;
  transform: rotate(-2deg);
  z-index: 3;
}
