:root {
    --ink: #171715;
    --muted: #68675f;
    --paper: #fffdf7;
    --cream: #f7f1e3;
    --yellow: #ffcf33;
    --yellow-soft: #fff1a6;
    --green: #1f6f54;
    --orange: #f47a45;
    --purple: #6b5bd2;
    --line: #dfdccf;
    --white: #ffffff;
    --shadow: 0 18px 55px rgba(40, 34, 17, 0.1);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(23, 23, 21, 0.08);
    background: rgba(255, 253, 247, 0.94);
    backdrop-filter: blur(18px);
}

.header-shell,
main,
.footer-shell {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.header-shell {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 50% 50% 46% 54%;
    background: var(--yellow);
    box-shadow: 4px 4px 0 var(--ink);
    font-size: 20px;
    font-weight: 900;
    transform: rotate(-5deg);
}

.brand-copy {
    display: grid;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 19px;
    letter-spacing: 0.08em;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.12em;
}

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

.main-nav a {
    display: grid;
    min-width: 72px;
    padding: 10px 9px 8px;
    place-items: center;
    border-radius: 14px;
    color: #4c4b45;
    font-size: 13px;
    line-height: 1.3;
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--ink);
    background: var(--yellow);
    transform: translateY(-2px);
}

.ui-icon {
    min-height: 20px;
    font-size: 17px;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    padding: 8px 12px;
    cursor: pointer;
}

main {
    padding-top: 42px;
}

