/* ==================================================================
   ForgePeak — design system
   Warm paper + ink, ember accent (forge), deep ridge (peak).
   ================================================================== */

:root {
  /* Surfaces */
  --paper: #fbf9f5;
  --paper-2: #f4f0e8;
  --paper-3: #ece6da;
  --card: #ffffff;

  /* Ink */
  --ink: #14181d;
  --ink-2: #333c46;
  --muted: #6a7480;
  --muted-2: #8d959e;
  --line: #e3ddd1;
  --line-2: #d2cabb;

  /* Accents */
  --ember: #b8461c;
  --ember-2: #e07b3c;
  --ember-soft: #fdf0e7;
  --ridge: #1f4e5f;
  --ridge-soft: #e8f0f2;
  --gold: #a67c00;

  /* Type */
  --serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Space */
  --gutter: clamp(1rem, 4vw, 2rem);
  --container: 1240px;
  --radius: 10px;
  --radius-lg: 16px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(20, 24, 29, .06), 0 1px 3px rgba(20, 24, 29, .05);
  --shadow: 0 4px 12px rgba(20, 24, 29, .08), 0 1px 3px rgba(20, 24, 29, .05);
  --shadow-lg: 0 18px 40px rgba(20, 24, 29, .14), 0 4px 10px rgba(20, 24, 29, .06);

  --header-h: 68px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ember); text-decoration-color: rgba(184, 70, 28, .3); text-underline-offset: 2px; }
a:hover { color: #8f3414; text-decoration-color: currentColor; }

img { max-width: 100%; display: block; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--paper-3);
  padding: .12em .35em;
  border-radius: 4px;
}

button { font: inherit; color: inherit; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
  border-radius: 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: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { flex: none; }

/* --------------------------------------------------------------
   Header
   -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(251, 249, 245, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.brand-text {
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand-text span { color: var(--ember); }

.primary-nav { flex: 1; }

.nav-list {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: block;
  padding: .5rem .7rem;
  border-radius: 7px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: var(--paper-3); color: var(--ink); }
.nav-link.is-active { color: var(--ember); background: var(--ember-soft); }

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  width: 232px;
}
.header-search input {
  width: 100%;
  padding: .5rem 2.2rem .5rem .9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
}
.header-search input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(184, 70, 28, .12); }
.header-search button {
  position: absolute;
  right: 4px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.header-search button:hover { color: var(--ember); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: 8px;
  width: 40px; height: 38px;
  cursor: pointer;
  color: var(--ink);
  place-items: center;
}

/* --------------------------------------------------------------
   Buttons
   -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .62rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: #9d3b15; color: #fff; }

.btn-outline { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ember); color: var(--ember); background: var(--ember-soft); }

.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--paper-3); color: var(--ink); }

.btn-lg { padding: .78rem 1.35rem; font-size: 1rem; }
.btn-sm { padding: .42rem .85rem; font-size: .85rem; }

/* --------------------------------------------------------------
   Hero
   -------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 0%, #fffdf9 0%, var(--paper) 55%),
    linear-gradient(180deg, #f7f2e9 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background:
    radial-gradient(60% 100% at 12% 100%, rgba(31, 78, 95, .07), transparent 70%),
    radial-gradient(50% 100% at 88% 100%, rgba(224, 123, 60, .09), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.75rem);
}

.eyebrow {
  margin: 0 0 .8rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ember);
}

.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -.025em;
}
.hero-title em { font-style: italic; color: var(--ridge); }

.hero-lede {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--ink-2);
  max-width: 54ch;
  margin-bottom: 1.6rem;
}

.hero-search {
  display: flex;
  gap: .5rem;
  max-width: 520px;
  margin-bottom: 1.25rem;
}
.hero-search input {
  flex: 1;
  min-width: 0;
  padding: .78rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--card);
  font: inherit;
  font-size: .97rem;
  box-shadow: var(--shadow-sm);
}
.hero-search input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(184, 70, 28, .13); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
}
.hero-stats li { margin: 0; display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
}
.hero-stats span {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

/* Hero book stack */
.hero-art { position: relative; min-height: 380px; }
.hero-stack { position: relative; height: 400px; }

.hero-book {
  position: absolute;
  display: block;
  border-radius: 6px 10px 10px 6px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--paper-3);
  transition: transform .25s ease;
}
.hero-book img { width: 100%; height: 100%; object-fit: cover; }
.hero-book:hover { transform: translateY(-8px) rotate(0deg); z-index: 9; }

