/*
Theme Name: Finsternacht
Author: Finsternacht
Description: Ein atmosphärisches, responsives WordPress-Theme für das interaktive Rollenspiel Finsternacht.
Version: 2.2.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: finsternacht
*/

:root {
  --ink: #090b0b;
  --ink-soft: #101313;
  --ink-lift: #171a19;
  --fog: #d8d4c8;
  --paper: #ebe7dc;
  --bone: #f4f0e6;
  --muted: #a8a69e;
  --blood: #a92121;
  --blood-bright: #d13b32;
  --line: rgba(235, 231, 220, 0.16);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content: 1180px;
  --reading: 760px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fog);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 9999;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

::selection {
  background: var(--blood);
  color: #fff;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--bone);
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 8vw, 7.5rem);
}

h2 {
  font-size: clamp(2.25rem, 5vw, 4.8rem);
}

h3 {
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
}

p {
  margin: 0 0 1.4rem;
}

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

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: var(--bone);
  color: var(--ink);
}

.site-shell {
  width: min(100%, calc(var(--content) + (2 * var(--gutter))));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: absolute;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header__inner {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-branding::before {
  width: 8px;
  height: 8px;
  margin-right: 0.8rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
  content: "";
}

.custom-logo-link {
  display: flex;
  max-width: 210px;
  align-items: center;
}

.custom-logo {
  max-height: 54px;
  width: auto;
}

.primary-menu {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.3rem);
  list-style: none;
}

.primary-menu a {
  position: relative;
  color: #e9e7e0;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-menu a::after {
  position: absolute;
  right: 0;
  bottom: -0.6rem;
  left: 0;
  height: 1px;
  background: var(--blood-bright);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 25px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: max(720px, 100svh);
  overflow: hidden;
  align-items: end;
  background: #0a0c0d url("assets/images/hero-cinematic-v2.webp") center center / cover no-repeat;
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(5, 7, 7, 0.94) 0%, rgba(5, 7, 7, 0.62) 39%, rgba(5, 7, 7, 0.08) 70%),
    linear-gradient(0deg, var(--ink) 0%, transparent 36%);
}

.hero::after {
  opacity: 0.2;
  background: radial-gradient(circle at 65% 45%, transparent 0 18%, #060707 74%);
}

.hero__content {
  width: min(760px, 78vw);
  padding-top: 9rem;
  padding-bottom: clamp(5rem, 10vh, 8rem);
}

.eyebrow {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: center;
  gap: 0.8rem;
  color: var(--blood-bright);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.8rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 1.4rem;
  text-shadow: 0 3px 30px #000;
}

.hero h1 em {
  color: var(--muted);
  font-weight: 400;
}

.hero__lead {
  max-width: 610px;
  margin-bottom: 2.2rem;
  color: #c9c7c1;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0.9rem 1.45rem;
  border: 1px solid var(--blood-bright);
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--blood);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button::after {
  content: "→";
  font-size: 1.1rem;
  transition: transform 180ms ease;
}

.button:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-2px);
}

.button:hover::after {
  transform: translateX(4px);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.button--ghost:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.current-edition {
  overflow: hidden;
  border-block: 1px solid rgba(209, 59, 50, 0.35);
  background:
    radial-gradient(circle at 8% 50%, rgba(169, 33, 33, 0.2), transparent 33%),
    var(--ink-soft);
}

.current-edition__grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 9rem);
}

.current-edition__visual {
  position: relative;
  min-height: clamp(430px, 46vw, 570px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #090b0b;
}

.current-edition__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 7, 7, 0.7), transparent 55%);
  content: "";
}

.current-edition__visual > img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.68) contrast(1.06);
}

.edition-mark {
  position: relative;
  display: grid;
  width: min(100%, 320px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.17);
  place-items: center;
  text-align: center;
}

.current-edition__visual .edition-mark {
  position: absolute;
  z-index: 1;
  bottom: -1px;
  left: -1px;
  width: min(58%, 260px);
  background: rgba(9, 11, 11, 0.84);
  backdrop-filter: blur(8px);
}

.edition-mark::before,
.edition-mark::after {
  position: absolute;
  width: 18px;
  height: 18px;
  content: "";
}

.edition-mark::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--blood-bright);
  border-left: 1px solid var(--blood-bright);
}

.edition-mark::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid var(--blood-bright);
  border-bottom: 1px solid var(--blood-bright);
}

.edition-mark__label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.edition-mark__year {
  display: block;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(3.8rem, 8vw, 6.8rem);
  font-style: italic;
  line-height: 0.9;
}

.current-edition__content h2 {
  margin-bottom: 1.2rem;
}

