html, body {
  margin: 0;
  min-height: 100%;
}
@font-face {
  font-family: 'Caveat';
  src: url(font/Caveat-VariableFont_wght.ttf) format('truetype');
}
@font-face {
  font-family: 'Fredoka';
  src: url(font/Fredoka-VariableFont_wdth\,wght.ttf) format('truetype');
  font-weight: 400;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-image: url('/images/juminocore.jpg');
  background-size: cover;
  background-position: center;
}

.screen {
  display: grid;
  place-items: center;
  width: 100%;
}

.box {
  width: min(80vw, 700px);
  min-height: min(78vh, 700px);
  height: auto;
  overflow: visible;
  border: 3px solid rgb(250, 237, 248);
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(241, 217, 238, 0.5);
  background: linear-gradient(to bottom, rgb(253, 252, 253) 0%, rgb(253, 212, 244) 100%);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.hero-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.hero-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-text {
  position: absolute;
  left: 20px;
  bottom: 18px;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font-family: 'Caveat', 'Segoe UI', Tahoma, Geneva,;
}

.hero-link {
  position: absolute;
  top: 16px;
  left: 20px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(125, 73, 99, 0.78);
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-decoration: none;
}

.hero-link:hover {
  background: rgba(183, 94, 134, 0.9);
}

.profile {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  padding: 18px 0 0;
  box-sizing: border-box;
  flex: 1;
  overflow: hidden;
  flex-wrap: wrap;
}

.profile-text {
  margin: 0;
  background: rgba(255, 255, 255, 0.78);
  padding: 14px 16px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(240, 178, 214, 0.6);
  line-height: 1.6;
  color: #be8090;
  flex: 1;
  max-width: calc(100% - 150px);
  font-family: 'Caveat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.story-row {
  display: flex;
  gap: 18px;
  width: 100%;
  margin: 0 0 18px;
  padding: 0 18px;
  box-sizing: border-box
}
.story-text {
  font-family: 'Caveat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #7d4963;
}
.story-box,
.art-box {
  flex: 1 1 0;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(240, 178, 214, 0.6);
  border-radius: 14px;
  box-sizing: border-box;
  box-shadow: 0 3px 10px rgba(190, 128, 144, 0.12);
  color: #7d4963;
  font-family: 'Fredoka', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
}

.story-box h2,
.art-box h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #b75e86;
}

.story-box p {
  margin: 0;
}

.art-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.art-button {
  display: inline-block;
  align-self: center;
  margin: auto;
  padding: 9px 14px;
  border-radius: 8px;
  background: #d77aa3;
  color: #fff;
  text-decoration: none;
  line-height: 1.3;
}

.art-button:hover {
  background: #b75e86;
}

@media (max-width: 600px) {
  .story-row {
    flex-direction: column;
  }
}

.gallery {
  margin-top: 22px;
}

.gallery-image {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: contain;
  background: #fff5fb;
  border: 2px solid #f0b2d6;
  border-radius: 12px;
  box-sizing: border-box;
}

.gallery-caption {
  margin: 10px 0 0;
  color: #7d4963;
  text-align: center;
  font-style: italic;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
}

.gallery-controls button {
  padding: 8px 14px;
  border: 1px solid #d77aa3;
  border-radius: 8px;
  background: #d77aa3;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.gallery-controls button:hover {
  background: #b75e86;
}

#gallery-counter {
  min-width: 45px;
  color: #7d4963;
  text-align: center;
}

.me2-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.profile a {
  display: block;
  flex-shrink: 0;
}

.profile img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.me2-img {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0;
  object-fit: cover;
  border-radius: 50%;
  -webkit-box-shadow: 0px 0px 20px 5px rgba(153, 79, 91, 0.8);
  box-shadow: 0px 0px 20px 5px rgba(255, 192, 203, 0.8);
}

.profile-text {
  margin: 0;
  background: rgba(255, 255, 255, 0.78);
  padding: 14px 16px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(240, 178, 214, 0.6);
  line-height: 1.6;
  color: #be8090;
  flex: 1;
  max-width: calc(100% - 300px);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.border {
  display: block;
  width: 100%;
  margin: 0;
  padding: 4px 10px;
  box-sizing: border-box;
  border: 2px solid #d77aa3;
  border-bottom: 4px solid #d77aa3;
  background-image: url('../images/txt2.jpg');
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align:start;
}

.me2-img:hover {
  transform: scale(1.08);
}