.hero-book-1 { width: 156px; left: 4%;  top: 12%; transform: rotate(-8deg); z-index: 3; }
.hero-book-2 { width: 172px; left: 27%; top: 2%;  transform: rotate(3deg);  z-index: 5; }
.hero-book-3 { width: 160px; left: 52%; top: 16%; transform: rotate(9deg);  z-index: 2; }
.hero-book-4 { width: 148px; left: 19%; top: 52%; transform: rotate(-3deg); z-index: 4; }
.hero-book-5 { width: 164px; left: 48%; top: 55%; transform: rotate(6deg);  z-index: 1; }

/* --------------------------------------------------------------
   Sections
   -------------------------------------------------------------- */
.section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-dark { background: var(--ink); color: #cfd6dd; }
.section-dark h3 { color: #fff; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
}
.section-tint .section-head { border-color: var(--line-2); }

.section-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -.02em;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ember);
  white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

/* --------------------------------------------------------------
   Page hero
   -------------------------------------------------------------- */
.page-hero {
  padding-block: clamp(2rem, 4.5vw, 3.25rem);
  background: linear-gradient(180deg, #f7f2e9 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.page-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  letter-spacing: -.025em;
  margin-bottom: .4rem;
}
.page-lede {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 68ch;
  margin: 0;
}

/* --------------------------------------------------------------
   Book grid + cards
   -------------------------------------------------------------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 1.4rem 1.1rem;
}
.book-grid-compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.book-card { display: flex; flex-direction: column; }

.book-card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 6px 10px 10px 6px;
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.book-card:hover .book-card-cover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.book-card-cover img { width: 100%; height: 100%; object-fit: cover; }

.book-card-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(20, 24, 29, 0) 45%, rgba(20, 24, 29, .72));
  opacity: 0;
  transition: opacity .2s ease;
}
.book-card:hover .book-card-overlay,
.book-card:focus-within .book-card-overlay { opacity: 1; }

.book-card-cta {
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .45rem .9rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  transform: translateY(8px);
  transition: transform .2s ease;
}
.book-card:hover .book-card-cta { transform: translateY(0); }

.book-card-body { padding-top: .7rem; }

.book-card-title {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 .15rem;
  font-weight: 700;
}
.book-card-title a { color: var(--ink); text-decoration: none; }
.book-card-title a:hover { color: var(--ember); }

.book-card-author { margin: 0 0 .1rem; font-size: .87rem; color: var(--muted); }
.book-card-author a { color: var(--muted); text-decoration: none; }
.book-card-author a:hover { color: var(--ember); text-decoration: underline; }

.book-card-genre { margin: 0 0 .25rem; font-size: .78rem; }
.book-card-genre a { color: var(--ridge); text-decoration: none; font-weight: 600; }
.book-card-genre a:hover { text-decoration: underline; }

.book-card-meta {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin: 0;
  font-size: .76rem;
  color: var(--muted-2);
}

/* --------------------------------------------------------------
   Shelf / list / guide grids
   -------------------------------------------------------------- */
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 1rem;
}
.shelf-grid-lg { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.shelf-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.shelf-card:hover {
  border-color: var(--ember);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}
.shelf-count {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ember);
}
.shelf-name { margin: .35rem 0 .4rem; font-size: 1.16rem; }
.shelf-blurb { margin: 0; font-size: .92rem; color: var(--muted); }
.shelf-blurb-2 { margin-top: .5rem; }
.shelf-more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .9rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-2);
}
.shelf-card:hover .shelf-more { color: var(--ember); }

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 1rem;
}
.list-grid-lg { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }

