:root {
  --ink: #17120d;
  --ink-soft: #30271f;
  --paper: #f7f1e7;
  --cream: #eee3d3;
  --white: #fffefa;
  --gold: #c89a24;
  --gold-deep: #8d6813;
  --gold-soft: #e4c36b;
  --green: #263b34;
  --wine: #4d202b;
  --line: #dfd8ce;
  --muted: #756b61;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --shell: min(1180px, calc(100% - 36px));
  --shadow: 0 18px 50px rgba(23, 18, 13, .08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfaf7;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-140%);
  transition: transform .2s ease;
}

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

.masthead {
  min-height: 280px;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #ece8e2;
  background: var(--white);
}

.masthead-shell {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 78px;
}

.brand-stack {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.brand-emblem {
  width: 94px;
  height: 94px;
  margin-bottom: 12px;
  border: 1px solid rgba(23, 18, 13, .18);
  border-radius: 50%;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 0 0 6px var(--white), 0 0 0 7px rgba(200, 154, 36, .38);
}

.brand-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
  mix-blend-mode: multiply;
  transform: scale(1.36);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.brand-tagline {
  max-width: 210px;
  margin-top: 7px;
  font-size: .78rem;
  letter-spacing: .05em;
  line-height: 1.5;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 30px;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  font-size: .8rem;
  font-weight: 600;
}

.main-nav a > span {
  margin-left: 4px;
  color: var(--gold-deep);
  font-size: .42rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.page-shell {
  width: var(--shell);
  margin: 30px auto 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 30px;
}

.content-card,
.side-card {
  border: 1px solid var(--line);
  background: var(--white);
}

.content-card {
  padding: 26px 26px 62px;
  box-shadow: var(--shadow);
}

.page-title {
  padding: 0 0 28px;
  border-bottom: 1px solid #eee8df;
}

.page-title p,
.section-title-row p,
.section-eyebrow {
  margin: 0 0 5px;
  color: var(--gold-deep);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.page-title h1,
.section-title-row h2,
.why-section h2,
.author-empire h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.035em;
}

.page-title h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
}

.featured-story {
  display: grid;
  grid-template-columns: .93fr 1.07fr;
  gap: 36px;
  align-items: center;
  padding: 50px 26px 72px;
}

.featured-visual {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background:
    linear-gradient(45deg, transparent 47%, rgba(200,154,36,.2) 48% 49%, transparent 50%),
    linear-gradient(-45deg, transparent 47%, rgba(200,154,36,.12) 48% 49%, transparent 50%),
    var(--ink);
  background-size: 38px 38px;
  overflow: hidden;
}

.featured-visual::before,
.featured-visual::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(228,195,107,.42);
  border-radius: 50%;
}

.featured-visual::before {
  left: -100px;
  top: -80px;
}

.featured-visual::after {
  right: -100px;
  bottom: -80px;
}

.featured-logo {
  position: relative;
  z-index: 2;
  width: 190px;
  height: 220px;
  padding: 8px;
  background: var(--paper);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
  transform: rotate(-2deg);
  overflow: hidden;
}

.featured-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.visual-kicker,
.visual-caption {
  position: absolute;
  z-index: 3;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.visual-kicker {
  top: 19px;
  left: 20px;
  color: var(--gold-soft);
}

.visual-caption {
  right: 20px;
  bottom: 16px;
}

.section-link {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 1.08rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.featured-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -.035em;
}

.featured-copy p {
  margin: 25px 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.85;
  text-align: justify;
}

.read-more,
.gold-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 4px;
  border: 0;
  border-bottom: 1px solid var(--gold-deep);
  color: var(--gold-deep);
  background: none;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
}

.books-section,
.catalogue-slider,
.why-section,
.author-empire,
.big-numbers {
  margin-top: 45px;
}

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

.section-title-row h2 {
  color: var(--gold-deep);
  font-size: 2rem;
}

.section-title-row > span {
  max-width: 330px;
  color: var(--muted);
  font-size: .67rem;
  text-align: right;
}

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

.book-tile {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.book-tile:hover {
  z-index: 2;
  box-shadow: 0 18px 45px rgba(23, 18, 13, .22);
  transform: translateY(-5px);
}

.book-art {
  position: absolute;
  inset: 0;
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
}

.book-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,8,6,.75), transparent 56%);
  pointer-events: none;
}

.book-art p,
.book-art h3,
.book-art i {
  position: relative;
  z-index: 2;
}

