:root {
  --ink: #151515;
  --paper: #f8f5ee;
  --paper-2: #fbf8f1;
  --white: #ffffff;
  --burgundy: #6e2722;
  --line: #e6e0d6;
  --muted: #4a4a4a;
  --gold: #af5650;
  --serif: "Noto Sans", "Segoe UI", sans-serif;
  --sans: "Noto Sans", "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("/images/bg.jpg");
  background-repeat: repeat;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

a { color: var(--burgundy); }
a:hover { color: #4e1d1c; }

img {
  max-width: 100%;
  height: auto;
}

/* Safari/iOS: global max-width breaks absolutely positioned fill images. */
.hero-img,
.writing-cover img,
.avatar img,
.issue-cover img {
  max-width: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: white;
  padding: .4rem .7rem;
  z-index: 50;
}
.skip-link:focus { top: .5rem; color: white; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: #f8f5ee;
  background-image: url("/images/bg.jpg");
  background-repeat: repeat;
  border-bottom: 3px solid var(--burgundy);
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 5.2rem;
  padding-top: .85rem;
  padding-bottom: .7rem;
}
.header-social { justify-self: start; }
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  text-decoration: none;
  color: var(--burgundy);
}
.brand:hover { color: var(--burgundy); }
.brand-logo {
  display: block;
  height: 3.35rem;
  width: auto;
  max-width: min(18rem, 70vw);
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  border: 1.5px solid var(--burgundy);
  border-radius: .5rem;
  background: var(--white);
  color: var(--burgundy);
  cursor: pointer;
}
.menu-toggle:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(110, 39, 34, .18);
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.menu-toggle-bars {
  position: relative;
}
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle-bars::before { top: -.35rem; }
.menu-toggle-bars::after { top: .35rem; }

.nav-search {
  display: flex;
  align-items: center;
  justify-self: end;
  width: min(18rem, 34vw);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .12rem .12rem .12rem .85rem;
}
.nav-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  padding: .28rem 0;
}
.nav-search input:focus { outline: none; }
.nav-search input::placeholder { color: #8a8178; }
.nav-search button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.05rem;
  height: 2.05rem;
  border: 0;
  border-radius: 50%;
  background: var(--burgundy);
  color: white;
}
.nav-search button:hover { background: #541c19; }
.nav-search svg { width: 1rem; height: 1rem; }

.site-menu {
  border-top: 1px solid var(--line);
  padding: 0;
}
.site-menu .navbar-collapse { justify-content: center; }
.menu-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .2rem .15rem;
  width: 100%;
  margin: 0;
  padding: .35rem 0 .5rem;
}
.menu-row .nav-item {
  display: flex;
  align-items: center;
}
.menu-row .nav-item:not(:last-child)::after {
  content: "";
  width: 1px;
  height: .72rem;
  background: rgba(110, 39, 34, .35);
  flex: 0 0 auto;
}
.menu-row .nav-link {
  color: var(--ink);
  font-size: .84rem;
  font-weight: 650;
  letter-spacing: .02em;
  white-space: nowrap;
  border-radius: 999px;
  padding: .45rem .78rem;
}
.menu-row .nav-link:hover {
  color: var(--burgundy);
  background: rgba(110, 39, 34, .08);
}
.menu-row .nav-link.active {
  color: white;
  background: var(--burgundy);
}
.menu-row .nav-item.dropdown {
  position: relative;
}
.menu-row .nav-item.dropdown::after {
  align-self: center;
}
.menu-row .dropdown-toggle::after {
  margin-left: .35rem;
  vertical-align: .15em;
}
.hejmar-menu {
  --bs-dropdown-min-width: 11rem;
  --bs-dropdown-padding-y: .35rem;
  --bs-dropdown-bg: var(--burgundy);
  --bs-dropdown-border-color: transparent;
  --bs-dropdown-border-radius: .35rem;
  --bs-dropdown-link-color: #fff;
  --bs-dropdown-link-hover-color: #fff;
  --bs-dropdown-link-hover-bg: rgba(255, 255, 255, .12);
  --bs-dropdown-link-active-color: #fff;
  --bs-dropdown-link-active-bg: rgba(255, 255, 255, .2);
  margin-top: .35rem !important;
  box-shadow: 0 10px 28px rgba(40, 16, 14, .28);
}
.hejmar-menu .dropdown-item {
  font-size: .86rem;
  font-weight: 600;
  padding: .45rem .9rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--burgundy);
  text-decoration: none;
}
.social-links a:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: white;
}
.social-links svg { width: 1.05rem; height: 1.05rem; }
.mobile-social { justify-content: center; padding: .2rem 0 .9rem; }