.list-card {
  display: flex;
  flex-direction: column;
  padding: 1.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.list-card:hover {
  border-color: var(--ridge);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}
.list-kicker {
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ridge);
}
.list-title { margin: .35rem 0 .4rem; font-size: 1.16rem; }
.list-tagline { margin: 0; font-size: .93rem; color: var(--ink-2); }
.list-blurb { margin: .55rem 0 0; font-size: .88rem; color: var(--muted); }
.list-meta {
  margin-top: 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.guide-grid-lg { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.guide-card {
  display: flex;
  flex-direction: column;
  padding: 1.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.guide-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}
.guide-kicker {
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}
.guide-title { margin: .35rem 0 .4rem; font-size: 1.14rem; }
.guide-dek { margin: 0; font-size: .93rem; color: var(--ink-2); }
.guide-blurb { margin: .55rem 0 0; font-size: .88rem; color: var(--muted); }
.guide-meta { margin-top: 1rem; font-size: .8rem; color: var(--muted); font-weight: 600; }

/* Feature row */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.feature { color: #b9c2cb; }
.feature .icon { color: var(--ember-2); margin-bottom: .7rem; }
.feature h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.feature p { margin: 0; font-size: .94rem; }

/* --------------------------------------------------------------
   Library toolbar
   -------------------------------------------------------------- */
.library-toolbar {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 0 1.4rem;
}

.library-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .1rem .9rem;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  max-width: 520px;
}
.library-search .icon { color: var(--muted); }
.library-search input {
  flex: 1;
  min-width: 0;
  padding: .62rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
}
.library-search input:focus { outline: none; }
.library-search:focus-within { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(184, 70, 28, .1); }

.toolbar-clear {
  border: 0;
  background: none;
  color: var(--ember);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  padding: .3rem .2rem;
}

.library-selects {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.field { display: flex; flex-direction: column; gap: .25rem; }
.field > span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field select {
  appearance: none;
  padding: .5rem 2rem .5rem .75rem;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background-color: var(--card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a7480' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .65rem center;
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  cursor: pointer;
}
.field select:focus { outline: none; border-color: var(--ember); }

.library-status {
  font-size: .88rem;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  padding: 2rem 0 1rem;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 .6rem;
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.page-btn:hover { border-color: var(--ember); color: var(--ember); }
.page-btn.is-current { background: var(--ember); border-color: var(--ember); color: #fff; }
.page-btn[disabled] { opacity: .4; cursor: default; }
.page-gap { color: var(--muted); padding: 0 .2rem; }

.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--muted);
}
.empty-state .icon { color: var(--line-2); margin-bottom: .5rem; }
.empty-state h2 { font-size: 1.3rem; color: var(--ink); }
.empty-state p { margin-bottom: 1.2rem; }

/* --------------------------------------------------------------
   Book detail
   -------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  padding-block: 1.1rem;
  font-size: .84rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ember); text-decoration: underline; }
.breadcrumb .icon { color: var(--line-2); }
.breadcrumb [aria-current] { color: var(--ink-2); }

.book-detail-head {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.book-detail-cover img {
  width: 100%;
  border-radius: 6px 12px 12px 6px;
  box-shadow: var(--shadow-lg);
}

.book-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  letter-spacing: -.028em;
  margin-bottom: .25rem;
}
.book-byline { font-size: 1.08rem; color: var(--muted); margin-bottom: 1.4rem; }
.book-byline a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.book-byline a:hover { color: var(--ember); }

.book-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec { background: var(--paper); padding: .85rem 1rem; margin: 0; }
.spec-wide { grid-column: 1 / -1; }
.spec-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .2rem;
}
.spec-value { margin: 0; font-size: .93rem; font-weight: 600; color: var(--ink); }
.tag-row { display: flex; flex-wrap: wrap; gap: .35rem; }

.tag {
  display: inline-block;
  padding: .15rem .55rem;
  background: var(--ridge-soft);
  color: var(--ridge);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 600;
  text-decoration: none;
}
.tag:hover { background: var(--ridge); color: #fff; }

.book-body { padding-block: 2rem; }
.book-section { padding-block: 1.4rem; }
.book-section + .book-section { border-top: 1px solid var(--line); }

.book-section-title {
  font-size: 1.35rem;
  margin-bottom: .9rem;
}

.prose { max-width: 72ch; }
.prose p { margin-bottom: 1em; font-size: 1.02rem; color: var(--ink-2); }
.prose-lg p { font-size: 1.08rem; line-height: 1.78; }
.prose-sm p { font-size: .94rem; }

.take-section {
  background: var(--ember-soft);
  border: 1px solid #f2dccd;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
}
.take-section + .book-section { border-top: 0; }

.audience-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .5rem; }
.audience-item {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .94rem;
  color: var(--ink-2);
}
.audience-item .icon { color: var(--ember); margin-top: .18rem; }

/* --------------------------------------------------------------
   Prose / legal / article
   -------------------------------------------------------------- */
.legal-content h2 {
  font-size: 1.32rem;
  margin-top: 2rem;
  padding-top: .4rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--ink-2); }
.legal-content ul { padding-left: 1.3em; }

.article-section { padding-block: 1.2rem; }
.article-heading { font-size: 1.42rem; margin-bottom: .8rem; }

.faq-section { padding-block: 1.6rem; }
.faq-item {
  padding: 1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: .75rem;
}
.faq-q { font-size: 1.03rem; margin-bottom: .35rem; }
.faq-a { margin: 0; font-size: .95rem; color: var(--ink-2); }

/* --------------------------------------------------------------
   Genre page
   -------------------------------------------------------------- */
.genre-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  padding-block: 2.5rem 3.5rem;
  align-items: start;
}

.aside-title {
  font-size: 1.05rem;
  margin-bottom: .7rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.aside-subtitle {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.4rem 0 .6rem;
}

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .5rem;
  font-size: .9rem;
  color: var(--ink-2);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .48em;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--ember-2);
}

.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .7rem;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.chip:hover { border-color: var(--ember); color: var(--ember); }
.chip span { color: var(--muted-2); font-weight: 500; font-size: .78rem; }

/* --------------------------------------------------------------
   Reading list page
   -------------------------------------------------------------- */
.list-detail { padding-block: 2.5rem; }
.list-detail-intro {
  max-width: 72ch;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.list-count { margin-top: 1rem; font-size: .85rem; font-weight: 600; color: var(--muted); }

.numbered-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.numbered-item {
  display: grid;
  grid-template-columns: 46px 110px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  padding: 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin: 0;
}
.numbered-index {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--line-2);
  text-align: center;
  padding-top: .2rem;
}
.numbered-cover img {
  width: 100%;
  border-radius: 4px 8px 8px 4px;
  box-shadow: var(--shadow);
}
.numbered-title { font-size: 1.18rem; margin-bottom: .1rem; }
.numbered-title a { color: var(--ink); text-decoration: none; }
.numbered-title a:hover { color: var(--ember); }
.numbered-author { margin: 0 0 .2rem; font-size: .9rem; }
.numbered-author a { color: var(--muted); text-decoration: none; }
.numbered-author a:hover { color: var(--ember); }
.numbered-meta { margin: 0 0 .5rem; font-size: .8rem; color: var(--muted-2); font-weight: 600; }
.numbered-blurb { margin: 0 0 .8rem; font-size: .93rem; color: var(--ink-2); }

.list-more { padding-block: 2rem 3.5rem; }

/* --------------------------------------------------------------
   Guide page
   -------------------------------------------------------------- */
.guide-header { padding-block: 1.5rem 2rem; max-width: 76ch; }

.guide-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: 4rem;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.toc-list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc-list-v { counter-reset: toc; }
.toc-item { margin: 0; }
.toc-link {
  display: block;
  padding: .4rem 0;
  font-size: .9rem;
  color: var(--ink-2);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: .8rem;
  margin-left: -.8rem;
}
.toc-link:hover { color: var(--ember); border-left-color: var(--ember); }

.guide-toc-cta {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.guide-toc-cta p { font-size: .87rem; color: var(--muted); margin-bottom: .6rem; }

.guide-content { max-width: 74ch; }
.guide-outro {
  margin-top: 2rem;
  padding: 1.6rem 1.7rem;
  background: var(--ridge-soft);
  border-radius: var(--radius-lg);
}
.guide-outro-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }

/* --------------------------------------------------------------
   Contact / error
   -------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: 2.5rem 4rem;
  align-items: start;
}
.contact-card {
  padding: 1.3rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}
.contact-card h2 { font-size: 1.1rem; margin-bottom: .7rem; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  margin-bottom: 1rem;
  word-break: break-all;
}
.contact-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.contact-facts li { display: flex; flex-direction: column; margin: 0; }
.contact-facts strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.contact-facts span { font-size: .92rem; }

.error-page { text-align: center; padding-block: clamp(3rem, 9vw, 6.5rem); }
.error-code {
  font-family: var(--serif);
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  color: var(--paper-3);
  margin: 0 0 .5rem;
}
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }

/* --------------------------------------------------------------
   Search page
   -------------------------------------------------------------- */
.search-page-form {
  display: flex;
  align-items: center;
  gap: .6rem;
  max-width: 640px;
  margin: 2rem 0 1.2rem;
  padding: .35rem .35rem .35rem 1rem;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 12px;
}
.search-page-form .icon { color: var(--muted); }
.search-page-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1rem;
  padding: .55rem 0;
  color: var(--ink);
}
.search-page-form input:focus { outline: none; }
.search-page-form:focus-within { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(184, 70, 28, .1); }
.search-suggestions { padding-block: 2.5rem 4rem; }
.search-suggestions .section-title { margin-bottom: .9rem; font-size: 1.1rem; }