.book-art p {
  margin: 0;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.book-art h3 {
  align-self: center;
  margin: auto 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
}

.book-art i {
  align-self: center;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 4.6rem;
  font-style: normal;
  line-height: 1;
}

.book-mangrove {
  background:
    repeating-radial-gradient(ellipse at 50% 110%, transparent 0 25px, rgba(228,195,107,.14) 26px 27px),
    linear-gradient(145deg, #233c33, #0b1813);
}

.book-stars {
  background:
    radial-gradient(circle at 25% 30%, #e4c36b 0 1px, transparent 2px),
    radial-gradient(circle at 75% 50%, #fff 0 1px, transparent 2px),
    linear-gradient(145deg, #385078, #121a2a);
  background-size: 44px 44px, 61px 61px, auto;
}

.book-river {
  background:
    radial-gradient(ellipse at 50% 45%, transparent 0 25%, rgba(228,195,107,.27) 26% 27%, transparent 28% 40%, rgba(228,195,107,.15) 41% 42%, transparent 43%),
    linear-gradient(145deg, #64223c, #1e111d);
}

.book-palabre {
  background:
    linear-gradient(28deg, transparent 44%, rgba(23,18,13,.5) 45% 47%, transparent 48%) 0 100% / 28px 130px,
    linear-gradient(145deg, #d1a445, #9d4a2c);
}

.pdf-product-0 { background: linear-gradient(145deg, #2d463d, #0c1713); }
.pdf-product-1 { background: linear-gradient(145deg, #69412c, #23150f); }
.pdf-product-2 { background: linear-gradient(145deg, #4f3040, #1e1118); }
.pdf-product-3 { background: linear-gradient(145deg, #41506a, #151a25); }
.pdf-product .book-art h3 { max-width: 92%; overflow-wrap: anywhere; }
.pdf-product .book-art i { color: rgba(228,195,107,.8); font-size: 2.6rem; letter-spacing: -.08em; }
.product-chip { background: var(--wine); }

.demo-chip {
  position: absolute;
  z-index: 4;
  top: 17px;
  right: -35px;
  width: 150px;
  padding: 5px;
  color: var(--white);
  background: rgba(23, 18, 13, .82);
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(39deg);
}

.book-overlay {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  min-height: 140px;
  padding: 35px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: linear-gradient(transparent, rgba(12,9,7,.9));
}

.book-overlay span {
  margin-bottom: 15px;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.book-overlay button,
.book-overlay a {
  min-width: 120px;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.75);
  color: var(--white);
  background: rgba(255,255,255,.04);
  cursor: pointer;
  font-size: .72rem;
  text-align: center;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.book-overlay button:hover,
.book-overlay a:hover {
  color: var(--ink);
  background: var(--white);
}

.book-tile.is-hidden,
.recent-item.is-hidden {
  display: none;
}

.catalogue-slider {
  padding: 42px 24px 34px;
  background: #f4f0e9;
}

.section-title-row.compact {
  margin-bottom: 18px;
}

.slider-actions {
  display: flex;
  gap: 7px;
}

.slider-actions button {
  width: 38px;
  height: 38px;
  border: 1px solid #d1c9bd;
  background: var(--white);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.category-track {
  display: grid;
  grid-auto-columns: calc(50% - 7px);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.category-track::-webkit-scrollbar {
  display: none;
}

.category-slide {
  position: relative;
  min-height: 250px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  border: 0;
  color: var(--white);
  cursor: pointer;
  scroll-snap-align: start;
  overflow: hidden;
}

.category-slide::before,
.category-slide::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 50%;
}

.category-slide::before {
  width: 230px;
  height: 230px;
  top: -115px;
  right: -70px;
}

.category-slide::after {
  width: 160px;
  height: 160px;
  bottom: -85px;
  left: -50px;
}

.category-slide span,
.category-slide b {
  position: relative;
  z-index: 2;
}

.category-slide span {
  margin-bottom: 25px;
  font-family: var(--serif);
  font-size: 2.15rem;
}

.category-slide b {
  padding: 9px 22px;
  border: 1px solid rgba(255,255,255,.72);
  font-size: .7rem;
}

.category-romans {
  background: var(--wine);
}

.category-youth {
  color: var(--ink);
  background: var(--gold);
}

.category-youth::before,
.category-youth::after {
  border-color: rgba(23,18,13,.25);
}

.category-youth b {
  border-color: rgba(23,18,13,.55);
}

.category-poetry {
  background: #283c35;
}

.category-essay {
  background: #31466b;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.slider-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d2cdc5;
}

.slider-dots i.is-active {
  background: var(--gold-deep);
}

.why-section {
  padding: 50px 6px 30px;
}

.why-section h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

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

.reasons-list li {
  position: relative;
  padding: 9px 0 9px 24px;
  color: #3d352e;
  font-size: .88rem;
  border-bottom: 1px dotted #ddd3c6;
}

.reasons-list li::before {
  content: "◆";
  position: absolute;
  left: 1px;
  top: 12px;
  color: var(--gold);
  font-size: .5rem;
}

.highlight-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 42px;
}

.highlight-stats div {
  min-width: 0;
}

.highlight-stats strong {
  display: block;
  color: #c77d2e;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: .95;
}

.highlight-stats span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: .74rem;
}

.author-empire {
  padding: 46px;
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 42px;
  color: var(--paper);
  background:
    linear-gradient(45deg, transparent 48%, rgba(255,255,255,.035) 49% 51%, transparent 52%) 0 0 / 34px 34px,
    var(--ink);
}

.author-emblem {
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(228,195,107,.6);
  border-radius: 50%;
  box-shadow: 0 0 0 16px rgba(228,195,107,.06), 0 0 0 17px rgba(228,195,107,.2);
}

.author-emblem span {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
}

.author-empire .section-eyebrow {
  color: var(--gold-soft);
}

.author-empire h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.08;
}

.author-empire p:not(.section-eyebrow) {
  margin: 18px 0 24px;
  color: #c1b6ab;
  font-size: .86rem;
}

.author-empire .gold-link {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-soft);
}

.big-numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 55px 35px;
  padding: 70px 50px;
  text-align: center;
}

.big-numbers strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.big-numbers span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
}

.social-signature {
  padding: 30px 0 0;
  border-top: 1px solid #eee9e2;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-icons a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.social-signature p {
  margin: 22px 0 0;
  color: #9a9087;
  font-size: .75rem;
}

.sidebar {
  display: grid;
  gap: 25px;
}

.side-card {
  position: relative;
  padding: 30px;
  border-bottom: 3px solid var(--gold);
}

.side-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  width: 4px;
  height: 16px;
  background: var(--gold);
}

.side-card h2 {
  margin: 10px 0 22px;
  padding-bottom: 13px;
  border-bottom: 1px solid #eee9e2;
  font-family: var(--serif);
  font-size: 1.28rem;
}

.search-card form {
  display: grid;
  grid-template-columns: 1fr auto;
}

.search-card input,
.contact-card input,
.contact-card select {
  width: 100%;
  min-height: 45px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
}

.search-card button,
.contact-card button {
  min-height: 45px;
  padding: 9px 17px;
  border: 0;
  color: var(--white);
  background: var(--ink-soft);
  cursor: pointer;
  font-size: .74rem;
  font-weight: 600;
}

.search-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--gold-deep);
  font-size: .68rem;
}

.recent-card {
  padding-bottom: 20px;
}

.recent-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 13px 0 13px 25px;
}

.recent-dot {
  position: absolute;
  top: 24px;
  left: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.recent-thumb {
  width: 48px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: var(--serif);
  font-size: .8rem;
  font-weight: 700;
}

.thumb-launch { background: var(--green); }
.thumb-manuscript { color: var(--ink); background: var(--gold); }
.thumb-vip { background: var(--wine); }
.thumb-letter { background: #334b70; }

.recent-item h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: .9rem;
  line-height: 1.35;
}

.recent-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .69rem;
  line-height: 1.5;
}

.gallery-stage {
  min-height: 220px;
  padding: 25px;
  display: grid;
  grid-template-columns: 1fr .8fr;
  align-items: center;
  gap: 15px;
  color: var(--paper);
  background: var(--ink);
}

.gallery-logo {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: var(--paper);
  overflow: hidden;
}

.gallery-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
  mix-blend-mode: multiply;
  transform: scale(1.35);
}

.gallery-stage p {
  margin: 0;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.5;
}

.gallery-card > span {
  display: block;
  margin-top: 11px;
  color: var(--muted);
  font-size: .68rem;
}

.hours-card dl {
  margin: 0;
}

.hours-card dl div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dotted #ddd5c9;
  font-size: .76rem;
}

.hours-card dt {
  font-weight: 700;
}

.hours-card dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.contact-card > p {
  color: var(--muted);
  font-size: .78rem;
}

.contact-card form {
  display: grid;
  gap: 10px;
}

.contact-card label {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-card small {
  color: var(--muted);
  font-size: .62rem;
  line-height: 1.4;
}

.contact-card [data-form-status] {
  margin: 0;
  color: var(--gold-deep);
  font-size: .68rem;
}

.site-footer {
  min-height: 75px;
  display: flex;
  align-items: center;
  color: var(--ink);
  background: var(--gold);
}

.site-footer > div {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.site-footer strong {
  font-family: var(--serif);
  font-size: 1.05rem;
}

.site-footer span {
  font-size: .72rem;
}

.footer-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  flex: 1 1 auto;
}

.footer-admin-lock {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  border: 1px solid rgba(23,18,13,.38);
  background: rgba(255,255,255,.18);
  text-decoration: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.footer-admin-lock:hover,
.footer-admin-lock:focus-visible {
  color: var(--white);
  background: var(--ink);
  outline: none;
  transform: translateY(-2px);
}

.book-dialog {
  width: min(560px, calc(100% - 30px));
  padding: 42px;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(23,18,13,.34);
}

.book-dialog::backdrop {
  background: rgba(12,9,7,.7);
  backdrop-filter: blur(5px);
}

.book-dialog h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1.08;
}

.book-dialog > p:not(.section-eyebrow) {
  color: var(--muted);
}

.book-dialog > a {
  display: inline-flex;
  gap: 15px;
  margin-top: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold-deep);
  color: var(--gold-deep);
  font-size: .76rem;
  font-weight: 700;
}

.book-dialog ul {
  margin: 22px 0;
  padding-left: 20px;
}

.book-dialog li {
  margin: 8px 0;
  color: var(--muted);
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid #d3c9bd;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 1.4rem;
}

@media (max-width: 1050px) {
  .masthead-shell {
    grid-template-columns: 230px 1fr;
    gap: 40px;
  }

  .main-nav {
    gap: 8px 20px;
  }

  .page-shell {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 20px;
  }

  .featured-story {
    gap: 25px;
    padding-inline: 5px;
  }

  .side-card {
    padding: 25px;
  }
}

@media (max-width: 860px) {
  :root {
    --shell: min(100% - 26px, 720px);
  }

  .masthead {
    min-height: 150px;
  }

  .masthead-shell {
    position: relative;
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding-block: 20px;
  }

  .brand-stack {
    display: grid;
    grid-template-columns: 68px 1fr;
    grid-template-rows: auto auto;
    column-gap: 15px;
    justify-self: start;
  }

  .brand-emblem {
    grid-row: 1 / 3;
    width: 64px;
    height: 64px;
    margin: 0;
    box-shadow: 0 0 0 4px var(--white), 0 0 0 5px rgba(200,154,36,.35);
  }

  .brand-name {
    align-self: end;
    font-size: 1rem;
    line-height: 1.1;
  }

  .brand-tagline {
    margin-top: 3px;
    font-size: .52rem;
  }

  .menu-toggle {
    width: 45px;
    height: 45px;
    display: grid;
    place-content: center;
    gap: 6px;
  }

  .menu-toggle span {
    width: 25px;
    height: 1px;
    background: var(--ink);
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    z-index: 50;
    top: 100%;
    right: 0;
    left: 0;
    padding: 18px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid #eee9e2;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(23,18,13,.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid #eee9e2;
    font-family: var(--serif);
    font-size: 1.05rem;
  }

  .page-shell {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .recent-card,
  .contact-card {
    grid-row: span 2;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 18px);
  }

  .masthead {
    min-height: 116px;
  }

  .brand-stack {
    grid-template-columns: 54px 1fr;
    column-gap: 11px;
  }

  .brand-emblem {
    width: 52px;
    height: 52px;
  }

  .brand-name {
    font-size: .82rem;
  }

  .brand-tagline {
    display: none;
  }

  .content-card {
    padding: 18px 13px 45px;
  }

  .page-title {
    padding-left: 6px;
  }

  .featured-story {
    grid-template-columns: 1fr;
    padding: 35px 6px 55px;
  }

  .featured-visual {
    min-height: 300px;
  }

  .featured-copy h2 {
    font-size: 2.35rem;
  }

  .book-mosaic {
    grid-template-columns: 1fr;
  }

  .book-tile {
    min-height: 470px;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-title-row > span {
    text-align: left;
  }

  .category-track {
    grid-auto-columns: 82%;
  }

  .highlight-stats {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .highlight-stats div {
    text-align: center;
  }

  .author-empire {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    text-align: center;
  }

  .author-emblem {
    width: 120px;
    height: 120px;
    margin-inline: auto;
  }

  .big-numbers {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 55px 20px;
  }

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

  .recent-card,
  .contact-card {
    grid-row: auto;
  }

  .site-footer > div {
    padding: 18px 0;
    align-items: center;
    flex-direction: row;
    gap: 14px;
  }

  .footer-copy {
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .footer-copy span {
    max-width: 220px;
  }

  .book-dialog {
    padding: 34px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
