:root {
  --home-cream: #fff7e8;
  --home-paper: #fffdf8;
  --home-white: #ffffff;
  --home-ink: #3f2d25;
  --home-muted: #78695f;
  --home-orange: #ff8c5a;
  --home-orange-dark: #e96f3c;
  --home-yellow: #ffd96f;
  --home-green: #a8cf82;
  --home-blue: #8cc8ed;
  --home-lilac: #c7b4e8;
  --home-coral: #ffb4a2;
  --home-border: #eedfca;
  --home-shadow: 0 18px 50px rgba(91, 61, 37, 0.10);
  --home-shadow-soft: 0 10px 28px rgba(91, 61, 37, 0.07);
  --home-radius-xl: 34px;
  --home-radius-lg: 24px;
  --home-radius-md: 18px;
}

body.totink-education-home {
  margin: 0;
  color: var(--home-ink);
  background:
    radial-gradient(circle at 6% 6%, rgba(255, 217, 111, 0.20), transparent 23rem),
    radial-gradient(circle at 94% 17%, rgba(140, 200, 237, 0.18), transparent 25rem),
    var(--home-cream);
}

body.totink-education-home *,
body.totink-education-home *::before,
body.totink-education-home *::after {
  box-sizing: border-box;
}

body.totink-education-home a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 18px;
  z-index: 1000;
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--home-ink);
  background: var(--home-white);
  box-shadow: var(--home-shadow);
  font-weight: 900;
  text-decoration: none;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 18px;
}

.home-shell {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 68px;
}

.home-hero::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -210px;
  top: 60px;
  border-radius: 50%;
  border: 74px solid rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 78px;
  left: -38px;
  bottom: 12px;
  border-radius: 999px;
  background: rgba(168, 207, 130, 0.18);
  transform: rotate(-13deg);
  pointer-events: none;
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(430px, 0.97fr);
  align-items: center;
  gap: clamp(40px, 6vw, 86px);
}

.home-hero-copy {
  max-width: 680px;
}

.home-eyebrow,
.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #9a5433;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-eyebrow::before,
.home-kicker::before {
  content: "";
  width: 23px;
  height: 4px;
  border-radius: 999px;
  background: var(--home-orange);
  box-shadow: 8px 0 0 var(--home-yellow);
}

.home-hero h1 {
  max-width: 720px;
  margin: 18px 0 20px;
  color: var(--home-ink);
  font-size: clamp(45px, 5.3vw, 76px);
  font-weight: 1000;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.home-hero h1 span {
  position: relative;
  display: inline;
  color: var(--home-orange-dark);
  background: linear-gradient(transparent 69%, rgba(255, 217, 111, 0.62) 0);
}

.home-hero-description {
  max-width: 640px;
  margin: 0;
  color: var(--home-muted);
  font-size: clamp(17px, 1.55vw, 20px);
  font-weight: 650;
  line-height: 1.72;
}

.home-hero-actions,
.home-maker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.home-button:hover {
  transform: translateY(-2px);
}

.home-button-primary {
  color: #fff !important;
  background: linear-gradient(145deg, var(--home-orange), var(--home-orange-dark));
  box-shadow: 0 13px 27px rgba(233, 111, 60, 0.24);
}

.home-button-secondary {
  color: var(--home-ink);
  border-color: var(--home-border);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--home-shadow-soft);
}

.home-search {
  width: min(100%, 610px);
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 7px 7px 7px 18px;
  border: 1px solid rgba(224, 205, 180, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--home-shadow-soft);
  backdrop-filter: blur(12px);
}

.home-search > span {
  color: var(--home-orange-dark);
  font-size: 24px;
  font-weight: 1000;
}

.home-search input {
  min-width: 0;
  height: 42px;
  padding: 0 4px;
  border: 0;
  outline: 0;
  color: var(--home-ink);
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
}

.home-search input::placeholder {
  color: #a1948b;
}

.home-search button {
  min-width: 88px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--home-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.home-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 21px;
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 850;
}

.home-trust-row > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.home-trust-row b {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 7px;
  color: #6f4f3a;
  background: #fff;
  box-shadow: 0 5px 12px rgba(91, 61, 37, 0.08);
  font-size: 10px;
}