.hero {
    position: relative;
    display: grid;
    min-height: 570px;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 52px;
    align-items: center;
    overflow: hidden;
    padding: 64px;
    border: 1px solid #e1c840;
    border-radius: 34px;
    background: linear-gradient(135deg, #fff7bd 0%, #ffcf33 100%);
    box-shadow: var(--shadow);
}

.hero::after {
    position: absolute;
    right: -80px;
    bottom: -100px;
    width: 340px;
    height: 340px;
    border: 70px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    content: "";
}

.hero-copy,
.hero-gallery {
    position: relative;
    z-index: 1;
}

.hero-kicker,
.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 12px 0 18px;
    font-size: clamp(54px, 7vw, 92px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.hero h1 a:hover {
    text-decoration: underline;
    text-decoration-thickness: 8px;
    text-underline-offset: 10px;
}

.hero-lead {
    max-width: 570px;
    margin: 0;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 10px 20px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.button-primary {
    border-color: var(--ink);
    color: var(--white);
    background: var(--ink);
    box-shadow: 5px 5px 0 rgba(255, 255, 255, 0.65);
}

.button-secondary {
    border-color: var(--ink);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
}

.button-dark {
    color: var(--white);
    background: var(--green);
}

.button-disabled {
    color: #98968e;
    background: #ece9df;
    cursor: default;
}

.button-disabled:hover {
    transform: none;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin: 38px 0 0;
    padding: 0;
    list-style: none;
}

.hero-stats li {
    display: grid;
}

.hero-stats strong {
    font-size: 25px;
    line-height: 1.1;
}

.hero-stats span {
    color: #585342;
    font-size: 13px;
}

.hero-gallery {
    min-height: 410px;
}

.hero-cover {
    position: absolute;
    width: 210px;
    overflow: hidden;
    border: 6px solid var(--white);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 24px 50px rgba(28, 25, 14, 0.25);
}

.hero-cover img {
    aspect-ratio: 3 / 4;
}

.hero-cover span {
    display: block;
    padding: 9px 10px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cover-1 {
    top: 40px;
    left: 0;
    transform: rotate(-9deg);
}

.cover-2 {
    z-index: 2;
    top: 0;
    left: 145px;
    transform: rotate(4deg);
}

.cover-3 {
    top: 72px;
    right: -25px;
    transform: rotate(11deg);
}

.ticker {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
    margin-top: 28px;
    padding: 17px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.ticker strong {
    color: var(--orange);
}

.ticker p {
    margin: 0;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker a,
.text-link {
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.content-section,
.app-section {
    margin-top: 112px;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 32px;
    align-items: end;
    margin-bottom: 32px;
}

.section-heading .eyebrow {
    grid-column: 1 / -1;
    color: var(--orange);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 520px;
    justify-self: end;
    margin: 0;
    color: var(--muted);
}

.spotlight-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
    border-radius: var(--radius);
    color: var(--white);
    background: var(--green);
    box-shadow: var(--shadow);
}

.spotlight-image img {
    height: 100%;
    min-height: 430px;
    aspect-ratio: 16 / 10;
}

.spotlight-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}

.pill,
.book-tag {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--ink);
    background: var(--yellow);
    font-size: 12px;
    font-weight: 800;
}

.spotlight-copy h3 {
    margin: 14px 0 12px;
    font-size: 36px;
    line-height: 1.2;
}

.detail-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 22px 0;
}

.detail-list div {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.detail-list dt {
    color: #c9e4da;
    font-size: 12px;
}

.detail-list dd {
    margin: 2px 0 0;
    font-weight: 700;
}

.book-grid {
    display: grid;
    gap: 24px;
}

.book-grid-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.book-card {
    min-width: 0;
}

.cover-link {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: var(--cream);
}

.cover-link img {
    aspect-ratio: 3 / 4;
    transition: transform 0.35s ease;
}

.book-card:hover .cover-link img {
    transform: scale(1.04);
}

.book-card-body {
    padding-top: 15px;
}

.book-card h3 {
    margin: 8px 0 6px;
    font-size: 19px;
    line-height: 1.35;
}

.book-card h3 a:hover {
    color: var(--green);
}

.book-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

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

.category-card {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:first-child {
    grid-column: span 2;
}

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

.category-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: var(--yellow-soft);
    font-size: 22px;
    font-weight: 900;
}

.category-card h3 {
    margin: 22px 0 8px;
    font-size: 23px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.category-arrow {
    margin-top: auto;
    padding-top: 16px;
    font-weight: 800;
}

.category-2,
.category-6 {
    background: #eef8f3;
}

.category-4 {
    background: #fff0e8;
}

.category-5 {
    background: #f0edff;
}

.ranking-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
}

.ranking-section .section-heading {
    display: block;
    margin: 0;
}

.ranking-section .section-heading h2 {
    margin-top: 8px;
}

.ranking-section .section-heading p {
    margin-top: 16px;
}

.ranking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list li {
    display: grid;
    grid-template-columns: 52px 62px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.rank-number {
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 700;
}

.ranking-list img {
    width: 62px;
    height: 62px;
    border-radius: 15px;
}

.ranking-list h3,
.ranking-list p {
    margin: 0;
}

.ranking-list h3 {
    font-size: 18px;
}

.ranking-list p {
    color: var(--muted);
    font-size: 13px;
}

.trend-up {
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
}

.dark-section {
    width: calc(100% + 80px);
    margin-left: -40px;
    padding: 64px 40px;
    border-radius: 32px;
    color: var(--white);
    background: var(--ink);
}

.dark-section .section-heading p,
.dark-section .book-card p,
.dark-section .book-meta {
    color: #bdbcb4;
}

.horizontal-shelf {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.compact-card .cover-link {
    border: 1px solid #3c3c37;
}

.theme-board .section-heading {
    max-width: 850px;
}

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

.mood-grid a {
    display: grid;
    min-height: 200px;
    grid-template-columns: auto 1fr;
    gap: 0 20px;
    align-content: center;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, var(--white), var(--cream));
}

.mood-grid a > span {
    grid-row: span 2;
    font-size: 48px;
}

.mood-grid small {
    color: var(--muted);
}

.mood-grid strong {
    font-size: 25px;
}

.completed-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.completed-list article {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.complete-badge {
    display: inline-flex;
    width: fit-content;
    height: fit-content;
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--green);
    background: #dff5e9;
    font-size: 13px;
    font-weight: 800;
}

.completed-list h3 {
    margin: 2px 0 4px;
    font-size: 23px;
}

.completed-list p {
    max-width: 750px;
    margin: 0;
    color: var(--muted);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
}

.schedule-grid article {
    min-height: 190px;
    padding: 22px 16px;
    border-right: 1px solid var(--line);
}

.schedule-grid article:last-child {
    border-right: 0;
}

.schedule-grid article > span {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--yellow);
    font-size: 12px;
    font-weight: 800;
}

.schedule-grid h3 {
    margin: 35px 0 8px;
    font-size: 17px;
    line-height: 1.4;
}

.schedule-grid small {
    color: var(--muted);
}

.bookshelf-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px;
    border-radius: 30px;
    background: #f0edff;
}

.bookshelf-copy h2 {
    margin: 7px 0 12px;
    font-size: 40px;
    line-height: 1.2;
}

.bookshelf-copy p {
    color: #555169;
}

.action-message,
.form-message {
    margin: 12px 0 0;
    font-size: 13px;
}

.shelf-visual {
    display: flex;
    height: 250px;
    align-items: end;
    justify-content: center;
    gap: 10px;
    border-bottom: 20px solid #4d3d2c;
}

.shelf-visual span {
    display: grid;
    width: 58px;
    height: 190px;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 8px 8px 2px 2px;
    background: var(--yellow);
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    writing-mode: vertical-rl;
}

.shelf-visual span:nth-child(2) {
    height: 220px;
    background: #fb8d64;
}

.shelf-visual span:nth-child(3) {
    height: 180px;
    background: #78bfa2;
}

.shelf-visual span:nth-child(4) {
    height: 235px;
    background: #8d7fe2;
}

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

.guide-grid article {
    padding: 28px 24px;
    border-top: 4px solid var(--yellow);
    background: var(--cream);
}

.guide-grid article > span {
    color: var(--orange);
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 700;
}

.guide-grid h3 {
    margin: 20px 0 8px;
}

.guide-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.about-section {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 80px;
    padding-top: 64px;
    border-top: 1px solid var(--line);
}

.about-title h2 {
    margin: 8px 0 0;
    font-size: 43px;
    line-height: 1.2;
}

.about-copy p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 17px;
}

.about-copy ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.about-copy li {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 13px;
    background: var(--white);
    font-size: 13px;
}

.app-section {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 54px;
    align-items: center;
    margin-bottom: 112px;
    padding: 55px;
    border-radius: 30px;
    color: var(--white);
    background: var(--green);
}

.app-graphic {
    display: grid;
    width: 220px;
    aspect-ratio: 1;
    place-content: center;
    justify-self: center;
    border: 12px solid var(--white);
    outline: 3px solid var(--yellow);
    outline-offset: 10px;
    color: var(--ink);
    background: repeating-linear-gradient(45deg, var(--yellow), var(--yellow) 12px, #f8b91f 12px, #f8b91f 24px);
    text-align: center;
}

.app-graphic span,
.app-graphic strong {
    display: block;
}

.app-graphic span {
    font-size: 23px;
    font-weight: 900;
}

.app-graphic strong {
    margin-top: 5px;
    font-size: 14px;
}

.app-copy h2 {
    margin: 8px 0;
    font-size: 44px;
    line-height: 1.2;
}

.subscribe-form {
    margin-top: 24px;
}

.subscribe-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.subscribe-form > div {
    display: flex;
    gap: 10px;
}

.subscribe-form input {
    min-width: 0;
    flex: 1;
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
}

.subscribe-form .button-primary {
    color: var(--ink);
    background: var(--yellow);
    box-shadow: none;
}

.site-footer {
    padding: 55px 0 35px;
    color: #cfcec6;
    background: var(--ink);
}

.footer-shell {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
}

.footer-brand {
    color: var(--yellow);
    font-size: 25px;
    font-weight: 900;
}

.footer-shell p {
    margin: 8px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: start;
}

.footer-links a:hover {
    color: var(--yellow);
}

.copyright {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid #3b3a36;
    font-size: 13px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--green);
}

.archive-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
    padding: 48px;
    border-radius: 28px;
    background: var(--cream);
}

.archive-icon {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border-radius: 22px;
    color: var(--white);
    background: var(--green);
    font-size: 37px;
    font-weight: 900;
}

.archive-hero h1 {
    margin: 5px 0 8px;
    font-size: 48px;
    line-height: 1.1;
}

.archive-hero p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
}

