:root {
  --ink: #1f2845;
  --ink-soft: #41516a;
  --paper: #ffffff;
  --paper-soft: #f7f8fb;
  --pink: #e30b5d;
  --pink-dark: #c90951;
  --pink-text: #e30b5d;
  --green: #94cc29;
  --green-dark: #527f0e;
  --green-text: #527f0e;
  --yellow: #ffca28;
  --blue: #25a9d6;
  --line: #e5e8ef;
  --muted: #68738a;
  --shadow: 0 18px 50px rgba(31, 40, 69, 0.1);
  --shadow-small: 0 8px 25px rgba(31, 40, 69, 0.09);
  --radius-large: 32px;
  --radius: 20px;
  --radius-small: 13px;
  --reader-scale: 1;
  color-scheme: light;
}

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

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body[data-theme="night"] {
  --ink: #f7f8ff;
  --ink-soft: #d7dcf0;
  --paper: #171d34;
  --paper-soft: #202945;
  --line: #34405f;
  --muted: #b8c0d7;
  --pink-text: #ff6aa0;
  --green-text: #b1e45c;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  --shadow-small: 0 9px 28px rgba(0, 0, 0, 0.22);
  color-scheme: dark;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.container--reading {
  width: min(940px, calc(100% - 40px));
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--pink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 232, 239, 0.78);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 850;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px 15px 15px 5px;
  color: #fff;
  background: var(--pink);
  box-shadow: 5px 5px 0 var(--green);
  font-size: 1.65rem;
  font-weight: 900;
  transform: rotate(-3deg);
}

.brand__dot {
  color: var(--pink-text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--pink-text);
  background: color-mix(in srgb, var(--pink) 8%, transparent);
}

.main-nav__search {
  border: 1px solid color-mix(in srgb, var(--pink) 22%, var(--line));
}

.catalog-nav {
  border-top: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  background: var(--paper);
}

.catalog-nav__scroll {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.catalog-nav a {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.catalog-nav a:hover {
  color: var(--pink-text);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 54px;
  background:
    radial-gradient(circle at 8% 15%, rgba(148, 204, 41, 0.18), transparent 23rem),
    radial-gradient(circle at 92% 4%, rgba(244, 12, 101, 0.12), transparent 27rem),
    linear-gradient(180deg, var(--paper-soft), var(--paper));
}

.hero::after {
  position: absolute;
  width: 720px;
  height: 250px;
  right: -160px;
  bottom: -80px;
  content: "";
  pointer-events: none;
  background: url("/assets/images/decor-circles.png") center / contain no-repeat;
  opacity: 0.12;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  align-items: center;
  gap: 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--pink-text);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.65rem, 6vw, 5.3rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: 1.35rem;
}

.lead {
  max-width: 700px;
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.search {
  max-width: 690px;
  display: flex;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-small);
}

.search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 12px 14px;
  color: var(--ink);
  background: transparent;
  font-size: 1.03rem;
}

.search input::placeholder {
  color: var(--muted);
}

.search input:focus {
  outline: 0;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button--primary {
  color: #fff;
  background: var(--pink);
  box-shadow: 0 8px 20px rgba(244, 12, 101, 0.24);
}

.button--primary:hover {
  background: var(--pink-dark);
}

.button--secondary {
  color: #243500;
  background: var(--green);
}

.button--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--paper);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.quick-links a,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  font-size: 0.91rem;
  font-weight: 750;
  text-decoration: none;
}

.quick-links a:hover {
  border-color: var(--green);
  color: var(--green-text);
}

.hero-pick {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.hero-pick__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(244, 12, 101, 0.15), rgba(148, 204, 41, 0.2));
}

.hero-pick__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-pick__body {
  padding: 22px 24px 25px;
}

.hero-pick__body p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.hero-pick__body h2 {
  margin: 0 0 17px;
  font-size: 1.65rem;
}

.section {
  padding: 72px 0;
}

.section--soft {
  background: var(--paper-soft);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-header p {
  max-width: 630px;
  margin: 0;
  color: var(--muted);
}

.text-link {
  color: var(--pink-text);
  font-weight: 800;
  white-space: nowrap;
}

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

.story-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-small);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.story-card[hidden] {
  display: none;
}

