:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #402d27;
  background: #f8f2e4;
}

* { box-sizing: border-box; }
body { margin: 0; }

.home {
  width: min(100% - 3rem, 70rem);
  min-height: 100svh;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 1.5rem 3rem;
  padding-block: 3rem 1.25rem;
}

h1 {
  font-family: Georgia, serif;
  font-size: clamp(3.5rem, 9vw, 7.3rem);
  letter-spacing: -0.085em;
  line-height: 0.95;
  margin: 0;
}

h1 span { color: #bf6047; }

.tagline {
  font-family: Georgia, serif;
  font-size: clamp(1.55rem, 4vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 1rem 0;
}

.description {
  color: #654d43;
  line-height: 1.6;
  max-width: 29ch;
  margin: 0 0 1.45rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.58rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.play { background: #804330; color: white; }
.play:hover { background: #6b3525; }
.telegram { border-color: #bd9b85; color: #573929; }
.telegram:hover { background: #efe1ce; }
a:focus-visible { outline: 3px solid #266347; outline-offset: 4px; }

.save-note, footer { color: #675247; font-size: 0.875rem; }
.save-note { margin: 0.85rem 0 0; }
footer { grid-column: 1 / -1; border-top: 1px solid #ddcdb5; padding-top: 1rem; }
footer a { color: inherit; text-underline-offset: 0.2em; }

.portrait {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1 / 1.04;
  display: grid;
  place-items: end center;
  border: 1px solid #d4b590;
  background: linear-gradient(#e9d5ac 0 71%, #cc9e72 71%);
  border-radius: 47% 47% 1.3rem 1.3rem;
  isolation: isolate;
  overflow: hidden;
}

.window {
  position: absolute;
  inset: 11% 20% 21%;
  border: 0.65rem solid #f9ebd2;
  border-radius: 50% 50% 0.7rem 0.7rem;
  background: radial-gradient(circle at 72% 26%, #fff3ba 0 10%, transparent 10.5%),
    linear-gradient(155deg, transparent 69%, #acc388 69.5%),
    linear-gradient(25deg, #b7ce91 0 33%, #cfe1ce 33.5% 100%);
  box-shadow: 0 0 0 1px #b5946e, 0 0.3rem 0 #b5946e;
}

.window span {
  position: absolute;
  inset: 0 49% 0;
  background: #f9ebd2;
}

.rug {
  position: absolute;
  bottom: 7%;
  width: 83%;
  height: 19%;
  border-radius: 50%;
  background: #9e5647;
  border: 0.26rem solid #e5ad91;
  box-shadow: 0 0.22rem 0 #ad794e, inset 0 0 0 0.18rem #c57964;
}

.portrait img {
  width: 74cqw;
  max-height: 73%;
  object-fit: contain;
  position: relative;
  margin-bottom: 12%;
  filter: drop-shadow(0 0.65rem 0.6rem #55311b4d);
}

@media (max-width: 45rem) {
  .home {
    width: min(100% - 2rem, 28rem);
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding-block: 2rem 1.25rem;
  }
  .portrait { aspect-ratio: 1 / 0.84; border-radius: 46% 46% 1.1rem 1.1rem; }
  .portrait img { width: 64cqw; margin-bottom: 8%; }
}
