:root {
  color-scheme: light;
  --paper: #f5f1e6;
  --ink: #263a30;
  --muted: #647064;
  --line: #d5d9c9;
  --green: #244c3c;
  --accent: #bd5b36;
  --white: #fffcf5;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  border-radius: 5px;
  padding: 10px 17px;
  font-size: 0.9rem;
  font-weight: 600;
}
button:hover {
  filter: brightness(1.12);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.outline {
  background: transparent;
  color: var(--green);
}
.mast {
  max-width: 1320px;
  padding: 28px 42px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 25px;
}
.brand {
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: bold;
  letter-spacing: -1.5px;
  text-decoration: none;
  line-height: 1.1;
}
.brand span {
  color: var(--accent);
}
.brand small {
  display: block;
  letter-spacing: 2px;
  font:
    bold 9px Arial,
    sans-serif;
  margin-top: 12px;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav a {
  font-size: 0.85rem;
  text-decoration: none;
}
nav a:hover {
  text-decoration: underline;
}
main {
  max-width: 1236px;
  margin: auto;
  padding: 0 30px;
  min-height: 65vh;
}
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 2.3px;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--accent);
}
.hero {
  padding: 66px 0 44px;
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 70px;
  align-items: center;
}
.hero h1 {
  font:
    normal clamp(43px, 5.5vw, 73px)/1.05 Georgia,
    serif;
  letter-spacing: -2px;
  max-width: 750px;
  margin: 16px 0 24px;
}
.hero .lead {
  font-size: 1.08rem;
  max-width: 610px;
  color: var(--muted);
}
.edition-seal {
  border: 1px solid #b8c3ad;
  border-radius: 50%;
  width: 240px;
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #e8ecdd;
  position: relative;
}
.edition-seal:before {
  content: "✳";
  font: 60px Georgia;
  color: var(--accent);
  line-height: 1;
}
.edition-seal strong {
  font: 32px Georgia;
}
.edition-seal small {
  font-size: 11px;
  letter-spacing: 2px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 25px;
}
.button-link {
  display: inline-block;
  background: var(--green);
  color: white;
  border-radius: 5px;
  padding: 10px 18px;
  text-decoration: none;
  font-size: 0.9rem;
}
.stats {
  display: flex;
  gap: 35px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin-bottom: 42px;
  font-size: 0.8rem;
  color: var(--muted);
}
.stats strong {
  color: var(--ink);
  font: 26px Georgia;
  margin-right: 7px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}