.story-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.story-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(244, 12, 101, 0.11), rgba(37, 169, 214, 0.12)),
    var(--paper-soft);
}

.story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.story-card:hover .story-card__media img {
  transform: scale(1.035);
}

.story-card__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(31, 40, 69, 0.86);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 800;
}

.story-card__body {
  padding: 20px 21px 22px;
}

.story-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.story-card h3 {
  margin-bottom: 10px;
}

.story-card__summary {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.benefit__number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 15px;
  color: #fff;
  background: var(--pink);
  font-weight: 900;
}

.benefit:nth-child(2) .benefit__number {
  color: #243500;
  background: var(--green);
}

.benefit:nth-child(3) .benefit__number {
  color: var(--ink);
  background: var(--yellow);
}

.benefit h3 {
  margin-bottom: 9px;
}

.benefit p {
  margin: 0;
  color: var(--ink-soft);
}

.page-intro {
  padding: 58px 0 34px;
  background:
    radial-gradient(circle at 95% 5%, rgba(148, 204, 41, 0.16), transparent 22rem),
    var(--paper-soft);
}

.page-intro h1 {
  max-width: 880px;
  margin-bottom: 13px;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
}

.page-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  color: var(--muted);
  font-size: 0.88rem;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 6px;
  color: var(--green-text);
  content: "›";
}

.breadcrumbs a {
  color: var(--ink-soft);
}

.catalog-tools {
  position: sticky;
  z-index: 20;
  top: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px);
}

.catalog-tools__row {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 18px;
}

.catalog-search {
  display: grid;
  gap: 6px;
}

.catalog-search > label {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.catalog-search__control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.catalog-search input {
  width: 100%;
  min-height: 48px;
  min-width: 0;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
}

.catalog-search__button {
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--pink);
  cursor: pointer;
  font-weight: 850;
}

.catalog-search__button:hover {
  background: var(--pink-dark);
}

.filters {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: thin;
}

.filter-button {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  border-color: var(--pink);
  color: #fff;
  background: var(--pink);
}

.catalog-status {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 700;
}

.empty-state {
  padding: 46px 28px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.empty-state h2 {
  font-size: 1.7rem;
}

.page-intro--compact {
  padding-block: 42px 32px;
}

.page-intro--catalog p:not(.eyebrow) {
  max-width: 830px;
}

.catalog-callouts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.catalog-callouts span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 0.88rem;
}

.catalog-callouts strong {
  color: var(--pink-text);
}

.mvp-strip {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.mvp-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mvp-strip__grid > div {
  min-height: 106px;
  display: grid;
  align-content: center;
  padding: 18px 26px;
  border-right: 1px solid var(--line);
}

.mvp-strip__grid > div:last-child {
  border-right: 0;
}

.mvp-strip strong {
  color: var(--pink-text);
  font-size: 1.8rem;
  line-height: 1;
}

.mvp-strip span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.directory-tile {
  min-width: 0;
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  background: var(--paper);
  box-shadow: var(--shadow-small);
  text-decoration: none;
  transition: transform 170ms ease, border-color 170ms ease;
}

.directory-tile:hover {
  border-color: color-mix(in srgb, var(--pink) 48%, var(--line));
  transform: translateY(-3px);
}

.directory-tile__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 18px 18px 18px 7px;
  color: #fff;
  background: linear-gradient(145deg, var(--pink), #ff5895);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--green) 80%, transparent);
  font-weight: 900;
}

.directory-tile h3 {
  margin-bottom: 9px;
  font-size: 1.2rem;
}

.directory-tile p,
.directory-note {
  margin: 0;
  color: var(--muted);
}

.directory-note {
  margin-top: 28px;
  padding: 15px 18px;
  border-left: 4px solid var(--green);
  background: var(--paper-soft);
}

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

.mvp-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-small);
}

.mvp-card[hidden] {
  display: none;
}

.mvp-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(227, 11, 93, 0.08), rgba(37, 169, 214, 0.13)),
    var(--paper-soft);
}

.mvp-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mvp-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.mvp-card__placeholder span {
  font-size: clamp(4rem, 9vw, 6.5rem);
  font-weight: 950;
  line-height: 1;
  opacity: 0.12;
}

