/* BORK web: the apps' look (copper accent, serif titles) on a plain page. */
:root {
  --bg: #f7f5f2; --card: #fffdfa; --text: #1f1d1a; --muted: #6d665e; --line: rgba(0,0,0,.08);
  --accent: #c76b1f; --accent-ink: #fff;
  --paper: #ccac75; --tint: 14%;   /* the app icon's page, very lightly, behind the top bar and the player */
  --serif: "Iowan Old Style", "Baskerville", "Libre Baskerville", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121211; --card: #1d1c1b; --text: #eeeae4; --muted: #a39b91; --line: rgba(255,255,255,.1);
    --accent: #f5a34d; --accent-ink: #1b1209; --tint: 9%; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); }
body.has-player { padding-bottom: 104px; }
a { color: inherit; }
img { display: block; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: 30px; margin: 24px 0 8px; }
h2 { font-size: 22px; margin: 32px 0 12px; }
h2 a { text-decoration: none; }
h2 a::after { content: " ›"; color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; margin: 4px 0; }
.meta a { color: var(--muted); }
.small { font-size: 12px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 10px 16px;
  background: color-mix(in srgb, color-mix(in srgb, var(--paper) var(--tint), var(--bg)) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 700 20px var(--serif); letter-spacing: .5px; }
.brand img { border-radius: 8px; }
.search { flex: 1; max-width: 420px; }
.search input { width: 100%; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); font: inherit; }
.top nav { display: flex; gap: 14px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }

main { min-width: 0; overflow-wrap: break-word; max-width: 1120px; margin: 0 auto; padding: 0 16px 40px; }
.hero { padding: 16px 0 0; }
.hero h1 { font-size: 34px; }
.hero p { max-width: 640px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 16px; }
.tile { text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.tile .cover { width: 100%; height: auto; aspect-ratio: 1; }
.tile .t { font: 600 15px/1.25 var(--serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .a { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile:hover .cover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.cover { border-radius: 10px; object-fit: cover; background: var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: transform .15s, box-shadow .15s; max-width: 100%; }
.cover.blank { display: flex; align-items: center; justify-content: center; font: 600 48px var(--serif); color: var(--muted); aspect-ratio: 1; width: 100%; }

/* A to Z down each column, then the next column */
.genres { list-style: none; padding: 0; columns: 220px; column-gap: 16px; }
.genres li { display: block; break-inside: avoid; margin-bottom: 6px; padding-right: 8px; }
.genres li span { white-space: nowrap; }
.genres a { text-decoration: none; }
.genres span { color: var(--muted); font-size: 13px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0; }
.pager a { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; }
.pager a[aria-current] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.continue { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line); text-decoration: none; max-width: 520px; }
.continue img { border-radius: 10px; }

.book-head { display: flex; gap: 28px; margin-top: 28px; align-items: flex-start; }
.book-head .cover { width: 220px; height: 220px; flex: none; }
.book-head > div { min-width: 0; }
.book-head h1 { margin-top: 0; overflow-wrap: anywhere; }
.by { font-size: 18px; margin: 0 0 8px; }
.actions { display: flex; gap: 10px; margin-top: 14px; }
.btn { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); font: 500 15px var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.play-book { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.star[aria-pressed="true"] { color: var(--accent); }
.desc { max-width: 760px; margin-top: 22px; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.links-label { color: var(--muted); font-size: 14px; margin-right: 2px; }
.links .btn { display: inline-flex; align-items: center; gap: 7px; }
.links .btn svg { width: 17px; height: 17px; flex: none; }
.chapters { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.ch { width: 100%; display: flex; gap: 12px; align-items: baseline; padding: 12px 14px; margin: 0 0 6px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ch:hover { border-color: var(--accent); }
.ch.current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ch .n { color: var(--muted); min-width: 2em; font-variant-numeric: tabular-nums; }
.ch .ct { flex: 1; min-width: 0; font-family: var(--serif); }
.ch .cd { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.player { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 10; width: min(1100px, calc(100% - 24px));
  display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 20px; background: color-mix(in srgb, var(--paper) var(--tint), var(--card));
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.player[hidden] { display: none; }
.pl-cover img { border-radius: 8px; }
.pl-text { flex: 1; min-width: 0; }
.pl-title { font: 600 15px var(--serif); text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pl-track { flex: 1; position: relative; display: flex; align-items: center; }
.pl-seek { width: 100%; margin: 0; accent-color: var(--accent); }
/* where the announcements end and begin: playback runs between the marks, the bar covers it all */
.pl-mark { position: absolute; top: 50%; width: 3px; height: 14px; margin-left: -1.5px; transform: translateY(-50%);
  border-radius: 2px; background: var(--text); opacity: .55; pointer-events: none; }
.pl-mark[hidden] { display: none; }
.pl-ctl { display: flex; align-items: center; gap: 6px; }
.pl-ctl button, .pl-opts button { border: 0; background: none; color: var(--text); font: 600 15px var(--sans); cursor: pointer;
  padding: 8px; border-radius: 10px; }
.pl-ctl button:hover, .pl-opts button:hover { background: var(--line); }
.pl-play { width: 46px; height: 46px; border-radius: 50% !important; background: var(--accent) !important; color: var(--accent-ink) !important; }
.pl-opts { display: flex; flex-direction: column; align-items: flex-end; }
.pl-opts button { font-size: 12px; font-weight: 500; color: var(--muted); padding: 4px 8px; }

/* app store badges, the devices each store covers underneath */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 18px 0 8px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--text); color: var(--bg);
  padding: 9px 16px; border-radius: 14px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.store-badge svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge small { font-size: 10px; opacity: .8; letter-spacing: .02em; }
.store-badge strong { font-size: 16px; font-weight: 600; }
.store-col { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.store-devices { display: flex; gap: 11px; justify-content: center; }
.store-devices span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--muted); }
.store-devices img { width: 20px; height: 20px; opacity: .7; }
@media (prefers-color-scheme: dark) { .store-devices img { filter: invert(1); } }
.apps-h { font-size: 18px; margin: 0 0 4px; }
.foot-text { max-width: 760px; margin-top: 20px; line-height: 1.6; }

.foot { max-width: 1120px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

@media (max-width: 720px) {
  .top { flex-wrap: wrap; gap: 8px 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  h1 { font-size: 25px; }
  .hero h1 { font-size: 27px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; }
  .book-head { flex-direction: column; gap: 16px; }
  .book-head .cover { width: 180px; height: 180px; }
  .player { flex-wrap: wrap; gap: 6px 10px; bottom: 8px; }
  .pl-opts { flex-direction: row; width: 100%; justify-content: space-between; }
  body.has-player { padding-bottom: 150px; }
}

/* support, privacy, terms */
.prose { max-width: 720px; }
.prose h2 { font-size: 21px; margin-top: 28px; }
.prose h3 { font: 600 17px var(--serif); margin: 20px 0 4px; }
.prose p { margin: 0 0 12px; }
.prose a { color: var(--accent); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; }
.foot-links a { color: var(--text); }
