@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-400.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/newsreader-600.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f3eee4;
  --paper-raised: #faf7f1;
  --ink: #211c16;
  --muted: #5c5348;
  --line: #e4d9c8;
  --accent: #6f2c2c;
  --accent-ink: #fffaf3;
  --notice: #f4e6d0;
  --chip-border: #d9cbb8;
  --glow: #e6b15a;
  --serif: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Segoe UI", system-ui, sans-serif;
  --sticky-h: 12rem;
}

html[data-installed="true"] .install-link {
  display: none !important;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141210;
  --paper-raised: #1e1a17;
  --ink: #f3eadc;
  --muted: #c4b6a4;
  --line: #3a332c;
  --accent: #e6b15a;
  --accent-ink: #1a140c;
  --notice: #2a2318;
  --chip-border: #4a4036;
  --glow: #9a6f2c;
}

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

[hidden] {
  display: none !important;
}

html {
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.45;
}

button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  background: var(--paper-raised);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.skip:focus {
  top: 0.5rem;
}

.app {
  width: min(100%, 40rem);
  margin: 0 auto;
  min-height: 100dvh;
  padding: 0 1.1rem calc(2.25rem + env(safe-area-inset-bottom));
}

.top,
.hymn-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
}

.top {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: calc(0.75rem + env(safe-area-inset-top));
  padding-bottom: 0.65rem;
  margin-bottom: 0.2rem;
  border-bottom: 1px solid var(--line);
}

.brand-row,
.hymn-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  min-width: 0;
}

.brand h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand-home {
  color: inherit;
  text-decoration: none;
}

.brand-home:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.hymn-bar .brand-home {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.icon {
  width: 1.3rem;
  height: 1.3rem;
  display: block;
}

.icon-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.35rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.text-btn {
  min-width: 0;
  padding: 0 0.2rem 0 0;
  color: var(--accent);
  font-weight: 600;
}

.icon-btn[aria-disabled="true"] {
  opacity: 0.28;
  pointer-events: none;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.install-link {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.install-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.notify-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.notify-link[aria-pressed="true"] {
  color: var(--accent);
}

.notify-link:focus-visible,
.notify-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.install-help {
  width: min(100% - 1.5rem, 26rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 1.1rem 1.15rem 1rem;
  border: 0;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
}

.install-help::backdrop {
  background: rgba(20, 18, 16, 0.45);
}

.install-help h2,
.install-page h2 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
}

.install-steps h3,
.install-help h3 {
  margin: 0.95rem 0 0.3rem;
  font-size: 1rem;
}

.install-steps p,
.install-help p,
.install-steps li,
.install-help li {
  margin: 0.25rem 0;
}

.install-steps ol,
.install-help ol {
  margin: 0;
  padding-left: 1.25rem;
}

.install-help a,
.install-page a {
  color: var(--accent);
  font-weight: 600;
}

.install-close {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 1rem;
  border: 1px solid var(--chip-border);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.install-page {
  padding-top: 0.8rem;
}

.qr-card {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  margin: 0.85rem 0 0.4rem;
  padding: 0.75rem 0.75rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.qr-card img {
  width: min(100%, 168px);
  height: auto;
}

.qr-card p,
.qr-card figcaption {
  margin: 0;
  color: #3d342c;
  font-size: 0.9rem;
  text-align: center;
}

.search {
  position: relative;
}

.search input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 2.7rem 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-raised);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.search input::placeholder {
  color: var(--muted);
}

.search input::-webkit-search-cancel-button {
  appearance: none;
}

.search .clear {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.chips {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip,
.tabs button,
.retry,
.install-now {
  font: inherit;
  cursor: pointer;
}

.chip {
  flex: 0 0 auto;
  min-height: 2.4rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
}

.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.tabs {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 3px;
  border-radius: 12px;
  background: var(--line);
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs button {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

.tabs button[aria-selected="true"] {
  background: var(--paper-raised);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(33, 28, 22, 0.08);
}

.count-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.count {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
  margin-left: auto;
}

.about-link {
  margin: -0.35rem 0;
  padding: 0.35rem 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: underline;
  text-decoration-color: var(--chip-border);
  text-underline-offset: 3px;
  white-space: nowrap;
}

.about-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-radius: 4px;
}

.theme-jumps {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0.15rem 0 0.35rem;
}

.theme-jumps::-webkit-scrollbar {
  display: none;
}

.theme-jumps button {
  flex: 0 0 auto;
  min-height: 2.4rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
}

.theme-kind {
  margin: 1rem 0 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-group {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--sticky-h) + 0.35rem);
}

.theme-group > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.65rem 0;
  cursor: pointer;
  list-style: none;
}

.theme-group > summary::-webkit-details-marker {
  display: none;
}

.theme-group > summary::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.15rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  flex: none;
}

.theme-group[open] > summary::before {
  margin-top: 0.35rem;
  transform: rotate(45deg);
}

.theme-name {
  flex: 1;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
}

.theme-count {
  color: var(--muted);
  font-size: 0.82rem;
}

.sins {
  padding-bottom: 1.5rem;
}

.catechism,
.scripture {
  margin: 0.8rem 0;
  padding: 0.15rem 0 0.15rem 0.85rem;
  border-left: 3px solid var(--accent);
}

.catechism p,
.scripture p,
.sin-note {
  margin: 0.35rem 0;
}

.catechism-q {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}

.scripture-ref,
.sermon-meta,
.sermon-text {
  color: var(--muted);
  font-size: 0.88rem;
}

.scripture p:not(.scripture-ref) {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.4;
}

.sin-list {
  margin: 0.2rem 0 0.8rem;
  padding-left: 1.2rem;
}

.sin-list li {
  margin: 0.28rem 0;
}

.sin-item {
  margin: 0.15rem 0 0.35rem;
  border-top: 1px solid var(--line);
}

.sin-item summary {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-weight: 600;
}

.sin-item summary::-webkit-details-marker {
  display: none;
}

.sin-item summary::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  flex: none;
}

.sin-item[open] summary::before {
  transform: rotate(45deg);
}

.sin-part {
  margin: 0.8rem 0 1rem;
}

.sin-part h3,
.sin-hymns h3,
.sermons h3,
.gospel h2 {
  margin: 0.8rem 0 0.3rem;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.stop-it {
  margin: 1.2rem 0 0.4rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-raised);
}

.stop-it p {
  margin: 0;
}

.stop-it a {
  color: var(--accent);
  font-weight: 700;
}

.gospel {
  margin-top: 1.2rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--sticky-h) + 0.35rem);
}

.sermon {
  margin: 0.45rem 0 0.8rem;
}

.sermon-title {
  margin: 0.1rem 0;
  font-weight: 600;
}

.sin-note a {
  color: var(--accent);
  font-weight: 600;
}

.theme-group .hymn-list {
  margin: 0 0 0.4rem;
}

.theme-page-title {
  margin: 0.2rem 0 0.8rem;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.15;
}

.theme-back {
  margin: 0.6rem 0 0.2rem;
}

.theme-back a {
  color: var(--accent);
  font-weight: 600;
}

.theme-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0.2rem;
}