.current-edition__lead {
  max-width: 680px;
  color: #b8b7b0;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.current-edition__page {
  max-width: 680px;
  color: #b8b7b0;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.current-edition__page > :last-child {
  margin-bottom: 0;
}

.current-edition__page h2,
.current-edition__page h3,
.current-edition__page h4 {
  margin: 1.5em 0 0.6em;
  color: var(--bone);
  font-size: 1.3em;
}

.current-edition__page a {
  color: var(--bone);
  text-decoration-color: var(--blood-bright);
}

.current-edition__page ul,
.current-edition__page ol {
  padding-left: 1.3em;
}

.current-edition__page .wp-block-image {
  margin-block: 1.5rem;
}

.event-facts {
  display: grid;
  margin: 2.5rem 0;
  padding: 0;
  border-block: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}

.event-facts li {
  padding: 1.2rem 1.5rem 1.2rem 0;
}

.event-facts li + li {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.event-facts span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--blood-bright);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.event-facts strong {
  color: var(--bone);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
}

.ticket-note {
  margin: 1rem 0 0;
  color: #777c79;
  font-size: 0.78rem;
}

.hero__index {
  position: absolute;
  right: var(--gutter);
  bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #aaa;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero__index::after {
  width: 1px;
  height: 4rem;
  background: rgba(255, 255, 255, 0.45);
  content: "";
}

.section {
  position: relative;
  padding-block: clamp(5rem, 11vw, 10rem);
}

.section--paper {
  overflow: hidden;
  background: var(--paper);
  color: #262927;
}

.section--paper h2,
.section--paper h3 {
  color: #121414;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(3rem, 9vw, 9rem);
}

.section-number {
  display: block;
  margin-bottom: 4rem;
  color: var(--blood);
  font-family: var(--display);
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.12em;
}

.section-number::after {
  display: inline-block;
  width: 5rem;
  height: 1px;
  margin-left: 1rem;
  vertical-align: middle;
  background: currentColor;
  content: "";
}

.intro-grid h2 {
  margin-bottom: 0;
}

.intro-copy {
  padding-top: clamp(1rem, 5vw, 5rem);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.intro-copy p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--blood);
  font-family: var(--display);
  font-size: 5em;
  line-height: 0.72;
}

.moon-mark {
  position: absolute;
  right: -10rem;
  bottom: -15rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(9, 11, 11, 0.08);
  border-radius: 50%;
}

.moon-mark::before,
.moon-mark::after {
  position: absolute;
  border: 1px solid rgba(9, 11, 11, 0.06);
  border-radius: 50%;
  content: "";
}

.moon-mark::before {
  inset: 3rem;
}

.moon-mark::after {
  inset: 7rem;
}

.experience__heading {
  display: grid;
  margin-bottom: clamp(3rem, 7vw, 6rem);
  grid-template-columns: 1fr minmax(250px, 0.55fr);
  align-items: end;
  gap: 3rem;
}

.experience__heading h2 {
  max-width: 780px;
  margin: 0;
}

.experience__heading p {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.traits {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.trait {
  position: relative;
  min-height: 310px;
  padding: 2.3rem clamp(1.5rem, 3vw, 2.7rem);
  border-right: 1px solid var(--line);
  transition: background 250ms ease, transform 250ms ease;
}

.trait:last-child {
  border-right: 0;
}

.trait:hover {
  background: var(--ink-lift);
  transform: translateY(-5px);
}

.trait__icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 4rem;
  border: 1px solid rgba(209, 59, 50, 0.7);
  border-radius: 50%;
  place-items: center;
  color: var(--blood-bright);
  font-family: var(--display);
  font-size: 1.2rem;
  font-style: italic;
}

.trait h3 {
  margin-bottom: 1rem;
}

.trait p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.story {
  overflow: hidden;
}

.story::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
  opacity: 0.5;
  background: radial-gradient(circle at 60% 45%, rgba(169, 33, 33, 0.22), transparent 55%);
  content: "";
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(4rem, 10vw, 11rem);
}

.story__sticky {
  position: sticky;
  top: 3rem;
  align-self: start;
}

.story__sticky h2 {
  margin-bottom: 1.5rem;
}

.story__sticky > p {
  max-width: 430px;
  color: var(--muted);
}

.story-steps {
  margin: 0;
  padding: 0;
  counter-reset: story;
  list-style: none;
}

.story-step {
  position: relative;
  padding: 0 0 4.5rem 4.8rem;
  counter-increment: story;
}

.story-step:not(:last-child)::before {
  position: absolute;
  top: 2.7rem;
  bottom: 0.5rem;
  left: 1.25rem;
  width: 1px;
  background: linear-gradient(var(--blood), rgba(169, 33, 33, 0.1));
  content: "";
}

