@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #eef0e4;
  --surface: rgba(251, 250, 244, 0.84);
  --surface-strong: rgba(255, 255, 250, 0.96);
  --ink: #101510;
  --muted: #556255;
  --accent: #204f3a;
  --accent-dark: #143425;
  --line: rgba(16, 21, 16, 0.1);
  --line-strong: rgba(16, 21, 16, 0.18);
  --shadow: 0 22px 60px rgba(26, 46, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(67, 113, 84, 0.15), transparent 28%),
    radial-gradient(circle at right 20%, rgba(32, 79, 58, 0.12), transparent 24%),
    linear-gradient(180deg, #f8f8f1 0%, var(--bg) 42%, #eaeddf 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(16, 21, 16, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 21, 16, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent);
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 250, 0.84);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.brand,
.site-nav a,
.button,
.inline-link {
  text-decoration: none;
}

.brand {
  color: var(--ink);
  font-family: "DM Serif Display", serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero,
.section,
.hero-card,
.journey-card,
.timeline-item,
.books-count-card,
.contact-panel,
.feature-card,
.catalog-card,
.book-page-hero,
.book-page-panel,
.review-panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 36px;
  background:
    linear-gradient(140deg, rgba(255, 255, 250, 0.96), rgba(240, 244, 231, 0.88)),
    var(--surface);
  overflow: hidden;
}

.hero-copy {
  padding: 1rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 800;
}

.hero h1,
.section-heading h2,
.hero-card h2,
.feature-card h3,
.journey-card h3,
.page-title,
.book-page-title,
.about-block h2,
.catalog-content h3,
.panel-title,
.quote-section blockquote {
  margin: 0;
  font-family: "DM Serif Display", serif;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
}

.page-title {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
}

.hero-text,
.book-page-description p,
.book-page-panel p,
.about-block p,
.about-list li,
.works-list p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.hero-text {
  max-width: 58ch;
  margin: 1.25rem 0 0;
}

.hero-actions,
.book-actions,
.book-page-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-actions {
  margin-top: 2rem;
}

.section-actions {
  margin-top: 1.5rem;
}

.section-actions.centered {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
}

.button.small {
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
}

.button.primary {
  color: #f8fbf7;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 250, 0.92);
  border: 1px solid var(--line);
}

.button.ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.hero-card {
  align-self: start;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  padding: 1.5rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(14, 28, 20, 0.98), rgba(32, 79, 58, 0.96));
  color: #f7fbf6;
  overflow: hidden;
  max-width: 440px;
  margin-left: auto;
}

.card-label,
.contact-label,
.micro-label {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-card h2 {
  font-size: 2.4rem;
}

.hero-card p,
.journey-card p,
.intro-grid p,
.contact-panel p {
  line-height: 1.75;
}

.hero-highlights {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: rgba(247, 251, 246, 0.92);
}

.author-portrait-wrap {
  width: 100%;
}

.author-portrait {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.2);
}

.author-portrait.large {
  max-width: 340px;
}

.hero-card-copy {
  display: grid;
  gap: 0.8rem;
}

.hero-card-copy .card-label,
.hero-card-copy h2,
.hero-card-copy p {
  margin: 0;
}

.section {
  margin-top: 1.5rem;
  padding: 2rem;
  border-radius: 32px;
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.section-heading {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1;
}

.intro-grid,
.journey-grid,
.contact-panel,
.about-hero {
  display: grid;
  gap: 1rem;
}

.books-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: end;
  overflow: hidden;
}

.books-count-card {
  align-self: stretch;
  display: grid;
  align-content: end;
  gap: 1rem;
  min-height: 280px;
  padding: 1.5rem;
  border-radius: 28px;
  color: #f8fbf7;
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 250, 0.2), transparent 24%),
    linear-gradient(145deg, rgba(20, 52, 37, 0.98), rgba(32, 79, 58, 0.92));
}

.books-count-card {
  position: relative;
  isolation: isolate;
  align-content: stretch;
  overflow: hidden;
}

.books-count-card::before {
  content: "";
  position: absolute;
  inset: 1rem;
  z-index: -1;
  border: 1px solid rgba(248, 251, 247, 0.14);
  border-radius: 22px;
}