.section-heading h2 {
  font: 32px Georgia;
  margin: 0;
}
.section-heading p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.theme-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 30px;
  position: relative;
  text-decoration: none;
  transition:
    transform 0.15s,
    border-color 0.15s;
  display: flex;
  gap: 23px;
}
.theme-card:hover {
  transform: translateY(-3px);
  border-color: var(--green);
}
.theme-number {
  font: italic 27px Georgia;
  color: var(--accent);
}
.theme-card h3 {
  font: 25px/1.2 Georgia;
  margin: 1px 0 12px;
}
.theme-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 14px;
}
.theme-card small {
  font-size: 0.7rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green);
}
.theme-card .arrow {
  margin-left: auto;
}
.reading-note {
  border-left: 3px solid var(--accent);
  padding: 4px 22px;
  margin: 40px 0;
  color: var(--muted);
  max-width: 850px;
  font-size: 0.9rem;
}
.breadcrumbs {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 0.8rem;
  color: var(--muted);
}
.reading-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 790px);
  gap: 65px;
  padding-bottom: 30px;
}
.sidebar {
  padding-top: 45px;
}
.sidebar-inner {
  position: sticky;
  top: 25px;
}
.sidebar h2 {
  font-size: 0.7rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 15px;
}
.sidebar a {
  display: block;
  text-decoration: none;
  font-size: 0.82rem;
  padding: 10px 12px;
  border-left: 2px solid var(--line);
  line-height: 1.45;
}
.sidebar a.active {
  border-color: var(--accent);
  background: #e9ebdf;
  color: var(--green);
  font-weight: bold;
}
.reading h1 {
  font: normal clamp(36px, 4.2vw, 56px)/1.12 Georgia;
  letter-spacing: -1.3px;
  margin: 15px 0 20px;
}
.reading-header {
  padding: 38px 0 32px;
  border-bottom: 1px solid var(--line);
}
.reading-header .lead {
  color: var(--muted);
  font-size: 1.05rem;
}
.topic {
  padding: 35px 0;
  border-bottom: 1px solid var(--line);
}
.topic h2 {
  font: 30px/1.22 Georgia;
  margin: 12px 0 15px;
}
.topic h2 a {
  text-decoration: none;
}
.topic-meta {
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.badge {
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: #e6ebdc;
  border: 1px solid #d0d8c4;
  border-radius: 3px;
  padding: 3px 8px;
  color: #3a563b;
}
.topic .news {
  font-size: 1.02rem;
  line-height: 1.8;
}
.limit {
  border-left: 2px solid var(--accent);
  padding-left: 15px;
  font-size: 0.88rem;
  color: #71604e;
}
.limit strong {
  color: var(--accent);
}
details {
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 22px 0;
  background: #eeeee3;
}
summary {
  cursor: pointer;
  padding: 12px 17px;
  font-size: 0.85rem;
  font-weight: bold;
}
details p {
  padding: 0 18px 5px;
  font-size: 0.92rem;
  color: var(--muted);
}
.sources {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.sources a {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 0.78rem;
  padding: 7px 12px;
  border-radius: 4px;
  text-decoration: none;
}
.topic-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.text-button {
  background: transparent;
  border: none;
  color: var(--green);
  padding: 4px 0;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.questions {
  background: #e7ebdd;
  padding: 22px 27px;
  border-radius: 7px;
  margin-top: 35px;
}
.questions h2 {
  font: 25px Georgia;
  margin-top: 0;
}
.questions li {
  font-size: 0.9rem;
  margin: 10px 0;
}
.discussion {
  margin: 45px 0;
}
.discussion h2 {
  font: 30px Georgia;
  margin-bottom: 8px;
}
.discussion .hint {
  font-size: 0.82rem;
  color: var(--muted);
}
.comment-form {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
label {
  font-size: 0.83rem;
  font-weight: 600;
}
input,
textarea {
  width: 100%;
  background: var(--white);
  color: var(--ink);
  border: 1px solid #aebaa3;
  border-radius: 5px;
  padding: 11px 13px;
}
textarea {
  min-height: 115px;
  resize: vertical;
}
.form-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.comment {
  border-top: 1px solid var(--line);
  padding: 19px 0;
  overflow-wrap: anywhere;
}
.comment .byline {
  font-size: 0.78rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.comment .pubkey {
  font: 11px monospace;
  color: var(--muted);
}
.comment .body {
  white-space: pre-wrap;
  font-size: 0.92rem;
  margin: 10px 0;
}
.comment .reply-to {
  font-size: 0.74rem;
  color: var(--muted);
}
.comment .controls {
  display: flex;
  gap: 20px;
}
.removed {
  font-style: italic;
  color: var(--muted);
}
.reply-indicator {
  font-size: 0.85rem;
  color: var(--accent);
}
.glossary {
  max-width: 800px;
  margin: 40px auto 70px;
}
.glossary h1 {
  font: 56px Georgia;
}
.glossary dt {
  font: 24px Georgia;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.glossary dd {
  margin: 10px 0 0;
  color: var(--muted);
}
footer {
  max-width: 1236px;
  border-top: 1px solid var(--line);
  padding: 30px;
  margin: 65px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  color: var(--muted);
}
footer .brand {
  font-size: 24px;
}
footer p {
  font-size: 0.75rem;
  margin: 0;
}
#version {
  font-size: 0.65rem;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  padding: 28px;
  width: min(94vw, 460px);
  max-height: 90vh;
}
dialog::backdrop {
  background: #172b23aa;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}
.dialog-head h2 {
  font: 30px/1.2 Georgia;
  margin: 0;
}
.close {
  background: none;
  color: var(--ink);
  border: 0;
  font: 28px Georgia;
  padding: 0 7px;
}
dialog p {
  font-size: 0.9rem;
}
dialog input {
  margin: 8px 0 15px;
}
dialog > button {
  width: 100%;
}
.divider {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 10px;
}
.fine {
  font-size: 0.75rem;
  color: var(--muted);
}
#login-error {
  color: #973822;
}
#share-qr {
  display: block;
  margin: 20px auto;
  border: 10px solid white;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  max-width: 90vw;
  display: none;
  font-size: 0.85rem;
}
.skip {
  position: absolute;
  top: -80px;
}
.skip:focus {
  top: 5px;
  background: white;
  z-index: 10;
  padding: 10px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.loading {
  padding: 70px 0;
}
.error {
  color: #973822;
}
@media (max-width: 850px) {
  .mast {
    padding: 23px 25px;
  }
  .mast nav {
    gap: 16px;
  }
  .hero {
    gap: 30px;
    grid-template-columns: 1fr 200px;
  }
  .edition-seal {
    width: 190px;
    height: 190px;
  }
  .reading-layout {
    gap: 30px;
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .theme-card {
    padding: 22px;
    gap: 15px;
  }
  .theme-card h3 {
    font-size: 23px;
  }
  footer {
    flex-wrap: wrap;
  }
  .stats {
    gap: 22px;
  }
}
@media (max-width: 600px) {
  .mast {
    padding: 21px 20px;
    align-items: start;
    gap: 15px;
  }
  .brand {
    font-size: 27px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1.1px;
  }
  .mast nav {
    justify-content: end;
    gap: 8px 16px;
    flex-wrap: wrap;
    max-width: 190px;
  }
  .mast nav a {
    font-size: 0.74rem;
  }
  .mast nav button {
    font-size: 0.72rem;
    padding: 7px 10px;
  }
  main {
    padding: 0 20px;
  }
  .hero {
    padding: 40px 0 28px;
    display: block;
  }
  .hero h1 {
    font-size: 49px;
  }
  .hero .lead {
    font-size: 1rem;
  }
  .edition-seal {
    display: none;
  }
  .stats {
    gap: 17px;
    justify-content: space-between;
    margin-bottom: 30px;
    font-size: 0.65rem;
  }
  .stats strong {
    font-size: 23px;
    display: block;
  }
  .section-heading {
    display: block;
  }
  .section-heading h2 {
    font-size: 29px;
  }
  .section-heading p {
    margin-top: 8px;
  }
  .theme-grid {
    grid-template-columns: 1fr;
  }
  .theme-card {
    padding: 24px 21px;
  }
  .theme-card h3 {
    font-size: 25px;
  }
  .reading-layout {
    display: block;
  }
  .sidebar {
    padding-top: 25px;
  }
  .sidebar-inner {
    position: static;
  }
  .sidebar h2 {
    display: none;
  }
  .sidebar a {
    display: none;
  }
  .sidebar a.active {
    display: block;
  }
  .reading-header {
    padding-top: 28px;
  }
  .reading h1 {
    font-size: 38px;
  }
  .topic h2 {
    font-size: 29px;
  }
  .topic {
    padding: 28px 0;
  }
  .questions {
    padding: 20px;
  }
  .questions ul {
    padding-left: 18px;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  footer {
    padding: 25px 20px;
    margin-top: 40px;
    gap: 20px;
  }
  footer p {
    font-size: 0.7rem;
  }
  dialog {
    padding: 23px;
  }
  #share-url {
    font-size: 0.75rem;
  }
  .glossary h1 {
    font-size: 43px;
  }
  .breadcrumbs {
    font-size: 0.72rem;
  }
}

.agenda-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0 18px 17px;
  font-size: 0.85rem;
}