.theme-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.85rem;
  text-decoration: none;
}

.theme-chips a.season {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.hymn-bar {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  padding: 0.25rem 0;
  padding-top: calc(0.25rem + env(safe-area-inset-top));
  margin: 0 -0.2rem 0.4rem;
  border-bottom: 1px solid var(--line);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}

.pager-num {
  margin: 0;
  min-width: 2.6rem;
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
}

main.has-jump {
  padding-right: 1.35rem;
}

.hymn-list,
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hymn-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.hymn-head .hymn-title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: none;
  min-height: 2.75rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.like-btn .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.like-btn.is-liked {
  color: var(--accent);
  border-color: var(--accent);
}

.like-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.like-pip {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  color: var(--accent);
  vertical-align: middle;
}

.like-pip .icon {
  width: 0.85rem;
  height: 0.85rem;
}

.hymn-link,
.toc-link {
  display: grid;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
}

.hymn-link {
  grid-template-columns: 3rem 1fr;
  gap: 0.1rem 0.7rem;
  padding: 0.78rem 0.1rem;
  align-items: start;
}

.num,
.toc-num {
  font-family: var(--serif);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.num {
  grid-row: 1 / span 2;
  padding-top: 0.12rem;
  font-size: 1.05rem;
}

.hymn-link-text,
.toc-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.title,
.toc-title,
.author-name,
.hymn-title {
  font-family: var(--serif);
}

.title,
.toc-title {
  font-size: 1.18rem;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.meta,
.toc-tune {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.38rem;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  vertical-align: 0.15em;
}

.letter {
  margin: 1.05rem 0 0.15rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--accent);
  scroll-margin-top: calc(var(--sticky-h) + 0.4rem);
}

.index > .letter:first-child {
  margin-top: 0.35rem;
}

.author-name {
  margin: 0.85rem 0 0.1rem;
  font-size: 1.18rem;
  font-weight: 600;
}

.toc-link {
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.8rem;
  align-items: baseline;
  padding: 0.72rem 0.05rem;
}

.toc-num {
  font-size: 1.05rem;
}

@media (hover: hover) {
  .hymn-link:hover,
  .toc-link:hover,
  .end-nav a:hover {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
  }
}

.hymn-link:active,
.toc-link:active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.jump {
  position: fixed;
  z-index: 4;
  top: calc(var(--sticky-h) + 0.3rem);
  bottom: calc(0.4rem + env(safe-area-inset-bottom));
  right: max(0.15rem, calc((100vw - 40rem) / 2));
  width: 1.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  touch-action: none;
  user-select: none;
}

.jump button {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.jump button[aria-disabled="true"] {
  color: var(--muted);
  opacity: 0.35;
}

.jump button:focus-visible {
  outline-offset: -2px;
}

.jump-bubble {
  position: fixed;
  z-index: 6;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  border-radius: 1.1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 600;
  pointer-events: none;
}

.jump-bubble[hidden] {
  display: none;
}

.empty {
  margin: 1.5rem 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.hymn {
  padding-top: 0.85rem;
}

.hymn-number {
  margin: 0;
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.hymn-title {
  margin: 0.15rem 0 0.7rem;
  font-size: clamp(1.85rem, 7.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.hymn-title:focus {
  outline: none;
}

.attribution {
  margin: 0.15rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: break-word;
}

.recordings {
  margin: 1rem 0 0.4rem;
  padding: 0.75rem 0.85rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-raised);
}

.recordings h2,
.refrain-label,
.end-kicker {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recordings h2.faith-heading {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.faith-note {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.faith-item {
  margin: 0 0 0.85rem;
}

.faith-date {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.faith-label {
  margin: 0.12rem 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.3;
}

.faith-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.35rem;
  color: var(--accent);
  font-weight: 600;
}

.faith-play summary,
.earlier summary {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.earlier {
  margin-top: 0.2rem;
}

.earlier .faith-item {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.recordings figure {
  margin: 0 0 0.75rem;
}

.recordings figcaption {
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}

.recordings audio,
.recordings video {
  width: 100%;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

.watch-card {
  margin: 0.45rem 0 0.1rem;
}

.watch-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #1c1917;
}

.watch-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.watch-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.2rem;
  height: 3.2rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(20, 16, 12, 0.72);
}

.watch-play::after {
  content: "";
  position: absolute;
  left: 1.28rem;
  top: 1rem;
  border-style: solid;
  border-width: 0.6rem 0 0.6rem 1rem;
  border-color: transparent transparent transparent #fffaf3;
}

.watch-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.notice {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--notice);
}

.notice h2 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.notice p,
.colophon,
.coming {
  margin: 0.35rem 0 0;
}

.notice p:first-of-type {
  margin-top: 0;
}

.notice a {
  color: var(--accent);
  font-weight: 600;
}

.text {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.35rem;
}

.stanza {
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  column-gap: 0.7rem;
  margin: 1rem 0 0.25rem;
}

.stanza-num {
  margin: 0;
  padding-top: 0.18rem;
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
}

.line {
  display: block;
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.45;
  text-wrap: pretty;
  hyphens: manual;
}

.refrain {
  margin: 0.2rem 0 1rem 2.4rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent);
}

.refrain .line {
  font-style: italic;
  font-size: 1.18rem;
}

.refrain-label {
  margin-bottom: 0.15rem;
  color: var(--accent);
}

.omitted {
  margin: 0.85rem 0 0.85rem 2.4rem;
  color: var(--muted);
  font-style: italic;
}

.coming {
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.end-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.end-nav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 4.4rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-raised);
  color: inherit;
  text-decoration: none;
}

.end-nav a.next {
  text-align: right;
  grid-column: 2;
}

.end-num {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.end-title {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.colophon {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.retry,
.install-now {
  margin-top: 0.8rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
}

@media (max-height: 520px) {
  .brand h1 {
    font-size: 1.45rem;
  }

  .top {
    gap: 0.4rem;
  }
}

.comments-page h2 {
  margin: 1rem 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.comments-page {
  padding-top: 0.4rem;
}

.request-form {
  display: grid;
  gap: 0.75rem;
}

.request-field {
  display: grid;
  gap: 0.25rem;
}

.request-field input,
.request-field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-raised);
  color: var(--ink);
  font: inherit;
}

.request-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.request-form button {
  min-height: 2.75rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.request-honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.request-empty {
  margin: 0.35rem 0 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.see-more {
  margin: 0.15rem 0 0.4rem;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.see-more:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.request-card {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.request-card h3,
.request-card h4 {
  margin: 0.2rem 0;
  font-family: var(--serif);
}

.request-meta,
.request-body,
.request-replies p {
  margin: 0.25rem 0;
  white-space: pre-wrap;
}

.request-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.music-block {
  margin: 1.2rem 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-raised);
  padding: 0.2rem 0.85rem 0.7rem;
}

.music-block summary {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.music-credit,
.music-note {
  margin: 0.2rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.music-score {
  background: #f7f1e6;
  color: #211c16;
  border-radius: 8px;
  overflow-x: auto;
}

.music-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.music-controls button {
  min-height: 2.75rem;
  min-width: 4.5rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.music-controls .tempo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Welcome page */

/* index.html sets data-view before the first paint, so a first visit never
   shows the search box and tabs for a moment before the welcome page. */
html[data-view="welcome"] .app {
  width: min(100%, 68rem);
}

html[data-view="welcome"] .search,
html[data-view="welcome"] .chips,
html[data-view="welcome"] .tabs,
html[data-view="welcome"] .count-row {
  display: none;
}

.welcome {
  padding-bottom: 0.5rem;
}

.welcome-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 2rem;
  padding: clamp(1.6rem, 6vw, 4rem) 0 clamp(1.75rem, 4vw, 3rem);
}

.welcome-hero::before {
  content: "";
  position: absolute;
  inset: 0 -1.1rem;
  z-index: -1;
  background: radial-gradient(
    ellipse 95% 55% at 100% 0%,
    color-mix(in srgb, var(--glow) 22%, transparent),
    transparent 100%
  );
  pointer-events: none;
}

.welcome-intro {
  min-width: 0;
}

.welcome-mark {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.8rem;
  box-shadow: 0 8px 20px -10px rgba(33, 28, 22, 0.55);
}

.welcome-title {
  margin: 1.2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.6vw + 1.1rem, 3.9rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.welcome-lead {
  max-width: 36rem;
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.18rem, 0.6vw + 1.05rem, 1.35rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.welcome-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.welcome-actions .btn:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  background: var(--paper-raised);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

html[data-installed="true"] .btn-install {
  display: none;
}

@media (hover: hover) {
  .btn:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  .btn-primary:hover {
    background: color-mix(in srgb, var(--accent) 86%, var(--ink));
    color: var(--accent-ink);
  }
}

.welcome-search {
  display: flex;
  gap: 0.5rem;
  max-width: 30rem;
  margin-top: 0.9rem;
}

.welcome-search input {
  flex: 1;
  min-width: 0;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--chip-border);
  border-radius: 12px;
  background: var(--paper-raised);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.welcome-search input::placeholder {
  color: var(--muted);
}

.welcome-search input::-webkit-search-cancel-button {
  appearance: none;
}

.welcome-search button {
  min-height: 3rem;
  padding: 0 1.1rem;
  border: 1px solid var(--chip-border);
  border-radius: 12px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.75rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.more-link .icon {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.15s;
}

@media (hover: hover) {
  a.more-link:hover .icon,
  .today-card:hover .today-cue .icon {
    transform: translateX(3px);
  }
}

.welcome-today {
  min-width: 0;
}

.today-card {
  position: relative;
  padding: 1.4rem 1.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-raised);
  box-shadow:
    0 1px 2px rgba(33, 28, 22, 0.05),
    0 22px 44px -24px rgba(33, 28, 22, 0.35);
  transition: border-color 0.15s;
}

@media (hover: hover) {
  .today-card:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  }
}

.today-number {
  margin: 1rem 0 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.today-title {
  margin: 0.1rem 0 0.9rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 1.4vw + 1.2rem, 2rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.today-title a {
  color: inherit;
  text-decoration: none;
}

/* The whole card is the link, without making a screen reader read all of it
   as the link's name. */
.today-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
}

.today-title a:focus-visible {
  outline: none;
}

.today-title a:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.today-lines {
  margin: 0;
  padding-left: 0.9rem;
  border-left: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.today-lines .line {
  font-size: 1.2rem;
}

.today-credit {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: break-word;
}

.today-cue {
  margin-top: 0.3rem;
}

.welcome-facts {
  padding: clamp(1.4rem, 4vw, 2.2rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.3rem;
  min-width: 0;
}

.stat dd {
  margin: 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 2.5vw + 1.8rem, 3.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat dt {
  max-width: 13rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.3;
}

.welcome-pd {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.welcome-stats + .welcome-pd {
  margin-top: clamp(1.4rem, 4vw, 2rem);
  padding-top: clamp(1.2rem, 3vw, 1.6rem);
  border-top: 1px solid var(--line);
}

.welcome-pd .icon {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.1rem;
  color: var(--accent);
}

.welcome-pd p {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.welcome-pd strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

.welcome-section {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0 1.25rem;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 1.6vw + 1.25rem, 2.15rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.kicker + .section-title {
  margin-top: 0.3rem;
}

.featured-list {
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.upcoming {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.6rem;
  margin: 1.1rem 0 0;
  padding: 0.3rem 1rem;
  border-radius: 12px;
  background: var(--notice);
}

.upcoming > .icon {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--accent);
}

.upcoming span {
  margin-right: auto;
  padding: 0.5rem 0;
  font-family: var(--serif);
  font-size: 1.12rem;
}

.feature-grid {
  display: grid;
  gap: 0.9rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

/* On a phone the icon sits beside the words, which keeps six of these short. */
.feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 0.9rem;
  padding: 1.1rem 1.1rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-raised);
}

.feature > * {
  grid-column: 2;
}

.feature > .feature-icon {
  grid-column: 1;
  grid-row: 1 / span 3;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  color: var(--accent);
}

.feature h3 {
  margin: 0.15rem 0 0.3rem;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.2;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.feature .more-link {
  justify-self: start;
  align-self: end;
  margin-top: 0.2rem;
}

.season-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.season-links a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.35rem 1.3rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.15s,
    color 0.15s;
}

@media (hover: hover) {
  .season-links a:hover {
    background: var(--accent);
    color: var(--accent-ink);
  }
}

.welcome-closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding: clamp(1.8rem, 5vw, 3rem) 1.25rem;
  border-radius: 20px;
  background: var(--notice);
  text-align: center;
}

.welcome-closing .section-title {
  margin-top: 0.9rem;
}

.welcome-closing p {
  max-width: 32rem;
  margin: 0.5rem 0 1.2rem;
  color: var(--muted);
  line-height: 1.5;
}

.welcome-closing .btn {
  padding-inline: 1.5rem;
}

.welcome-about {
  max-width: 34rem;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

.welcome .colophon {
  margin-top: 0.8rem;
  text-align: center;
}

@media (min-width: 40rem) {
  .welcome-actions {
    grid-template-columns: repeat(2, max-content);
  }

  .welcome-actions .btn:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .btn {
    padding-inline: 1.25rem;
    font-size: 1rem;
  }

  .welcome-stats {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    grid-template-columns: none;
  }

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

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

  .feature {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    padding: 1.3rem 1.3rem 0.5rem;
  }

  .feature > *,
  .feature > .feature-icon {
    grid-column: 1;
    grid-row: auto;
  }

  .feature > .feature-icon {
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 48rem) {
  html[data-view="welcome"] .app {
    padding-inline: 2rem;
  }

  .welcome-hero::before {
    inset: 0 -2rem;
  }
}

@media (min-width: 60rem) {
  .welcome-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 4rem;
  }

  .welcome-hero::before {
    background: radial-gradient(
      closest-side at 80% 50%,
      color-mix(in srgb, var(--glow) 30%, transparent),
      transparent
    );
  }

  .today-card {
    padding: 1.8rem 1.8rem 1rem;
  }

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

/* What's New */

.whats-new {
  padding-bottom: 1.5rem;
}

.whats-new h2 {
  margin: 0.2rem 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
}

.whats-new-lead,
.whats-new-note {
  margin: 0 0 0.45rem;
  color: var(--muted);
}

.whats-new-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: baseline;
  margin: 0 0 0.45rem;
}

.notify-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.notify-status {
  margin: 0 0 1rem;
  color: var(--muted);
}

.whats-new h3 {
  margin: 1.15rem 0 0.35rem;
  font-size: 1rem;
}

.whats-new ul {
  list-style: none;
  margin: 0 0 0.4rem;
  padding: 0;
}

.whats-new li {
  border-top: 1px solid var(--line);
}

.whats-new li a {
  display: block;
  padding: 0.55rem 0;
  color: inherit;
  text-decoration: none;
}

.whats-new li a:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