.story-step::after {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid var(--blood);
  border-radius: 50%;
  place-items: center;
  color: var(--blood-bright);
  content: "0" counter(story);
  font-family: var(--display);
  font-size: 0.72rem;
}

.story-step h3 {
  margin-bottom: 0.8rem;
}

.story-step p {
  margin: 0;
  color: var(--muted);
}

.quote-section {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-block: 1px solid rgba(9, 11, 11, 0.1);
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

.archive-section {
  overflow: hidden;
}

.archive-heading {
  display: grid;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.55fr);
  align-items: end;
  gap: 3rem;
}

.archive-heading h2 {
  max-width: 820px;
  margin: 0;
}

.archive-heading__copy {
  margin: 0 0 0.5rem;
  color: #5f625e;
}

.event-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.event-card {
  display: flex;
  min-width: 0;
  border: 1px solid rgba(9, 11, 11, 0.15);
  background: #ded9cc;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.event-card:hover {
  box-shadow: 0 20px 60px rgba(9, 11, 11, 0.16);
  transform: translateY(-7px);
}

.event-card__media {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 60% 45%, rgba(255, 255, 255, 0.15), transparent 24%),
    #171a19;
  place-items: center;
}

.event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transition: filter 250ms ease, transform 400ms ease;
}

.event-card:hover .event-card__media img {
  filter: grayscale(0.35) contrast(1.05);
  transform: scale(1.035);
}

.event-card__fallback {
  color: rgba(255, 255, 255, 0.18);
  font-family: var(--display);
  font-size: 5rem;
  font-style: italic;
}

.event-card__year {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.65rem;
  background: var(--blood);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.event-card__body {
  display: flex;
  padding: 1.7rem;
  flex: 1;
  flex-direction: column;
}

.event-card h3,
.event-card h2 {
  margin-bottom: 0.9rem;
  color: #111313;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
}

.event-card h3 a,
.event-card h2 a {
  text-decoration: none;
}

.event-card h3 a:hover,
.event-card h2 a:hover,
.event-card__more:hover {
  color: var(--blood);
}

.event-card__excerpt {
  color: #4f534f;
  font-size: 0.92rem;
}

.event-card__more {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--blood);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.archive-actions {
  margin-top: 2.5rem;
  text-align: center;
}

.archive-actions .button--ghost {
  border-color: #333;
  color: #171919;
}

.archive-actions .button--ghost:hover {
  background: #171919;
  color: #fff;
}

.archive-empty {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(9, 11, 11, 0.15);
  text-align: center;
}

.archive-empty h3 {
  color: #151717;
}

.archive-empty p {
  max-width: 620px;
  margin-inline: auto;
  color: #5f625e;
}

.event-archive {
  display: grid;
  width: min(var(--content), calc(100% - (2 * var(--gutter))));
  margin: 0 auto;
  padding-block: clamp(4rem, 8vw, 7rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.event-archive .event-card {
  background: #dcd7ca;
}

.event-navigation {
  display: flex;
  width: min(var(--reading), calc(100% - (2 * var(--gutter))));
  margin: 0 auto 5rem;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quote-section blockquote {
  max-width: 980px;
  margin: 0 auto;
}

.quote-section p {
  margin-bottom: 1.5rem;
  color: #141616;
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 4.25rem);
  font-style: italic;
  line-height: 1.14;
}

.quote-section cite {
  color: var(--blood);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(6rem, 13vw, 12rem);
  text-align: center;
}

.cta::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(rgba(7, 9, 9, 0.88), rgba(7, 9, 9, 0.95)),
    url("assets/images/hero-cinematic-v2.webp") center / cover no-repeat;
  content: "";
  transform: scale(1.04);
}

.cta__symbol {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 2.6rem;
  border: 1px solid var(--blood);
  border-radius: 50%;
  place-items: center;
  color: var(--blood-bright);
  font-family: var(--display);
  font-size: 1.6rem;
}

.cta h2 {
  max-width: 850px;
  margin-inline: auto;
  margin-bottom: 1.3rem;
}

.cta p {
  max-width: 630px;
  margin: 0 auto 2.3rem;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.2rem;
}

.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--line);
  background: #060707;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  color: #777c79;
  font-size: 0.75rem;
}

.site-footer__mark {
  color: var(--fog);
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-menu {
  display: flex;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
  gap: 1.4rem;
  list-style: none;
}

.footer-menu a {
  text-decoration: none;
}

.content-header {
  padding: 13rem var(--gutter) 6rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(5, 7, 7, 0.72), var(--ink)),
    url("assets/images/hero-cinematic-v2.webp") center / cover no-repeat;
  text-align: center;
}

