/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

/* Page background */
body {
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 50%, #ffffff 100%);
  color: #111;
  font-family: "Cormorant Garamond", Georgia, serif;
}

/* Center the entire framed page in the browser */
.stage {
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(16px, 4vw, 56px);
}

/* Outer page frame */
.page {
  width: min(980px, 100%);
  border: 3px solid #111;
  background: rgba(255,255,255,0.75);
  box-shadow: 0 24px 70px rgba(0,0,0,0.08);
}

/* Inner page frame + layout inside */
.page-inner {
  border: 1px solid #111;
  margin: 14px;
  padding: clamp(18px, 4vw, 56px);

  min-height: min(78vh, 980px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vh, 34px);
  text-align: center;
}

/* Script title (INSIDE the frame) */
.title {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.05;
  color: #111;
}

/* Portrait block */
.portrait-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2.4vh, 26px);
}

/* DOUBLE lines around the image */
.portrait-outer {
  width: min(560px, 78%);
  border: 2px solid #111;      /* outer line */
  padding: 14px;               /* space between lines */
  background: rgba(255,255,255,0.55);
  box-shadow: 0 18px 55px rgba(0,0,0,0.10);
}

.portrait-inner {
  border: 1px solid #111;      /* inner line */
  padding: 12px;               /* breathing room */
  background: rgba(255,255,255,0.9);
}

.portrait-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.10));
}

/* Name under the image */
.name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  letter-spacing: 0.06em;
  color: #111;
}

/* Mobile */
@media (max-width: 520px) {
  .portrait-outer { width: 92%; padding: 12px; }
  .portrait-inner { padding: 10px; }
}