.search-form {
  display: flex;
  gap: .6rem;
  margin-bottom: 1.2rem;
  max-width: 40rem;
}
.search-form input {
  flex: 1;
  border: 1px solid #d9d0c4;
  background: var(--white);
  border-radius: .4rem;
  padding: .6rem .8rem;
  font: inherit;
}
.search-form input:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 .2rem rgba(110, 39, 34, .15);
}
.search-count { margin: -.4rem 0 1rem; }
.search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.search-list li + li { margin-top: .75rem; }
.search-list a {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.search-list a:hover { border-color: var(--burgundy); }
.search-list strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--ink);
}
.search-list .summary { color: #3f3933; }

.page-wrap {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
  padding-left: clamp(1.25rem, 5vw, 2rem);
  padding-right: clamp(1.25rem, 5vw, 2rem);
}
.page-wrap.narrow,
.page-wrap.reading,
.page-wrap.comment-section,
.page-wrap.reading-more {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.reading-more { padding-top: 0; }

.page-head { margin-bottom: 2rem; max-width: 40rem; }
.page-head h1, .reading h1, .hero-caption h1, .hero-fallback h1 {
  font-family: var(--serif);
  font-weight: 680;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.page-head h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0 0 .6rem; }
.page-head p:last-child { color: var(--muted); margin: 0; }

.kicker {
  margin: 0 0 .35rem;
  color: var(--burgundy);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.kicker.light { color: #f0d7c8; }

.hero {
  position: relative;
  background: #2a241c;
  padding: 0;
}
.hero-frame {
  position: relative;
  width: 100%;
  margin: 0;
}
.hero-slide { display: block; }
.hero-stage {
  position: relative;
  width: 100%;
  height: clamp(12.5rem, 24vw, 22rem);
  background: #3b221d;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: .4rem;
  padding: 1.1rem max(1.75rem, calc((100vw - 70rem) / 2 + 1.5rem)) 1.35rem;
  background: linear-gradient(90deg, rgba(20, 12, 10, .72) 0%, rgba(20, 12, 10, .42) 42%, rgba(20, 12, 10, .12) 72%, rgba(20, 12, 10, .05) 100%);
  color: #f6f1ea;
  box-sizing: border-box;
}
.hero-kicker {
  margin: 0;
  color: #c6a36a;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-title {
  margin: 0;
  max-width: min(28rem, 100%);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: #f6f1ea;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .28);
}
.hero-sub {
  margin: 0;
  max-width: min(34rem, 100%);
  color: rgba(246, 241, 234, .82);
  font-size: clamp(.92rem, 1.3vw, 1.02rem);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-cta {
  display: inline-flex;
  margin-top: .45rem;
  color: #c6a36a;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(198, 163, 106, .85);
  padding-bottom: .1rem;
}
.hero-media:hover .hero-cta {
  color: #f0d7b0;
  border-bottom-color: #f0d7b0;
}
.hero-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .85rem;
  pointer-events: none;
  z-index: 2;
}
.hero-arrow {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border: 1px solid rgba(246, 241, 234, .55);
  border-radius: 50%;
  background: rgba(21, 21, 21, .34);
  color: #f6f1ea;
}
.hero-arrow svg { width: 1.15rem; height: 1.15rem; }
.hero-arrow:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: .9rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  pointer-events: none;
  z-index: 2;
}
.hero-dots .carousel-indicators,
.hero-dots .hero-pause { pointer-events: auto; }
.hero .carousel-indicators {
  position: static;
  margin: 0;
  gap: .35rem;
}
.hero .carousel-indicators [data-bs-target] {
  width: 1.15rem;
  height: 2px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(246, 241, 234, .45);
  opacity: 1;
}
.hero .carousel-indicators .active { width: 2rem; background: #c6a36a; }
.hero-pause {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: 0;
  border-radius: .3rem;
  background: rgba(21, 21, 21, .28);
  color: #f6f1ea;
}
.hero-pause svg { width: .85rem; height: .85rem; }
.hero-pause .icon-play { display: none; }
.hero.is-paused .hero-pause .icon-pause { display: none; }
.hero.is-paused .hero-pause .icon-play { display: block; }
.hero-fallback { padding: 4.5rem 0 3.5rem; background: #6e2722; color: white; }
.hero-fallback h1 { font-size: clamp(3rem, 7vw, 5rem); margin: 0; }
.hero-fallback .kicker { color: #ffceca; }
.btn-brand {
  background: var(--burgundy);
  border: 0;
  color: white;
  font-weight: 700;
}
.btn-brand:hover { background: #541c19; color: white; }

.home-block { margin-top: 0; }
.hero + .page-wrap {
  padding-top: 1.35rem;
}
.hero-fallback + .page-wrap {
  padding-top: 1.75rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.4rem;
  padding-bottom: .45rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin: 0;
}
.section-head a { text-decoration: none; font-weight: 650; white-space: nowrap; }

.latest-issue {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}
.latest-issue h3 {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0 0 .4rem;
}
.issue-cover {
  display: block;
  background: #2c211c;
  color: white;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.issue-cover img { width: 100%; height: 100%; object-fit: cover; }
.issue-cover span {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--serif);
  font-size: 3rem;
}
.issue-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.issue-head h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin: 0 0 .5rem;
}

.plain-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.plain-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-top: 1px solid var(--line);
}
.plain-list a { color: var(--ink); font-weight: 650; text-decoration: none; }
.plain-list a:hover { color: var(--burgundy); }
.plain-list span { color: var(--muted); font-size: .92rem; }

.writing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.writing-card { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.writing-card:hover {
  border-color: var(--burgundy);
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 .45rem 1.1rem rgba(110, 39, 34, .12);
}
.writing-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #6e2722;
  color: #fbf8f1;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.writing-card.portrait .writing-cover { aspect-ratio: 3 / 4; }
.writing-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
}
.writing-cover span {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 2.4rem;
}
.writing-body { padding: 1rem 1rem 1.15rem; }
.writing-body h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 .45rem;
}
.writing-body .summary, .writing-body .meta { margin: 0; }
.writing-body .summary {
  color: #3f3933;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta { color: var(--muted); font-size: .92rem; }
.meta a { color: var(--ink); text-decoration: none; }
.meta a:hover { color: var(--burgundy); }

.letter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1.6rem;
}
.letter-bar a,
.letter-bar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.05rem;
  height: 2.05rem;
  padding: 0 .35rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: var(--white);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}
.letter-bar a { color: var(--ink); }
.letter-bar a:hover,
.letter-bar a.active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: white;
}
.name-list {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 3;
  column-gap: 2.5rem;
}
.name-list li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.name-list a {
  display: block;
  padding: .6rem 0;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.name-list a:hover { color: var(--burgundy); }
.author-life {
  max-width: 760px;
  margin-bottom: 2.2rem;
}
.author-life h2,
.writing-label {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 .8rem;
}
.writing-label { margin-top: .2rem; }

.author-card, .author-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.author-card {
  height: 100%;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.author-card:hover { border-color: var(--burgundy); color: inherit; }
.author-card strong { display: block; font-family: var(--serif); font-size: 1.25rem; }
.author-card small {
  display: block;
  margin-top: .35rem;
  color: var(--muted);
  line-height: 1.45;
}
.author-head { margin-bottom: 2rem; }
.author-head h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 .6rem;
}

.avatar {
  width: 4.2rem;
  height: 4.2rem;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #6e2722;
  color: white;
  font-family: var(--serif);
}
.avatar.lg { width: 6.5rem; height: 6.5rem; font-size: 1.6rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .92rem;
}
.chip.active, .chip:hover { background: var(--burgundy); color: white; border-color: var(--burgundy); }

.reading { --body: 1.12rem; --lead: 1.2rem; }
.reading[data-size="-1"] { --body: 1rem; --lead: 1.08rem; }
.reading[data-size="1"] { --body: 1.28rem; --lead: 1.36rem; }
.reading[data-size="2"] { --body: 1.46rem; --lead: 1.54rem; }
.reading[data-size="3"] { --body: 1.64rem; --lead: 1.72rem; }
.reading .subtitle {
  margin: -.35rem 0 1rem;
  font-size: 1.2rem;
  line-height: 1.45;
  color: #4a423a;
  font-weight: 500;
}
.reading h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin: 0 0 .7rem;
}
.lead-text { font-size: 1.2rem; color: #3c342c; }
.reading .lead-text { font-size: var(--lead); margin: 1rem 0 1.35rem; }
.cover-wide {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 600px;
  height: auto;
  margin: 1.1rem auto 1.35rem;
  object-fit: contain;
  border: 0;
}
.reading .prose,
.prose {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.prose p {
  margin: 0 0 1.15rem;
  font-size: var(--body, 1.12rem);
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
}
.reading .lead-text,
.reading .prose {
  text-align: justify;
  text-justify: inter-word;
}
.prose h2 { font-size: 1.45rem; line-height: 1.3; margin: 1.6rem 0 .7rem; }
.prose h3 { font-size: 1.2rem; line-height: 1.35; margin: 1.35rem 0 .55rem; }
.prose ul, .prose ol { margin: 0 0 1.15rem; padding-left: 1.35rem; font-size: var(--body, 1.12rem); line-height: 1.8; }
.prose blockquote { margin: 0 0 1.15rem; padding: .15rem 0 .15rem 1rem; border-left: 3px solid var(--burgundy); color: #3a332c; }
.prose a { color: var(--burgundy); }
.prose img,
.prose table,
.prose pre,
.prose iframe {
  max-width: 100%;
  height: auto;
}
.prose img,
.prose img.content-img {
  display: block;
  max-width: min(100%, 42rem);
  margin: 1.15rem 0;
  border-radius: .2rem;
}
.prose img.is-center,
.prose .ql-align-center img {
  margin-left: auto;
  margin-right: auto;
}
.prose img.is-left,
.prose .ql-align-left img {
  margin-right: auto;
}
.prose img.is-right,
.prose .ql-align-right img {
  margin-left: auto;
}
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-indent-1 { padding-left: 1.5rem; }
.prose .ql-indent-2 { padding-left: 3rem; }
.prose .ql-indent-3 { padding-left: 4.5rem; }
.prose figure {
  margin: 1.15rem 0;
}
.prose figcaption {
  margin-top: .4rem;
  color: #5a534c;
  font-size: .95rem;
  font-style: italic;
}
.reading-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin: 1.1rem 0 1.4rem;
  padding: .55rem .7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: .6rem;
}
.tool-group { display: flex; align-items: center; gap: .4rem; }
.tools-label {
  margin-right: .15rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tool-group button,
.tool-group a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--burgundy);
  text-decoration: none;
  padding: 0;
}
.tool-group button { font-weight: 700; font-size: .95rem; line-height: 1; }
.tool-group svg { width: 1.05rem; height: 1.05rem; }
.tool-group button:hover,
.tool-group a:hover { background: var(--burgundy); border-color: var(--burgundy); color: white; }
.tool-group button:disabled { opacity: .4; cursor: not-allowed; background: var(--paper); color: var(--muted); border-color: var(--line); }
.copy-note {
  flex: 1 0 100%;
  margin: 0;
  color: var(--burgundy);
  font-size: .92rem;
  font-weight: 650;
}
.back-link { margin-top: 2rem; }

.comment-section { padding-top: 0; }
.comment-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.comment-item {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem 1.05rem;
}
.comment-item.is-admin {
  background: rgba(110, 39, 34, .04);
  border-color: rgba(110, 39, 34, .22);
}
.comment-meta {
  margin: 0 0 .55rem;
  color: var(--muted);
  font-size: .92rem;
}
.comment-meta strong { color: var(--ink); }
.comment-badge {
  display: inline-block;
  margin-left: .25rem;
  padding: .1rem .45rem;
  border-radius: .25rem;
  background: var(--burgundy);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.comment-body {
  white-space: pre-wrap;
  line-height: 1.7;
}
.comment-replies {
  list-style: none;
  margin: .9rem 0 0;
  padding: .9rem 0 0 .85rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .75rem;
}
.comment-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem 1.2rem 1.4rem;
}
.comment-form-card h3 {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
}
.check-input { max-width: 8rem; }

.stack-form .form-control {
  background: var(--white);
  border-color: #d9d0c4;
}
.stack-form .form-control:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 .2rem rgba(109, 44, 42, .15);
}
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.4rem 1.25rem 1.5rem;
}
.contact-address { line-height: 1.7; }
.contact-line {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  margin: 0 0 .85rem;
}
.contact-line span {
  color: var(--burgundy);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-line a { font-weight: 650; text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }
.check-input { max-width: 7rem; }

.empty-note { color: var(--muted); }

.btn-dark, .page-item.active .page-link {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: white;
}
.btn-dark:hover { background: #541c19; border-color: #541c19; }
.btn:focus, .nav-link:focus, .form-control:focus {
  box-shadow: 0 0 0 .2rem rgba(109, 44, 42, .18);
}

.pager { margin-top: 1.8rem; }
.page-link { color: var(--burgundy); }

.site-footer {
  background-color: #fbf8f1;
  background-image: url("/images/bg.jpg");
  background-repeat: repeat;
  color: var(--ink);
  padding: 2.6rem 0 1.3rem;
  border-top: 3px solid var(--burgundy);
}
.site-footer a { display: block; color: var(--ink); text-decoration: none; margin-bottom: .35rem; }
.site-footer a:hover { color: var(--burgundy); }
.site-footer .social-links a {
  display: inline-flex;
  margin-bottom: 0;
  color: var(--burgundy);
}
.site-footer .social-links a:hover { color: white; }
.footer-logo-link { display: inline-block; margin-bottom: .55rem; }
.footer-logo {
  display: block;
  height: 2.5rem;
  width: auto;
}
.footer-title {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.footer-copy {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
}

.scroll-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--burgundy);
  color: #fff;
  box-shadow: 0 8px 22px rgba(40, 16, 14, .22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(.4rem);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .15s ease;
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.scroll-top:hover { background: #541c19; }
.scroll-top svg { width: 1.2rem; height: 1.2rem; }
.scroll-top[hidden] { display: none !important; }

@media (max-width: 991.98px) {
  .header-top {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "search search";
    min-height: 0;
    gap: .75rem 1rem;
    padding-top: .75rem;
    padding-bottom: .85rem;
  }
  .header-social { display: none; }
  .brand {
    grid-area: brand;
    justify-self: start;
    align-items: flex-start;
  }
  .brand-logo { height: 2.85rem; }
  .menu-toggle {
    grid-area: toggle;
    display: inline-flex;
    justify-self: end;
    align-self: center;
  }
  .nav-search {
    grid-area: search;
    justify-self: stretch;
    width: 100%;
  }
  .site-menu .navbar-collapse {
    border-top: 1px solid var(--line);
    margin-top: .15rem;
    padding-bottom: .35rem;
  }
  .menu-row {
    flex-direction: column;
    align-items: stretch;
    padding-top: .35rem;
  }
  .menu-row .nav-item { flex-direction: column; align-items: stretch; }
  .menu-row .nav-item:not(:last-child)::after {
    width: 2.4rem;
    height: 1px;
    margin: .2rem auto 0;
  }
  .menu-row .nav-link {
    border-radius: .4rem;
    padding: .7rem .75rem;
  }
  .hejmar-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    margin-top: .25rem !important;
    box-shadow: none;
  }

  .search-form { flex-direction: column; }
  .name-list { column-count: 2; }
  .hero-arrow {
    width: 2.25rem;
    height: 2.25rem;
  }
}

@media (max-width: 767px) {
  .page-wrap {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }
  .hero-stage { height: clamp(12.5rem, 48vw, 16.5rem); }
  .hero-overlay {
    justify-content: flex-end;
    padding: 1rem 1.35rem 1.2rem;
    background: linear-gradient(180deg, rgba(20, 12, 10, .12) 0%, rgba(20, 12, 10, .55) 55%, rgba(20, 12, 10, .78) 100%);
  }
  .hero-controls { padding: 0 .55rem; }
  .hero-dots { bottom: .7rem; }
  .reading h1 { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .reading-tools {
    gap: .65rem;
    padding: .55rem .65rem;
  }
  .latest-issue, .issue-head { grid-template-columns: 1fr; }
  .issue-cover { max-width: 220px; }
  .plain-list li { flex-direction: column; gap: .15rem; }
  .name-list { column-count: 1; }
  .brand-logo { height: 2.5rem; }
  .scroll-top {
    width: 2.55rem;
    height: 2.55rem;
    right: .85rem;
    bottom: .85rem;
  }
}