.content-header h1 {
  max-width: 1000px;
  margin: 0 auto;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
}

.content-header p {
  margin: 1.25rem auto 0;
  color: var(--muted);
}

.content-area {
  width: min(var(--reading), calc(100% - (2 * var(--gutter))));
  min-height: 45vh;
  margin-inline: auto;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.entry-content {
  font-family: var(--display);
  font-size: 1.12rem;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2.2em;
}

.entry-content a {
  color: #fff;
  text-decoration-color: var(--blood-bright);
}

.entry-content blockquote {
  margin: 2.5rem 0;
  padding-left: 2rem;
  border-left: 2px solid var(--blood);
  color: var(--bone);
  font-size: 1.35em;
  font-style: italic;
}

.entry-content img {
  border: 1px solid var(--line);
}

.entry-meta {
  display: flex;
  margin-top: 1.2rem;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-list {
  display: grid;
  width: min(var(--content), calc(100% - (2 * var(--gutter))));
  margin: 0 auto;
  padding-block: clamp(4rem, 8vw, 7rem);
  gap: 1px;
  background: var(--line);
}

.post-card {
  display: grid;
  padding: clamp(1.6rem, 4vw, 3rem);
  background: var(--ink);
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 2rem;
}

.post-card time {
  color: var(--blood-bright);
  font-family: var(--display);
  font-style: italic;
}

.post-card h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
}

.post-card h2 a {
  text-decoration: none;
}

.post-card__link {
  color: var(--muted);
  font-size: 1.4rem;
  text-decoration: none;
}

.pagination {
  display: flex;
  width: min(var(--content), calc(100% - (2 * var(--gutter))));
  margin: 0 auto 5rem;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.page-numbers {
  display: grid;
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  place-items: center;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
  border-color: var(--blood);
  background: var(--blood);
  color: #fff;
}

.search-form {
  display: flex;
  max-width: 600px;
  margin: 2rem auto 0;
}

.search-field {
  min-width: 0;
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-right: 0;
  outline: 0;
  background: var(--ink-soft);
  color: #fff;
}

.search-field:focus {
  border-color: var(--blood);
}

.search-submit {
  border: 1px solid var(--blood);
  background: var(--blood);
  color: #fff;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.not-found {
  text-align: center;
}

.not-found__code {
  margin: 0;
  color: rgba(255, 255, 255, 0.06);
  font-family: var(--display);
  font-size: clamp(9rem, 30vw, 20rem);
  font-style: italic;
  line-height: 0.8;
}

@media (max-width: 820px) {
  .site-header__inner {
    min-height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .site-navigation {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    padding: 1.5rem var(--gutter) 2rem;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 7, 7, 0.98);
  }

  .site-navigation.is-open {
    display: block;
  }

  .primary-menu {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .primary-menu a {
    display: block;
    padding-block: 0.85rem;
  }

  .hero {
    min-height: 760px;
    background-position: 58% center;
  }

  .hero::before {
    background: linear-gradient(0deg, var(--ink) 2%, rgba(5, 7, 7, 0.82) 52%, rgba(5, 7, 7, 0.4) 100%);
  }

  .hero__content {
    width: 100%;
    padding-bottom: 6rem;
  }

  .hero__index {
    display: none;
  }

  .intro-grid,
  .experience__heading,
  .story-grid,
  .current-edition__grid,
  .archive-heading {
    grid-template-columns: 1fr;
  }

  .edition-mark {
    width: min(250px, 72vw);
  }

  .current-edition__visual {
    min-height: 430px;
  }

  .current-edition__visual .edition-mark {
    width: min(220px, 58%);
  }

  .section-number {
    margin-bottom: 2rem;
  }

  .intro-copy {
    padding-top: 0;
  }

  .traits {
    grid-template-columns: 1fr;
  }

  .event-cards,
  .event-archive {
    grid-template-columns: 1fr;
  }

  .event-card {
    display: grid;
    grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.25fr);
  }

  .event-card__media {
    height: 100%;
    aspect-ratio: auto;
  }

  .trait {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trait__icon {
    margin-bottom: 2.5rem;
  }

  .story__sticky {
    position: static;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-menu {
    justify-content: center;
  }

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

  .post-card time {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .site-branding {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 700px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .story-step {
    padding-left: 3.7rem;
  }

  .event-facts {
    grid-template-columns: 1fr;
  }

  .current-edition__visual {
    min-height: 380px;
  }

  .event-facts li + li {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .event-card {
    display: flex;
  }

  .event-card__media {
    aspect-ratio: 4 / 3;
  }

  .footer-menu {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