/* --------------------------------------------------------------
   Ad slots
   -------------------------------------------------------------- */
.ad-slot {
  display: block;
  margin: clamp(1.5rem, 3vw, 2.5rem) auto;
  max-width: 100%;
  padding: 0;
  text-align: center;
}
.ad-slot[data-ad-format='leaderboard'],
.ad-slot[data-ad-format='in-content'] { max-width: 760px; }
.ad-slot[data-ad-format='rectangle'] { max-width: 340px; }

.ad-label {
  display: block;
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: .4rem;
}
.ad-placeholder {
  min-height: 90px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--paper-2);
  font-size: .78rem;
  color: var(--muted-2);
  letter-spacing: .04em;
}
.ad-slot[data-ad-format='leaderboard'] .ad-placeholder { min-height: 110px; }
.ad-slot[data-ad-format='rectangle'] .ad-placeholder { min-height: 260px; }

.section-dark ~ .ad-slot .ad-placeholder,
body > .ad-slot .ad-placeholder { background: var(--paper-2); }

/* --------------------------------------------------------------
   Footer
   -------------------------------------------------------------- */
.site-footer {
  margin-top: 3rem;
  background: var(--ink);
  color: #aeb7c0;
  padding-block: 3rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.brand-footer .brand-text { color: #fff; }
.footer-blurb { font-size: .9rem; margin: .9rem 0 0; color: #97a1ab; }
.footer-heading {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .85rem;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .4rem; }
.footer-link { color: #aeb7c0; font-size: .9rem; text-decoration: none; }
.footer-link:hover { color: var(--ember-2); text-decoration: underline; }
.footer-note { font-size: .87rem; color: #97a1ab; margin: 0 0 .8rem; }
.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  color: var(--ember-2);
  text-decoration: none;
}
.footer-mail:hover { text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem;
  color: #8c959e;
}
.footer-bottom p { margin: 0; }
.footer-legal { max-width: 62ch; }

/* --------------------------------------------------------------
   Back to top
   -------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 80;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: rotate(-90deg);
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { color: var(--ember); border-color: var(--ember); }

/* --------------------------------------------------------------
   Toast
   -------------------------------------------------------------- */
.toast-container {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
  pointer-events: none;
}
.toast {
  padding: .65rem 1.1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: .88rem;
  box-shadow: var(--shadow-lg);
  animation: toast-in .22s ease;
}
.toast.is-error { background: var(--ember); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------
   Reader
   -------------------------------------------------------------- */
.reader {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
}

.reader-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem var(--gutter);
  background: rgba(251, 249, 245, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.reader-topbar-left { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.reader-topbar-right { display: flex; align-items: center; gap: .25rem; }

.reader-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: 7px;
}
.reader-back:hover { background: var(--paper-3); color: var(--ember); }

.reader-title-block { min-width: 0; }
.reader-book-title {
  margin: 0;
  font-family: var(--serif);
  font-size: .98rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reader-book-author {
  margin: 0;
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid transparent;
  background: none;
  border-radius: 8px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--paper-3); color: var(--ember); }
.icon-btn.is-active { color: var(--ember); background: var(--ember-soft); }

.reader-body {
  flex: 1;
  position: relative;
  display: block;
}

.reader-stage { min-width: 0; }

.reader-content {
  --reader-fg: #22262b;
  --reader-bg: #fffdf9;
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) 4rem;
  background: var(--reader-bg);
  color: var(--reader-fg);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  min-height: calc(100vh - 130px);
}
.reader-content.theme-sepia { --reader-bg: #f6ecd9; --reader-fg: #453b2c; }
.reader-content.theme-dark { --reader-bg: #16191d; --reader-fg: #cdd4db; }
.reader-content.theme-dark a { color: var(--ember-2); }

.reader-page-content { word-wrap: break-word; overflow-wrap: break-word; }
.reader-page-content p { margin: 0 0 1.15em; }
.reader-page-content h1,
.reader-page-content h2,
.reader-page-content h3 { margin: 1.6em 0 .6em; }
.reader-page-content img { max-width: 100%; height: auto; margin: 1.2em auto; border-radius: 4px; }
.reader-page-content blockquote {
  margin: 1.4em 0;
  padding-left: 1.1em;
  border-left: 3px solid var(--ember-2);
  font-style: italic;
}
.reader-page-content hr { margin: 2em auto; width: 40%; }
.reader-page-content a { color: var(--ember); }

.reader-loading {
  display: grid;
  place-items: center;
  gap: .9rem;
  padding: 5rem 1rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .92rem;
}

.spinner {
  width: 30px; height: 30px;
  border: 3px solid var(--line-2);
  border-top-color: var(--ember);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Reader side panels — slide-in drawers so the reading column stays
   full width whether or not a panel is open. */
.reader-panel {
  position: fixed;
  top: var(--header-h);
  bottom: 0;
  width: min(320px, 86vw);
  z-index: 70;
  overflow-y: auto;
  padding: 1rem 1.1rem 2rem;
  background: var(--paper);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  visibility: hidden;
  transform: translateX(-102%);
  transition: transform .22s ease, visibility .22s;
}
.reader-panel-settings {
  left: auto;
  right: 0;
  border-right: 0;
  border-left: 1px solid var(--line);
  transform: translateX(102%);
}
.reader-panel.is-open { visibility: visible; transform: translateX(0); }

.reader-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .8rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--line);
}
.reader-panel-head h2 { margin: 0; font-size: 1rem; }

.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin: 0; }
.toc-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: .42rem .5rem;
  border: 0;
  background: none;
  border-radius: 6px;
  font: inherit;
  font-size: .87rem;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1.4;
}
.toc-list button:hover { background: var(--paper-3); color: var(--ember); }
.toc-list button.is-current { background: var(--ember-soft); color: var(--ember); font-weight: 600; }
.toc-list .toc-chapter {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: .8rem;
}

.setting-group { margin-bottom: 1.3rem; }
.setting-label {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .45rem;
}
.setting-select {
  width: 100%;
  padding: .5rem .7rem;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--card);
  font: inherit;
  font-size: .92rem;
}
.setting-row { display: flex; align-items: center; gap: .4rem; }
.setting-value {
  min-width: 2.4rem;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
}
input[type='range'] {
  width: 100%;
  accent-color: var(--ember);
  height: 24px;
}
.theme-switch { display: flex; gap: .3rem; }
.theme-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  padding: .45rem .3rem;
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.theme-btn:hover { border-color: var(--ember); }
.theme-btn.is-active { background: var(--ember); border-color: var(--ember); color: #fff; }

.reader-bottombar {
  position: sticky;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .6rem var(--gutter);
  background: rgba(251, 249, 245, .94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.reader-progress { flex: 1; min-width: 0; }
.reader-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: .74rem;
  color: var(--muted);
  margin-top: -.15rem;
}

.reader-toast {
  position: fixed;
  left: 50%;
  bottom: 4.5rem;
  transform: translateX(-50%);
  z-index: 120;
  padding: .55rem 1.1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: .86rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.reader-toast.is-visible { opacity: 1; }

/* --------------------------------------------------------------
   Responsive
   -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .75rem var(--gutter) 1rem;
    display: none;
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav-link { padding: .65rem .5rem; font-size: 1rem; }
  .header-search { width: 100%; max-width: 240px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }

  .book-detail-head { grid-template-columns: 1fr; }
  .book-detail-cover { max-width: 230px; }

  .genre-layout { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .numbered-item { grid-template-columns: 36px 88px minmax(0, 1fr); gap: .9rem; }
}

@media (max-width: 640px) {
  .book-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.1rem .8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-stats { gap: 1.2rem; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
  .numbered-item { grid-template-columns: 1fr; }
  .numbered-index { text-align: left; }
  .numbered-cover { max-width: 120px; }
  .reader-title-block { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: .4rem; }
}

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

@media print {
  .site-header, .site-footer, .ad-slot, .back-to-top, .reader-topbar, .reader-bottombar { display: none !important; }
  body { background: #fff; }
}
