/* Recipe Moore Secret — sticky-note masonry */

:root {
  --ms-bg: #efe8d8;
  --ms-note-1: #fdf3a3;
  --ms-note-2: #d9f2c8;
  --ms-note-3: #cfe4f7;
  --ms-note-4: #ffe0c9;
  --ms-ink: #3a3222;
  --ms-pin: #a33;
  --ms-soft: #7c7259;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ms-bg);
  color: var(--ms-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
}

h1, h2, h3 { font-family: "Segoe Print", "Brush Script MT", "Comic Sans MS", cursive; }

/* board */
.ms-board { max-width: 1060px; margin: 0 auto; padding: 2rem 1rem; }
.ms-board h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  color: var(--brown, #5c4326);
  text-align: center;
  margin: 0 0 0.3rem;
  text-shadow: 0 1px 0 #fff;
}
.ms-board .ms-sub { text-align: center; font-style: italic; color: var(--ms-soft); margin-bottom: 2rem; }

.masonry { columns: 3; column-gap: 1.1rem; }
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 620px) { .masonry { columns: 1; } }

.note {
  break-inside: avoid;
  background: var(--ms-note-1);
  border-radius: 4px;
  padding: 1rem 1.1rem 1.1rem;
  margin-bottom: 1.1rem;
  box-shadow: 2px 3px 8px rgba(60, 50, 20, 0.25);
  transform: rotate(-0.6deg);
  position: relative;
}
.masonry .note:nth-child(2n) { transform: rotate(0.8deg); background: var(--ms-note-2); }
.masonry .note:nth-child(3n) { background: var(--ms-note-3); }
.masonry .note:nth-child(4n) { transform: rotate(-1deg); background: var(--ms-note-4); }
.note::before {
  content: "";
  position: absolute; top: -7px; left: 50%;
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e0e0e0, var(--ms-pin) 60%);
  box-shadow: 0 2px 3px rgba(0,0,0,0.35);
}
.note h3 {
  font-size: 0.98rem;
  margin: 0 0 0.4rem;
  color: #4a3d20;
  text-align: center;
}
.note h3 .n {
  display: inline-block;
  background: rgba(163, 51, 51, 0.85); color: #fff;
  border-radius: 50%; width: 1.5rem; height: 1.5rem; line-height: 1.5rem;
  font-size: 0.72rem; margin-right: 0.4rem;
  font-family: Arial, sans-serif;
}
.note p { font-size: 0.83rem; margin: 0 0 0.4rem; }
.note .pair { font-size: 0.78rem; color: #665b3d; border-top: 1px dashed rgba(122, 122, 89, 0.5); padding-top: 0.4rem; margin-top: 0.5rem; }

/* sticky section header */
.ms-tag {
  display: inline-block;
  background: var(--ms-note-1);
  transform: rotate(-1.2deg);
  padding: 0.4rem 1.1rem;
  box-shadow: 2px 3px 8px rgba(60, 50, 20, 0.25);
  font-size: 0.9rem; color: var(--ms-ink);
  border-radius: 3px;
  margin-bottom: 0.4rem;
}

/* footer */
.ms-foot {
  background: rgba(92, 67, 38, 0.92);
  color: #f5efdc;
  padding: 1.5rem 1rem 1.8rem;
  text-align: center;
  font-size: 0.83rem;
}
.ms-foot ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 1.4rem; margin: 0.5rem 0 0.7rem; padding: 0; }
.ms-foot a { color: #f5efdc; }