.mvp-card__placeholder small {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: var(--muted);
  font-weight: 800;
}

.mvp-card__rank {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(31, 40, 69, 0.84);
  backdrop-filter: blur(8px);
  font-size: 0.76rem;
  font-weight: 800;
}

.mvp-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 19px 20px 21px;
}

.mvp-card__topline,
.mvp-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 750;
}

.mvp-card__topline {
  justify-content: space-between;
  margin-bottom: 12px;
}

.status-chip {
  padding: 4px 8px;
  border-radius: 999px;
}

.status-chip--preview {
  color: var(--green-dark);
  background: color-mix(in srgb, var(--green) 20%, var(--paper));
}

.status-chip--planned {
  color: var(--muted);
  background: var(--paper-soft);
}

.mvp-card h3 {
  margin-bottom: 8px;
  font-size: 1.28rem;
}

.mvp-card h3 a {
  text-decoration: none;
}

.mvp-card h3 a:hover {
  color: var(--pink-text);
}

.mvp-card__author,
.mvp-card__scenario {
  margin: 0;
  color: var(--ink-soft);
}

.mvp-card__author {
  min-height: 3.1em;
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mvp-card__meta {
  margin-top: 14px;
}

.mvp-card__scenario {
  margin-top: 12px;
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.86rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mvp-card__action {
  margin-top: auto;
  padding-top: 17px;
  color: var(--pink-text);
  font-size: 0.88rem;
  font-weight: 850;
}

.mvp-card__action--muted {
  color: var(--muted);
  font-weight: 700;
}

.facet-form {
  display: grid;
  gap: 16px;
}

.facet-form__search {
  display: grid;
  gap: 7px;
}

.facet-form label {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.facet-form input,
.facet-form select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--paper);
}

.facet-form__fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.facet-form__fields label {
  display: grid;
  gap: 6px;
}

.facet-form__actions {
  display: flex;
  gap: 10px;
}

.facet-form__actions .button {
  min-height: 46px;
  padding-block: 9px;
}

.section-header--compact {
  align-items: center;
}

.section-header--compact h2 {
  margin-bottom: 7px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 40px;
}

.pagination a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-weight: 850;
  text-decoration: none;
}

.pagination a[aria-current="page"] {
  border-color: var(--pink);
  color: #fff;
  background: var(--pink);
}

.author-directory {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  list-style: none;
}

.author-directory li {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}

.author-directory strong {
  color: var(--pink-text);
}

.info-page {
  font-size: 1.08rem;
}

.info-page h2 {
  margin-top: 2em;
}

.info-page > :first-child {
  margin-top: 0;
}

.content-gate {
  padding: clamp(24px, 5vw, 44px);
  border: 2px dashed color-mix(in srgb, var(--pink) 38%, var(--line));
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 100% 0%, rgba(148, 204, 41, 0.14), transparent 18rem),
    var(--paper-soft);
}

.content-gate h2 {
  margin-bottom: 15px;
}

.content-gate > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1rem;
}

.gate-checks {
  margin: 24px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  list-style: none;
}

.gate-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.9rem;
  font-weight: 750;
}

.gate-check span {
  color: var(--pink-text);
  font-size: 1.15rem;
}

.gate-check--ok span {
  color: var(--green-text);
}

.content-gate__status {
  margin-bottom: 0;
}

.park-inline {
  margin-top: 38px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid color-mix(in srgb, var(--green) 44%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--green) 8%, var(--paper));
}

.park-inline h2,
.park-inline p {
  margin-bottom: 0;
}

.park-inline h2 {
  font-size: 1.35rem;
}

.comments-placeholder {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.comments-placeholder h2 {
  margin-bottom: 12px;
}

.comments-placeholder .button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.story-hero {
  padding: 34px 0 44px;
  background:
    radial-gradient(circle at 12% 0%, rgba(244, 12, 101, 0.12), transparent 22rem),
    linear-gradient(180deg, var(--paper-soft), var(--paper));
}

.story-hero > .container {
  width: min(1240px, calc(100% - 40px));
}

.story-hero__grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(0, 600px);
  align-items: center;
  gap: clamp(32px, 3vw, 52px);
}

