:root {
  color: #164f98;
  background: #d7d0be;
  font-family: Kalam, "Segoe Print", "Bradley Hand", cursive;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid #c44b40; outline-offset: 3px; }
.page-shell { min-height: 100vh; padding: 18px 12px; display: grid; place-items: start center; }
.notebook {
  position: relative; width: min(100%, 640px); min-height: min(820px, calc(100vh - 36px));
  padding: 25px 22px 42px 62px; overflow: hidden;
  background-color: #f7f0df;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 34px, rgba(51, 111, 180, .22) 35px, transparent 36px);
  box-shadow: 0 12px 35px rgba(57, 45, 26, .25), inset 0 0 38px rgba(135, 100, 46, .08);
}
.notebook::before { content: ""; position: absolute; top: 0; bottom: 0; left: 43px; width: 2px; background: rgba(205, 72, 61, .65); }
.notebook::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .26; mix-blend-mode: multiply; background-image: radial-gradient(rgba(99, 77, 37, .32) .65px, transparent .75px); background-size: 5px 5px; }
.notebook-header, .add-form, .items, .empty, .error { position: relative; z-index: 1; }
.notebook-header { min-height: 121px; padding: 1px 0 0; }
.date { margin: 0; font-size: 20px; font-weight: 400; letter-spacing: .01em; line-height: 1.75; }
h1 { margin: 0; font-size: clamp(38px, 9vw, 55px); font-weight: 700; letter-spacing: -.04em; line-height: 1; transform: rotate(-.55deg); }
.subtitle { margin: 5px 0 0 2px; color: rgba(22, 79, 152, .71); font-size: 17px; font-weight: 300; }
.add-form { display: flex; align-items: center; min-height: 44px; margin-bottom: 3px; border-bottom: 1px solid rgba(29, 83, 151, .2); }
.add-form input { width: 100%; border: 0; outline: 0; color: #164f98; background: transparent; font-size: 20px; line-height: 1.55; padding: 0 5px 0 0; }
.add-form input::placeholder { color: rgba(22, 79, 152, .48); }
.add-form button { flex: 0 0 44px; height: 44px; margin-right: -3px; border: 0; border-radius: 50%; color: #f7f0df; background: #1c5ca9; font-size: 29px; font-weight: 300; line-height: 1; cursor: pointer; box-shadow: 0 2px 0 rgba(7, 45, 91, .3); }
.add-form button:active { transform: translateY(1px); box-shadow: none; }
.items { list-style: none; margin: 0; padding: 0; }
.item { display: flex; align-items: center; min-height: 36px; border-bottom: 1px solid rgba(29, 83, 151, .2); }
.item-check { display: flex; align-items: center; flex: 1; min-width: 0; min-height: 36px; cursor: pointer; }
.item-check input { appearance: none; width: 16px; height: 16px; flex: 0 0 16px; margin: 0 10px 0 1px; border: 1.5px solid #1c5ca9; border-radius: 50%; background: #f7f0df; cursor: pointer; }
.item-check input:checked { background: #1c5ca9; box-shadow: inset 0 0 0 3px #f7f0df; }
.item-text { overflow-wrap: anywhere; font-size: 21px; font-weight: 400; line-height: 1.45; transform: rotate(-.2deg); }
.item--done .item-text { color: rgba(22, 79, 152, .53); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.remove { width: 34px; height: 34px; margin-left: 6px; border: 0; color: rgba(22, 79, 152, .48); background: transparent; font-size: 27px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .12s ease; }
.item:hover .remove, .remove:focus-visible { opacity: 1; }
.empty { margin: 16px 0 0; color: rgba(22, 79, 152, .52); font-size: 19px; font-weight: 300; }
.error { margin: 6px 0; color: #ab342f; font-family: system-ui, sans-serif; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0, 0, 0, 0); overflow: hidden; white-space: nowrap; }
@media (max-width: 470px) {
  .page-shell { padding: 0; }
  .notebook { width: 100%; min-height: 100vh; padding: 22px 15px 40px 50px; box-shadow: none; }
  .notebook::before { left: 34px; }
  .notebook-header { min-height: 116px; }
  .date { font-size: 18px; }
  .item-text, .add-form input { font-size: 20px; }
  .remove { opacity: 1; }
}
