@charset "UTF-8";

/* Base WordPress pages: posts, pages, search results and the 404 screen. */

.page-shell {
  min-height: 70vh;
  padding-top: calc(var(--header-height) + clamp(36px, 5vw, 68px));
  padding-bottom: clamp(56px, 8vw, 110px);
}

.entry {
  max-width: 1120px;
}

.entry-header {
  max-width: 900px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.entry-title,
.front-placeholder-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5.2vw, 62px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.entry-meta {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.entry-meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content {
  max-width: 780px;
  color: var(--ink-soft);
  font-family: var(--lora);
  font-size: 18px;
  line-height: 1.72;
}

.entry-content > * + * {
  margin-top: 1.1em;
}

.entry-content h2 {
  margin-top: 1.5em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 38px);
  font-style: normal;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.entry-content h3,
.entry-content h4 {
  margin-top: 1.4em;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.entry-content h3 {
  font-size: clamp(22px, 2.6vw, 28px);
}

.entry-content h4 {
  font-size: 21px;
}

.entry-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: var(--sand-dark);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.35em;
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li + li {
  margin-top: 0.35em;
}

.entry-content blockquote {
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--sand);
  color: var(--ink);
  font-style: italic;
}

.entry-content figure {
  margin: 1.5em 0;
}

.entry-content img {
  height: auto;
  border-radius: 4px;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
}

.entry-content th,
.entry-content td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.entry-content code,
.entry-content pre {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

.entry-content pre {
  max-width: 100%;
  padding: 16px 18px;
  overflow: auto;
  border-radius: 4px;
  background: var(--sand-light);
}

.page-links {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 12px;
}

.post-list {
  display: grid;
  gap: 0;
  max-width: 900px;
}

.post-list-item {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.post-list-item:last-child {
  border-bottom: 1px solid var(--line);
}

.post-list-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 34px);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.post-list-title a:hover {
  color: var(--sand-dark);
}

.entry-summary {
  max-width: 720px;
  color: var(--ink-soft);
  font-family: var(--lora);
  font-size: 17px;
  line-height: 1.65;
}

.navigation.pagination,
.post-navigation {
  margin-top: 40px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-numbers {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.page-numbers.current,
.page-numbers:hover {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.post-navigation .nav-links {
  justify-content: space-between;
  gap: 20px;
}

.post-navigation a {
  max-width: 45%;
  text-decoration: none;
}

/* Temporary front page */

.front-placeholder {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  place-items: center;
  text-align: center;
}

.front-placeholder .container {
  width: 100%;
}

.front-placeholder-card {
  max-width: 760px;
  margin: 0 auto;
}

.front-placeholder-card .eyebrow {
  justify-content: center;
}

.front-placeholder-title {
  margin: 22px 0 18px;
}

.front-placeholder-text {
  max-width: 590px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-family: var(--lora);
  font-size: 18px;
  line-height: 1.7;
}

/* 404 */

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: calc(var(--header-height) + 48px) 24px 72px;
  background:
    radial-gradient(circle at 18% 12%, rgba(200, 178, 140, 0.18), transparent 34%),
    radial-gradient(circle at 84% 88%, rgba(124, 136, 120, 0.18), transparent 36%),
    var(--cream);
}

.error-card {
  max-width: 560px;
  text-align: center;
}

.error-card img {
  width: auto;
  height: 84px;
  margin: 0 auto 28px;
}

.error-code {
  margin: 0;
  color: var(--sand-dark);
  font-family: var(--serif);
  font-size: clamp(84px, 20vw, 148px);
  font-style: italic;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.error-card h1 {
  margin: 18px 0 14px;
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 42px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.4px;
}

.error-card p {
  margin: 0 0 28px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* Footer contacts */

.footer-brand-block {
  display: grid;
  max-width: 420px;
  gap: 26px;
}

.footer-contacts {
  display: grid;
  justify-items: start;
  gap: 7px;
}

.footer-label {
  margin-bottom: 3px;
  color: rgba(247, 243, 235, 0.58);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-contacts a {
  color: rgba(247, 243, 235, 0.73);
  font-size: 12px;
  transition: color 180ms ease;
}

.footer-contacts a:hover {
  color: var(--sand);
}

.footer-requisites {
  margin-top: 9px;
  color: rgba(247, 243, 235, 0.55);
  font-size: 10px;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .footer-brand-block {
    max-width: none;
  }
}

/* Front page: CMS-driven sections */

.hero-about > p {
  margin-top: 30px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.42;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.hero-about > p + p {
  margin-top: 15px;
}

.hero-about > p:first-of-type::first-letter {
  float: left;
  margin: 4px 12px 0 0;
  color: #7d6a4e;
  font-size: 3.5em;
  font-weight: 600;
  line-height: 0.78;
}

.hero-about strong {
  color: #7d6a4e;
  font-weight: 600;
}

.hero-about mark {
  padding: 0 0.14em;
  border-radius: 3px;
  background: var(--sand-light);
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-about a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hero-about a:hover {
  color: var(--sand-dark);
}

.hero-about .about-accent {
  font-family: var(--serif);
  font-style: italic;
}

.hero-about .about-large {
  font-size: 1.3em;
  line-height: 1.35;
}

.hero-about .about-intro {
  font-size: 1.12em;
}

.hero-about ul,
.hero-about ol {
  margin-top: 18px;
  padding-left: 1.4em;
  list-style: disc;
}

.hero-about ol {
  list-style: decimal;
}

.hero-about li + li {
  margin-top: 8px;
}

.document-package a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.document-package a:hover {
  color: var(--sand);
}

.event-card--static {
  cursor: default;
}

.event-card--static:hover {
  transform: none;
  border-color: rgba(48, 49, 57, 0.12);
  box-shadow: 0 14px 34px rgba(38, 40, 46, 0.06);
}

.event-card--static:hover .event-card-title {
  color: inherit;
}

.event-card--static .event-card-arrow {
  opacity: 0.5;
}

.event-card--static:hover .event-card-arrow {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
  transform: none;
}

.event-card--static:hover .event-media-photo {
  transform: none;
}

.home-empty-note {
  max-width: 620px;
  margin: 0;
  padding: 4px 0 8px;
  color: rgba(247, 243, 235, 0.75);
  font-family: var(--lora);
  font-size: 15px;
  line-height: 1.7;
}

.events-empty {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--lora);
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .hero-about > p {
    max-width: 630px;
  }
}

@media (max-width: 700px) {
  .hero-about > p {
    margin-top: 22px;
    font-size: 17px;
  }

  .hero-about > p:first-of-type::first-letter {
    margin: 3px 9px 0 0;
    font-size: 3.1em;
  }
}