.home-hero-showcase {
  position: relative;
  min-height: 580px;
  padding: 18px;
  border: 1px solid rgba(238, 223, 202, 0.92);
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.90), rgba(255, 248, 235, 0.82)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 140, 90, 0.05) 31px 32px);
  box-shadow: 0 28px 75px rgba(91, 61, 37, 0.14);
}

.home-hero-showcase::before {
  content: "";
  position: absolute;
  inset: -14px 32px auto auto;
  width: 86px;
  height: 32px;
  border-radius: 4px;
  background: rgba(255, 217, 111, 0.72);
  transform: rotate(7deg);
  z-index: 3;
}

.home-hero-primary {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 410px;
  overflow: hidden;
  border-radius: 27px;
  color: inherit;
  background: #fff;
  box-shadow: var(--home-shadow);
  text-decoration: none;
}

.home-hero-primary-cover {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #ffe7c8;
}

.home-hero-primary-cover img,
.home-hero-mini-cover img,
.home-resource-cover img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.home-hero-primary:hover img,
.home-hero-mini:hover img,
.home-resource-card:hover .home-resource-cover img {
  transform: scale(1.035);
}

.home-cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8d5d3f;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.75) 0 7%, transparent 7.5%),
    radial-gradient(circle at 78% 68%, rgba(255, 255, 255, 0.62) 0 9%, transparent 9.5%),
    linear-gradient(145deg, #ffe0a7, #ffd0c5);
  font-size: 50px;
}

.home-hero-new {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: #fff;
  background: var(--home-orange-dark);
  box-shadow: 0 8px 18px rgba(117, 61, 35, 0.18);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-hero-primary-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 14px;
  align-items: center;
  padding: 19px 21px;
}

