
:root {
  --pink: #d60270;
  --purple: #9b4f96;
  --blue: #0038a8;

  --ink: #18141d;
  --paper: #f4efdf;
  --pink-paper: #f5c2dc;
  --purple-paper: #d8c4e7;
  --blue-paper: #c9d7ef;

  --hand: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  --ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 18px 44px rgba(0,0,0,.48);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #000;
  color: white;
  font-family: var(--ui);
  overflow-x: hidden;
}

a { color: inherit; }

.wall-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 7px;
  padding: 9px 11px;
  background: rgba(8,8,8,.92);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
}

.wall-nav a {
  text-decoration: none;
  font-weight: 800;
  font-size: .84rem;
  padding: 8px 11px;
  border-radius: 999px;
}

.wall-nav a:hover,
.wall-nav a[aria-current="page"] {
  background: white;
  color: black;
}

.wall {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 118px 0 110px;
}

.wall-title {
  position: relative;
  width: min(790px, 94%);
  margin: 10px auto 100px;
  padding: 34px 36px 30px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--hand);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
  clip-path: polygon(1% 1%, 98% 0, 100% 5%, 99% 96%, 96% 100%, 2% 98%, 0 94%, 1% 5%);
}

.wall-title::before,
.paper.taped::before,
.paper.taped::after {
  content: "";
  position: absolute;
  width: 98px;
  height: 25px;
  background: rgba(232,210,147,.72);
  border: 1px solid rgba(107,84,28,.25);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.wall-title::before {
  top: -8px;
  left: 44%;
  transform: rotate(2deg);
}

.wall-title h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -.05em;
}

.wall-title .version {
  position: absolute;
  top: 18px;
  right: 26px;
  font-size: 1rem;
  transform: rotate(4deg);
}

.wall-title p {
  margin: 14px 0 0;
  font-size: clamp(1rem, 2.2vw, 1.28rem);
}

.wall-title .warning {
  margin-top: 8px;
  font-size: .95rem;
}

.paper {
  position: relative;
  color: var(--ink);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 31px,
      rgba(77,124,181,.22) 31px 32px
    ),
    linear-gradient(90deg, transparent 0 10%, rgba(199,74,95,.20) 10% 10.3%, transparent 10.3%),
    var(--paper);
  box-shadow: var(--shadow);
  padding: 34px 42px 36px;
  font-family: var(--hand);
  clip-path: polygon(1% 2%, 97% 0, 100% 4%, 99% 97%, 96% 100%, 2% 98%, 0 94%, 1% 4%);
}

.paper.pink-note {
  background: var(--pink-paper);
  transform: rotate(1deg);
}

.paper.purple-note {
  background: var(--purple-paper);
  transform: rotate(-1deg);
}

.paper.blue-note {
  background: var(--blue-paper);
  transform: rotate(.7deg);
}

.paper h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.paper h3 {
  margin: 18px 0 8px;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}

.paper p,
.paper li {
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  line-height: 1.65;
}

.paper ul {
  padding-left: 1.4em;
}

.paper.taped::before {
  top: -9px;
  left: 8%;
  transform: rotate(-4deg);
}

.paper.taped::after {
  bottom: -10px;
  right: 7%;
  transform: rotate(3deg);
}

.paper del {
  text-decoration-thickness: .18em;
}

.page-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 9px;
  border: 1px solid currentColor;
  font: 800 .72rem/1 var(--ui);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.wall-row {
  display: grid;
  align-items: start;
  gap: 48px;
  margin: 0 0 135px;
}

.wall-row.two { grid-template-columns: 1.08fr .92fr; }
.wall-row.reverse { grid-template-columns: .9fr 1.1fr; }

.note-grid {
  display: grid;
  gap: 28px;
}

.note-grid.two {
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.slot {
  position: relative;
  min-height: 260px;
  border: 3px dashed rgba(255,255,255,.62);
  background: transparent;
}

.paper .slot {
  border-color: rgba(24,20,29,.55);
}

.slot::after {
  content: attr(data-slot);
  position: absolute;
  top: 9px;
  left: 11px;
  padding: 4px 7px;
  font: 800 .68rem/1 var(--ui);
  letter-spacing: .16em;
  background: rgba(255,255,255,.92);
  color: black;
}

.paper .slot::after {
  background: rgba(24,20,29,.85);
  color: white;
}

.slot.landscape { aspect-ratio: 16 / 9; min-height: 0; }
.slot.square { aspect-ratio: 1; min-height: 0; }

.marker-link,
.marker-button {
  display: inline-block;
  width: fit-content;
  margin: 6px 8px 6px 0;
  padding: 8px 11px 6px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--hand);
  font-size: 1.05rem;
  font-weight: 800;
  border: 2px solid var(--ink);
  background: transparent;
  box-shadow: 4px 4px 0 rgba(24,20,29,.12);
}

.marker-link:hover {
  background: var(--ink);
  color: var(--paper);
}

.marker-button.disabled {
  opacity: .55;
  cursor: default;
}

.big-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--hand);
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-weight: 900;
  text-decoration-thickness: .12em;
  text-underline-offset: .14em;
}

.arrow-down {
  display: block;
  font-family: var(--hand);
  font-size: 3rem;
  line-height: 1;
  margin: 6px 0 10px 18px;
}

.timeline {
  position: relative;
  margin-top: 34px;
  padding-left: 52px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--ink);
}

.timeline-item {
  position: relative;
  margin-bottom: 46px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -44px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--paper);
}

.timeline-divider {
  margin: 52px 0;
  padding: 10px 14px;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  font-weight: 900;
  text-align: center;
}

.contact-no {
  font-family: var(--hand);
  font-size: clamp(8rem, 23vw, 19rem);
  line-height: .82;
  text-align: center;
  margin: 115px 0 5px;
}

.contact-note {
  font-family: var(--hand);
  text-align: center;
  font-size: 1rem;
  opacity: .8;
  margin-bottom: 120px;
}

.footer-mark {
  margin-top: 110px;
  text-align: center;
  font-family: var(--hand);
  opacity: .6;
}

@media (max-width: 860px) {
  .wall-nav {
    width: calc(100% - 20px);
    overflow-x: auto;
    justify-content: flex-start;
    border-radius: 16px;
  }

  .wall {
    width: min(100% - 20px, 720px);
    padding-top: 108px;
  }

  .wall-row.two,
  .wall-row.reverse,
  .note-grid.two {
    grid-template-columns: 1fr;
  }

  .wall-row {
    gap: 26px;
    margin-bottom: 90px;
  }

  .paper {
    padding: 28px 26px 30px;
  }

  .paper.pink-note,
  .paper.purple-note,
  .paper.blue-note {
    transform: none;
  }
}