.archive-hero dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.archive-hero dl div {
    min-width: 120px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
}

.archive-hero dt {
    color: var(--muted);
    font-size: 12px;
}

.archive-hero dd {
    margin: 0;
    font-weight: 800;
}

.archive-book-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.archive-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    margin: 90px 0 110px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
}

.archive-note > span {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    border-radius: 50%;
    background: var(--yellow);
}

.archive-note h2,
.archive-note p {
    margin: 0;
}

.archive-note p {
    color: var(--muted);
}

.reader-main {
    max-width: 1000px;
}

.reader-header {
    padding: 48px;
    border-radius: 28px;
    background: var(--cream);
    text-align: center;
}

.reader-labels {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.reader-labels span {
    border-radius: 999px;
    padding: 4px 10px;
    background: var(--yellow);
    font-size: 12px;
    font-weight: 800;
}

.reader-header h1 {
    margin: 14px 0;
    font-size: clamp(35px, 5vw, 56px);
    line-height: 1.18;
}

.reader-intro {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 13px;
}

.reader-meta a {
    color: var(--green);
    font-weight: 800;
}

.reading-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 5px solid var(--yellow);
    background: #fff9d9;
}

.reading-note p {
    margin: 0;
}

.comic-chapter {
    display: grid;
    gap: 28px;
}

.comic-chapter figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
}

.comic-chapter img {
    aspect-ratio: 4 / 5;
    background: var(--cream);
}

.comic-chapter figcaption {
    padding: 10px 16px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.chapter-end {
    margin-top: 60px;
    padding: 45px 25px;
    border-radius: 24px;
    background: var(--ink);
    color: var(--white);
    text-align: center;
}

.chapter-end > span {
    color: var(--yellow);
}

.chapter-end h2 {
    margin: 8px 0;
    font-size: 32px;
}

.chapter-end p {
    max-width: 650px;
    margin: 0 auto;
    color: #c9c8c0;
}

.chapter-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 25px 0 110px;
}