.story-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2.45rem, 4vw, 4.15rem);
}

.story-hero__summary {
  max-width: 700px;
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 0;
}

.story-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper);
  box-shadow: 0 2px 12px rgba(31, 40, 69, 0.06);
  font-size: 0.87rem;
  font-weight: 750;
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.content-advisory {
  max-width: 720px;
  margin-top: 22px;
  padding: 15px 17px;
  border-left: 5px solid var(--yellow);
  border-radius: 8px 16px 16px 8px;
  background: color-mix(in srgb, var(--yellow) 14%, var(--paper));
}

.content-advisory strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.9rem;
}

.content-advisory p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.story-gallery {
  width: 100%;
  width: min(100%, clamp(420px, calc(133.333svh - 426.667px), 600px));
  max-width: 600px;
  min-width: 0;
  justify-self: end;
}

.story-gallery__viewport {
  position: relative;
  overflow: hidden;
  border: 8px solid var(--paper);
  border-radius: 34px 34px 34px 12px;
  background: var(--paper-soft);
  box-shadow: var(--shadow);
  touch-action: pan-y;
}

.story-gallery__track {
  display: flex;
  align-items: stretch;
  transition: transform 320ms ease;
  will-change: transform;
}

.story-gallery__slide {
  min-width: 100%;
  flex: 0 0 100%;
  margin: 0;
  background: var(--paper);
}

.story-gallery__slide picture {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-soft);
}

.story-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-gallery__slide figcaption {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 15px 11px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.82rem;
  line-height: 1.4;
}

.story-gallery__count {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-weight: 800;
}

.story-gallery__arrow {
  position: absolute;
  z-index: 2;
  top: 44%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 7px 22px rgba(31, 40, 69, 0.2);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateY(-50%);
}

.story-gallery__arrow:hover {
  color: #fff;
  border-color: var(--pink);
  background: var(--pink);
}

.story-gallery__arrow span {
  margin-top: -4px;
  font-size: 2.35rem;
  font-weight: 500;
  line-height: 1;
}

.story-gallery__arrow--prev {
  left: 14px;
}

.story-gallery__arrow--next {
  right: 14px;
}

.story-gallery__footer {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 8px 0;
}

.story-gallery__dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.story-gallery__dot {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.story-gallery__dot span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 45%, transparent);
  transition: width 180ms ease, background 180ms ease;
}

.story-gallery__dot[aria-current="true"] span {
  width: 19px;
  border-radius: 999px;
  background: var(--pink);
}

.story-gallery__status {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.reading-toolbar {
  position: sticky;
  z-index: 30;
  top: 0;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(16px);
}

.reading-toolbar__inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.reading-toolbar__group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-button {
  min-width: 42px;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-weight: 850;
}

.tool-button:hover {
  border-color: var(--green);
}

.reading-progress {
  min-width: 96px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  text-align: right;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 52px;
  padding-block: 56px 76px;
}

.story-copy {
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(1.2rem * var(--reader-scale));
  line-height: 1.82;
}

.story-copy p {
  max-width: 68ch;
  margin: 0 0 1.3em;
}

.story-copy .verse-stanza {
  line-height: 1.7;
}

.story-inline-illustration {
  max-width: 760px;
  overflow: hidden;
  margin: 2.35em 0 2.6em;
  border: 6px solid var(--paper);
  border-radius: 28px 28px 28px 10px;
  background: var(--paper-soft);
  box-shadow: var(--shadow-small);
}

.story-inline-illustration picture {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.story-inline-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-inline-illustration figcaption {
  padding: 9px 13px 10px;
  color: var(--muted);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
}

.story-copy p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  color: var(--pink-text);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 3.4em;
  font-weight: 900;
  line-height: 0.78;
}

.story-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.story-toc {
  display: grid;
  gap: 2px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-small);
}

.story-toc h2 {
  margin: 0 0 9px;
  font-size: 1.08rem;
}

.story-toc a {
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.story-toc a:hover {
  color: var(--pink-text);
}

.parent-note {
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--green) 45%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--green) 9%, var(--paper));
}

