@font-face {
  font-family: Studio;
  src: url(studio.ttf) format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Body;
  src: url(body.ttf) format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Hand;
  src: url(hand.ttf) format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Dots;
  src: url(dots.ttf) format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #222e28;
  --green: #214f43;
  --paper: #fbf8ef;
  --line: #dadbd0;
  --muted: #505e55;
  --accent: #ad462d;
  color: var(--ink);
  font-family: Body, Arial, sans-serif;
  background: var(--paper);
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body,
figure,
p,
h1,
h2,
h3,
fieldset,
legend {
  margin: 0;
}
a {
  color: inherit;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ac512e;
  outline-offset: 4px;
}
.shell,
.bar {
  width: min(1160px, calc(100% - 84px));
  margin: auto;
}
.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  background: white;
  padding: 8px;
  transform: translateY(-160%);
  z-index: 8;
}
.skip:focus {
  transform: none;
}
header {
  border-bottom: 1px solid var(--line);
}
.bar {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font:
    600 28px Studio,
    Arial,
    sans-serif;
  letter-spacing: -1.5px;
}
.bar nav {
  display: flex;
  gap: 27px;
  margin: auto;
}
.bar nav a,
.help-link,
.guide li,
footer a {
  font-size: 14px;
}
.bar nav a,
.help-link {
  text-decoration: none;
}
.bar nav a {
  color: #4c5a52;
}
.bar nav a[aria-current] {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-color: #9cafa3;
}
.help-link {
  font-weight: bold;
}
.help-link span {
  margin-left: 4px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 7%;
  align-items: center;
  padding: 54px 0 43px;
}
.editor {
  padding: 7px 0;
}
.editor h1 {
  font:
    600 clamp(48px, 5vw, 76px) / 0.98 Studio,
    Arial,
    sans-serif;
  letter-spacing: -0.065em;
}
.editor h1 em {
  font-style: normal;
  color: var(--accent);
}
.intro {
  font-size: 17px;
  line-height: 1.54;
  max-width: 390px;
  color: var(--muted);
  margin: 20px 0 24px;
}
#settings {
  max-width: 399px;
}
#settings > label,
legend {
  font:
    600 14px Studio,
    Arial,
    sans-serif;
  letter-spacing: 0.01em;
}
#settings > label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}
small {
  font: 400 12px Body;
  color: var(--muted);
}
#names {
  width: 100%;
  background: #fffdf6;
  border: 1.3px solid #aeb6a9;
  border-radius: 9px;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
}
textarea#names {
  font-size: 16px;
  resize: vertical;
  min-height: 78px;
}
.options {
  display: flex;
  gap: 22px;
  margin: 18px 0 20px;
  flex-wrap: wrap;
}
.options fieldset {
  border: 0;
  padding: 0;
}
.pills {
  display: flex;
  border: 1px solid #c6cabe;
  border-radius: 7px;
  padding: 3px;
  gap: 2px;
  margin-top: 6px;
}
.pills label {
  position: relative;
  cursor: pointer;
}
.pills input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.pills span {
  display: block;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 13px;
  color: #4e594f;
}
.pills input:checked + span {
  color: #fff;
  background: var(--green);
}
.pills input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font: 600 16px Studio;
  padding: 14px;
}
.download:hover {
  background: #173e34;
}
.download svg,
.privacy svg {
  width: 19px;
  height: 19px;
}
.privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 9px;
  font-size: 12px;
  color: var(--muted);
}
.privacy svg {
  width: 14px;
  height: 14px;
}
#message:not(:empty) {
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 10px;
  color: #83371e;
}
.board {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 400px;
  height: clamp(400px, 39vw, 510px);
  border-radius: 23px;
  overflow: hidden;
  background-color: #dce9dd;
  background-image: radial-gradient(#a0baa65e 0.85px, transparent 0.95px);
  background-size: 12px 12px;
}
.sheet-wrap {
  position: relative;
  height: 83%;
  aspect-ratio: var(--ratio, 612 / 792);
  transform: rotate(-5deg);
  background: white;
  box-shadow:
    2px 3px 2px #23372a18,
    7px 13px 20px #304d3125;
}
.sheet-wrap:before {
  content: "";
  position: absolute;
  inset: 4px -5px -4px 3px;
  background: #f7f6ed;
  z-index: -1;
  transform: rotate(2.2deg);
  box-shadow: 1px 2px 4px #263f2e1a;
}
#sheet {
  display: block;
  width: 100%;
  height: 100%;
  background: white;
}
.tape {
  position: absolute;
  left: 34%;
  top: -11px;
  width: 31%;
  height: 23px;
  background: repeating-linear-gradient(
    45deg,
    #eadba9aa 0 5px,
    #f4e6bdbb 5px 10px
  );
  transform: rotate(1deg);
  opacity: 0.9;
  clip-path: polygon(
    1% 0,
    100% 0,
    98% 30%,
    100% 60%,
    97% 100%,
    0 100%,
    2% 68%,
    0 37%
  );
}
.pencil {
  position: absolute;
  right: 7%;
  bottom: 6%;
  width: 16px;
  height: 42%;
  background: linear-gradient(
    to right,
    #be7c37 0 18%,
    #f7b84e 18% 59%,
    #f4ca76 59% 80%,
    #e7a445 80%
  );
  border-radius: 4px 4px 2px 2px;
  transform: rotate(21deg);
  filter: drop-shadow(3px 3px 2px #5c60433b);
}
.pencil:before {
  content: "";
  display: block;
  height: 13%;
  background: linear-gradient(
    #d78a80 55%,
    #d3d1bf 56% 68%,
    #adae9e 69% 77%,
    #d4d1bf 78%
  );
  border-radius: 4px 4px 0 0;
}
.pencil:after {
  content: "";
  position: absolute;
  top: 99%;
  width: 100%;
  height: 18px;
  background: linear-gradient(#dcb786 60%, #424238 61%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  padding: 10px 3px;
}
.preview-label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.preview-label i {
  background: #417e56;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
}
.pager button {
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 11px;
}
.pager[hidden] {
  display: none;
}
.more {
  border-block: 1px solid var(--line);
  padding: 44px 0 50px;
  background: #f5f1e5;
}
h2 {
  font: 600 clamp(30px, 3.2vw, 46px) / 1.06 Studio;
  letter-spacing: -0.05em;
}
h2 span {
  color: var(--accent);
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 23px;
}
.tool-card {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: grid;
  grid-template-columns: 30% 1fr;
  overflow: hidden;
}
.tool-card > div:last-child {
  padding: 25px 22px;
}
.tool-card h3 {
  font: 600 23px/1.09 Studio;
  letter-spacing: -0.04em;
}
.tool-card p,
.guide p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 8px 0 14px;
}
.tool-card a,
footer a {
  font-size: 14px;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  color: var(--green);
}
.art {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.art-early,
.art-one {
  background: #f5da8d;
}
.art-class {
  background: #e7b29a;
}
.mini-sheet,
.art-class i {
  background: repeating-linear-gradient(white 0 21px, #ccd7c9 21px 22px);
  box-shadow: 1px 3px 4px #5a513124;
  color: #344e41;
}
.mini-sheet {
  width: 84%;
  aspect-ratio: 1.05;
  transform: rotate(-9deg);
  display: grid;
  place-items: center;
  border-radius: 1px;
}
.mini-sheet span {
  font: 44px Dots;
}
.art-class i {
  font: 22px Hand;
  position: absolute;
  padding: 3px 11px;
  left: 14%;
  width: 74%;
  transform: rotate(-7deg);
}
.art-class i:nth-child(1) {
  top: 19%;
  left: 11%;
}
.art-class i:nth-child(2) {
  top: 39%;
  transform: rotate(4deg);
  left: 18%;
}
.art-class i:nth-child(3) {
  top: 59%;
  transform: rotate(-4deg);
}
.guide {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 8%;
  padding: 54px 0;
}
.guide p {
  max-width: 330px;
}
.guide ol {
  margin: 0;
  padding-left: 24px;
}
.guide li {
  padding-left: 6px;
  line-height: 1.5;
  margin-bottom: 9px;
}
.guide li::marker {
  color: var(--accent);
  font-weight: bold;
}
footer {
  border-top: 1px solid var(--line);
  padding: 23px 0;
}
footer .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer .brand {
  font-size: 21px;
}
@media (max-width: 860px) {
  .shell,
  .bar {
    width: calc(100% - 42px);
  }
  .bar {
    gap: 20px;
  }
  .bar nav {
    gap: 16px;
  }
  .hero {
    gap: 4%;
    padding-top: 40px;
  }
  .options {
    gap: 10px;
  }
  .board {
    height: 407px;
  }
  .pills span {
    padding: 5px 9px;
  }
  .tool-card {
    grid-template-columns: 25% 1fr;
  }
  .tool-card > div:last-child {
    padding: 18px 15px;
  }
}
@media (max-width: 680px) {
  .bar {
    height: auto;
    padding: 13px 0 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 13px;
  }
  .bar nav {
    grid-column: 1/-1;
    grid-row: 2;
    justify-content: space-between;
    margin: 0;
    max-width: 360px;
  }
  .bar nav a {
    font-size: 13px;
    line-height: 20px;
  }
  .help-link {
    grid-column: 2;
    grid-row: 1;
  }
  .brand {
    font-size: 25px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0 22px;
  }
  .editor {
    padding: 0;
  }
  h1 br {
    display: none;
  }
  .editor h1 {
    font-size: clamp(42px, 10vw, 61px);
  }
  h1 em:before {
    content: " ";
  }
  .intro {
    margin: 12px 0 17px;
    font-size: 15px;
  }
  #settings {
    max-width: 100%;
  }
  .options {
    margin: 12px 0 13px;
    gap: 15px;
  }
  .board {
    min-height: 0;
    height: clamp(310px, 86vw, 430px);
  }
  .cards,
  .guide {
    grid-template-columns: 1fr;
  }
  .tool-card {
    grid-template-columns: 28% 1fr;
  }
  .cards {
    gap: 12px;
  }
  .more {
    padding: 30px 0;
  }
  .guide {
    padding: 35px 0;
    gap: 12px;
  }
  .privacy {
    margin-top: 6px;
  }
  .art-class i {
    font-size: 17px;
  }
  .mini-sheet span {
    font-size: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}
.board {
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
.sheet-wrap {
  min-width: 0;
  min-height: 0;
  max-width: 80%;
}
#sheet {
  position: absolute;
  inset: 0;
}
.preview-label {
  border: 0;
  background: none;
  padding: 3px 0;
  color: var(--green);
  font: inherit;
}
.preview-label:hover {
  text-decoration: underline;
}
.preview-label span {
  font-size: 13px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  width: min(590px, 95vw);
  max-height: 93dvh;
  background: var(--paper);
  padding: 14px;
  color: var(--ink);
}
dialog::backdrop {
  background: #182a23a6;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 12px;
}
.dialog-top h2 {
  font-size: 21px;
  letter-spacing: -0.03em;
}
.dialog-top button {
  background: white;
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 5px;
}
.dialog-top + img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 79dvh;
  margin: 0 auto;
}

@media (pointer: coarse) {
  .pills span { padding-block: 9px; }
  .pager button, .dialog-top button { min-height: 40px; }
  .preview-label { min-height: 36px; }
}
