/* Shelfie Apps page and privacy policy. Reuses the shared apps-* layout;
   the unique "reading room" theme comes from the app icon: brass horn, deep
   teal, warm wood and cream paper. Dark is a teal library after hours; light
   is a page of old paper. Other app styles are untouched. */
.shelfie-body {
  --apps-ink: #f3ead8;
  --apps-muted: #b3b9a8;
  --apps-panel: #15292b;
  --apps-panel-raised: #1c3436;
  --apps-line: #35514f;
  --apps-pink: #e3b54a;
  --apps-accent: #e3b54a;
  --apps-mint-accent: #8fc7bd;
  --apps-peach: #d79a62;
  --apps-lemon: #e3b54a;
  --apps-mint: #8fc7bd;
  --apps-blue: #8fb8c7;
  --apps-lavender: #c9b38f;
  --apps-dark: #0f1f21;
  --apps-shadow: 0 24px 70px rgba(0, 0, 0, .36);
  --sh-brass: #e3b54a;
  --sh-teal: #8fc7bd;
  --sh-wood: #d79a62;
  --sh-paper: #f3ead8;
  --sh-rose: #e49a8a;
  background:
    radial-gradient(circle at 8% 4%, rgba(227, 181, 74, .10), transparent 27rem),
    radial-gradient(circle at 95% 20%, rgba(143, 199, 189, .07), transparent 30rem),
    #0f1f21;
}
[data-theme="light"] .shelfie-body {
  --apps-ink: #1f2e30;
  --apps-muted: #5b6662;
  --apps-panel: #fffaf0;
  --apps-panel-raised: #f4ead6;
  --apps-line: #dccbaa;
  /* Text accents darken for paper. Fills stay the bright brass so buttons and
     icon plates keep dark glyphs. */
  --apps-accent: #8a5f00;
  --apps-mint-accent: #2f5a5c;
  --apps-dark: #0f1f21;
  --apps-shadow: 0 24px 70px rgba(92, 64, 24, .14);
  --sh-brass: #8a5f00;
  --sh-teal: #2f5a5c;
  --sh-wood: #8f5a2c;
  --sh-rose: #9a4636;
  background:
    radial-gradient(circle at 8% 4%, rgba(217, 169, 58, .14), transparent 28rem),
    radial-gradient(circle at 95% 20%, rgba(47, 90, 92, .08), transparent 30rem),
    #f5eedf;
}
.shelfie-body h1, .shelfie-body h2, .shelfie-body .apps-product-name { font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif; letter-spacing: -.01em; }
.shelfie-body h1 span { font-style: italic; }
.shelfie-body .apps-hero-copy { container-type: inline-size; }
.shelfie-body .apps-hero h1 {
  /* The unbroken "Audiobookshelf," word needs about 12% more space than
     ordinary responsive headings. Query the copy column, not the viewport,
     so it also fits when the hero changes between one and two columns. */
  font-size: clamp(30px, 5vw, 58px);
  font-size: clamp(24px, 11.7cqi, 76px);
}
.shelfie-body .apps-hero {
  background:
    radial-gradient(circle at 90% 12%, rgba(227, 181, 74, .16), transparent 27%),
    radial-gradient(circle at 10% 95%, rgba(143, 199, 189, .10), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .02), transparent 58%),
    var(--apps-panel);
}
[data-theme="light"] .shelfie-body .apps-hero {
  background:
    radial-gradient(circle at 90% 12%, rgba(227, 181, 74, .26), transparent 29%),
    radial-gradient(circle at 10% 95%, rgba(47, 90, 92, .10), transparent 36%),
    linear-gradient(145deg, #fffaf0, #f4ead6);
}
.shelfie-body .apps-hero::before {
  border-color: rgba(227, 181, 74, .40);
  box-shadow: 0 0 0 32px rgba(227, 181, 74, .05), 0 0 0 66px rgba(143, 199, 189, .03);
}
.shelfie-body .apps-hero::after { background: rgba(227, 181, 74, .10); }
.shelfie-body .apps-hero-visual { width: min(100%, 370px); }
.shelfie-body .apps-hero-visual::before {
  background: linear-gradient(150deg, #e3b54a, #2f5a5c);
  opacity: .36;
}
.shelfie-body .apps-hero-visual img { border-color: rgba(243, 234, 216, .16); }
.shelfie-body .apps-button.primary {
  background: linear-gradient(135deg, #e3b54a, #d79a62);
  color: #1f1608;
  box-shadow: 0 10px 28px rgba(143, 90, 20, .24);
}
.shelfie-body .apps-button.secondary { border-color: #3f5c59; }
[data-theme="light"] .shelfie-body .apps-button.secondary { border-color: #cdb78d; }
.shelfie-body .apps-feature-card:hover { border-color: rgba(227, 181, 74, .52); }
[data-theme="light"] .shelfie-body .apps-feature-card:hover { border-color: rgba(138, 95, 0, .42); }
.shelfie-body .apps-feature-icon { color: var(--card-icon-ink, var(--apps-dark)); }
.shelfie-body .apps-switcher a[aria-current="page"] { background: rgba(227, 181, 74, .14); }
[data-theme="light"] .shelfie-body .apps-switcher a[aria-current="page"] { background: rgba(138, 95, 0, .09); }
/* Privacy band keeps the dark library panel in both site themes. */
.shelfie-body .apps-privacy-band { background: #0f1f21; }
.shelfie-body .apps-privacy-point { border-left-color: #e3b54a; }
.shelfie-body .apps-privacy-point:nth-child(2) { border-color: #8fc7bd; }
.shelfie-body .apps-privacy-point:nth-child(3) { border-color: #d79a62; }
.shelfie-body .apps-privacy-point h3,
.shelfie-body .apps-privacy-intro h2 { color: #f3ead8; }
.shelfie-body .apps-privacy-point p,
.shelfie-body .apps-privacy-intro > p { color: #b3b9a8; }
.shelfie-body .apps-privacy-band .apps-eyebrow,
.shelfie-body .apps-privacy-band .apps-text-link { color: #e3b54a; }
.shelfie-body .apps-policy-note { border-left-color: var(--apps-lemon); background: rgba(227, 181, 74, .08); }
/* A thin wooden shelf under the screenshot grid, echoing the icon. */
.shelfie-body .apps-screenshot-grid {
  padding-bottom: 22px;
  background: linear-gradient(to top, #8f5a2c 0 6px, #b9875a 6px 16px, transparent 16px) bottom / 100% 16px no-repeat;
}
.shelfie-note {
  margin-top: 24px;
  padding: 24px 28px;
  border: 1px solid var(--apps-line);
  border-left: 4px solid var(--sh-brass);
  border-radius: 18px;
  background: var(--apps-panel);
}
.shelfie-note h3 { margin: 0 0 10px; color: var(--apps-ink); }
.shelfie-note p { margin: 0; color: var(--apps-muted); line-height: 1.7; }
.shelfie-note a { color: var(--apps-accent); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.shelfie-body span.apps-button { cursor: default; }
@media (max-width: 800px) {
  /* A plain 1fr track has an automatic minimum size. The long Audiobookshelf
     heading otherwise widens the track beyond the hero and clips every child. */
  .shelfie-body .apps-hero { grid-template-columns: minmax(0, 1fr); }
  .shelfie-body .apps-hero-visual { width: min(100%, 350px); }
}
@media (prefers-reduced-motion: reduce) {
  .shelfie-body *, .shelfie-body *::before, .shelfie-body *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
@media (forced-colors: active) { .shelfie-body .apps-switcher a { border: 1px solid ButtonText; } }
@media print {
  .shelfie-body { background: #fff; }
  .shelfie-body .apps-privacy-band { background: #fff; color: #000; }
  .shelfie-body .apps-privacy-band h2,
  .shelfie-body .apps-privacy-band h3,
  .shelfie-body .apps-privacy-band p { color: #000; }
}