.books-count-copy {
  position: relative;
  z-index: 2;
  align-self: end;
}

.books-count-copy span {
  display: block;
  font-family: "DM Serif Display", serif;
  font-size: clamp(3.2rem, 7vw, 5rem);
  line-height: 0.86;
}

.books-count-card p {
  max-width: 34ch;
  margin: 0;
  color: rgba(248, 251, 247, 0.86);
  line-height: 1.7;
}

.books-count-card .micro-label {
  margin-bottom: 0.55rem;
  color: rgba(248, 251, 247, 0.72);
  font-weight: 800;
}

.books-orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(248, 251, 247, 0.18);
  border-radius: 50%;
}

.ring-one {
  width: 260px;
  height: 260px;
  top: -70px;
  right: -65px;
}

.ring-two {
  width: 190px;
  height: 190px;
  top: 42px;
  right: 42px;
}

.book-stack-illustration {
  position: absolute;
  top: 2rem;
  left: 1.7rem;
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  transform: rotate(-5deg);
}

.book-stack-illustration span {
  width: 34px;
  border-radius: 10px 10px 6px 6px;
  background: #f8f8f1;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.book-stack-illustration span:nth-child(1) {
  height: 118px;
}

.book-stack-illustration span:nth-child(2) {
  height: 150px;
  background: #dfe7d5;
}

.book-stack-illustration span:nth-child(3) {
  height: 98px;
}

.book-stack-illustration span:nth-child(4) {
  height: 134px;
  background: #c6d4c0;
}

.book-stack-illustration span::after {
  content: "";
  display: block;
  width: 50%;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: rgba(20, 52, 37, 0.42);
}

.ink-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(248, 251, 247, 0.86);
}

.dot-one {
  right: 3.8rem;
  bottom: 6.3rem;
  width: 12px;
  height: 12px;
}

.dot-two {
  right: 7.4rem;
  bottom: 4.8rem;
  width: 7px;
  height: 7px;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.genre-tags small {
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(248, 251, 247, 0.18);
  border-radius: 999px;
  color: #f8fbf7;
  background: rgba(248, 251, 247, 0.1);
  font-weight: 800;
}

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

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

.feature-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.1rem;
  padding: 1.2rem;
  border-radius: 28px;
  background: var(--surface-strong);
  box-shadow: 0 14px 34px rgba(26, 46, 34, 0.08);
}

.feature-cover-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.feature-cover {
  display: block;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 30px rgba(16, 21, 16, 0.14);
}

.feature-content {
  min-width: 0;
}

.feature-content h3 {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.book-number {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.book-subtitle,
.book-meta,
.catalog-meta,
.book-page-meta {
  margin: 0;
}

.book-subtitle {
  color: var(--accent-dark);
  font-weight: 700;
}

.book-meta,
.catalog-meta,
.book-page-meta {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.catalog-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.25rem;
  padding: 1.15rem;
  border-radius: 24px;
  background: var(--surface-strong);
  align-items: stretch;
  box-shadow: 0 14px 30px rgba(26, 46, 34, 0.08);
  min-height: 188px;
}

.catalog-cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 22px rgba(16, 21, 16, 0.14);
}

.catalog-content h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.catalog-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.65rem;
}

.catalog-content .book-number,
.catalog-content h3,
.catalog-content .catalog-meta {
  margin: 0;
}

.catalog-content .button {
  margin-top: 0.35rem;
}

.books-timeline-section {
  overflow: hidden;
}

.books-year-group {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.books-year-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.books-year-group:last-child {
  padding-bottom: 0;
}

.year-marker {
  position: sticky;
  top: 7rem;
  align-self: start;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 250, 0.72);
}

.year-marker span {
  display: block;
  color: var(--accent-dark);
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 0.95;
}

.year-marker p,
.catalog-note {
  color: var(--muted);
  line-height: 1.7;
}

.year-marker p {
  margin: 0.45rem 0 0;
  font-weight: 700;
}

.timeline-book-card {
  min-height: 232px;
}

.timeline-book-card .catalog-cover {
  align-self: start;
}

.catalog-note {
  margin: 0;
  font-size: 0.92rem;
}

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

