/* Tape Kid holding page. Kraft paper, dark ink, one taped-on photo. System fonts only. */

:root {
  --kraft: #cda070;
  --ink: #2b1709;
  --ink-soft: #3d2312;
  --cream: #f6eede;
  --tape: rgba(240, 230, 205, 0.88);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background-color: var(--kraft);
  /* The corrugation shows through the paper: faint vertical flutes, lighter where the light falls. */
  background-image:
    radial-gradient(ellipse at 50% 35%, rgba(255, 240, 215, 0.35), rgba(255, 240, 215, 0) 65%),
    repeating-linear-gradient(90deg, rgba(90, 55, 20, 0.05) 0 2px, rgba(90, 55, 20, 0) 2px 9px);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

.sheet {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(32px, 7vh, 88px) 24px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.name {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 8.5vw, 7.25rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 238, 210, 0.45);
  overflow-wrap: break-word;
}

.line {
  margin: 0.9em 0 0;
  max-width: 30ch;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.photo {
  position: relative;
  justify-self: center;
  width: min(calc(100% - 40px), 380px);
  margin: 0;
  padding: 14px 14px 44px;
  background: var(--cream);
  box-shadow:
    0 1px 1px rgba(60, 35, 15, 0.25),
    0 14px 28px -8px rgba(60, 35, 15, 0.45);
  transform: rotate(2deg);
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Two strips of masking tape hold the photo on. */
.photo::before,
.photo::after {
  content: "";
  position: absolute;
  top: -14px;
  width: 112px;
  height: 32px;
  background: var(--tape);
  box-shadow: 0 1px 2px rgba(60, 35, 15, 0.18);
  clip-path: polygon(2% 8%, 9% 0, 20% 6%, 33% 0, 47% 7%, 60% 1%, 74% 6%, 88% 0, 98% 7%, 100% 92%, 90% 100%, 77% 94%, 63% 100%, 50% 93%, 36% 100%, 22% 94%, 9% 100%, 0 92%);
}

.photo::before {
  left: -18px;
  transform: rotate(-32deg);
}

.photo::after {
  right: -18px;
  transform: rotate(30deg);
}

.sheet-single {
  grid-template-columns: minmax(0, 1fr);
}

.line a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.foot {
  padding: 20px 24px 28px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .sheet {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    padding-top: 40px;
    gap: 40px;
  }

  .line {
    margin-left: auto;
    margin-right: auto;
  }

  .photo {
    width: min(78vw, 320px);
  }
}
