:root {
  --bg: #f5f0ea;
  --text: #181512;
  --muted: #6f655d;
  --accent: #9b4f3c;
  --line: rgba(24, 21, 18, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.page {
  width: min(1200px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.header,
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.header {
  border-bottom: 1px solid var(--line);
}

.alias {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  font-size: 16px;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
  padding: 70px 0;
}

.label,
.small-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
}

h1 {
  margin: 14px 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(70px, 10vw, 140px);
  line-height: 0.82;
  font-weight: 400;
  letter-spacing: -0.06em;
}

h1 em {
  color: var(--accent);
  font-weight: 400;
}

.bio {
  max-width: 620px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.55;
  color: #403832;
}

.poem-box {
  min-height: 420px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
}

.quotes {
  position: relative;
  flex: 1;
  min-height: 260px;
}

.quote {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.quote.active {
  opacity: 1;
}

.quote em {
  color: var(--accent);
  font-weight: 400;
}

.signature {
  text-align: right;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--muted);
}

.dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c5bbb2;
  cursor: pointer;
}

.dot.active {
  width: 24px;
  background: var(--accent);
}

footer {
  border-top: 1px solid var(--line);
}

@media (max-width: 800px) {
  .page {
    width: min(100% - 28px, 680px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 50px 0;
  }

  h1 {
    font-size: clamp(64px, 20vw, 100px);
  }

  .bio {
    font-size: 18px;
  }

  .poem-box {
    min-height: 360px;
    padding: 26px;
  }

  .quote {
    font-size: clamp(38px, 11vw, 56px);
  }

  footer {
    font-size: 10px;
  }
}