.parent-note h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.parent-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.discussion {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  margin-top: 52px;
}

.discussion__card {
  padding: 28px;
  border-radius: var(--radius);
}

.discussion__card--moral {
  color: #fff;
  background: var(--ink);
}

.discussion__card--moral h2,
.discussion__card--moral p {
  color: #fff;
}

.discussion__card--questions {
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.discussion__card h2 {
  margin-bottom: 13px;
  font-size: 1.45rem;
}

.discussion__card p {
  margin: 0;
}

.discussion__card ol {
  margin: 0;
  padding-left: 1.4em;
}

.discussion__card li + li {
  margin-top: 8px;
}

.source-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.story-enrichment,
#tekst-skazki {
  scroll-margin-top: 90px;
}

.enrichment-section {
  margin-top: 64px;
  padding-top: 50px;
  border-top: 1px solid var(--line);
}

.enrichment-heading {
  max-width: 720px;
  margin-bottom: 25px;
}

.enrichment-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
}

.enrichment-heading > p:last-child:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

.retelling-grid,
.parent-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.info-card--wide {
  grid-column: 1 / -1;
}

.info-card--activity {
  border-color: color-mix(in srgb, var(--green) 48%, var(--line));
  background: color-mix(in srgb, var(--green) 9%, var(--paper));
}

.info-card h3,
.character-card h3,
.reader-diary h3,
.edition-note h3,
.author-note h3,
.sources-block h3 {
  margin: 0 0 9px;
  font-size: 1.12rem;
}

.info-card p,
.character-card p,
.edition-note p,
.author-note p {
  margin: 0;
  color: var(--ink-soft);
}

.retelling-plan,
.check-list {
  margin: 0;
  padding-left: 1.3em;
}

.retelling-plan li + li,
.check-list li + li {
  margin-top: 6px;
}

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

.character-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(31, 40, 69, 0.055);
}

.reader-diary {
  margin-top: 18px;
  padding: 24px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
}

.reader-diary h3 {
  color: #fff;
}

.reader-diary dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 17px 0 0;
}

.reader-diary dl div {
  min-width: 0;
}

.reader-diary dt {
  color: #cbd2e7;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reader-diary dd {
  margin: 4px 0 0;
  color: #fff;
}

.story-quiz {
  display: grid;
  gap: 14px;
}

.quiz-question {
  min-width: 0;
  margin: 0;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.quiz-question legend {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 4px;
  color: var(--ink);
  font-weight: 850;
}

.quiz-question legend span {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--pink);
  font-size: 0.8rem;
}

.quiz-options {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  cursor: pointer;
}

.quiz-option:hover {
  border-color: var(--green);
}

.quiz-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 3px 0 0;
  accent-color: var(--pink);
}

.quiz-question.is-correct {
  border-color: var(--green-dark);
  background: color-mix(in srgb, var(--green) 10%, var(--paper));
}

.quiz-question.is-incorrect {
  border-color: var(--pink);
  background: color-mix(in srgb, var(--pink) 7%, var(--paper));
}

