:root {
  color-scheme: light;
  --ink: #201714;
  --muted: #6b5b52;
  --paper: #fbf4e6;
  --panel: #fffaf0;
  --line: #d7c7ad;
  --red: #8d2c24;
  --teal: #196c6b;
  --gold: #c58a28;
  --green: #3c6f3b;
  --shadow: 0 18px 42px rgba(49, 31, 21, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    linear-gradient(90deg, rgba(141, 44, 36, 0.07), transparent 28%),
    linear-gradient(180deg, #f6e7c9 0%, #f9f1dc 46%, #e7efe9 100%);
}

a {
  color: inherit;
}

.page {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  align-items: center;
}

.story {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  min-height: min(760px, calc(100vh - 56px));
  border: 1px solid rgba(77, 52, 33, 0.24);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.art {
  position: relative;
  margin: 0;
  min-height: 520px;
  overflow: hidden;
  background: #2a241d;
}

.art img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  object-fit: cover;
}

.sigil {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 244, 220, 0.75);
  border-radius: 50%;
  color: #fff6df;
  background: rgba(32, 23, 20, 0.72);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.content {
  min-width: 0;
  padding: clamp(24px, 4vw, 54px);
  display: grid;
  align-content: center;
  gap: 20px;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.home {
  min-width: 78px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  color: var(--teal);
  background: rgba(25, 108, 107, 0.07);
}

h1 {
  margin: 0;
  font-size: clamp(2.05rem, 4vw, 4.1rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.body {
  margin: 0;
  color: #382921;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.55;
}

.choices {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.choice {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  background: #fffdf7;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  line-height: 1.25;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.choice:focus-visible,
.choice:hover {
  outline: none;
  transform: translateY(-1px);
  border-color: var(--teal);
  background: #f1fbf8;
}

.choice-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff8e8;
  background: var(--red);
  font-weight: 800;
}

.choice:nth-child(2) .choice-number {
  background: var(--teal);
}

.choice:nth-child(3) .choice-number {
  background: var(--green);
}

@media (max-width: 860px) {
  .page {
    width: 100%;
    min-height: 100vh;
    padding: 0;
  }

  .story {
    min-height: 100vh;
    grid-template-columns: 1fr;
    border: 0;
  }

  .art {
    min-height: 36vh;
    height: 42vh;
  }

  .content {
    align-content: start;
    padding: 22px 18px 28px;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }
}

@media (max-width: 430px) {
  .top {
    align-items: flex-start;
    flex-direction: column;
  }

  .home {
    width: 100%;
  }

  .choice {
    grid-template-columns: 32px 1fr;
    min-height: 58px;
    font-size: 0.94rem;
  }

  .choice-number {
    width: 32px;
    height: 32px;
  }
}
