:root {
  --bg-color: #fff5f5;
  --outline: #d68f8f;
  --base: #fdcece;
  --shadow: #ffbfbf;
  --highlight: #fedddd;
  --panel-bg: #fffafa;
  --text: #7a4f4f;
  --heading: #b86d6d;
  --link-hover: #fff0f0;
  --white-glow: rgba(255, 255, 255, 0.65);

  --radius-large: 22px;
  --radius-medium: 16px;
  --radius-small: 12px;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #fdcece #fff5f5;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", Verdana, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg-color);
  background-image: url("images/grid-bg.png");
  background-repeat: repeat;
  background-size: 64px 64px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-small);
}

a {
  color: var(--heading);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
}

.site-card {
  width: 100%;
  max-width: 700px;
  background: var(--panel-bg);
  border: 2px solid var(--outline);
  border-radius: var(--radius-large);
  box-shadow: 0 4px 0 var(--shadow);
  padding: 16px;
}

.site-header {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: linear-gradient(to bottom, var(--highlight), var(--base));
  border: 2px solid var(--outline);
  border-radius: var(--radius-medium);
  box-shadow: inset 0 2px 0 var(--white-glow);
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.15;
  color: var(--heading);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.site-header h1 a {
  color: inherit;
  text-decoration: none;
}

.site-header h1 a {
  color: inherit;
  text-decoration: none;
}

.site-header h1 a:hover {
  text-decoration: none;
}

.tagline {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.button-grid a {
  display: block;
  text-align: center;
  padding: 9px 8px;
  background: linear-gradient(to bottom, #fff6f6, var(--base));
  border: 2px solid var(--outline);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--shadow), inset 0 1px 0 var(--white-glow);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.button-grid a:hover {
  background: var(--link-hover);
  text-decoration: none;
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--shadow), inset 0 1px 0 var(--white-glow);
}

.page-content > section {
  margin-bottom: 14px;
}

.page-content > section:last-child {
  margin-bottom: 0;
}

.intro-panel {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: center;
}

.avatar-box,
.intro-text,
.status-strip,
.guestbook-box {
  background: var(--panel-bg);
  border: 2px solid var(--outline);
  border-radius: var(--radius-medium);
  box-shadow: 0 3px 0 var(--shadow), inset 0 1px 0 var(--white-glow);
}

.avatar-box {
  padding: 8px;
  background: linear-gradient(to bottom, #fff8f8, var(--highlight));
}

.intro-text {
  padding: 12px 14px;
}

.intro-text p {
  margin: 0 0 8px;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.guestbook-intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.status-strip {
  padding: 10px 12px;
  text-align: center;
  font-size: 13px;
}

.guestbook-box {
  padding: 8px;
}

.guestbook-frame {
  width: 100%;
  height: 620px;
  border: none;
  border-radius: 12px;
  background: #fffafa;
  display: block;
}

.about-list {
  display: grid;
  gap: 8px;
}

.about-list p {
  margin: 0;
}

.about-profile p {
  margin: 4px 0;
}

.site-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--text);
  opacity: 0.9;
}

.sparkle {
  font-size: 0.95em;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .page-wrap {
    padding: 12px;
  }

  .site-card {
    padding: 14px;
  }

  .button-grid {
    grid-template-columns: 1fr 1fr;
  }

  .intro-panel {
    grid-template-columns: 1fr;
  }

  .avatar-box {
    max-width: 120px;
  }

  .guestbook-intro {
    max-width: 100%;
  }

  .guestbook-frame {
    height: 560px;
  }
}

.gallery-section {
  background: var(--panel-bg);
  border: 2px solid var(--outline);
  border-radius: var(--radius-medium);
  box-shadow: 0 3px 0 var(--shadow), inset 0 1px 0 var(--white-glow);
  padding: 12px 14px;
}

.gallery-heading {
  margin: 0 0 12px;
  text-align: center;
  font-size: 16px;
  color: var(--heading);
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  justify-items: center;
}

.gallery-item {
  padding: 6px;
  border-radius: var(--radius-small);
  background: linear-gradient(to bottom, #fff8f8, var(--highlight));
  border: 2px solid var(--outline);
  box-shadow: 0 2px 0 var(--shadow), inset 0 1px 0 var(--white-glow);
}

.gallery-item img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  display: block;
  border-radius: 0;
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #fff5f5;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(#fedddd, #fdcece);
  border: 2px solid #d68f8f;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #fdcece;
}