.quiz-feedback {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.quiz-feedback strong {
  color: var(--ink);
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.quiz-result {
  min-height: 1.6em;
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.vocabulary {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.vocabulary summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 850;
}

.vocabulary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  margin: 0;
  padding: 0 22px 20px;
}

.vocabulary__item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.vocabulary dt {
  color: var(--pink-text);
  font-weight: 850;
}

.vocabulary dd {
  margin: 2px 0 0;
  color: var(--ink-soft);
}

.history-copy {
  max-width: 70ch;
}

.history-copy p {
  margin: 0 0 1em;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.edition-note,
.author-note,
.sources-block {
  margin-top: 18px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.edition-status {
  display: inline-flex;
  margin-bottom: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--pink-text);
  background: color-mix(in srgb, var(--pink) 10%, var(--paper));
  font-size: 0.79rem;
  font-weight: 850;
}

.edition-status--ready {
  color: var(--green-dark);
  background: color-mix(in srgb, var(--green) 16%, var(--paper));
}

.source-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.25em;
}

.source-links a {
  color: var(--ink-soft);
  font-weight: 700;
}

.sources-pending {
  margin: 0;
  color: var(--pink-text);
}

.editorial-date {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 54px 0 32px;
  color: #eef1ff;
  background: #1f2845;
}

.site-footer::before {
  position: absolute;
  width: 980px;
  height: 340px;
  right: -150px;
  bottom: -145px;
  content: "";
  background: url("/assets/images/decor-circles.png") center / contain no-repeat;
  opacity: 0.17;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.site-footer .brand {
  color: #fff;
}

.site-footer p {
  max-width: 650px;
  margin: 15px 0 0;
  color: #bdc5dc;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.footer-nav a {
  color: #fff;
  font-weight: 700;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #aeb7d1;
  font-size: 0.88rem;
}

.footer-bottom a {
  color: #fff;
}

.not-found {
  min-height: 64vh;
  display: grid;
  place-items: center;
  padding: 70px 0;
  text-align: center;
}

.not-found__code {
  margin: 0;
  color: var(--pink-text);
  font-size: clamp(5rem, 20vw, 11rem);
  font-weight: 950;
  line-height: 0.9;
}

.not-found h1 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.not-found p {
  margin: 0 0 25px;
  color: var(--muted);
}

/* Text-first publication pages: media slots are intentionally absent until approved. */
.mvp-card__book {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 202, 40, 0.42), transparent 28%),
    linear-gradient(145deg, #29365f, #e30b5d);
}

.mvp-card__book span {
  font-size: clamp(3.5rem, 8vw, 5.7rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 1;
}

.mvp-card__book small {
  text-align: center;
  font-weight: 800;
}

.status-chip--published {
  color: #294900;
  background: color-mix(in srgb, var(--green) 35%, var(--paper));
}

.hero-pick--text {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(145px, 0.62fr) minmax(0, 1.38fr);
  align-items: stretch;
}

.hero-book {
  min-height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 202, 40, 0.48), transparent 25%),
    linear-gradient(155deg, #1f2845, #e30b5d);
}

.hero-book span {
  font-size: clamp(4rem, 8vw, 6.4rem);
  font-weight: 950;
  letter-spacing: -0.1em;
  line-height: 1;
}

.hero-book small {
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.hero-pick--text .hero-pick__body > p:not(:first-child) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.publication-hero {
  padding: 34px 0 48px;
  background:
    radial-gradient(circle at 10% 0%, rgba(227, 11, 93, 0.12), transparent 28rem),
    radial-gradient(circle at 86% 34%, rgba(148, 204, 41, 0.12), transparent 26rem),
    linear-gradient(180deg, var(--paper-soft), var(--paper));
}

.publication-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.publication-hero h1 {
  max-width: 820px;
  margin-bottom: 12px;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1.02;
}

.publication-hero__author {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 750;
}

.publication-hero__author a {
  color: var(--pink-text);
}

.text-cover {
  min-height: 370px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 42px);
  border: 8px solid var(--paper);
  border-radius: 32px 32px 32px 10px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 202, 40, 0.5), transparent 25%),
    linear-gradient(150deg, #23315b 8%, #614172 52%, #e30b5d 100%);
  box-shadow: var(--shadow);
}

.text-cover__initials {
  margin-bottom: auto;
  font-size: clamp(4rem, 8vw, 7.4rem);
  font-weight: 950;
  letter-spacing: -0.09em;
  line-height: 1;
  opacity: 0.88;
}

.text-cover p,
.text-cover strong,
.text-cover small {
  display: block;
  margin: 0;
}

.text-cover p {
  opacity: 0.78;
}

.text-cover strong {
  margin: 4px 0 12px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.12;
}

.text-cover small {
  opacity: 0.82;
}

.publication-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.publication-tags a {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.publication-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.publication-copy > p {
  margin: 0 0 1.15em;
  text-wrap: pretty;
}

.publication-heading {
  margin: 2.2em 0 0.8em;
  font-size: calc(clamp(1.35rem, 2.4vw, 1.9rem) * var(--reader-scale));
  line-height: 1.24;
}

.chapter-index {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.chapter-index > p:not(.eyebrow) {
  color: var(--ink-soft);
}

.chapter-index ol {
  display: grid;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: publication-part;
}

.chapter-index li {
  counter-increment: publication-part;
}

.chapter-index a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-weight: 800;
  text-decoration: none;
}

.chapter-index a:hover {
  border-color: color-mix(in srgb, var(--pink) 45%, var(--line));
  color: var(--pink-text);
}

.chapter-index small {
  color: var(--muted);
  font-weight: 650;
}

.publication-checklist {
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.publication-mini-grid,
.author-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.publication-mini-card,
.author-card {
  min-width: 0;
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-small);
}

.publication-mini-card {
  grid-template-columns: 76px minmax(0, 1fr);
}

.publication-mini-card__mark {
  width: 76px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 14px 14px 14px 5px;
  color: #fff;
  background: linear-gradient(145deg, #27355d, var(--pink));
  font-size: 1.5rem;
  font-weight: 950;
  text-decoration: none;
}

.publication-mini-card h3,
.author-card h2 {
  margin: 2px 0 8px;
}

.publication-mini-card h3 a,
.author-card h2 a {
  text-decoration: none;
}

.publication-mini-card p,
.author-card p {
  margin: 0;
  color: var(--ink-soft);
}

.publication-mini-card > div > p:first-child,
.author-card > p:first-child {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.author-card {
  align-content: start;
}

.author-intro p:last-child,
.author-biography p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.author-timeline {
  padding-left: 1.2em;
}

.author-timeline li {
  margin-bottom: 10px;
}

.taxonomy-grid .directory-tile h2 {
  margin-bottom: 9px;
  font-size: 1.2rem;
}

.chapter-hero {
  padding: 34px 0 30px;
  background: linear-gradient(180deg, var(--paper-soft), var(--paper));
}

.chapter-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  line-height: 1.08;
}

.chapter-hero > .container > p:not(.eyebrow) {
  color: var(--muted);
}

.chapter-layout {
  padding-block: 48px 72px;
}

.chapter-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
}

.chapter-navigation--bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.chapter-back {
  margin-top: 28px;
  text-align: center;
  font-weight: 750;
}

@media (max-width: 1120px) {
  .story-hero__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .story-gallery {
    width: min(620px, 100%);
    max-width: 620px;
    justify-self: center;
    margin-inline: auto;
  }
}

@media (max-width: 980px) {
  .hero__grid,
  .story-hero__grid,
  .publication-hero__grid {
    grid-template-columns: 1fr;
  }

  .hero-pick {
    width: min(520px, 100%);
    justify-self: center;
    margin-inline: auto;
  }

  .story-hero__grid {
    gap: 32px;
  }

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

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

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

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

  .mvp-strip__grid > div:nth-child(2) {
    border-right: 0;
  }

  .mvp-strip__grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .catalog-tools {
    position: static;
  }

  .catalog-tools__row {
    grid-template-columns: 1fr;
  }

  .filters {
    justify-content: flex-start;
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

  .text-cover {
    width: min(520px, 100%);
    min-height: 320px;
    justify-self: center;
  }

  .story-aside {
    position: static;
  }

  .story-toc {
    display: none;
  }
}

@media (max-width: 720px) {
  .container,
  .container--reading {
    width: min(100% - 28px, 1180px);
  }

  .site-header__inner {
    min-height: 70px;
  }

  .brand {
    font-size: 1.25rem;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }

  .main-nav a {
    padding: 8px 9px;
    font-size: 0.9rem;
  }

  .main-nav a[href="/#roditelyam"] {
    display: none;
  }

  .main-nav__search {
    display: inline-flex;
  }

  .catalog-nav__scroll {
    gap: 18px;
  }

  .hero {
    padding: 44px 0 42px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.6rem);
  }

  .search {
    display: grid;
  }

  .section {
    padding: 54px 0;
  }

  .section-header {
    display: block;
  }

  .section-header .text-link {
    display: inline-block;
    margin-top: 12px;
  }

  .story-grid,
  .mvp-grid,
  .directory-grid,
  .benefits,
  .discussion,
  .publication-mini-grid,
  .author-card-grid {
    grid-template-columns: 1fr;
  }

  .facet-form__fields,
  .author-directory,
  .gate-checks {
    grid-template-columns: 1fr;
  }

  .facet-form__actions,
  .park-inline {
    display: grid;
    grid-template-columns: 1fr;
  }

  .facet-form__actions .button,
  .park-inline .button {
    width: 100%;
  }

  .mvp-card__media {
    aspect-ratio: 16 / 9;
  }

  .mvp-card__author {
    min-height: auto;
  }

  .page-intro {
    padding-top: 40px;
  }

  .catalog-tools {
    padding: 16px 0;
  }

  .catalog-tools + .section {
    padding-top: 36px;
  }

  .story-card__media {
    aspect-ratio: 16 / 9;
  }

  .story-hero {
    padding: 30px 0 34px;
  }

  .publication-hero {
    padding: 28px 0 34px;
  }

  .publication-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .text-cover {
    min-height: 270px;
    padding: 25px;
    border-width: 5px;
    border-radius: 24px 24px 24px 8px;
  }

  .hero-pick--text {
    grid-template-columns: 1fr;
  }

  .hero-book {
    min-height: 190px;
  }

  .publication-mini-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    padding: 17px;
  }

  .publication-mini-card__mark {
    width: 58px;
    height: 76px;
    font-size: 1.05rem;
  }

  .chapter-index {
    padding: 18px;
  }

  .chapter-index a {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .chapter-navigation {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chapter-navigation .button {
    width: 100%;
  }

  .story-gallery {
    width: 100%;
    max-width: none;
  }

  .story-gallery__viewport {
    border-width: 5px;
    border-radius: 25px 25px 25px 9px;
  }

  .story-gallery__slide figcaption {
    min-height: 48px;
    padding: 8px 10px 9px;
    font-size: 0.76rem;
  }

  .story-gallery__arrow {
    top: 42%;
    width: 42px;
    height: 42px;
  }

  .story-gallery__arrow--prev {
    left: 8px;
  }

  .story-gallery__arrow--next {
    right: 8px;
  }

  .story-gallery__arrow span {
    font-size: 2rem;
  }

  .story-gallery__footer {
    padding-inline: 2px;
  }

  .story-gallery__status {
    display: none;
  }

  .story-inline-illustration {
    width: 100%;
    margin-block: 2em 2.25em;
    border-width: 4px;
    border-radius: 22px 22px 22px 8px;
  }

  .story-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .story-actions .button {
    width: 100%;
  }

  .reading-toolbar__inner {
    min-height: 62px;
  }

  .reading-toolbar__label {
    display: none;
  }

  .reading-progress {
    min-width: 60px;
  }

  .story-layout {
    gap: 30px;
    padding-block: 34px 54px;
  }

  .story-copy {
    font-size: calc(1.08rem * var(--reader-scale));
    line-height: 1.76;
  }

  .enrichment-section {
    margin-top: 48px;
    padding-top: 38px;
  }

  .retelling-grid,
  .parent-guide-grid,
  .character-grid,
  .reader-diary dl,
  .vocabulary dl {
    grid-template-columns: 1fr;
  }

  .info-card,
  .character-card,
  .reader-diary,
  .quiz-question,
  .edition-note,
  .author-note,
  .sources-block {
    padding: 19px;
  }

  .quiz-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quiz-actions .button {
    width: 100%;
  }

  .story-aside {
    display: none;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media print {
  .site-header,
  .site-footer,
  .reading-toolbar,
  .story-aside,
  .discussion,
  .story-enrichment,
  .story-actions,
  .content-advisory,
  .breadcrumbs {
    display: none !important;
  }

  body,
  .story-hero,
  .text-cover,
  .section {
    color: #000;
    background: #fff;
  }

  .story-gallery {
    max-width: 360px;
  }

  .story-gallery__viewport,
  .story-inline-illustration {
    box-shadow: none;
  }

  .story-gallery__track {
    transform: none !important;
  }

  .story-gallery__slide {
    display: none;
  }

  .story-gallery__slide:first-child {
    display: block;
  }

  .story-gallery__arrow,
  .story-gallery__footer {
    display: none !important;
  }

  .story-layout {
    display: block;
    padding-top: 24px;
  }

  .story-copy {
    font-size: 12pt;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