.journey-card {
  padding: 1.35rem;
  border-radius: 24px;
  background: var(--surface-strong);
}

.journey-year,
.timeline-date {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.journey-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
}

.journey-hero-copy {
  position: relative;
  z-index: 2;
}

.journey-illustration {
  position: relative;
  min-height: 430px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 35% 18%, rgba(255, 255, 250, 0.92), transparent 18%),
    linear-gradient(145deg, rgba(20, 52, 37, 0.98), rgba(32, 79, 58, 0.92));
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 250, 0.14);
}

.journey-illustration::before,
.journey-illustration::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.journey-illustration::before {
  width: 320px;
  height: 320px;
  right: -110px;
  top: -80px;
  border: 1px solid rgba(255, 255, 250, 0.22);
}

.journey-illustration::after {
  width: 260px;
  height: 260px;
  left: -95px;
  bottom: -90px;
  background: rgba(238, 240, 228, 0.08);
}

.sun-mark {
  position: absolute;
  width: 84px;
  height: 84px;
  top: 2.4rem;
  right: 2.4rem;
  border-radius: 50%;
  background: #f8f8f1;
  box-shadow: 0 0 0 18px rgba(248, 248, 241, 0.1);
}

.open-book-shape {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  grid-template-columns: repeat(2, 112px);
  gap: 0.4rem;
  transform: translate(-50%, -46%) rotate(-7deg);
}

.open-book-shape span {
  height: 170px;
  border: 1px solid rgba(16, 21, 16, 0.12);
  background: #fbfaf4;
  box-shadow: 0 24px 34px rgba(0, 0, 0, 0.18);
}

.open-book-shape span:first-child {
  border-radius: 26px 8px 8px 26px;
}

.open-book-shape span:last-child {
  border-radius: 8px 26px 26px 8px;
}

.ink-path {
  position: absolute;
  left: 21%;
  bottom: 22%;
  width: 58%;
  height: 120px;
  border-bottom: 4px solid rgba(255, 255, 250, 0.72);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.leaf {
  position: absolute;
  width: 54px;
  height: 24px;
  border-radius: 100% 0 100% 0;
  background: #eef0e4;
}

.leaf-one {
  left: 18%;
  top: 25%;
  transform: rotate(28deg);
}

.leaf-two {
  right: 22%;
  bottom: 26%;
  transform: rotate(-18deg);
}

.journey-illustration p {
  position: absolute;
  left: 2rem;
  bottom: 1.8rem;
  margin: 0;
  color: #f8f8f1;
  font-family: "DM Serif Display", serif;
  font-size: 3rem;
}

.timeline-section {
  overflow: hidden;
}

.writer-timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-left: 2rem;
}

.writer-timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding: 1.35rem 1.45rem;
  border-radius: 24px;
  background: var(--surface-strong);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.05rem;
  top: 1.65rem;
  width: 14px;
  height: 14px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-item h3 {
  margin: 0 0 0.65rem;
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.journey-closing {
  text-align: center;
}

.journey-closing blockquote {
  max-width: 980px;
  margin: 0 auto;
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.05;
}

.quote-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(32, 79, 58, 0.08), rgba(255, 255, 250, 0.94));
}

.quote-section blockquote {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
}

.contact-panel {
  grid-template-columns: 0.85fr 1.15fr;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 250, 0.86);
}

.contact-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(250, 251, 245, 0.88);
}

.contact-card .contact-label + p {
  margin-bottom: 1.2rem;
}

.contact-card .contact-label:last-of-type + p {
  margin-bottom: 0;
}

.contact-email-card {
  display: grid;
  align-content: center;
}

.contact-email-card a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.about-hero {
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
}

.about-hero-photo {
  display: flex;
  justify-content: flex-end;
}

.about-content {
  display: grid;
  gap: 1rem;
}

.about-block {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 250, 0.82);
}

.about-block h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.about-block p,
.about-list li,
.works-list p {
  margin: 0 0 1rem;
}

