:root {
  --color-background: #E5D9BC;
  --color-text: #34280C;
  --header-height: 2rem;
  --section-title-height: 2.25rem;
  --font-family: "DIN Alternate", "Arial Narrow", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

::selection {
  background-color: rgba(52, 40, 12, 0.18);
  font-style: italic;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 1rem;
  background-color: var(--color-background);
}

.site-title {
  font-weight: 700;
  font-size: 0.875rem;
}

.site-nav:hover,
.site-nav:focus-visible {
  text-decoration: underline;
  outline: none;
}

.page {
  padding: 0 12px;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.section-title {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--section-title-height);
  margin: 0;
  background-color: var(--color-text);
  color: var(--color-background);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.section-body {
  padding: 0 0.25rem 1rem;
  text-align: left;
}

.block {
  margin-bottom: 2rem;
}

.block:last-child {
  margin-bottom: 0;
}

.block-label {
  margin: 0 0 0.75rem;
  color: rgba(52, 40, 12, 0.45);
  text-align: center;
}

.block p {
  margin: 0 0 0.875rem;
}

.block p:last-child {
  margin-bottom: 0;
}

.poem-image {
  display: block;
  width: 100%;
  max-height: 222px;
  object-fit: cover;
  margin: 1rem 0;
  mix-blend-mode: luminosity;
}

.read-all {
  display: inline;
  padding: 0;
  color: rgba(52, 40, 12, 0.65);
  text-decoration: underline;
}

.read-all:hover,
.read-all:focus-visible {
  color: var(--color-text);
  outline: none;
}

.references-counter {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  color: rgba(52, 40, 12, 0.55);
}

.references-quote {
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.45;
  border: none;
}

.references-cite {
  display: block;
  font-style: normal;
  font-size: 0.6875rem;
  color: rgba(52, 40, 12, 0.65);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.5rem;
}

.contact-link {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background-color: var(--color-text);
  color: var(--color-background);
  font-weight: 700;
  font-size: 0.6875rem;
}

.contact-link:hover,
.contact-link:focus-visible {
  opacity: 0.85;
  outline: none;
}

@media (min-width: 769px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
  }

  .page {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .columns {
    height: 100%;
  }

  .column {
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .section-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .section-body::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 12px;
  }

  .page {
    padding: 0 12px 2rem;
  }

  .columns {
    display: flex;
    flex-direction: column;
  }

  .column {
    display: contents;
  }

  .section-title {
    position: sticky;
    top: var(--header-height);
    z-index: 10;
  }

  .section-body {
    padding: 0 0 1.5rem;
  }
}