@media (max-width: 1050px) {
    .header-shell {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 0;
    }

    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .main-nav a {
        flex: 0 0 auto;
    }

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

    .hero-gallery {
        min-height: 360px;
        max-width: 620px;
    }

    .cover-3 {
        right: 10px;
    }

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

    .category-card:first-child {
        grid-column: auto;
    }

    .category-grid .category-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 9px);
        justify-self: center;
    }

    .archive-hero {
        grid-template-columns: auto 1fr;
    }

    .archive-hero dl {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .header-shell,
    main,
    .footer-shell {
        width: min(100% - 24px, 1200px);
    }

    .header-shell {
        min-height: 70px;
    }

    .brand-copy small {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: visible;
    }

    .main-nav.is-open {
        display: grid;
    }

    .main-nav a {
        min-width: 0;
        padding-inline: 4px;
    }

    main {
        padding-top: 24px;
    }

    .hero {
        min-height: auto;
        gap: 38px;
        padding: 34px 22px;
        border-radius: 24px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero-lead {
        font-size: 16px;
    }

    .hero-stats {
        justify-content: space-between;
        gap: 12px;
    }

    .hero-gallery {
        min-height: 275px;
    }

    .hero-cover {
        width: 145px;
        border-width: 4px;
    }

    .cover-1 {
        left: -8px;
    }

    .cover-2 {
        left: calc(50% - 72px);
    }

    .cover-3 {
        right: -8px;
    }

    .ticker {
        grid-template-columns: 1fr auto;
    }

    .ticker p {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .content-section,
    .app-section {
        margin-top: 76px;
    }

    .section-heading {
        grid-template-columns: 1fr;
    }

    .section-heading p {
        justify-self: start;
    }

    .spotlight-card,
    .ranking-section,
    .bookshelf-section,
    .about-section,
    .app-section {
        grid-template-columns: 1fr;
    }

    .spotlight-copy,
    .bookshelf-section,
    .app-section {
        padding: 28px 22px;
    }

    .spotlight-image img {
        min-height: 280px;
    }

    .book-grid-five,
    .archive-book-grid,
    .horizontal-shelf,
    .category-grid,
    .mood-grid,
    .guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .book-grid-five .book-card:last-child,
    .archive-book-grid .book-card:last-child,
    .horizontal-shelf .book-card:last-child,
    .category-grid .category-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 10px);
        justify-self: center;
    }

    .book-card p {
        display: none;
    }

    .book-meta {
        display: grid;
    }

    .ranking-section {
        gap: 25px;
    }

    .ranking-list li {
        grid-template-columns: 38px 52px 1fr;
    }

    .ranking-list img {
        width: 52px;
        height: 52px;
    }

    .trend-up {
        display: none;
    }

    .dark-section {
        width: calc(100% + 24px);
        margin-left: -12px;
        padding: 42px 12px;
        border-radius: 24px;
    }

    .mood-grid a {
        min-height: 170px;
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .mood-grid a > span {
        grid-row: auto;
        font-size: 28px;
    }

    .completed-list article {
        grid-template-columns: 1fr;
        gap: 10px;
    }

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

    .schedule-grid article {
        min-height: 155px;
    }

    .schedule-grid article:last-child {
        grid-column: 1 / -1;
        width: 50%;
        justify-self: center;
        border-left: 1px solid var(--line);
    }

    .shelf-visual {
        height: 220px;
    }

    .about-section {
        gap: 28px;
    }

    .app-graphic {
        width: 180px;
    }

    .subscribe-form > div {
        display: grid;
    }

    .footer-shell {
        grid-template-columns: 1fr;
    }

    .copyright {
        grid-column: auto;
    }

    .archive-hero {
        grid-template-columns: 1fr;
        padding: 30px 22px;
    }

    .archive-hero h1 {
        font-size: 38px;
    }

    .archive-hero dl {
        grid-column: auto;
    }

    .reader-header {
        padding: 34px 18px;
    }

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

@media (max-width: 420px) {
    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-copy strong {
        font-size: 17px;
    }

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

    .hero h1 {
        font-size: 44px;
    }

    .hero-gallery {
        min-height: 240px;
    }

    .hero-cover {
        width: 125px;
    }

    .cover-2 {
        left: calc(50% - 62px);
    }

    .category-card {
        min-height: 230px;
        padding: 20px;
    }

    .detail-list,
    .archive-hero dl {
        grid-template-columns: 1fr;
    }
}