.about-list {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.works-list p strong {
  color: var(--accent-dark);
}

.book-page-shell {
  display: grid;
  gap: 1.5rem;
}

.book-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.inline-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.book-page-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  padding: 2rem;
  border-radius: 32px;
  background:
    linear-gradient(140deg, rgba(255, 255, 250, 0.97), rgba(239, 244, 231, 0.9)),
    var(--surface);
}

.book-page-cover-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.book-page-cover {
  display: block;
  width: min(100%, 320px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 24px 44px rgba(16, 21, 16, 0.18);
}

.book-page-summary {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.book-page-title {
  font-size: clamp(2.8rem, 5vw, 4.3rem);
  line-height: 0.94;
}

.book-page-author {
  margin: 0;
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-page-description p {
  margin: 0 0 1rem;
}

.book-page-actions {
  margin-top: 0.5rem;
}

.book-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.book-page-panel,
.review-panel {
  padding: 1.35rem;
  border-radius: 28px;
  background: var(--surface-strong);
}

.panel-title {
  font-size: 2rem;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.detail-item {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(250, 251, 245, 0.74);
}

.detail-item dt {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-item dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
}

.review-panel blockquote {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.review-meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.book-page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
}

em {
  font-style: italic;
}

@media (max-width: 980px) {
  .hero,
  .intro-grid,
  .about-hero,
  .books-hero,
  .journey-hero,
  .journey-grid,
  .contact-panel,
  .featured-grid,
  .catalog-grid,
  .book-page-grid,
  .book-page-hero {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .feature-card,
  .catalog-card {
    max-width: 100%;
    margin-left: 0;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .catalog-card {
    grid-template-columns: 104px 1fr;
  }

  .books-year-group {
    grid-template-columns: 1fr;
  }

  .year-marker {
    position: static;
  }

  .about-hero-photo,
  .book-page-cover-wrap {
    justify-content: flex-start;
  }

  .site-header {
    border-radius: 28px;
    padding: 1rem;
  }

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

  .hero h1 {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 1180px);
  }

  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .section,
  .book-page-hero,
  .book-page-panel,
  .review-panel {
    padding: 1.25rem;
    border-radius: 24px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1,
  .page-title,
  .book-page-title {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .button,
  .button.small {
    width: 100%;
  }

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

  .books-count-card {
    min-height: 0;
    padding: 1.1rem;
  }

  .books-count-card::before {
    inset: 0.7rem;
  }

  .books-count-copy {
    display: grid;
    gap: 0.5rem;
    padding-top: 7.2rem;
  }

  .books-count-copy span {
    font-size: clamp(2.6rem, 18vw, 4.2rem);
    line-height: 0.9;
  }

  .books-count-card p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .book-stack-illustration {
    top: 1.3rem;
    left: 1.4rem;
    gap: 0.32rem;
    transform: rotate(-4deg);
  }

  .book-stack-illustration span {
    width: 24px;
    border-radius: 8px 8px 5px 5px;
  }

  .book-stack-illustration span:nth-child(1) {
    height: 72px;
  }

  .book-stack-illustration span:nth-child(2) {
    height: 94px;
  }

  .book-stack-illustration span:nth-child(3) {
    height: 64px;
  }

  .book-stack-illustration span:nth-child(4) {
    height: 82px;
  }

  .ring-one {
    width: 180px;
    height: 180px;
    top: -45px;
    right: -60px;
  }

  .ring-two {
    width: 128px;
    height: 128px;
    top: 42px;
    right: 18px;
  }

  .dot-one {
    right: 3.4rem;
    bottom: 5.4rem;
  }

  .dot-two {
    right: 6.1rem;
    bottom: 4.1rem;
  }

  .genre-tags {
    margin-top: 0.25rem;
  }

  .genre-tags small {
    padding: 0.38rem 0.55rem;
    font-size: 0.78rem;
  }

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

  .detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .detail-item {
    padding: 0.75rem;
  }

  .detail-item:nth-child(5) {
    grid-column: 1 / -1;
  }

  .panel-title {
    font-size: 1.75rem;
  }

  .catalog-cover,
  .feature-cover,
  .book-page-cover {
    max-width: 240px;
  }

  .book-page-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .detail-list {
    grid-template-columns: 1fr;
  }

  .detail-item:nth-child(5) {
    grid-column: auto;
  }
}