.home-hero-primary-copy small {
  grid-column: 1 / -1;
  color: var(--home-orange-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-hero-primary-copy strong {
  min-width: 0;
  overflow: hidden;
  color: var(--home-ink);
  font-size: 19px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-hero-primary-copy > span {
  color: #7d6859;
  font-size: 12px;
  font-weight: 900;
}

.home-hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.home-hero-mini {
  min-height: 120px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--home-border);
  border-radius: 20px;
  color: inherit;
  background: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.home-hero-mini-cover {
  position: relative;
  width: 88px;
  height: 96px;
  overflow: hidden;
  border-radius: 14px;
  background: #eef7fb;
}

.home-hero-mini-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff1d2;
  font-size: 31px;
}

.home-hero-mini > span:last-child {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.home-hero-mini small {
  color: var(--home-orange-dark);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-hero-mini strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--home-ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-hero-loading {
  height: 544px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 13px;
  color: var(--home-muted);
  font-size: 13px;
}

.home-loading-cover {
  width: min(100%, 420px);
  aspect-ratio: 1.45;
  border-radius: 24px;
  background: linear-gradient(100deg, #f3e6d6 20%, #fff7ea 42%, #f3e6d6 64%);
  background-size: 220% 100%;
  animation: homeShimmer 1.25s linear infinite;
}

.home-loading-line {
  width: min(75%, 300px);
  height: 13px;
  border-radius: 999px;
  background: #f2e5d5;
}

.home-loading-line.short {
  width: min(48%, 190px);
}

.home-hero-empty {
  min-height: 544px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 13px;
  border-radius: 28px;
  color: var(--home-ink);
  background: linear-gradient(145deg, #fff2ce, #ffe1d9);
  text-align: center;
  text-decoration: none;
}

.home-hero-empty > span {
  font-size: 80px;
}

.home-hero-empty strong {
  font-size: 22px;
}

.home-hero-empty small {
  color: var(--home-orange-dark);
  font-weight: 900;
}

.home-download-pulse {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .78fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  margin-top: -20px;
  padding: 31px 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 90% -20%, rgba(255, 217, 111, .23), transparent 48%),
    #3f2d25;
  box-shadow: 0 22px 55px rgba(63, 45, 37, .20);
}

.home-download-pulse::after {
  content: "↧";
  position: absolute;
  right: 44%;
  bottom: -48px;
  color: rgba(255, 255, 255, .045);
  font-size: 190px;
  font-weight: 1000;
  line-height: 1;
  pointer-events: none;
}

.home-download-pulse .home-kicker {
  color: #ffd96f;
}

.home-download-pulse .home-kicker::before {
  background: #ff9f75;
  box-shadow: 8px 0 0 #ffd96f;
}

.home-download-pulse-copy {
  position: relative;
  z-index: 1;
}

.home-download-pulse-copy h2 {
  max-width: 620px;
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(25px, 2.8vw, 38px);
  font-weight: 1000;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.home-download-pulse-copy p {
  margin: 11px 0 0;
  color: rgba(255, 255, 255, .70);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.home-download-pulse-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.home-download-stat {
  min-width: 0;
  min-height: 144px;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 21px;
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(10px);
}

.home-download-stat > span {
  color: rgba(255, 255, 255, .73);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.home-download-stat strong {
  min-height: 54px;
  margin: 3px 0 2px;
  color: #ffd96f;
  font-size: clamp(39px, 4vw, 58px);
  font-weight: 1000;
  letter-spacing: -.055em;
  line-height: 1;
}

.home-download-stat-total strong {
  color: #ffad88;
}

.home-download-stat-generated strong {
  color: #9be5c0;
}

.home-download-stat-shared strong {
  color: #9fd8ff;
}

.home-download-stat small {
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  font-weight: 800;
}

.home-download-pulse.is-loaded .home-download-stat strong {
  animation: homeCountIn 380ms ease both;
}

.home-categories,
.home-resource-section,
.home-process {
  padding-top: 76px;
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.home-section-heading > div {
  max-width: 760px;
}

.home-section-heading h2,
.home-panel-heading h2,
.home-maker-copy h2,
.home-guide h2 {
  margin: 9px 0 0;
  color: var(--home-ink);
  font-size: clamp(29px, 3.25vw, 45px);
  font-weight: 1000;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.home-section-heading p,
.home-panel-description {
  max-width: 720px;
  margin: 13px 0 0;
  color: var(--home-muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.68;
}

.home-section-heading-row {
  align-items: flex-end;
}

.home-text-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 5px;
  border-bottom: 2px solid rgba(233, 111, 60, 0.32);
  color: var(--home-orange-dark) !important;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
}

.home-category-card {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(97, 69, 48, 0.08);
  border-radius: var(--home-radius-lg);
  color: var(--home-ink);
  box-shadow: var(--home-shadow-soft);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -38px;
  width: 116px;
  height: 116px;
  border: 20px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
}

.home-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow);
}

.category-coral { background: #ffe1d8; }
.category-green { background: #e5f3d8; }
.category-yellow { background: #fff0bd; }
.category-blue { background: #dff2fc; }
.category-lilac { background: #eee5fa; }

.home-category-icon {
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #65422e;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(89, 61, 43, 0.08);
  font-size: 22px;
  font-weight: 1000;
}

.home-category-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 21px;
}

.home-category-copy strong {
  font-size: 18px;
  font-weight: 1000;
  line-height: 1.15;
}

.home-category-copy small {
  color: #705f53;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.home-category-meta {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 19px;
  color: #80543b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-resource-grid {
  display: grid;
  gap: 17px;
}

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

.home-resource-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-lg);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--home-shadow-soft);
  animation: homeCardIn 420ms ease both;
  animation-delay: calc(var(--card-order, 0) * 55ms);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow);
}

.home-resource-cover {
  position: relative;
  display: block;
  aspect-ratio: 1.48;
  overflow: hidden;
  background: #ffecc9;
}

.home-resource-arrow {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 13px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 7px 18px rgba(74, 47, 30, 0.14);
  font-size: 16px;
  font-weight: 1000;
}

.home-resource-body {
  padding: 17px;
}

.home-resource-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.home-resource-tags span {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #7c5943;
  background: #fff2dd;
  font-size: 10px;
  font-weight: 900;
}

.home-resource-tags span:nth-child(2) {
  color: #4e6f43;
  background: #eaf5e2;
}

.home-resource-body h3 {
  margin: 11px 0 0;
  color: var(--home-ink);
  font-size: 17px;
  font-weight: 1000;
  line-height: 1.28;
}

.home-resource-body h3 a {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-resource-description {
  display: -webkit-box;
  overflow: hidden;
  min-height: 40px;
  margin: 8px 0 0;
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-resource-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #f1e7da;
  color: #907d6f;
  font-size: 10px;
  font-weight: 900;
}

.home-resource-footer a {
  flex: 0 0 auto;
  color: var(--home-orange-dark);
  font-weight: 950;
  text-decoration: none;
}

.home-card-skeleton {
  min-height: 360px;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-lg);
  background:
    linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.72) 50%, transparent 70%) 0 0 / 220% 100%,
    linear-gradient(#f0e3d3 0 0) 0 0 / 100% 58% no-repeat,
    linear-gradient(#f6ecdf 0 0) 18px 72% / 62% 12px no-repeat,
    linear-gradient(#f6ecdf 0 0) 18px 80% / 78% 10px no-repeat,
    rgba(255, 255, 255, 0.72);
  animation: homeShimmer 1.25s linear infinite;
}

.home-dual-library {
  margin-top: 82px;
  padding: 72px 0;
  border-block: 1px solid rgba(221, 203, 178, 0.74);
  background: rgba(255, 255, 255, 0.46);
}

.home-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.home-library-panel {
  min-width: 0;
  padding: clamp(22px, 2.5vw, 32px);
  border: 1px solid rgba(101, 78, 61, 0.09);
  border-radius: var(--home-radius-xl);
  box-shadow: var(--home-shadow-soft);
}

.panel-blue {
  background: linear-gradient(150deg, #e8f6fd, #f8fcff 72%);
}

.panel-lilac {
  background: linear-gradient(150deg, #f0e8fa, #fdfaff 72%);
}

.home-panel-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}

.home-panel-heading h2 {
  max-width: 480px;
  font-size: clamp(25px, 2.4vw, 34px);
}

.home-panel-heading > a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(92, 69, 51, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--home-shadow-soft);
  font-size: 19px;
  font-weight: 1000;
  text-decoration: none;
}

.home-panel-description {
  max-width: 560px;
  margin-bottom: 22px;
}

.home-resource-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.home-resource-grid-compact .home-resource-card {
  border-radius: 18px;
}

.home-resource-grid-compact .home-resource-cover {
  aspect-ratio: 1.25;
}

.home-resource-grid-compact .home-resource-body {
  padding: 12px;
}

.home-resource-grid-compact .home-resource-tags span:nth-child(2),
.home-resource-grid-compact .home-resource-description,
.home-resource-grid-compact .home-resource-footer > span {
  display: none;
}

.home-resource-grid-compact .home-resource-body h3 {
  font-size: 13px;
}

.home-resource-grid-compact .home-resource-footer {
  margin-top: 10px;
  padding-top: 9px;
}

.home-resource-grid-compact .home-resource-arrow {
  right: 9px;
  bottom: 9px;
  width: 29px;
  height: 29px;
}

.home-resource-grid-compact .home-card-skeleton {
  min-height: 255px;
  border-radius: 18px;
}

.home-load-message {
  grid-column: 1 / -1;
  min-height: 160px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed #d9c4aa;
  border-radius: var(--home-radius-lg);
  color: var(--home-muted);
  background: rgba(255, 255, 255, 0.66);
  text-align: center;
  text-decoration: none;
}

.home-load-message > span:first-child {
  font-size: 34px;
}

.home-load-message strong {
  color: var(--home-ink);
}

.home-load-message > span:last-child {
  color: var(--home-orange-dark);
  font-size: 12px;
  font-weight: 900;
}

.home-maker-section {
  min-height: 460px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  align-items: center;
  gap: 62px;
  margin-top: 82px;
  padding-block: 48px;
  padding-inline: clamp(28px, 5vw, 70px);
  overflow: hidden;
  border: 1px solid rgba(109, 78, 55, 0.08);
  border-radius: 38px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.50) 0 10%, transparent 10.5%),
    linear-gradient(140deg, #ffd9c7, #fff0c3);
  box-shadow: var(--home-shadow);
}

.home-maker-copy {
  position: relative;
  z-index: 2;
}

.home-maker-copy h2 {
  max-width: 640px;
}

.home-maker-copy p {
  max-width: 620px;
  margin: 17px 0 0;
  color: #725e50;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.68;
}

.home-maker-preview {
  position: relative;
  min-height: 360px;
}

.home-paper {
  position: absolute;
  display: grid;
  align-content: start;
  border: 1px solid #eadbc7;
  border-radius: 19px;
  background: #fffdf9;
  box-shadow: 0 21px 45px rgba(88, 57, 35, 0.16);
}

.home-paper-front {
  z-index: 2;
  width: min(290px, 78%);
  height: 350px;
  right: 6%;
  top: 0;
  padding: 32px 27px;
  transform: rotate(4deg);
}

.home-paper-front::before,
.home-paper-back::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 76px;
  height: 23px;
  border-radius: 3px;
  background: rgba(255, 217, 111, 0.68);
  transform: translateX(-50%) rotate(-3deg);
}

.home-paper-front small {
  color: #a4795d;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.home-paper-front strong {
  margin: 25px 0 27px;
  color: var(--home-orange-dark);
  font-size: 43px;
  font-weight: 1000;
  letter-spacing: 0.02em;
}

.home-paper-front i {
  height: 30px;
  border-bottom: 2px dashed #d2b99f;
}

.home-paper-front > span {
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: #e6b625;
  font-size: 29px;
}

.home-paper-back {
  width: min(260px, 73%);
  height: 320px;
  left: 2%;
  top: 28px;
  padding: 48px 24px 24px;
  transform: rotate(-8deg);
  background: #f7fcf0;
}

.home-paper-back > span {
  margin-bottom: 30px;
  color: #78a75b;
  font-size: 35px;
}

.home-paper-back i {
  height: 42px;
  border-top: 3px dashed #91b67b;
}

.home-process {
  padding-bottom: 12px;
}

.home-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.home-process-grid article {
  position: relative;
  min-height: 240px;
  padding: 23px;
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--home-shadow-soft);
}

.home-process-grid article > span {
  position: absolute;
  right: 18px;
  top: 13px;
  color: rgba(87, 60, 42, 0.10);
  font-size: 51px;
  font-weight: 1000;
  letter-spacing: -0.07em;
}

.home-process-grid article > div {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #7a5037;
  background: #ffe2cf;
  font-size: 28px;
  font-weight: 1000;
}

.home-process-grid article:nth-child(2) > div { background: #e5f3d8; }
.home-process-grid article:nth-child(3) > div { background: #e2f2fc; }

.home-process-grid h3 {
  margin: 24px 0 8px;
  color: var(--home-ink);
  font-size: 19px;
  font-weight: 1000;
}

.home-process-grid p {
  margin: 0;
  color: var(--home-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
}

.home-guide {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(38px, 7vw, 100px);
  margin-top: 82px;
  padding: 40px;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-xl);
  background: rgba(255, 253, 248, 0.78);
}

.home-guide h2 {
  font-size: clamp(26px, 3vw, 39px);
}

.home-guide-copy p {
  margin: 0 0 13px;
  color: var(--home-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.75;
}

.home-guide-copy nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 21px;
}

.home-guide-copy nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid #eadbc7;
  border-radius: 999px;
  color: #855136;
  background: #fff8ed;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

@keyframes homeShimmer {
  to { background-position: -220% 0; }
}

@keyframes homeCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes homeCountIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
    gap: 40px;
  }

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

  .home-download-pulse {
    grid-template-columns: minmax(0, 1fr) 390px;
  }

  .home-category-card {
    min-height: 190px;
  }

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

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

  .home-resource-grid-compact .home-resource-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .home-resource-grid-compact .home-resource-cover {
    height: 100%;
    min-height: 180px;
    aspect-ratio: auto;
  }

  .home-resource-grid-compact .home-resource-description,
  .home-resource-grid-compact .home-resource-footer > span {
    display: -webkit-box;
  }

  .home-resource-grid-compact .home-resource-footer > span {
    display: inline;
  }
}

@media (max-width: 820px) {
  .home-shell {
    width: min(100% - 28px, 680px);
  }

  .home-hero {
    padding: 48px 0 54px;
  }

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

  .home-download-pulse {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 0;
  }

  .home-hero-copy {
    max-width: none;
  }

  .home-hero-showcase {
    min-height: 0;
  }

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

  .home-category-card:nth-child(5) {
    grid-column: 1 / -1;
    min-height: 220px;
  }

  .home-section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-maker-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .home-maker-preview {
    min-height: 330px;
  }

  .home-paper-front {
    right: 12%;
  }

  .home-paper-back {
    left: 13%;
  }

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

  .home-process-grid article {
    min-height: 190px;
  }

  .home-guide {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }
}

@media (max-width: 600px) {
  .home-shell {
    width: min(100% - 22px, 520px);
  }

  .home-hero {
    padding-top: 34px;
  }

  .home-download-pulse {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .home-download-pulse-copy h2 {
    font-size: 27px;
  }

  .home-download-stat {
    min-height: 126px;
    padding: 15px;
  }

  .home-download-stat strong {
    font-size: 41px;
  }

  .home-hero h1 {
    margin-top: 14px;
    font-size: clamp(38px, 11.8vw, 57px);
  }

  .home-hero-description {
    font-size: 16px;
  }

  .home-hero-actions,
  .home-maker-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-button {
    width: 100%;
  }

  .home-search {
    grid-template-columns: auto minmax(0, 1fr);
    padding-right: 9px;
  }

  .home-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .home-trust-row {
    gap: 10px 15px;
  }

  .home-hero-showcase {
    min-height: 0;
    padding: 12px;
    border-radius: 29px;
  }

  .home-hero-primary {
    height: 370px;
  }

  .home-hero-primary-copy {
    padding: 15px;
  }

  .home-hero-primary-copy strong {
    font-size: 16px;
  }

  .home-hero-mini-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero-mini {
    min-height: 98px;
  }

  .home-hero-mini-cover {
    height: 78px;
  }

  .home-categories,
  .home-resource-section,
  .home-process {
    padding-top: 58px;
  }

  .home-section-heading h2,
  .home-maker-copy h2,
  .home-guide h2 {
    font-size: 29px;
  }

  .home-category-grid,
  .home-resource-grid-books {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-category-card,
  .home-category-card:nth-child(5) {
    grid-column: auto;
    min-height: 154px;
    padding: 17px;
  }

  .home-category-copy {
    margin-top: 14px;
  }

  .home-resource-grid-books .home-resource-card {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
  }

  .home-resource-grid-books .home-resource-cover {
    height: 100%;
    min-height: 255px;
    aspect-ratio: auto;
  }

  .home-resource-grid-books .home-resource-description {
    -webkit-line-clamp: 3;
  }

  .home-dual-library {
    margin-top: 58px;
    padding: 50px 0;
  }

  .home-library-panel {
    padding: 18px;
    border-radius: 25px;
  }

  .home-panel-heading h2 {
    font-size: 25px;
  }

  .home-resource-grid-compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-resource-grid-compact .home-resource-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .home-resource-grid-compact .home-resource-cover {
    min-height: 150px;
  }

  .home-resource-grid-compact .home-resource-description,
  .home-resource-grid-compact .home-resource-footer > span {
    display: none;
  }

  .home-maker-section {
    width: min(100% - 22px, 520px);
    min-height: 0;
    margin-top: 58px;
    padding: 31px 22px;
    border-radius: 28px;
  }

  .home-maker-preview {
    min-height: 285px;
  }

  .home-paper-front {
    width: 230px;
    height: 285px;
    right: 2%;
    padding: 28px 22px;
  }

  .home-paper-front strong {
    font-size: 34px;
  }

  .home-paper-back {
    width: 210px;
    height: 260px;
    left: 2%;
  }

  .home-guide {
    margin-top: 58px;
    padding: 25px;
    border-radius: 25px;
  }
}

@media (max-width: 380px) {
  .home-resource-grid-books .home-resource-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-resource-grid-books .home-resource-cover {
    min-height: 210px;
    aspect-ratio: 1.48;
  }

  .home-hero-primary-copy {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero-primary-copy > span {
    margin-top: 5px;
  }

  .home-paper-front {
    right: -8px;
  }

  .home-paper-back {
    left: -10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-resource-card,
  .home-loading-cover,
  .home-card-skeleton {
    animation: none;
  }

  .home-button,
  .home-category-card,
  .home-resource-card,
  .home-hero-primary-cover img,
  .home-hero-mini-cover img,
  .home-resource-cover img {
    transition: none;
  }
}
