@page { size: letter; margin: 0.5in; }

* { box-sizing: border-box; }

body {
  font-family: 'Patrick Hand', cursive;
  color: rgba(60, 50, 30, 0.85);
  background: #ede2c5;
  margin: 0;
  padding: 24px;
  /* SVG turbulence grain over the warm paper colour. */
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(255, 248, 230, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(220, 200, 160, 0.18) 0%, transparent 55%);
}

.sheet {
  position: relative;
  max-width: 7.5in;
  margin: 0 auto;
  background: #fff8e9;
  padding: 0.4in 0.5in 0.5in;
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.12);
  /* Subtle SVG-noise grain on the page itself. */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.4  0 0 0 0 0.3  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.4'/></svg>");
  background-blend-mode: multiply;
}

/* Dashed print-bleed line, inset 28px from the sheet edge. */
.sheet::before {
  content: '';
  position: absolute;
  inset: 28px;
  border: 2px dashed rgba(120, 100, 70, 0.35);
  border-radius: 4px;
  pointer-events: none;
}

h1 {
  font-family: 'Gochi Hand', cursive;
  font-size: 60px;
  color: #ec5a4d;
  text-align: center;
  margin: 0 0 4px;
  letter-spacing: 0.005em;
  line-height: 1;
}
.tag {
  font-family: 'Patrick Hand', cursive;
  font-size: 22px;
  color: rgba(60, 50, 30, 0.75);
  text-align: center;
  margin: 0 0 22px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 18px 6px 22px;
}
.step {
  position: relative;
  border: 2.5px solid #2a2018;
  border-radius: 14px;
  padding: 14px 14px 12px;
  background: #fff8e3;
  text-align: center;
}
.step .num {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 38px;
  height: 38px;
  border: 2.5px solid #2a2018;
  background: #ec5a4d;
  color: #fff8e3;
  font-family: 'Gochi Hand', cursive;
  font-size: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.step .step-art {
  width: 70px;
  height: 70px;
  margin: 0 auto 4px;
}
.step h3 {
  font-family: 'Gochi Hand', cursive;
  font-size: 26px;
  color: #2b4d8c;
  font-weight: normal;
  margin: 0 0 2px;
  line-height: 1;
}
.step p {
  font-family: 'Patrick Hand', cursive;
  font-size: 15px;
  color: rgba(60, 50, 30, 0.7);
  margin: 0;
  line-height: 1.3;
}

.canvas {
  position: relative;
  border: 4px solid #2a2018;
  border-radius: 16px;
  height: 5.4in;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffbed;
  overflow: hidden;
  margin: 0 6px;
}
.canvas .label {
  position: absolute;
  top: -14px;
  left: 18px;
  padding: 0 10px;
  background: #fff8e9;
  font-family: 'Gochi Hand', cursive;
  font-size: 22px;
  color: #2a2018;
  line-height: 1;
}

.outline {
  width: 60%;
  height: auto;
  opacity: 0.18;
}

.tips {
  margin: 18px 6px 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
  font-family: 'Patrick Hand', cursive;
  font-size: 15px;
  color: rgba(60, 50, 30, 0.6);
  text-align: center;
}

.footer {
  margin-top: 6px;
  font-family: 'Gochi Hand', cursive;
  font-size: 20px;
  color: #2b4d8c;
  text-align: center;
}

.actions {
  max-width: 7.5in;
  margin: 14px auto 0;
  text-align: right;
}
.actions button {
  padding: 10px 18px;
  font-family: 'Gochi Hand', cursive;
  font-size: 18px;
  background: #ec5a4d;
  color: #fff8e3;
  border: 2px solid #2a2018;
  border-radius: 999px;
  cursor: pointer;
}
.actions button:hover { background: #f37063; }

@media print {
  body { background: #fff; padding: 0; }
  .sheet {
    box-shadow: none;
    padding: 0.25in 0.4in 0.3in;
    max-width: none;
    background-image: none;
    background: #fff;
  }
  .sheet::before {
    inset: 0.1in;
  }
  .actions { display: none; }
}
