:root {
  --bg: #f4efe7;
  --surface: rgba(255, 252, 247, 0.86);
  --surface-strong: #fffdfa;
  --text: #251b17;
  --muted: #6c5b55;
  --line: rgba(37, 27, 23, 0.12);
  --accent: #8d2f23;
  --accent-soft: #c56d4b;
  --shadow: 0 22px 60px rgba(73, 44, 33, 0.12);
  --radius: 24px;
  --max: 1180px;
}

@font-face {
  font-family: "AmericanTypewriterLocal";
  src:
    url("/fonts/American%20Typewriter%20Bold/Web%20Fonts/17363ed78e2b5e259e228bad72318a1f.woff2") format("woff2"),
    url("/fonts/American%20Typewriter%20Bold/Web%20Fonts/17363ed78e2b5e259e228bad72318a1f.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "South Signature";
  src: url("/fonts/South%20Signature/Web%20Fonts/d1be6c37ecc3fc53b73447610f25a671.eot");
  src:
    url("/fonts/South%20Signature/Web%20Fonts/d1be6c37ecc3fc53b73447610f25a671.eot?#iefix") format("embedded-opentype"),
    url("/fonts/South%20Signature/Web%20Fonts/d1be6c37ecc3fc53b73447610f25a671.woff") format("woff"),
    url("/fonts/South%20Signature/Web%20Fonts/d1be6c37ecc3fc53b73447610f25a671.woff2") format("woff2"),
    url("/fonts/South%20Signature/Web%20Fonts/d1be6c37ecc3fc53b73447610f25a671.ttf") format("truetype"),
    url("/fonts/South%20Signature/Web%20Fonts/d1be6c37ecc3fc53b73447610f25a671.svg#South%20Signature") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(197, 109, 75, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(141, 47, 35, 0.12), transparent 24%),
    linear-gradient(180deg, #f8f2e9 0%, #f4efe7 45%, #efe7dc 100%);
  font-family: Aptos, "Segoe UI", sans-serif;
}

body.page-home {
  overflow-x: hidden;
}

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
  background: rgba(248, 242, 233, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header--home {
  background: linear-gradient(180deg, rgba(27, 18, 15, 0.62), rgba(27, 18, 15, 0.18));
  border-bottom-color: rgba(255, 250, 245, 0.12);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.site-main,
.site-footer__inner {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 0;
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-brand__eyebrow,
.eyebrow,
.feature-card__eyebrow,
.panel__label,
.book-card__meta,
.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.site-brand__name,
h1,
h2,
h3,
.site-footer__title {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-brand__name {
  font-size: 1.35rem;
}

.site-header--home .site-brand__eyebrow,
.site-header--home .site-brand__name,
.site-header--home .site-nav a {
  color: #fffaf7;
}

.site-header--home .site-nav a {
  background: rgba(255, 255, 255, 0.04);
}

.site-header--home .site-nav a:hover,
.site-header--home .site-nav a.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.site-header--home .site-menu-toggle,
.site-header--home .button--secondary.site-owner-menu__toggle {
  border-color: rgba(255, 250, 245, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fffaf7;
}

.site-menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  padding: 0.7rem 1rem;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.site-owner-menu {
  position: relative;
  margin-left: 0.5rem;
}

.site-owner-menu__toggle {
  min-width: 10rem;
}

.site-owner-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  min-width: 16rem;
  display: none;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  z-index: 20;
}

.site-owner-menu.is-open .site-owner-menu__panel {
  display: grid;
  gap: 0.35rem;
}

.site-owner-menu__panel a,
.site-owner-menu__panel button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
  padding: 0.85rem 1rem;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.site-owner-menu__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-owner-menu__icon {
  width: 1.1rem;
  color: var(--accent);
  text-align: center;
  flex: 0 0 1.1rem;
}

.site-owner-menu__divider {
  height: 1px;
  margin: 0.2rem 0;
  background: var(--line);
}

.site-owner-menu__panel a:hover,
.site-owner-menu__panel button:hover {
  background: rgba(141, 47, 35, 0.08);
}

.site-owner-menu__panel .site-owner-logout {
  margin: 0;
}

.site-owner-menu__item--danger {
  color: #7a2318;
}

.site-owner-menu__item--danger .site-owner-menu__icon {
  color: #7a2318;
}

.site-nav a,
.subnav a,
.site-footer__links a {
  transition: 180ms ease;
}

.site-nav a {
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  font-family: "AmericanTypewriterLocal", "American Typewriter", "Lucida Sans Typewriter", "Courier New", monospace;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a.is-active,
.subnav a:hover,
.subnav a.is-active {
  background: rgba(141, 47, 35, 0.1);
  color: var(--text);
}

.site-main {
  padding: 2rem 0 4rem;
}

.site-main--home {
  width: 100%;
  padding: 0;
  margin: 0;
}

.page-home .site-main--home {
  width: 100%;
  margin: 0;
}

.page-home .site-main {
  width: min(calc(100% - 2rem), var(--max));
}

.page-home .site-main.site-main--home {
  width: 100%;
  max-width: none;
}

.hero,
.page-hero,
.feature-card,
.link-card,
.book-card,
.prose-card,
.notice-card,
.contact-panel,
.timeline,
.archive-list {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  padding: 3rem;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(197, 109, 75, 0.24), transparent 70%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 2rem;
}

.page-hero--book {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: start;
  padding-top: 4rem;
}

.page-hero__copy,
.page-hero__aside {
  position: relative;
  z-index: 1;
}

.page-hero__toolbar {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 2;
}

.page-hero__edit-button {
  box-shadow: 0 14px 28px rgba(37, 27, 23, 0.12);
}

.page-hero__aside--quotes {
  justify-self: end;
  width: min(100%, 34rem);
  margin-top: 2.4rem;
  padding: 0.25rem 0 0.25rem 1.4rem;
  border-left: 1px solid rgba(37, 27, 23, 0.12);
}

.hero--home {
  min-height: 100vh;
  width: 100%;
  padding: clamp(1.4rem, 2vw, 2.2rem);
  border: 0;
  border-radius: 0;
  background: #16100d;
  box-shadow: none;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 24rem);
  grid-template-rows: auto 1fr;
  align-items: end;
  gap: clamp(1rem, 2vw, 2rem);
}

.hero--home .hero__content,
.hero--home .hero__panel {
  position: relative;
  z-index: 1;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(180deg, rgba(20, 14, 11, 0.14), rgba(20, 14, 11, 0.08));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 250, 245, 0.08);
  box-shadow: 0 12px 30px rgba(18, 12, 10, 0.14);
}

.hero--home .hero__content.home-cover__content {
  background: transparent;
  backdrop-filter: none;
  border: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.hero--cinematic:not(.is-revealed) .hero__content,
.hero--cinematic:not(.is-revealed) .hero__panel {
  opacity: 0;
  transform: translateY(2rem);
  pointer-events: none;
}

.hero--cinematic.is-revealed .hero__content,
.hero--cinematic.is-revealed .hero__panel {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 700ms ease,
    transform 900ms cubic-bezier(.2, .8, .2, 1);
}

.hero--cinematic .hero__content > * ,
.hero--cinematic .hero__panel > * {
  opacity: 0;
  transform: translateY(1.1rem);
}

.hero--cinematic.is-revealed .hero__content > *,
.hero--cinematic.is-revealed .hero__panel > * {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 600ms ease,
    transform 700ms cubic-bezier(.2, .8, .2, 1);
}

.hero--cinematic.is-revealed .hero__content > :nth-child(1) { transition-delay: 80ms; }
.hero--cinematic.is-revealed .hero__content > :nth-child(2) { transition-delay: 180ms; }
.hero--cinematic.is-revealed .hero__content > :nth-child(3) { transition-delay: 300ms; }
.hero--cinematic.is-revealed .hero__content > :nth-child(4) { transition-delay: 420ms; }
.hero--cinematic.is-revealed .hero__panel { transition-delay: 520ms; }
.hero--cinematic.is-revealed .hero__panel > *:nth-child(1) { transition-delay: 620ms; }
.hero--cinematic.is-revealed .hero__panel > *:nth-child(2) { transition-delay: 720ms; }

.hero--cinematic::after {
  display: none;
}

.hero__media,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: 0;
}

.hero__media video {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
}

.hero__veil {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(20, 14, 11, 0.82) 0%, rgba(20, 14, 11, 0.58) 36%, rgba(20, 14, 11, 0.28) 72%, rgba(20, 14, 11, 0.46) 100%),
    linear-gradient(180deg, rgba(10, 7, 6, 0.18), rgba(10, 7, 6, 0.42));
}

.hero--home .hero__content {
  align-self: end;
  padding: clamp(2.8rem, 5vw, 4.4rem) clamp(1rem, 2.4vw, 2rem) 0 clamp(0.9rem, 2.2vw, 1.8rem);
  max-width: 54rem;
}

.hero--home .hero__panel {
  align-self: end;
  justify-self: end;
  width: 100%;
  padding: 1.2rem 1.3rem;
}

.hero--home .eyebrow,
.hero--home h1,
.hero--home .lead,
.hero--home .panel__label,
.hero--home .hero__list {
  color: #fffaf7;
}

.hero--home .lead,
.hero--home .hero__list {
  color: rgba(255, 250, 247, 0.88);
}

.hero--home .button--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fffaf7;
  border: 1px solid rgba(255, 250, 245, 0.18);
}

.home-cover__nav {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.home-cover__brand .site-brand__eyebrow,
.home-cover__brand .site-brand__name {
  color: #fffaf7;
}

.home-cover__menu-toggle {
  display: none;
  justify-self: end;
  border-color: rgba(255, 250, 245, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fffaf7;
}

.home-cover__menu {
  margin-left: 0;
  justify-self: end;
}

.home-cover__menu a {
  color: #fffaf7;
  background: rgba(255, 255, 255, 0.05);
}

.home-cover__menu a:hover,
.home-cover__menu a.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.home-cover__owner-menu {
  margin-left: 0;
}

.home-cover__owner-menu .site-owner-menu__toggle {
  min-width: auto;
  border-color: rgba(255, 250, 245, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fffaf7;
}

.home-cover__content,
.home-cover__panel {
  z-index: 1;
}

.home-cover__content {
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.42);
}

.home-cover__content h1,
.home-cover__content .lead {
  font-family: "AmericanTypewriterLocal", "American Typewriter", "Lucida Sans Typewriter", "Courier New", monospace;
  letter-spacing: 0;
}

.home-cover__content h1 {
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.home-cover__title {
  position: relative;
  display: inline-block;
  gap: 0;
  margin: 0 0 0.65rem;
  padding: 0.8rem 0.4rem 0.5rem 0.8rem;
  color: #ffffff;
  isolation: isolate;
  overflow: visible;
  text-shadow:
    0 10px 30px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(255, 250, 247, 0.1);
}

.home-cover__title-text {
  display: inline-block;
  min-width: 1ch;
  font-family: "South Signature", cursive !important;
  font-size: clamp(4.8rem, 12vw, 10.5rem);
  line-height: 1.14;
  padding: 0.2em 0.08em 0.18em 0.14em;
  overflow: visible;
  letter-spacing: 0.01em;
  white-space: nowrap;
  mix-blend-mode: difference;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateY(0.14em) scale(1.02);
  filter: blur(6px);
  animation: home-cover-signature-reveal 2.5s cubic-bezier(.22, .8, .18, 1) 0.35s forwards;
}

.home-cover__title-sweep {
  position: absolute;
  left: 0;
  top: 52%;
  width: clamp(1.4rem, 2vw, 2.2rem);
  height: clamp(1.4rem, 2vw, 2.2rem);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.32) 38%, rgba(255, 255, 255, 0) 72%);
  mix-blend-mode: screen;
  filter: blur(1px);
  opacity: 0;
  transform: translate(-20%, -50%);
  animation: home-cover-signature-sweep 2.5s cubic-bezier(.22, .8, .18, 1) 0.35s forwards;
}

.home-cover__official-subtitle {
  margin: 0 0 1rem;
  color: rgba(255, 250, 247, 0.92);
  font-family: "AmericanTypewriterLocal", "American Typewriter", "Lucida Sans Typewriter", "Courier New", monospace;
  font-size: clamp(1.18rem, 2.15vw, 1.55rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes home-cover-signature-reveal {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateY(0.14em) scale(1.02);
    filter: blur(6px);
  }

  24% {
    opacity: 0.72;
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes home-cover-signature-sweep {
  0% {
    opacity: 0;
    left: 0;
  }

  10% {
    opacity: 1;
  }

  88% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    left: 100%;
  }
}

.home-cover__status {
  margin-top: 0;
  margin-bottom: 1rem;
  background: rgba(255, 250, 245, 0.16);
  color: #fffaf7;
  border-color: rgba(255, 250, 245, 0.18);
}

h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.96;
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  margin: 0;
  font-size: 1.35rem;
}

.lead,
.feature-card p,
.book-card p,
.prose-card p,
.notice-card p,
.archive-list li,
.timeline__list li,
.contact-panel,
.site-footer__copy {
  color: var(--muted);
  line-height: 1.7;
}

.hero__actions,
.subnav,
.site-footer__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
}

.button--primary {
  background: var(--accent);
  color: #fffaf7;
}

.button--secondary {
  background: rgba(141, 47, 35, 0.08);
}

.hero__panel,
.contact-panel {
  padding: 1.5rem;
  border-radius: var(--radius);
}

.hero-visual-card,
.section-banner {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}

.hero-visual-card img,
.section-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-visual-card {
  max-height: 580px;
}

.hero-visual-card img {
  object-fit: cover;
}

.hero__list,
.timeline__list,
.archive-list ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.section,
.section-grid,
.page-grid {
  margin-top: 2rem;
}

.section-grid,
.link-grid,
.book-grid,
.page-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

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

.page-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.feature-card,
.link-card,
.book-card,
.prose-card,
.notice-card,
.timeline,
.archive-list {
  padding: 1.5rem;
  border-radius: var(--radius);
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.owner-hub-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.owner-stat-card__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.owner-stat-card__value {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.owner-stat-card--alert {
  background:
    linear-gradient(135deg, rgba(197, 109, 75, 0.14), rgba(255, 252, 247, 0.96));
}

.owner-hub-grid {
  align-items: start;
}

.owner-hub-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.owner-hub-link {
  min-height: 100%;
}

.owner-hub-logout {
  margin-top: 1rem;
}

.owner-hub-shortcut {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.owner-hub-shortcut p {
  margin: 0.45rem 0 0.9rem;
}

.book-card--link {
  display: block;
}

.book-card--link:hover {
  transform: translateY(-2px);
}

.book-card--cover {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
}

.book-card-shell {
  position: relative;
}

.book-card-shell .book-card {
  height: 100%;
}

.book-card-shell--owner {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
  cursor: grab;
}

.book-card-shell--owner.is-dragging {
  opacity: 0.7;
  transform: scale(0.985);
  cursor: grabbing;
}

.book-card-shell--owner.is-drop-target .book-card {
  box-shadow: 0 0 0 2px rgba(141, 47, 35, 0.12);
  border-color: rgba(141, 47, 35, 0.45);
}

.book-card__cover {
  aspect-ratio: 3 / 4.35;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(37, 27, 23, 0.08);
}


.book-card__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card__cover-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(197, 109, 75, 0.12), rgba(141, 47, 35, 0.04)),
    rgba(255, 255, 255, 0.88);
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.35;
}

.book-card__edit-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(37, 27, 23, 0.82);
  color: #fffaf7;
  font-size: 0.95rem;
  z-index: 2;
}

.link-card span {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.subnav {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.owner-toolbar {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
}

.owner-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(37, 27, 23, 0.84);
  color: #fffaf7;
  font-weight: 600;
  cursor: pointer;
}

.owner-edit-link--soft {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.owner-book-actions {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 3;
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.owner-book-actions form {
  margin: 0;
}

.owner-book-action {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  min-height: 2.2rem;
  padding: 0;
  border: 1px solid rgba(37, 27, 23, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.94);
  color: var(--text);
  box-shadow: 0 10px 20px rgba(37, 27, 23, 0.12);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.owner-book-action:hover {
  background: rgba(255, 255, 255, 0.98);
}

.owner-book-action:active {
  transform: translateY(1px);
}

.owner-card {
  position: relative;
}

.owner-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.owner-card__icon {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  min-height: 2.8rem;
  border: 1px solid rgba(37, 27, 23, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent);
}

.owner-inline-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(37, 27, 23, 0.1);
}

.owner-inline-panel[hidden],
#owner-form-store[hidden] {
  display: none;
}

.owner-inline-panel__grid {
  display: grid;
  gap: 0.8rem;
}

.owner-inline-panel__grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-inline-panel__span {
  grid-column: 1 / -1;
}

.owner-inline-panel__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.owner-empty-copy {
  color: var(--muted);
  font-style: italic;
}

.owner-editor-panel {
  display: grid;
  gap: 1.25rem;
}

.owner-section-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.owner-section-nav a {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
}

.owner-editor-section {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.44);
}

.owner-editor-section legend {
  padding: 0 0.5rem;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 700;
}

.downloads-editor-group {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(37, 27, 23, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
}

.downloads-editor-group__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.downloads-editor-table-wrap {
  overflow-x: auto;
}

.downloads-editor-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.downloads-editor-table th,
.downloads-editor-table td {
  padding: 0.6rem;
  border-bottom: 1px solid rgba(37, 27, 23, 0.1);
  text-align: left;
  vertical-align: top;
}

.downloads-editor-table tbody.is-drop-target {
  outline: 2px dashed rgba(141, 47, 35, 0.35);
  outline-offset: 4px;
}

.downloads-editor-table [data-download-row].is-dragging {
  opacity: 0.45;
}

.downloads-editor-table th {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.downloads-editor-table th:nth-child(1),
.downloads-editor-table td:nth-child(1) {
  width: 24%;
}

.downloads-editor-table th:nth-child(2),
.downloads-editor-table td:nth-child(2) {
  width: 34%;
}

.downloads-editor-table th:nth-child(3),
.downloads-editor-table td:nth-child(3) {
  width: 24%;
}

.downloads-editor-table th:nth-child(4),
.downloads-editor-table td:nth-child(4),
.downloads-editor-table th:nth-child(5),
.downloads-editor-table td:nth-child(5) {
  width: 9%;
  white-space: nowrap;
}

.downloads-editor-table td {
  min-width: 0;
}

.downloads-editor-table input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(37, 27, 23, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
}

.downloads-editor-table textarea {
  width: 100%;
  height: 3rem;
  min-height: 3rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(37, 27, 23, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
  resize: none;
  overflow: hidden;
  line-height: 1.45;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.downloads-editor-table input:focus,
.downloads-editor-table textarea:focus {
  outline: 2px solid rgba(141, 47, 35, 0.18);
  border-color: rgba(141, 47, 35, 0.45);
}

.downloads-editor-table textarea.is-expanded {
  height: auto;
  white-space: pre-wrap;
  text-overflow: clip;
}

.download-file-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.55rem 0.8rem;
  border: 1px dashed rgba(37, 27, 23, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
  min-width: 0;
}

.download-file-picker:hover,
.download-file-picker.is-drop-target,
.download-file-picker:focus-within {
  border-color: rgba(141, 47, 35, 0.45);
  background: rgba(255, 255, 255, 0.9);
}

.download-file-picker.has-file {
  border-style: solid;
}

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

.download-file-picker__icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 12px;
  background: rgba(141, 47, 35, 0.1);
  color: var(--accent);
  flex: 0 0 auto;
}

.download-file-picker__icon i {
  font-size: 0.95rem;
  line-height: 1;
}

.download-file-picker__text {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.downloads-drag-handle {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  min-height: 2.5rem;
  border: 1px solid rgba(37, 27, 23, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  cursor: grab;
  font: inherit;
}

.downloads-editor-table td .button.button--secondary {
  white-space: nowrap;
}

.downloads-owner-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.owner-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.owner-section-heading__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.subnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
}

.subnav__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(141, 47, 35, 0.12);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-0.3rem);
}

.narrow-section {
  max-width: 820px;
}

.contact-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.contact-list div {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.contact-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-label {
  display: block;
  margin-bottom: 0.3rem;
}

.media-figure {
  margin: 0 0 1rem;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
}

.media-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.download-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  max-height: 48rem;
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-gutter: stable;
}

.download-category-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.download-section-card {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.5);
}

.download-section-card__header {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.download-item {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
}

.download-item--rich {
  gap: 0.85rem;
}

.download-list.is-drop-target {
  outline: 2px dashed rgba(141, 47, 35, 0.35);
  outline-offset: 6px;
  border-radius: 18px;
}

.download-item.is-dragging {
  opacity: 0.45;
}

.download-item__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
}

.download-item__icon {
  display: inline-grid;
  place-items: center;
  min-width: 3.45rem;
  min-height: 3.45rem;
  padding: 0.55rem;
  border-radius: 16px;
  background: rgba(141, 47, 35, 0.08);
  border: 1px solid rgba(37, 27, 23, 0.08);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.download-item__icon i {
  font-size: 1.5rem;
  line-height: 1;
}

.download-item__icon--pdf {
  color: #b42318;
  background: rgba(180, 35, 24, 0.1);
}

.download-item__icon--mp3,
.download-item__icon--wav,
.download-item__icon--ogg,
.download-item__icon--m4a {
  color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
}

.download-item__icon--mp4,
.download-item__icon--webm {
  color: #7c2d12;
  background: rgba(124, 45, 18, 0.1);
}

.download-item__icon--jpg,
.download-item__icon--jpeg,
.download-item__icon--png,
.download-item__icon--webp,
.download-item__icon--gif,
.download-item__icon--bmp,
.download-item__icon--svg {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.1);
}

.download-item__icon--doc,
.download-item__icon--docx {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.1);
}

.download-item__copy {
  min-width: 0;
  display: grid;
  gap: 0.3rem;
}

.download-item__icon-stack {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.35rem;
  min-width: 5.75rem;
}

.download-item__icon-meta {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
}

.download-item__title-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.download-item__copy strong,
.download-item__copy span,
.download-item__copy div,
.download-item a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.download-item__meta {
  font-size: 0.86rem;
  color: var(--muted);
}

.download-item__uploading {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  color: var(--accent);
}

.download-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.download-category-grid--owner .download-list {
  min-height: 12rem;
}

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

.download-item span {
  color: var(--muted);
}

.download-preview {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(37, 27, 23, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
}

.download-preview img,
.download-preview iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.download-preview img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.download-preview iframe {
  height: 18rem;
}

.audio-stack,
.video-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.audio-card,
.video-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
}

.audio-card audio {
  width: 100%;
}

.video-card video {
  width: 100%;
  border-radius: 16px;
  background: #000;
}

.audio-download {
  color: var(--accent);
  font-weight: 600;
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 18px;
  overflow: hidden;
  background: #201714;
}

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

.editorial-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field span,
.form-check span {
  color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(37, 27, 23, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
}

.form-field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(141, 47, 35, 0.18);
  border-color: rgba(141, 47, 35, 0.45);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--muted);
}

.form-check input {
  margin-top: 0.25rem;
}

.validation-summary,
.field-validation {
  color: var(--accent);
  font-size: 0.92rem;
}

.field-hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.validation-summary ul {
  margin: 0;
  padding-left: 1.2rem;
}

.status-banner {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(141, 47, 35, 0.18);
  background: rgba(141, 47, 35, 0.08);
  color: var(--text);
}

.owner-context-menu {
  position: fixed;
  z-index: 40;
  display: grid;
  min-width: 13rem;
  padding: 0.45rem;
  border: 1px solid rgba(37, 27, 23, 0.14);
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 18px 40px rgba(37, 27, 23, 0.18);
}

.owner-context-menu[hidden] {
  display: none;
}

.owner-context-menu button {
  padding: 0.8rem 0.9rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.owner-context-menu button:hover {
  background: rgba(141, 47, 35, 0.08);
}

.owner-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(32, 23, 20, 0.35);
  backdrop-filter: blur(4px);
}

.owner-modal-backdrop[hidden] {
  display: none;
}

.owner-modal {
  width: min(100%, 42rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  border: 1px solid rgba(37, 27, 23, 0.12);
  border-radius: 24px;
  background: rgba(255, 250, 245, 0.98);
  box-shadow: 0 24px 60px rgba(37, 27, 23, 0.2);
  max-height: min(92vh, 52rem);
  overflow: hidden;
}

.owner-modal--wide {
  width: min(100%, 56rem);
  max-height: 92vh;
  overflow: hidden;
}

.owner-modal--catalog {
  padding: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(197, 109, 75, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(247, 241, 233, 0.98));
}

.owner-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem 0.9rem;
  border-bottom: 1px solid rgba(37, 27, 23, 0.08);
  background: rgba(255, 252, 247, 0.94);
}

.owner-modal__header--catalog {
  padding: 1.15rem 1.15rem 0.9rem;
  border-bottom: 1px solid rgba(37, 27, 23, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 252, 247, 0.12));
}

.owner-modal__header--catalog h2 {
  margin: 0.15rem 0 0.35rem;
}

.owner-modal__header--catalog p:last-child {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
}

.owner-modal__close {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  min-height: 2.6rem;
  border: 1px solid rgba(37, 27, 23, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

body.has-owner-modal {
  overflow: hidden;
}

.owner-modal__form {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  height: 100%;
}

.owner-modal__scroll {
  min-height: 0;
  padding: 0.95rem 1.15rem 0.4rem;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.owner-modal__form .validation-summary-errors {
  margin-bottom: 0.2rem;
}

.owner-modal__form .field-hint {
  font-size: 0.82rem;
}

.owner-modal__actions {
  margin-top: 0;
  padding: 0.9rem 1.15rem 1rem;
  border-top: 1px solid rgba(37, 27, 23, 0.08);
  background: rgba(247, 241, 233, 0.96);
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 1;
}

.owner-modal__actions .button {
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1.1;
}

.owner-modal__body {
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.15rem;
  scrollbar-gutter: stable;
}

.owner-modal--download {
  width: min(100%, 46rem);
}

.owner-modal__body--download {
  padding-bottom: 0.75rem;
}

.owner-modal__actions--download {
  gap: 0.75rem;
}


.quote-stack {
  display: grid;
  gap: 0.75rem;
}

.quote-carousel {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 24px;
  border: 1px solid rgba(37, 27, 23, 0.1);
  background:
    radial-gradient(circle at top left, rgba(197, 109, 75, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(245, 238, 230, 0.96));
  box-shadow: 0 22px 44px rgba(37, 27, 23, 0.08);
}

.quote-carousel--preview {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.quote-carousel__stage {
  position: relative;
  min-height: 15rem;
}

.quote-carousel__item {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 320ms ease, transform 320ms ease;
}

.quote-carousel__item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.quote-stack blockquote,
.quote-carousel blockquote {
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(141, 47, 35, 0.35);
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.5;
}

.quote-stack p,
.quote-carousel p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.quote-carousel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.quote-carousel__footer--balanced {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.quote-carousel__dots,
.quote-carousel__controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.quote-carousel__dots {
  justify-content: center;
}

.quote-carousel__dot,
.quote-carousel__button {
  border: 0;
  background: transparent;
}

.quote-carousel__dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: rgba(37, 27, 23, 0.16);
  transition: transform 180ms ease, background 180ms ease;
}

.quote-carousel__dot.is-active {
  background: var(--accent);
  transform: scale(1.16);
}

.quote-carousel__button {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  min-height: 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 27, 23, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.quote-carousel--hero {
  min-height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.quote-carousel--hero .quote-carousel__stage {
  min-height: 12.5rem;
}

.quote-carousel--hero blockquote {
  padding-left: 1.15rem;
  border-left-color: rgba(141, 47, 35, 0.28);
  font-size: 1.1rem;
}

.quote-carousel--hero p {
  margin-left: 1.3rem;
}

.owner-inline-panel--hero {
  grid-column: 1 / -1;
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem 0;
  border: 1px solid rgba(37, 27, 23, 0.12);
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.84);
  box-shadow: 0 18px 40px rgba(37, 27, 23, 0.08);
}

.quote-board {
  display: grid;
  gap: 0.9rem;
}

.quote-board__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  flex-wrap: wrap;
}

.quote-board__header p {
  margin: 0.35rem 0 0;
}

.quote-board__list {
  display: grid;
  gap: 0.55rem;
}

.quote-board__list.is-drop-target {
  outline: 2px dashed rgba(141, 47, 35, 0.32);
  outline-offset: 6px;
  border-radius: 20px;
}

.quote-board__item {
  display: grid;
  gap: 0.45rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(37, 27, 23, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.quote-board__item.is-dragging {
  opacity: 0.45;
}

.quote-board__item-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.55rem;
}

.quote-board__toggle {
  margin-left: 0;
  align-self: end;
  padding-bottom: 0.45rem;
}

.quote-board__remove {
  white-space: nowrap;
  min-height: 2.4rem;
  padding: 0.45rem 0.72rem;
  font-size: 0.86rem;
}

.quote-board__item-body {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(14rem, 0.9fr);
  gap: 0.55rem;
}

.quote-board__field {
  gap: 0.22rem;
}

.quote-board__field span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.quote-board__field select,
.quote-board__field input,
.quote-board__field textarea {
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  font-size: 0.92rem;
}

.quote-board__field textarea {
  min-height: 4.2rem;
}

.quote-board__field--source {
  min-width: 0;
}

.quote-board__field--source select {
  white-space: nowrap;
  text-overflow: ellipsis;
}

.quote-board__item .downloads-drag-handle {
  width: 2.2rem;
  min-height: 2.2rem;
}

.markdown-mini-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.markdown-mini-toolbar__button {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  min-height: 2rem;
  padding: 0;
  border: 1px solid rgba(37, 27, 23, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font: inherit;
  line-height: 1;
}

.markdown-mini-toolbar__button:hover {
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
}

.markdown-mini-toolbar__button strong,
.markdown-mini-toolbar__button em,
.markdown-mini-toolbar__button u,
.markdown-mini-toolbar__button i {
  font-size: 0.9rem;
}

.md-align--left {
  text-align: left;
}

.md-align--center {
  text-align: center;
}

.md-align--right {
  text-align: right;
}

.md-align--justify {
  text-align: justify;
}

.timeline__highlight-item .award-key {
  display: inline-grid;
  place-items: center;
  margin-right: 0.45rem;
  vertical-align: text-top;
}

.timeline__highlight-text {
  display: inline;
}

.award-key--gold {
  color: #b88411;
}

.award-key--silver {
  color: #7b8694;
}

.award-key--bronze {
  color: #9d5a2f;
}

@media (max-width: 900px) {
  .quote-board__item-top,
  .quote-board__item-body {
    grid-template-columns: 1fr;
  }

  .quote-board__toggle {
    padding-bottom: 0;
  }
}

.quote-carousel__button:hover,
.quote-carousel__dot:hover {
  cursor: pointer;
}

.notice-card--compact {
  gap: 0.55rem;
  padding: 1rem 1.1rem;
}

.notice-card--compact p {
  margin: 0;
}

.download-item__quotes {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  margin-top: 0;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: rgba(141, 47, 35, 0.08);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
}

.download-item__quotes--favorite {
  padding: 0.16rem 0.5rem;
  background: rgba(199, 161, 11, 0.14);
  color: #c7a10b;
  font-size: 0.76rem;
}

.download-item__quotes--muted {
  background: rgba(37, 27, 23, 0.06);
  color: var(--muted);
}

.quote-editor {
  display: grid;
  gap: 0.65rem;
}

.quote-editor__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.quote-editor__item {
  display: grid;
  gap: 0.6rem;
  padding: 0.8rem;
  border: 1px solid rgba(37, 27, 23, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.quote-editor__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
}

.quote-editor__row--compact {
  grid-template-columns: 7rem auto auto;
  align-items: end;
}

.quote-editor__field--wide {
  grid-column: 1 / -1;
}

.quote-editor__field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.quote-editor__copy-description {
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

.quote-editor__toggle {
  align-self: end;
  padding-bottom: 0.55rem;
}

.quote-editor__remove {
  align-self: end;
  min-height: 2.75rem;
}

@media (min-width: 760px) {
  .quote-editor__row:first-child {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

@media (max-width: 759px) {
  .quote-editor__row--compact {
    grid-template-columns: 1fr;
  }
}

.book-meta {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0 1.4rem;
}

.site-footer {
  padding: 0 0 2rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 250, 245, 0.68);
}

.site-footer__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.owner-card__header--section {
  margin-bottom: 1.25rem;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.owner-inline-panel__actions--spread,
.favorite-editor__actions,
.home-card-editor__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.favorite-card-grid,
.favorite-editor,
.home-card-editor {
  display: grid;
  gap: 1rem;
}

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

.favorite-card,
.favorite-editor__item,
.home-card-editor__item {
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 250, 245, 0.78);
}

.favorite-card-grid--spotlight .favorite-card {
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.94), rgba(255, 241, 225, 0.96)),
    var(--surface);
  border-color: rgba(141, 47, 35, 0.18);
  box-shadow: 0 20px 36px rgba(90, 43, 28, 0.09);
}

.favorite-card--clickable {
  cursor: pointer;
}

.favorite-card--clickable:hover {
  border-color: rgba(141, 47, 35, 0.3);
  box-shadow: 0 24px 40px rgba(90, 43, 28, 0.14);
}

.favorite-card--clickable:focus-visible {
  outline: 2px solid rgba(141, 47, 35, 0.55);
  outline-offset: 3px;
}

.favorite-card-grid--spotlight .favorite-card::before {
  content: "";
  display: block;
  width: 3rem;
  height: 0.24rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(197, 109, 75, 0.35));
}

.favorite-card__label {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.favorite-card h3 {
  margin: 0 0 0.55rem;
}

.favorite-card__content p,
.favorite-card__content div {
  margin: 0;
}

.favorite-editor__item,
.home-card-editor__item {
  display: grid;
  gap: 0.9rem;
}

.favorite-editor__actions,
.home-card-editor__actions {
  justify-content: flex-end;
}

.download-item__copy span a,
.favorite-card a,
.link-card strong a,
.book-card p a,
.book-card h3 a,
.feature-card p a,
.feature-card h2 a {
  color: inherit;
}

@media (max-width: 980px) {
  .hero,
  .page-grid,
  .owner-hub-stats,
  .owner-hub-links,
  .download-category-grid,
  .section-grid,
  .link-grid,
  .book-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .owner-inline-panel__grid--two {
    grid-template-columns: 1fr;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .favorite-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.5rem;
    margin-left: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-owner-logout {
    width: 100%;
    margin: 0;
  }

  .site-owner-logout .button {
    width: 100%;
  }

  .site-owner-menu {
    width: 100%;
    margin: 0.5rem 0 0;
  }

  .site-owner-menu__toggle {
    width: 100%;
  }

  .site-owner-menu__panel {
    position: static;
    min-width: 0;
    margin-top: 0.5rem;
  }

  .site-nav a {
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero,
  .page-hero {
    padding: 1.6rem;
  }

  .page-hero--book {
    grid-template-columns: 1fr;
    padding-top: 1.6rem;
  }

  .page-hero__aside--quotes {
    width: 100%;
    margin-top: 0;
    justify-self: stretch;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(37, 27, 23, 0.12);
    padding-top: 1rem;
  }

  .page-hero__toolbar {
    position: static;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.6rem;
  }

  .site-main {
    width: min(calc(100% - 1rem), var(--max));
  }

  .page-home .site-main {
    width: 100%;
  }

  .downloads-editor-table th:nth-child(2),
  .downloads-editor-table td:nth-child(2) {
    min-width: 14rem;
  }

  .downloads-editor-table th:nth-child(3),
  .downloads-editor-table td:nth-child(3) {
    min-width: 16rem;
  }

  .page-home .site-main {
    padding-top: 0;
  }

  .page-home .hero--home {
    min-height: 100svh;
    margin: 0;
    padding: clamp(1rem, 4vw, 1.4rem);
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    align-content: end;
    gap: 0.85rem;
  }

  .page-home .hero--home .hero__media video {
    width: 100%;
    height: 100%;
  }

  .page-home .hero__veil {
    background:
      linear-gradient(180deg, rgba(10, 7, 6, 0.08) 0%, rgba(10, 7, 6, 0.18) 34%, rgba(10, 7, 6, 0.58) 100%),
      linear-gradient(90deg, rgba(20, 14, 11, 0.12) 0%, rgba(20, 14, 11, 0.08) 100%);
  }

  .page-home .hero--home .hero__content,
  .page-home .hero--home .hero__panel {
    width: 100%;
    max-width: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .page-home .home-cover__nav {
    grid-template-columns: auto auto;
    align-items: start;
  }

  .page-home .home-cover__menu-toggle {
    display: inline-flex;
  }

  .page-home .home-cover__menu {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 0.2rem;
  }

  .page-home .home-cover__menu.is-open {
    display: flex;
  }

  .page-home .home-cover__menu a {
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 16px;
  }

  .page-home .home-cover__owner-menu {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
  }

  .page-home .home-cover__owner-menu .site-owner-menu__toggle {
    width: 100%;
  }

  .page-home .hero--home .hero__content {
    align-self: end;
    justify-self: center;
    text-align: center;
    width: 100%;
    padding: 1rem 0 1.6rem;
  }

  .page-home .home-cover__title {
    margin: 0;
    display: block;
    width: 100%;
    padding: 0.45rem 0.1rem 0.32rem 0.3rem;
  }

  .page-home .home-cover__title-text {
    font-size: clamp(3.6rem, 15vw, 5.8rem);
    line-height: 1.16;
  }

  .page-home .home-cover__official-subtitle {
    margin: 0.2rem 0 0.85rem;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
  }

  .page-home .hero--home .hero__panel {
    display: none;
  }

  .page-home .hero--home h1 {
    margin: 0.4rem 0 0.8rem;
    font-size: clamp(2.15rem, 10vw, 3.6rem);
    line-height: 0.94;
  }

  .page-home .hero--home .lead {
    margin-bottom: 0;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .page-home .hero__actions {
    gap: 0.75rem;
  }

  .page-home .hero__actions .button {
    width: 100%;
  }

  .page-home .hero__actions,
  .page-home .hero--home .lead,
  .page-home .hero--home .eyebrow {
    display: none;
  }
}
