:root {
  --sky-1: #dcebed;
  --sky-2: #d0e2e5;
  --check: #f2e6d1;
  --ink: #4a4540;
  --paper: #fffdf7;
  --green: #bcd8b2;
  --pink: #e8b7b0;
  --yellow: #f4dfa3;
  --hand: "Comic Sans MS", "Chalkboard SE", "Marker Felt", "幼圆", "YouYuan", sans-serif;
}

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

body {
  background: var(--check);
  color: var(--ink);
  font-family: var(--hand);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.page {
  width: min(100%, 620px);
  margin: 0 auto;
  background: var(--check);
  overflow: hidden;
}

.hero {
  position: relative;
  padding: 22px 26px 0;
  background: repeating-linear-gradient(
    to bottom,
    var(--sky-1) 0 38px,
    var(--sky-2) 38px 76px
  );
  border-bottom: 3px solid var(--ink);
}

.hero-inner { position: relative; text-align: center; }

.stamp {
  position: absolute;
  top: -4px;
  left: -10px;
  width: 78px;
  height: 78px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: rotate(-12deg);
  background: var(--paper);
  z-index: 2;
}
.stamp::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed var(--ink);
  border-radius: 50%;
}
.stamp span { font-size: 10px; line-height: 1.2; font-weight: 700; letter-spacing: 0.04em; white-space: pre-line; text-align: center; }

.url-pill,
.by-pill {
  display: inline-block;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 14px;
  box-shadow: 2px 3px 0 rgba(74, 69, 64, 0.16);
}
.url-pill { margin-top: 6px; }
.by-pill { margin: 12px 0 0; font-size: 13px; }

.title {
  margin: 18px 0 0;
  font-size: clamp(58px, 16vw, 96px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0.02em;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 5px 6px 0 rgba(74, 69, 64, 0.18);
}
.title span { display: block; }
.title .t1 { color: var(--paper); transform: rotate(-2deg); }
.title .t2 { color: var(--green); transform: rotate(1.5deg); }

.subtitle {
  margin: 14px 0 0;
  font-size: clamp(20px, 5vw, 30px);
  letter-spacing: 0.08em;
  color: #555049;
  font-weight: 700;
}

.flower, .star { position: absolute; width: 38px; height: 38px; }
.f1 { top: 76px; left: 2%; transform: rotate(-14deg); }
.f2 { top: 150px; right: 6%; width: 32px; height: 32px; transform: rotate(12deg); }
.s1 { top: 52px; right: 12%; transform: rotate(10deg); }
.s2 { top: 210px; left: 9%; width: 26px; height: 26px; transform: rotate(-8deg); }

.scene { display: block; width: 100%; height: auto; margin-top: 6px; }

.body {
  background-color: var(--check);
  background-image:
    repeating-linear-gradient(to right, rgba(150, 130, 100, 0.14) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(to bottom, rgba(150, 130, 100, 0.14) 0 1px, transparent 1px 26px);
  padding: 20px 26px 30px;
}
.body-inner { position: relative; }

.bio {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  white-space: pre-line;
}

.find-me {
  margin: 18px 0 26px;
  font-size: 13px;
  text-align: center;
}
.find-me > span { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: 0.1em; color: #6b6459; }
.find-me nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
.social {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px dashed var(--ink);
  padding-bottom: 1px;
}
.social:hover { color: #a34534; border-color: #a34534; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 2.5px solid var(--ink);
  padding-bottom: 6px;
  margin-bottom: 14px;
}
.section-head span:last-child { font-size: 12px; font-weight: 400; color: #6b6459; }

.links { display: flex; flex-direction: column; gap: 12px; }

.link {
  display: grid;
  grid-template-columns: 32px 1fr 22px;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 16px 20px 14px 18px;
  box-shadow: 3px 3px 0 rgba(74, 69, 64, 0.14);
  transform: rotate(-0.5deg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.link:nth-child(even) { transform: rotate(0.6deg); }
.link:hover { transform: rotate(0) translateY(-2px); box-shadow: 4px 5px 0 rgba(74, 69, 64, 0.2); }
.link:focus-visible { outline: 2px solid #a34534; outline-offset: 2px; }

.num {
  width: 30px;
  height: 30px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: var(--pink);
}
.link:nth-child(3n + 2) .num { background: var(--green); }
.link:nth-child(3n) .num { background: var(--yellow); }

.link-body { min-width: 0; }
.link-title { display: block; font-size: 15px; font-weight: 700; }
.link-desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #6b6459;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.go { font-size: 18px; text-align: right; }

.foot { margin-top: 26px; text-align: center; font-size: 12px; color: #6b6459; }

.share {
  display: block;
  margin: 22px auto 30px;
  padding: 9px 20px;
  font-family: var(--hand);
  font-size: 14px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}
.share:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.share:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  padding: 9px 18px;
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 480px) {
  .hero { padding: 20px 18px 0; }
  .body { padding: 20px 18px 26px; }
  .stamp { width: 64px; height: 64px; left: -4px; }
  .stamp span { font-size: 8.5px; }
  .f1 { left: 0; width: 30px; height: 30px; }
  .s2 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
