:root {
  --page: #fef8db;
  --ink: #2e2418;
  --soft-ink: #695942;
  --gold: #d2a83b;
  --border: rgba(117, 89, 44, 0.3);
  --shadow: 0 18px 42px rgba(63, 45, 19, 0.19);
}

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

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.selector-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
}

.selector-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.selector-logo {
  width: clamp(62px, 7vw, 88px);
  height: auto;
  max-height: 112px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.selector-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.7rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.selector-heading p {
  margin: 0.7rem 0 0;
  color: var(--soft-ink);
  font-size: clamp(0.98rem, 2vw, 1.12rem);
}

.calendar-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.15rem, 3vw, 2.4rem);
  width: 100%;
}

.resource-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background-color: var(--page);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  color: #fff;
  text-decoration: none;
  transform: translateY(0) scale(1);
  transition: transform 220ms ease, box-shadow 220ms ease;
  isolation: isolate;
}

.resource-option::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(22, 17, 10, 0.25), rgba(22, 17, 10, 0.65));
}

.calendar-option {
  min-height: clamp(210px, 27vw, 310px);
}

.calendar-option-greek {
  background-image: url("../../greek/greek-assets/images/church-background.png");
}

.calendar-option-russian {
  background-image: url("../../russian/russian-assets/images/church-background.png");
}

.study-bible-option {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(720px, 66%);
  min-height: clamp(54px, 6vw, 70px);
  background-image: url("../study-bible-background.jpg");
  background-position: center 48%;
}

.study-bible-option::before {
  background: linear-gradient(90deg, rgba(18, 7, 2, 0.65), rgba(18, 7, 2, 0.32), rgba(18, 7, 2, 0.65));
}

.resource-option span {
  padding: 0.6rem 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.025em;
  text-align: center;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.82);
  transition: color 220ms ease, transform 220ms ease;
}

.study-bible-option span {
  font-size: clamp(1.15rem, 2.4vw, 1.85rem);
}

.resource-option:hover,
.resource-option:focus-visible {
  z-index: 2;
  transform: translateY(-8px) scale(1.035);
  box-shadow: 0 28px 58px rgba(63, 45, 19, 0.27);
}

.resource-option:hover span,
.resource-option:focus-visible span {
  color: var(--gold);
  transform: scale(1.02);
}

.resource-option:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}

@media (max-width: 760px) {
  .selector-page {
    justify-content: flex-start;
  }

  .calendar-options {
    grid-template-columns: 1fr;
  }

  .calendar-option {
    min-height: 220px;
  }

  .study-bible-option {
    grid-column: auto;
    width: 100%;
    min-height: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resource-option,
  .resource-option span {
    transition: none;
  }
}
