:root {
  color-scheme: light;
  --ink: #28211d;
  --muted: #625851;
  --line: #ded8ce;
  --paper: #fcfaf5;
  --earth: #493426;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: white; font: 1.125rem/1.65 var(--serif); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #926039; outline-offset: 4px; }
.skip { position: absolute; transform: translateY(-150%); z-index: 4; background: white; padding: .5rem 1rem; }
.skip:focus { transform: none; }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(32rem, 76svh, 52rem);
  background: #312820;
}
.hero::before {
  content: ''; position: absolute; z-index: -2; inset: -2rem;
  background: linear-gradient(90deg, #201913c2, #231d1550 47%, #201913c2), url('/zemlekop.webp') center 53% / cover;
  filter: blur(13px);
}
.hero-photo { position: absolute; z-index: -1; inset: 0; width: min(100%, 56rem); height: 100%; margin: auto; object-fit: cover; object-position: center 54%; mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent); }
.hero::after { content: ''; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(180deg, #170f08b0, transparent 26%, transparent 62%, #ffffff57 80%, #fff 100%); }
.hero nav { position: relative; z-index: 1; display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: .75rem 1.6rem; padding: 1.5rem 1rem; color: white; font: 600 .875rem/1.4 var(--sans); }
.hero nav a { text-decoration: none; }
.hero nav a:hover { text-decoration: underline; }
.hero nav .nav-submit { padding: .52rem .88rem; border: 1px solid #ffffff80; border-radius: 2rem; }
main { width: min(100% - 3rem, 68rem); margin-inline: auto; }
section { scroll-margin-top: 1.6rem; }
h1, h2 { font-weight: normal; line-height: 1.08; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.8vw, 6rem); }
h2 { font-size: clamp(2.15rem, 4.7vw, 4rem); }
.about { position: relative; padding-top: .5rem; text-align: center; }
.about > p:not(.sources):not(.species) { max-width: 39rem; margin: 1.5rem auto 0; }
.species { color: #775746; font-style: italic; margin: 0 0 .45rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 2.8rem 0 1.2rem; padding: 1.65rem 0; border-block: 1px solid var(--line); text-align: left; }
.facts div { padding: 0 1.6rem; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: 1.58rem; line-height: 1.25; }
.facts dd { margin: .55rem 0 0; color: var(--muted); font-size: 1.03rem; }
.sources { margin: 0; color: var(--muted); font-size: .92rem; }
.collection { margin-top: clamp(4rem, 10vw, 7rem); text-align: center; }
.book { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 2.2rem auto 0; max-width: 57rem; border: 1px solid var(--line); border-radius: .22rem; overflow: hidden; background: var(--line); box-shadow: 0 11px 30px #4934260a; }
.page { min-width: 0; padding: 2.35rem clamp(1.3rem, 4.5vw, 4rem); text-align: left; display: flex; flex-direction: column; }
.book > .page, .book::after { background: var(--paper); }
.book:has(> .page:last-child:nth-child(odd))::after { content: ''; }
.ornament { color: #86624a; font-size: 1.35rem; line-height: 1; }
.verse { font-size: clamp(1rem, 2.1vw, 1.25rem); line-height: 1.6; overflow-wrap: anywhere; }
.verse p { margin: 1.15rem 0; }
.shared-verse { white-space: pre-wrap; margin: 1.15rem 0; }
.author { margin: auto 0 0; color: #6a4e3e; font-style: italic; overflow-wrap: anywhere; }
.submission { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); max-width: 57rem; margin: 4.5rem auto 0; border-top: 1px solid var(--line); padding-top: 2.5rem; }
.submission h2 { font-size: clamp(2rem, 4vw, 3rem); }
.submission p { color: var(--muted); }
form { display: grid; gap: .65rem; align-content: start; }
label { font: 600 .9rem/1.4 var(--sans); }
input, textarea { width: 100%; border: 1px solid #aa9d92; background: #fff; padding: .7rem .8rem; color: var(--ink); border-radius: .18rem; font: 1.0625rem/1.45 var(--sans); }
textarea { resize: vertical; }
form label:not(:first-child) { margin-top: .55rem; }
button { width: fit-content; min-height: 44px; margin-top: .38rem; border: 1px solid var(--earth); border-radius: .18rem; padding: .65rem 1.05rem; background: var(--earth); color: white; font: 600 .9rem/1.4 var(--sans); cursor: pointer; }
button:hover { background: #624936; }
button:disabled { opacity: .65; cursor: wait; }
.status { min-height: 1.3em; margin: 0; font-size: .94rem; }
footer { margin: 3.5rem auto 0; padding: 1.4rem 0 2rem; border-top: 1px solid var(--line); width: min(100% - 3rem, 68rem); display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .95rem; }
.moderation { margin-block: 2.5rem; max-width: 47rem; }
.moderation h1 { font-size: clamp(2.5rem, 7.5vw, 4.5rem); margin: 1.5rem 0; }
.queue { display: grid; gap: 1rem; }
.queue .page { background: var(--paper); border: 1px solid var(--line); padding: 1.25rem; }
.queue .page h2 { font-size: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.actions button:last-child { background: transparent; color: var(--earth); }
.moderation form { max-width: 27rem; margin-bottom: 1.2rem; }
@media (max-width: 42rem) {
  .hero { height: clamp(24rem, 68svh, 37rem); }
  .hero-photo { mask-image: none; object-position: center 53%; }
  .hero nav { gap: .55rem 1rem; padding-top: 1.1rem; }
  main, footer { width: calc(100% - 2rem); }
  .facts { grid-template-columns: 1fr; text-align: center; margin-top: 2rem; padding: 0; }
  .facts div { padding: .9rem .35rem; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .book, .submission { grid-template-columns: 1fr; }
  .book::after { display: none; }
  .page { padding: 1.5rem max(1.2rem, 6vw); }
  .desktop { display: none; }
  .submission { margin-top: 3.25rem; gap: .7rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.rules { padding: .8rem 1rem; border-left: 2px solid #9a765c; background: var(--paper); }
.rules strong { font: 600 .9rem/1.4 var(--sans); }
.rules p { margin: .2rem 0 0; font-size: 1rem; }
.count { justify-self: end; color: var(--muted); font: .875rem/1.4 var(--sans); }
footer { flex-wrap: wrap; }
#support-inbox, .moderation-section { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
#support-inbox h2, .moderation-section h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.moderation-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.15rem; }
.moderation-nav button { margin: 0; background: transparent; color: var(--earth); }
.moderation-nav button[aria-pressed="true"] { background: var(--earth); color: white; }
.moderation-section .actions button:only-child { background: var(--earth); color: white; }
