/* The free tools (/tools/ and every page under it). Loaded only there, after site.css,
   whose colours, fonts and tape button it uses.

   A tool page, top to bottom: where you are, the title, one line, the tool on a sheet of
   paper, a note about the app, how to use it, the long text, the questions, more tools,
   the navy band. On a wide screen the note about the app stands beside the text. */

.toolpage .foot { margin-top: 0; }

.tool, .hub { max-width: calc(1180px + 2 * var(--edge)); margin: 0 auto; padding: 34px var(--edge) 0; }

/* ---------- where you are, the title, the one line */

.crumbs { font-size: 1rem; color: var(--ink-soft); }
.crumbs a { text-decoration-color: var(--pencil); }
.tool__head h1, .hub__head h1 { margin-top: 14px; font-size: clamp(2.375rem, 9.6vw, 4.25rem); line-height: 1; letter-spacing: -0.02em; }
.tool__intro { margin-top: 14px; max-width: 34em; font-family: var(--title); font-style: italic; font-size: 1.3125rem; line-height: 1.35; color: var(--ink-soft); }

/* ---------- the sheet the tool lies on: a slip of paper, taped at its corner */

.tool__sheet { position: relative; margin-top: 30px; padding: 20px 14px 22px; background: var(--slip); box-shadow: var(--lift); border-radius: 2px; }
.tool__sheet::before { content: ""; position: absolute; left: 22px; top: -12px; width: 92px; height: 25px; background: var(--tape); opacity: 0.94; clip-path: var(--torn); transform: rotate(-3deg); }
.tool__noscript { margin-top: 16px; padding: 10px 14px; background: rgba(242, 201, 76, 0.42); border-left: 5px solid var(--marker); }

/* a button that is only words: the second things to do */
.quiet-button { min-height: 48px; padding: 0 14px; font: inherit; font-size: 1.0625rem; color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; text-decoration-color: var(--pencil); -webkit-tap-highlight-color: transparent; }
.quiet-button:hover { color: var(--stamp); }

/* ---------- the visited map (countries, states) */

.vmap__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; }
.vmap__tally { font-family: var(--title); font-style: italic; font-size: 1.375rem; color: var(--ink-soft); line-height: 1; }
/* Numbers that are read as numbers are set in the sans: the serif's "1" looks like a capital I. */
.vmap__tally b { font-family: var(--ui); font-style: normal; font-weight: 700; font-size: 4.25rem; letter-spacing: -0.02em; color: var(--ink); margin-right: 4px; }
.vmap__sub { flex: 1 1 14rem; font-size: 1.0625rem; color: var(--ink-soft); }

/* the two pens: what a tap marks */
.vmap__pens { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.vmap__pens > span { flex: 1 0 100%; font-family: var(--hand); font-weight: 500; font-size: 0.9375rem; color: var(--pencil-text); margin-bottom: -2px; }
.pen { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 16px 0 12px; font: inherit; font-weight: 700; font-size: 1.0625rem; color: var(--ink); background: none; border: 1.5px dashed var(--pencil); border-radius: 3px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pen i { width: 20px; height: 20px; border-radius: 3px; border: 1.5px solid var(--ink); }
.pen--been i { background: var(--tape); }
.pen--want i { background: var(--marker); }
.pen[aria-pressed="true"] { border: 2px solid var(--ink); background: var(--paper); padding: 0 15.5px 0 11.5px; box-shadow: 0 2px 0 rgba(38, 48, 59, 0.14); }
.pen[aria-pressed="false"] { color: var(--ink-soft); }

/* a map somebody sent */
.vmap__shared { margin-top: 16px; padding: 12px 14px; background: rgba(242, 201, 76, 0.36); border-left: 5px solid var(--marker); font-size: 1.0625rem; }
.vmap__shared div { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 2px 0 -6px -14px; }

/* the map itself: sea of dotted paper, land white, borders in pencil, coast in ink */
.vmap__frame { position: relative; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; margin: 16px -14px 0; background-color: var(--paper); background-image: var(--dots); background-size: var(--grid) var(--grid); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); aspect-ratio: 2.3; transition: aspect-ratio 0.35s ease; }
.vmap__frame::-webkit-scrollbar { display: none; }
.vmap__frame.is-wide .vmap__map { touch-action: pan-x pan-y; }
.vmap__map { display: block; width: 100%; max-width: none; height: 100%; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.vmap__wait { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--hand); font-weight: 500; color: var(--pencil-text); }
.vmap__coast { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.vmap__inert { fill: var(--slip); stroke: var(--pencil); stroke-width: 0.9; vector-effect: non-scaling-stroke; }
.place { fill: var(--slip); stroke: var(--pencil); stroke-width: 0.9; stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer; fill-rule: evenodd; transition: fill 0.12s; }
.place-dot { fill: var(--slip); stroke: var(--ink); stroke-width: 1.3; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill 0.12s; }
@media (hover: hover) {
  .place:hover, .place-dot:hover { fill: var(--paper-edge); }
  .place.is-been:hover, .place-dot.is-been:hover { fill: var(--stamp); }
  .place.is-want:hover, .place-dot.is-want:hover { fill: #E9B92E; }
}
.place.is-been, .place-dot.is-been { fill: var(--tape); stroke: var(--stamp); }
.place.is-want, .place-dot.is-want { fill: var(--marker); stroke: #A9861F; }
.vmap__hatch { pointer-events: none; stroke: none; fill-rule: evenodd; }
.place-label { font-family: var(--hand); font-weight: 500; fill: var(--ink-soft); text-anchor: middle; dominant-baseline: central; pointer-events: none; user-select: none; -webkit-user-select: none; }
.place-label.is-been { fill: #fff; }
.place-label.is-want { fill: var(--ink); }

.vmap__name { margin-top: 10px; min-height: 1.5em; font-family: var(--hand); font-weight: 500; font-size: 1.0625rem; color: var(--ink); }

.vmap__views { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.vmap__views button { min-height: 42px; padding: 0 13px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--dot); border-radius: 3px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vmap__views button:hover { border-color: var(--ink); }
.vmap__views button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 700; }

.vmap__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 22px; padding-top: 20px; border-top: 1.5px dashed var(--dot); }
.vmap__actions .tape-button { flex: 1 0 100%; margin-bottom: 6px; }
.vmap__actions .quiet-button:first-of-type { margin-left: -14px; }
.vmap__note { margin-top: 12px; font-family: var(--hand); font-weight: 500; font-size: 1.0625rem; color: var(--stamp); overflow-wrap: anywhere; }
.vmap__picture { margin-top: 20px; display: grid; gap: 18px; justify-items: start; }
.vmap__picture canvas { display: block; width: min(100%, 320px); height: auto; box-shadow: var(--lift); transform: rotate(-1.2deg); }
.vmap__picture div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }

/* the same places as a list: for small ones, for a keyboard, for a screen reader */
.vmap__list { margin-top: 30px; padding-top: 24px; border-top: 1.5px dashed var(--dot); }
.vmap__list h2 { font-size: 1.625rem; }
.vmap__find { display: block; margin-top: 14px; max-width: 26rem; }
.vmap__find span { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.vmap__find input { width: 100%; height: 52px; padding: 0 14px; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; -webkit-appearance: none; appearance: none; }
.vmap__find input::placeholder { color: var(--pencil-text); opacity: 1; }
.vmap__none { margin-top: 14px; color: var(--ink-soft); }
.vgroup { border-bottom: 1.5px solid var(--dot); }
.vgroup:first-of-type { margin-top: 14px; border-top: 1.5px solid var(--dot); }
.vgroup summary { display: flex; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.vgroup summary::-webkit-details-marker { display: none; }
.vgroup summary::before { content: ""; flex: none; width: 9px; height: 9px; margin: 0 4px 3px 2px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); transition: transform 0.15s; }
.vgroup[open] summary::before { transform: rotate(45deg); }
.vgroup summary b { font-family: var(--title); font-size: 1.3125rem; }
.vgroup summary span { margin-left: auto; white-space: nowrap; font-family: var(--hand); font-weight: 500; font-size: 1rem; color: var(--pencil-text); }
.vgroup__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr)); gap: 2px 14px; padding: 2px 0 16px; }
.tick { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 6px 4px 2px; font: inherit; font-size: 1.0625rem; line-height: 1.2; text-align: left; color: var(--ink); background: none; border: 0; border-radius: 3px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tick::before { content: ""; flex: none; width: 20px; height: 20px; border: 1.7px solid var(--pencil); border-radius: 3px; background: #fff; }
.tick.is-been::before { border-color: var(--stamp); background: var(--tape) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.6 3.8 7.4-8.6' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.tick.is-want::before { border-color: #A9861F; background: var(--marker); }
.tick.is-been { font-weight: 700; }
@media (hover: hover) { .tick:hover { background: var(--paper); } }

/* ---------- the national park checklist */

/* The same frame, pens and ticks as the visited map. Here the states are only the ground:
   what is tapped is a park's dot (the script takes the dot nearest to the finger). */
.parks .vmap__inert { pointer-events: none; }
.parks__map.is-over { cursor: pointer; }
.parks .place-dot:not(.is-been):not(.is-want) { fill: #fff; }
.parks .place-dot.is-been, .parks .place-dot.is-want { stroke: var(--ink); }
@media (hover: hover) { .parks .place-dot:not(.is-been):not(.is-want):hover { fill: var(--paper-edge); } }
.parks__word { fill: var(--ink-soft); stroke: var(--slip); stroke-linejoin: round; paint-order: stroke; }
.parks__word.is-been { fill: var(--stamp); font-weight: 700; }
.parks__word.is-want { fill: var(--ink); }
.parks__apart { fill: var(--pencil-text); }
.parks__rule { stroke: var(--pencil); stroke-width: 1.2; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.parks__near { margin-top: 2px; max-width: 40em; font-size: 1.0625rem; color: var(--ink-soft); }
.parks .vmap__views { margin-top: 12px; }

/* the checklist: every state that has a park, its parks under it */
.parks__printline { display: none; }
.parks__tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 32px; }
.parks__tools .vmap__find { flex: 1 1 16rem; }
.parks__groups { margin-top: 24px; columns: 15.5rem; column-gap: 36px; }
.pstate { break-inside: avoid; padding-bottom: 14px; }
.pstate h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 5px; border-bottom: 1.5px solid var(--dot); font-size: 1.25rem; }
.pstate h3 span { font-family: var(--hand); font-weight: 500; font-size: 0.9375rem; color: var(--pencil-text); white-space: nowrap; }
.parks .tick { width: 100%; break-inside: avoid; }
.tick__words small { display: block; font-size: 0.9375rem; font-weight: 400; color: var(--ink-soft); }
.tick__words small:empty { display: none; }
.parks__groups[data-order="name"] .pstate { break-inside: auto; padding-bottom: 0; }

@media print {
  /* the checklist alone: the title, the count, the parks in four columns with their boxes */
  .toolpage--parks .top, .toolpage--parks .foot, .toolpage--parks .tool__intro, .toolpage--parks .tool__text,
  .toolpage--parks .vmap__bar, .toolpage--parks .vmap__shared, .toolpage--parks .vmap__frame, .toolpage--parks .vmap__name,
  .toolpage--parks .parks__near, .toolpage--parks .vmap__note, .toolpage--parks .vmap__picture, .toolpage--parks .parks__tools,
  .toolpage--parks .parks__list h2, .toolpage--parks .vmap__none { display: none; }
  .toolpage--parks .tool, .toolpage--parks .tool__sheet { padding: 0; margin: 0; background: none; }
  .toolpage--parks .tool__head h1 { margin: 0; font-size: 22pt; }
  .toolpage--parks .parks__list { display: block; margin: 0; padding: 0; border: 0; }
  .toolpage--parks .parks__printline { display: block; margin-top: 4pt; font-size: 11.5pt; }
  .toolpage--parks .parks__printline::after { content: " \00b7  ticklist.me/tools/national-parks-checklist"; }
  .toolpage--parks .parks__groups { margin-top: 14pt; columns: 4; column-gap: 16pt; }
  .toolpage--parks .pstate { padding-bottom: 8pt; }
  .toolpage--parks .pstate h3 { padding-bottom: 1pt; font-size: 12pt; border-bottom: 0.6pt solid #000; }
  .toolpage--parks .pstate h3 span { display: none; }
  .toolpage--parks .tick { min-height: 0; padding: 3pt 0 0; gap: 5pt; font-size: 10.5pt; color: #000; align-items: flex-start; }
  /* a printer leaves out background colours, so the tick is a letter in the box */
  .toolpage--parks .tick::before { width: 9.5pt; height: 9.5pt; margin-top: 1pt; border: 0.8pt solid #000; border-radius: 1pt; background: none; font: 700 10pt/9.5pt var(--ui); text-align: center; color: #000; }
  .toolpage--parks .tick.is-been::before { content: "\2713"; background: none; }
  .toolpage--parks .tick.is-want .tick__words::after { content: " (want to go)"; font-weight: 400; font-style: italic; }
  .toolpage--parks .tick__words small { display: inline; font-size: 8pt; color: #000; }
  .toolpage--parks .tick__words small:not(:empty)::before { content: " \00b7  "; }
}

/* ---------- pieces more than one tool uses */

/* a row of choices, one of them pressed (the same look as the map's "look closer" buttons) */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.chips__name { flex: 1 0 100%; font-family: var(--hand); font-weight: 500; font-size: 0.9375rem; color: var(--pencil-text); margin-bottom: -2px; }
.chips button { min-height: 42px; padding: 0 13px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--dot); border-radius: 3px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 700; }
/* short facts about a place, each on its own scrap */
.facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { margin: 0; padding: 4px 11px 5px; font-size: 1rem; line-height: 1.3; background: var(--paper); border: 1.5px solid var(--dot); border-radius: 3px; }
.facts li.is-yes { border-color: var(--ink); font-weight: 700; }
.tool__sheet h2 { font-size: 1.625rem; }
.tool__sheet input[type="checkbox"] { width: 22px; height: 22px; margin: 0; accent-color: var(--tape); flex: none; }

/* ---------- the random destination */

.spin__go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.spin__button { min-height: 64px; padding: 0 34px; font-size: 1.375rem; }
.spin__button[disabled] { cursor: default; }
.spin__count { font-family: var(--hand); font-weight: 500; font-size: 1rem; color: var(--pencil-text); }
.spin__frame { aspect-ratio: 1.45; }
.spin__land { pointer-events: none; cursor: default; }
.spin__pin-ring { fill: rgba(217, 71, 43, 0.2); stroke: var(--tape); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.spin__pin-dot { fill: var(--tape); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.spin__result { margin-top: 20px; }
.spin__label { font-family: var(--hand); font-weight: 500; font-size: 1rem; color: var(--pencil-text); }
.tool__sheet .spin__name { margin-top: 2px; font-size: clamp(2.125rem, 8.4vw, 3.25rem); line-height: 1; letter-spacing: -0.015em; }
.spin__country { margin-top: 6px; font-family: var(--title); font-style: italic; font-size: 1.25rem; color: var(--ink-soft); }
.spin__why { margin-top: 12px; max-width: 34em; font-size: 1.1875rem; }
.spin__actions { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 8px 0 0 -14px; }
.spin__actions button[disabled] { color: var(--pencil-text); text-decoration: none; cursor: default; }
.spin__filters, .spin__kept { margin-top: 28px; padding-top: 22px; border-top: 1.5px dashed var(--dot); }
.spin__skip { display: flex; align-items: center; gap: 12px; margin-top: 18px; min-height: 44px; font-size: 1.0625rem; cursor: pointer; }
.spin__kept ul { list-style: none; margin: 10px 0 0; padding: 0; }
.spin__kept li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1.5px solid var(--dot); }
.spin__kept-name { flex: 1; min-height: 52px; padding: 6px 0; font: inherit; font-family: var(--title); font-weight: 700; font-size: 1.25rem; line-height: 1.15; text-align: left; color: var(--ink); background: none; border: 0; cursor: pointer; }
.spin__kept-name:hover { color: var(--stamp); }
.spin__kept-note { margin-top: 12px; font-size: 1rem; color: var(--ink-soft); }

/* ---------- the date night jar */

/* the jar, the count beside it, the button under them */
.jar__stage { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 4px 16px; align-items: center; }
.jar__glass { grid-column: 1; grid-row: 1; }
.jar__svg { display: block; width: 100%; max-width: none; height: auto; overflow: visible; }
.jar__stage .vmap__top { grid-column: 2; display: block; }
.jar__stage .vmap__tally span { display: block; margin-top: 4px; }
.jar__stage .vmap__sub { margin-top: 8px; }
.jar__go, .jar__out { grid-column: 1 / -1; }
.jar__go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 14px; }
.jar__pull { flex: 1 0 100%; min-height: 64px; padding: 0 34px; font-size: 1.375rem; }
.jar__jump { font-size: 1.0625rem; }

/* the drawing: glass in ink, a lid of red tape, slips in pencil */
.jar__body { fill: var(--paper); stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; }
.jar__shine { fill: none; stroke: var(--pencil); stroke-width: 1.6; stroke-linecap: round; opacity: 0.5; }
.jar__lid { transform-box: fill-box; transform-origin: center; transition: transform 0.3s ease; }
.jar__lid-top { fill: var(--tape); stroke: var(--stamp); stroke-width: 2; stroke-linejoin: round; }
.jar__lid-ridge { fill: none; stroke: var(--stamp); stroke-width: 1.6; stroke-linecap: round; }
.jar__name { fill: var(--slip); stroke: var(--ink); stroke-width: 1.5; }
.jar__word { font-family: var(--hand); font-weight: 500; font-size: 14.5px; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.scrap { fill: #fff; stroke: var(--pencil); stroke-width: 1.2; }
.scrap--want { fill: var(--marker); stroke: #A9861F; }
.scrap--been { fill: var(--tape); stroke: var(--stamp); }
.scrap--out { stroke: var(--ink); stroke-width: 1.6; }
.scrap__ink { fill: none; stroke: var(--pencil); stroke-width: 1; stroke-linecap: round; opacity: 0.7; }
.scrap__ink--white { stroke: #fff; opacity: 0.9; }
/* a slip is out: the lid is off, and one slip is in the air */
.jar__flyer { opacity: 0; transition: opacity 0.25s ease 0.1s; }
.jar.is-open .jar__flyer { opacity: 1; }
.jar.is-open .jar__lid { transform: translate(58px, -12px) rotate(30deg); }

/* the slip that came out */
.jar__out { margin-top: 20px; padding: 18px 18px 8px; background: var(--paper); border: 1.5px solid var(--dot); box-shadow: var(--lift); transform: rotate(-0.5deg); }
.jar__out.is-fresh { animation: jar-out 0.35s ease; }
@keyframes jar-out { from { opacity: 0; transform: translateY(-14px) rotate(-3deg); } to { opacity: 1; transform: rotate(-0.5deg); } }
.jar__label { font-family: var(--hand); font-weight: 500; font-size: 1rem; color: var(--pencil-text); }
.jar__idea { margin-top: 4px; font-family: var(--hand); font-weight: 500; font-size: clamp(1.5rem, 6.2vw, 2rem); line-height: 1.22; color: var(--ink); text-wrap: balance; }
.jar__acts { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 8px 0 0 -14px; }

/* under the jar: which slips go in, the dates done, a slip of your own, the page to print */
.jar__part { margin-top: 28px; padding-top: 22px; border-top: 1.5px dashed var(--dot); }
.jar__done ul, .jar__own-list { list-style: none; margin: 10px 0 0; padding: 0; }
.jar__done li, .jar__own-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; min-height: 52px; padding: 6px 0; border-bottom: 1.5px solid var(--dot); }
.jar__done-text, .jar__own-list span { flex: 1 1 13rem; font-family: var(--hand); font-weight: 500; font-size: 1.0625rem; line-height: 1.3; }
.jar__done-text::before { content: ""; display: inline-block; width: 20px; height: 20px; margin: 0 10px -4px 0; border: 1.7px solid var(--stamp); border-radius: 3px; background: var(--tape) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.6 3.8 7.4-8.6' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.jar__done-day { font-size: 1rem; color: var(--pencil-text); white-space: nowrap; }
.jar__done .quiet-button, .jar__own-list .quiet-button { min-height: 44px; margin-left: auto; padding-right: 0; }
.jar__own > .quiet-button, .jar__end > .quiet-button { margin: 4px 0 0 -14px; }
.jar__end { padding-top: 10px; }
.jar__own .vmap__note, .jar__end .vmap__note { margin-top: 4px; }
.jar__own-list { margin-top: 4px; border-top: 1.5px solid var(--dot); }
.jar__print { scroll-margin-top: 16px; }
.jar__line { margin-top: 8px; max-width: 40em; font-size: 1.0625rem; color: var(--ink-soft); }
.jar__print .vmap__actions { margin-top: 16px; padding-top: 0; border-top: 0; }
/* the label to tape on the jar, and the slips: what is on the screen is what is printed */
.jar__tag { margin-top: 22px; max-width: 21rem; padding: 14px 18px 16px; text-align: center; background: #fff; border: 1.5px dashed var(--pencil); }
.jar__tag-name { font-family: var(--title); font-weight: 700; font-size: 1.75rem; line-height: 1.05; }
.jar__tag-rule { margin-top: 6px; font-family: var(--hand); font-weight: 500; font-size: 0.9375rem; line-height: 1.3; color: var(--ink-soft); }
.jar__sheet { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); gap: 10px; }
.paper { display: flex; align-items: center; justify-content: center; min-height: 78px; padding: 10px 14px; text-align: center; font-family: var(--hand); font-weight: 500; font-size: 1rem; line-height: 1.3; color: var(--ink); background: #fff; border: 1.5px dashed var(--pencil); }
.paper.is-own { background: rgba(242, 201, 76, 0.36); }
.paper.is-done { color: var(--pencil-text); text-decoration: line-through; text-decoration-color: var(--tape); }
.jar__more { margin: 6px 0 0 -14px; }
@media screen {
  .jar__sheet.is-short .is-extra { display: none; }
}
@media (min-width: 700px) {
  .jar__stage { grid-template-columns: 190px minmax(0, 1fr); gap: 0 40px; align-items: start; }
  .jar__glass { grid-row: 1 / span 3; }
  .jar__stage .vmap__top { padding-top: 34px; }
  .jar__stage .vmap__tally span { display: inline; }
  .jar__go, .jar__out { grid-column: 2; }
  .jar__go { margin-top: 18px; }
  .jar__pull { flex: none; }
  .jar__out { max-width: 36rem; padding: 22px 24px 10px; }
}
@media print {
  /* only the label and the slips, three across, with lines to cut along */
  .toolpage--jar .top, .toolpage--jar .foot, .toolpage--jar .tool__head, .toolpage--jar .tool__text, .toolpage--jar .tool__noscript,
  .toolpage--jar .jar__stage, .toolpage--jar .vmap__note, .toolpage--jar .jar__part:not(.jar__print),
  .toolpage--jar .jar__print h2, .toolpage--jar .jar__line, .toolpage--jar .jar__more { display: none; }
  .toolpage--jar .tool, .toolpage--jar .tool__sheet, .toolpage--jar .jar__print { max-width: none; margin: 0; padding: 0; border: 0; background: none; }
  .toolpage--jar .jar__tag { width: 3.4in; max-width: none; margin: 0 0 0.3in; border: 1pt dashed #666; break-inside: avoid; }
  .toolpage--jar .jar__tag-rule { color: #000; }
  .toolpage--jar .jar__sheet { grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0 1pt 1pt 0; }
  .toolpage--jar .paper { min-height: 0.95in; margin: 0 -1pt -1pt 0; padding: 0.08in 0.14in; font-size: 11pt; color: #000; background: none; border: 1pt dashed #666; text-decoration: none; break-inside: avoid; }
}

/* ---------- the quiz */

.quiz__step { font-family: var(--hand); font-weight: 500; font-size: 1rem; color: var(--pencil-text); }
.quiz__track { margin-top: 8px; height: 6px; background: var(--paper-edge); border-radius: 3px; overflow: hidden; }
.quiz__bar { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.25s ease; }
.tool__sheet .quiz__question { margin-top: 22px; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.02; letter-spacing: -0.015em; }
.quiz__question:focus { outline: none; }
.quiz__options { display: grid; gap: 10px; margin-top: 22px; max-width: 34rem; }
.quiz__option { min-height: 60px; padding: 10px 18px; font: inherit; font-weight: 700; font-size: 1.1875rem; line-height: 1.2; text-align: left; color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 0 2px 0 rgba(38, 48, 59, 0.14); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.quiz__option:hover { background: var(--paper); }
.quiz__option:active { transform: translateY(1px); box-shadow: none; }
.quiz__option.is-picked { background: var(--marker); }
.quiz__back { margin: 10px 0 -8px -14px; }
.quiz__wait { font-family: var(--hand); font-weight: 500; color: var(--pencil-text); }
.quiz__shared { margin-bottom: 18px; padding: 12px 14px; background: rgba(242, 201, 76, 0.36); border-left: 5px solid var(--marker); font-size: 1.0625rem; }
.quiz__shared .quiet-button { margin: 0 0 -8px -14px; }
.tool__sheet .quiz__title { font-size: clamp(1.875rem, 7vw, 2.75rem); line-height: 1.02; }
.quiz__asked { margin-top: 8px; max-width: 44em; font-size: 1rem; color: var(--ink-soft); }
.quiz__cards { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
.quiz__card { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 18px 18px 10px; background: var(--paper); border: 1.5px solid var(--dot); border-radius: 3px; }
.quiz__rank { font-family: var(--ui); font-weight: 700; font-size: 3.25rem; line-height: 0.9; color: var(--pencil); }
.quiz__card h3 { font-size: 1.75rem; line-height: 1.05; }
.quiz__country { margin-top: 4px; font-family: var(--title); font-style: italic; color: var(--ink-soft); }
.quiz__why { margin-top: 10px; }
.quiz__card .quiet-button { margin: 6px 0 0 -14px; text-align: left; }
.quiz__card .quiet-button[disabled] { color: var(--pencil-text); text-decoration: none; cursor: default; }
.quiz__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 22px; padding-top: 20px; border-top: 1.5px dashed var(--dot); }

/* ---------- 30 before 30 */

.list30__date { display: block; margin-top: 16px; max-width: 16rem; }
.list30__date span { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.list30__date input { width: 100%; height: 52px; padding: 0 12px; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; -webkit-appearance: none; appearance: none; }
.list30__jump { margin-top: 14px; font-size: 1.0625rem; }
.list30__rows { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.list30__row { display: grid; grid-template-columns: 2rem 30px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 50px; border-bottom: 1.5px solid var(--dot); }
.list30__n { font-family: var(--ui); font-weight: 700; font-size: 1.375rem; line-height: 1; text-align: right; color: var(--pencil); }
.list30__box { width: 30px; height: 30px; padding: 0; background: #fff; border: 1.7px solid var(--pencil); border-radius: 3px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.list30__box[disabled] { opacity: 0.45; cursor: default; }
.list30__box.is-done { border-color: var(--stamp); background: var(--tape) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.6 3.8 7.4-8.6' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.list30__input { width: 100%; min-height: 46px; padding: 0 4px; font-family: var(--hand); font-weight: 500; font-size: 1.0625rem; color: var(--ink); background: none; border: 0; border-radius: 2px; }
.list30__input.is-done { color: var(--pencil-text); text-decoration: line-through; text-decoration-color: var(--tape); }
.list30__ideas { margin-top: 30px; padding-top: 24px; border-top: 1.5px dashed var(--dot); scroll-margin-top: 16px; }
.list30__ideas > p { margin-top: 8px; font-size: 1.0625rem; color: var(--ink-soft); }
.list30__ideas .vgroup__items { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 18px; }
.idea { min-height: 42px; padding: 6px 12px; font: inherit; font-size: 1rem; line-height: 1.2; text-align: left; color: var(--ink); background: none; border: 1.5px dashed var(--pencil); border-radius: 3px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.idea:hover { border-color: var(--ink); border-style: solid; }
.idea.is-used { background: var(--marker); border: 1.5px solid #A9861F; }

/* ---------- the season lists (summer, spring, winter) */

/* On a phone, three things under each other: who it is for and the button that fills the
   page, the page itself with what to do with it, the ideas. On a wide screen the page
   stands on the left and the other two beside it. */
.season { display: grid; grid-template-columns: minmax(0, 1fr); }
.season__setup .chips { margin-top: 0; }
.season__fill { display: block; width: 100%; min-height: 54px; margin-top: 14px; padding: 8px 20px; font: inherit; font-weight: 700; font-size: 1.125rem; line-height: 1.2; color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 0 2px 0 rgba(38, 48, 59, 0.14); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.season__fill:hover { background: var(--paper); }
.season__fill:active { transform: translateY(1px); box-shadow: none; }
/* winter: one box to tick under "Who is it for?", for a winter without snow */
.season__without { display: flex; align-items: center; gap: 11px; width: fit-content; min-height: 46px; margin-top: 8px; font-size: 1.0625rem; line-height: 1.2; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.season__without + .season__fill { margin-top: 8px; }
.season__page { max-width: 31rem; }

/* The sheet: a page of the notebook, with its own colors (the script draws the picture
   with the same ones). --pad is its side margin, --box the column the tick boxes stand in. */
.season__sheet { --sheet: var(--paper); --rule: var(--dot); --soft: var(--pencil-text); --glow: var(--marker); --pad: 16px; --box: 38px;
  position: relative; margin-top: 34px; padding: 30px var(--pad) 12px; color: var(--ink); background-color: var(--sheet); box-shadow: var(--lift), 0 0 0 1px var(--paper-edge);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.season__sheet::before { content: ""; position: absolute; left: 50%; top: -11px; width: 96px; height: 24px; margin-left: -48px; background: var(--tape); opacity: 0.94; clip-path: var(--torn); transform: rotate(-2deg); }
.season[data-paper="dotted"] .season__sheet { background-image: var(--dots); background-size: var(--grid) var(--grid); }
/* lined: a school notebook, ruled from edge to edge (the red line of its margin is on the lines, below) */
.season[data-paper="lined"] .season__sheet { --sheet: #fff; --rule: #B9C6D6; }
/* kraft: brown paper with its fibres, white where the other papers have yellow marker */
.season[data-paper="kraft"] .season__sheet { --sheet: #CDB088; --rule: #8E7755; --soft: #4F4636; --glow: #fff;
  background-image: repeating-linear-gradient(23deg, rgba(255, 250, 235, 0.05) 0 1px, transparent 1px 9px), repeating-linear-gradient(81deg, rgba(88, 62, 28, 0.04) 0 1px, transparent 1px 13px), repeating-linear-gradient(142deg, rgba(88, 62, 28, 0.035) 0 2px, transparent 2px 17px); }

/* the drawings: one pen for the lines, a marker that never stays quite inside them */
.doodle { position: absolute; display: block; overflow: visible; pointer-events: none; }
.doodle__line { fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.doodle__color { fill: var(--glow); stroke: none; opacity: 0.85; }
.doodle__color--tape { fill: var(--tape); }

/* the title, written a little askew over a stroke of marker */
.season__head { position: relative; padding: 38px 0 24px; }
.tool__sheet .season__title { position: relative; isolation: isolate; width: fit-content; margin: 0 auto; font-family: var(--hand); font-weight: 500; font-size: 3.125rem; line-height: 1; text-align: center; transform: rotate(-2.5deg); -webkit-text-stroke: 0.7px currentColor; }
.season__title span { display: block; }
.season__title [data-subtitle] { margin-top: 0.34em; font-size: 0.38em; letter-spacing: 0.15em; -webkit-text-stroke: 0; }
.doodle--swash { z-index: -1; left: -9%; top: 0.3em; width: 118%; height: 0.74em; }
.doodle--sun { left: -8px; top: -20px; width: 66px; height: 66px; transform: rotate(-8deg); }
.doodle--shades { right: 2px; top: 92px; width: 58px; height: 29px; transform: rotate(12deg); }
.doodle--kite { left: 4px; top: -12px; width: 50px; height: 72px; transform: rotate(16deg); }
.doodle--bird { right: -2px; top: 44px; width: 62px; height: 44px; transform: rotate(-6deg); }
.doodle--flake { left: -2px; top: -14px; width: 60px; height: 60px; transform: rotate(10deg); }
.doodle--hat { right: -6px; top: 38px; width: 60px; height: 54px; transform: rotate(-9deg); }

/* the lines: a box drawn by hand, and a line to write on */
.season__rows { list-style: none; margin: 0; padding: 0; }
.season__row { display: grid; grid-template-columns: var(--box) minmax(0, 1fr); align-items: start; gap: 8px; }
.season__box { display: grid; place-items: center; width: var(--box); height: 44px; padding: 0; color: inherit; background: none; border: 0; border-radius: 3px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.season__box svg { display: block; width: 30px; height: 28px; overflow: visible; }
.season__box-line { fill: #fff; stroke: var(--soft); stroke-width: 1.6; stroke-linejoin: round; }
.season__tick { fill: none; stroke: var(--tape); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1.6; stroke-dashoffset: 1.3; transition: stroke-dashoffset 0.25s ease-out; }
.season__box[aria-pressed="true"] .season__tick { stroke-dashoffset: 0; }
.season__box[disabled] { cursor: default; }
.season__box[disabled] svg { opacity: 0.55; }
/* A line is a text field that grows: its words are written once more behind it, unseen
   (the script keeps data-words), and that copy gives the field its height. */
.season__write { display: grid; min-height: 46px; border-bottom: 1.5px solid var(--rule); }
.season__write::after { content: attr(data-words) " "; visibility: hidden; white-space: pre-wrap; }
.season__write::after, .season__input { grid-area: 1 / 1; min-width: 0; margin: 0; padding: 12px 2px 6px; font-family: var(--hand); font-weight: 500; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.season__input { display: block; width: 100%; height: 100%; color: inherit; background: none; border: 0; border-radius: 2px; resize: none; overflow: hidden; }
.season__input.is-done { color: var(--soft); text-decoration: line-through; text-decoration-color: var(--tape); text-decoration-thickness: 2px; }
.season[data-paper="lined"] .season__row { margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); border-bottom: 1.5px solid var(--rule);
  background-image: linear-gradient(to right, transparent calc(var(--pad) + var(--box) + 3px), rgba(217, 71, 43, 0.5) 0, rgba(217, 71, 43, 0.5) calc(var(--pad) + var(--box) + 4.5px), transparent 0); }
.season[data-paper="lined"] .season__row:first-child { border-top: 1.5px solid var(--rule); }
.season[data-paper="lined"] .season__write { border-bottom-color: transparent; }

/* spring, winter: a run of lines with a heading (a month, a half of the winter), its name
   under a stroke of marker, its drawing beside it */
.season__part + .season__part { margin-top: 10px; }
.tool__sheet .season__month { position: relative; display: flex; align-items: flex-end; justify-content: space-between; min-height: 58px; padding-bottom: 6px; font-family: var(--hand); font-weight: 500; font-size: 1.75rem; line-height: 1.1; }
.season__month span { margin-left: -4px; padding: 0 8px 0 6px; background: linear-gradient(176deg, transparent 46%, var(--glow) 47%, var(--glow) 88%, transparent 89%); transform: rotate(-1.5deg); }
.season__month .doodle { position: static; flex: none; height: 54px; margin-right: 4px; }
.doodle--sprout, .doodle--cloud, .doodle--mug { width: 67px; }
.doodle--tulip, .doodle--mitten { width: 38px; }

/* summer: three drawings under the last line */
.season__foot { position: relative; height: 82px; margin-top: 12px; }
.doodle--wave { left: 3%; bottom: 4px; width: 76px; height: 53px; }
.doodle--melon { left: 50%; bottom: 8px; width: 78px; height: 47px; margin-left: -42px; transform: rotate(-8deg); }
.doodle--cone { right: 7%; bottom: 4px; width: 47px; height: 67px; transform: rotate(10deg); }
.season__made { margin-top: 14px; text-align: center; font-family: var(--hand); font-weight: 500; font-size: 0.8125rem; color: var(--soft); }

/* under the sheet: the count, the choices, what to keep */
.season__count { margin-top: 18px; font-family: var(--title); font-style: italic; font-size: 1.1875rem; color: var(--ink-soft); }
.season__count b { font-family: var(--ui); font-style: normal; font-weight: 700; font-size: 1.375rem; color: var(--ink); }
.season__page .vmap__actions { margin-top: 20px; }
.season__page .vmap__actions .tape-button + .quiet-button { margin-left: -14px; }

/* the ideas */
.season__ideas { margin-top: 32px; padding-top: 24px; border-top: 1.5px dashed var(--dot); scroll-margin-top: 16px; }
.season__ideas > p { margin-top: 8px; font-size: 1.0625rem; color: var(--ink-soft); }
.season__ideas .vgroup__items { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 18px; }
/* what a tap did, kept in sight while the ideas scroll by */
.season__ideas > .season__said { position: sticky; bottom: 12px; z-index: 2; width: fit-content; max-width: 100%; margin-top: 14px; padding: 9px 14px; font-family: var(--hand); font-weight: 500; font-size: 1rem; line-height: 1.3; color: var(--ink); background: var(--marker); box-shadow: var(--lift); overflow-wrap: anywhere; }

@media (min-width: 700px) {
  .season__fill { width: auto; }
  .season__page .vmap__actions .tape-button + .quiet-button { margin-left: 0; }
  .season__sheet { --pad: 26px; --box: 40px; padding-top: 34px; }
  .tool__sheet .season__title { font-size: 4rem; }
  .doodle--sun { left: -8px; width: 92px; height: 92px; }
  .doodle--shades { top: 78px; width: 78px; height: 39px; }
  .doodle--kite { left: 6px; width: 62px; height: 89px; }
  .doodle--bird { top: 56px; width: 80px; height: 56px; }
  .doodle--flake { left: 2px; top: -16px; width: 78px; height: 78px; }
  .doodle--hat { top: 50px; width: 78px; height: 70px; }
  .season__write::after, .season__input { font-size: 1.0625rem; }
}
@media (min-width: 1040px) {
  .season { grid-template-columns: minmax(0, 31rem) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 56px; align-items: start; }
  .season__setup { grid-column: 2; grid-row: 1; }
  .season__page { grid-column: 1; grid-row: 1 / span 2; }
  .season__ideas { grid-column: 2; grid-row: 2; margin-top: 28px; }
  .season__sheet { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .season__tick { transition: none; }
}
@media print {
  /* the sheet alone, on one page, on the paper that was chosen */
  .toolpage--season .top, .toolpage--season .foot, .toolpage--season .tool__head, .toolpage--season .tool__text, .toolpage--season .tool__noscript,
  .toolpage--season .season__setup, .toolpage--season .season__ideas, .toolpage--season .season__count, .toolpage--season .chips,
  .toolpage--season .vmap__note, .toolpage--season .vmap__picture, .toolpage--season .season__sheet::before { display: none; }
  .toolpage--season .tool, .toolpage--season .tool__sheet { max-width: none; margin: 0; padding: 0; background: none; }
  .toolpage--season .season { display: block; }
  .toolpage--season .season__page { max-width: none; }
  .toolpage--season .season__sheet { --pad: 0.6in; --box: 34pt; display: flex; flex-direction: column; height: 9.3in; margin: 0; padding: 0.35in var(--pad) 0.2in; box-shadow: none; break-inside: avoid; }
  .toolpage--season .season__head { padding: 0.3in 0 0.25in; }
  .toolpage--season .season__title { font-size: 46pt; }
  .toolpage--season .doodle--sun { left: 0; top: 0; width: 1.25in; height: 1.25in; }
  .toolpage--season .doodle--shades { right: 0; top: 0.75in; width: 1.1in; height: 0.55in; }
  .toolpage--season .doodle--kite { left: 0.1in; top: -0.1in; width: 0.85in; height: 1.21in; }
  .toolpage--season .doodle--bird { right: 0; top: 0.55in; width: 1.1in; height: 0.77in; }
  .toolpage--season .doodle--flake { left: 0.05in; top: -0.05in; width: 1.1in; height: 1.1in; }
  .toolpage--season .doodle--hat { right: 0.05in; top: 0.28in; width: 0.96in; height: 0.86in; }
  .toolpage--season .season__rows, .toolpage--season .season__part { flex: 1 1 0; display: flex; flex-direction: column; min-height: 0; }
  .toolpage--season .season__part + .season__part { margin-top: 6pt; }
  .toolpage--season .season__row { flex: 1 1 0; min-height: 0; gap: 8pt; align-items: stretch; }
  .toolpage--season .season__box { height: auto; align-items: end; padding-bottom: 2pt; }
  .toolpage--season .season__box svg { width: 21pt; height: 19.5pt; opacity: 1; }
  /* on paper every line is one line: the words stand on the rule */
  .toolpage--season .season__write { min-height: 0; align-items: end; }
  .toolpage--season .season__write::after, .toolpage--season .season__input { height: auto; padding: 0 2pt 1pt; font-size: 14pt; line-height: 1.25; white-space: nowrap; }
  .toolpage--season .season[data-lines="30"] .season__box svg { width: 15pt; height: 14pt; }
  .toolpage--season .season[data-lines="30"] .season__write::after, .toolpage--season .season[data-lines="30"] .season__input { font-size: 11.5pt; }
  .toolpage--season .season__month { min-height: 0; padding: 4pt 0 2pt; font-size: 22pt; }
  .toolpage--season .season__month .doodle { height: 40pt; }
  .toolpage--season .doodle--sprout, .toolpage--season .doodle--cloud, .toolpage--season .doodle--mug { width: 50pt; }
  .toolpage--season .doodle--tulip, .toolpage--season .doodle--mitten { width: 28pt; }
  .toolpage--season .season__foot { height: 0.95in; margin-top: 6pt; }
  .toolpage--season .doodle--wave { width: 1.2in; height: 0.84in; }
  .toolpage--season .doodle--melon { width: 1.25in; height: 0.75in; margin-left: -0.62in; }
  .toolpage--season .doodle--cone { width: 0.66in; height: 0.94in; }
  .toolpage--season .season__made { margin-top: 6pt; font-size: 9pt; }
}

/* ---------- the life checklist */

/* the title has a number in it: lining figures, so that its "1" does not read as a capital I */
.toolpage--life .tool__head h1 { font-variant-numeric: lining-nums; }

/* the pens stay in reach while a hundred lines scroll by; the small count joins them
   once the large one is out of sight */
.life__stick { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 14px -14px 0; padding: 8px 14px; background: var(--slip); border-bottom: 1.5px dashed var(--dot); }
.life__stick.is-stuck { border-bottom: 1.5px solid var(--ink); box-shadow: 0 10px 14px -12px rgba(38, 48, 59, 0.5); }
.life__mini { display: none; flex: none; font-family: var(--title); font-style: italic; font-size: 1.0625rem; line-height: 1; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.life__mini b { font-family: var(--ui); font-style: normal; font-weight: 700; font-size: 1.75rem; color: var(--ink); margin-right: 2px; }
.life__stick.is-stuck .life__mini { display: block; }
.life__pens { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.life__pens > span { display: none; font-family: var(--hand); font-weight: 500; font-size: 0.9375rem; color: var(--pencil-text); }
.life__pens .pen { min-height: 44px; padding: 0 12px 0 9px; gap: 7px; font-size: 1rem; }
.life__pens .pen[aria-pressed="true"] { padding: 0 11.5px 0 8.5px; }
.life__stick:not(.is-stuck) .life__pens { margin-left: 0; }
.life__stick:not(.is-stuck) .life__pens > span { display: inline; }

.life__theme { margin-top: 28px; }
.life__theme:first-child { margin-top: 20px; }
.life__theme h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1.5px solid var(--ink); }
.life__theme h2 span { font-family: var(--hand); font-weight: 500; font-size: 1rem; color: var(--pencil-text); white-space: nowrap; }
.life__items { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px; }
.life__items .tick { min-height: 50px; padding: 6px 4px 6px 2px; border-bottom: 1.5px solid var(--dot); border-radius: 0; scroll-margin-top: 84px; }
.life__items .tick::before { width: 24px; height: 24px; }
.life__items .tick.is-want { background: rgba(242, 201, 76, 0.2); }

/* "Your hundred": a row for each theme, a box for each line */
.life__result { margin-top: 38px; padding-top: 26px; border-top: 1.5px dashed var(--dot); scroll-margin-top: 76px; }
.life__line { margin-top: 8px; font-size: 1.0625rem; color: var(--ink-soft); }
.life__grid { display: grid; gap: 5px; margin-top: 16px; max-width: 25rem; }
.life__row { display: grid; grid-template-columns: 7.4rem minmax(0, 1fr); align-items: center; gap: 10px; }
.life__row-name { font-family: var(--hand); font-weight: 500; font-size: 0.875rem; line-height: 1; color: var(--pencil-text); text-align: right; white-space: nowrap; }
.life__cells { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.life__cells i, .life__key i { aspect-ratio: 1; background: #fff; border: 1.5px solid var(--pencil); border-radius: 2px; }
.life__cells i.is-done, .life__key i.is-done { background: var(--tape); border-color: var(--stamp); }
.life__cells i.is-want, .life__key i.is-want { background: var(--marker); border-color: #A9861F; }
.life__key { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 1rem; color: var(--ink-soft); }
.life__key i { width: 16px; }
.life__key i.is-want { margin-left: 12px; }

/* "My list": what is still ahead, to print or to copy */
.life__mine { margin-top: 38px; padding-top: 26px; border-top: 1.5px dashed var(--dot); }
.life__mine h2 span { margin-left: 8px; font-family: var(--hand); font-weight: 500; font-size: 1rem; color: var(--pencil-text); white-space: nowrap; }
.life__empty { margin-top: 16px; max-width: 34em; color: var(--ink-soft); }
.life__mine ul { list-style: none; margin: 14px 0 0; padding: 0; }
.life__mine li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; border-bottom: 1.5px solid var(--dot); font-family: var(--hand); font-weight: 500; font-size: 1.0625rem; line-height: 1.3; break-inside: avoid; }
.life__mine li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; background: #fff; border: 1.7px solid var(--pencil); border-radius: 3px; }
.life__mine li.is-want::before { background: var(--marker); border-color: #A9861F; }
.life__from { display: none; }
.life__mine-actions { display: none; flex-wrap: wrap; gap: 0 6px; margin: 10px 0 0 -14px; }
.has-list .life__mine-actions { display: flex; }

@media (min-width: 560px) {
  .life__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .life__mine ul { columns: 2; column-gap: 40px; }
}
@media (min-width: 700px) {
  .life__stick { margin-left: -28px; margin-right: -28px; padding: 10px 28px; }
  .life__pens > span { display: inline; }
  .life__pens .pen { padding: 0 16px 0 12px; gap: 9px; font-size: 1.0625rem; }
  .life__pens .pen[aria-pressed="true"] { padding: 0 15.5px 0 11.5px; }
}
@media (min-width: 1040px) {
  .life__stick { margin-left: -40px; margin-right: -40px; padding: 10px 40px; }
  /* the hundred on the left; the grid beside it, staying in view under the pens */
  .life__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); column-gap: 56px; align-items: start; }
  .life__result { position: sticky; top: 88px; margin-top: 20px; padding-top: 0; border-top: 0; }
  .life__result .vmap__actions .tape-button { flex: 1 0 100%; margin: 0 0 6px; }
  .life__result .vmap__actions .quiet-button:first-of-type { margin-left: -14px; }
  .life__mine ul { columns: 3; }
}
@media print {
  /* "Print my list" prints that list alone, with its boxes */
  .toolpage--life .top, .toolpage--life .foot, .toolpage--life .tool__head, .toolpage--life .tool__text,
  .toolpage--life .vmap__top, .toolpage--life .vmap__shared, .toolpage--life .life__stick, .toolpage--life .life__cols,
  .toolpage--life .chips, .toolpage--life .life__mine-actions, .toolpage--life .life__empty, .toolpage--life .vmap__note { display: none; }
  .toolpage--life .tool, .toolpage--life .tool__sheet { padding: 0; margin: 0; background: none; }
  .toolpage--life .life__mine { margin: 0; padding: 0; border: 0; }
  .toolpage--life .life__mine ul { columns: 2; column-gap: 32px; }
  .toolpage--life .life__mine li { padding: 6px 0; }
  .toolpage--life .life__mine li::before { background: #fff; border-color: var(--pencil); }
  .toolpage--life .life__from { display: block; margin-top: 18px; font-size: 0.875rem; color: var(--ink-soft); }
}

/* ---------- the bucket list calendar */

/* A year on one sheet: its title, the button that fills the lines, twelve months. A month is
   a leaf of dotted paper: its name on a stroke of marker and its drawing on the left, its
   dates on the right, four lines under them, and its ideas folded away at the foot.
   --box is the column the tick boxes stand in. The drawings use .doodle (the season lists). */
.cal { --rule: var(--dot); --soft: var(--pencil-text); --glow: var(--marker); --box: 36px; }
/* the line under the title: its figures lining (the serif's "1" reads as a capital I), its lines of even length */
.toolpage--calendar .tool__intro { text-wrap: balance; font-variant-numeric: lining-nums; }
/* the title: the year, large, on a stroke of marker. On a phone its other words stand beside
   it in two short lines, so that the first month is in sight when the page opens. */
.cal__head { padding: 6px 0 0; }
.tool__sheet .cal__title { position: relative; isolation: isolate; display: flex; align-items: center; gap: 18px; width: fit-content; margin: 0 auto; font-family: var(--hand); font-weight: 500; font-size: 3.5rem; line-height: 1; transform: rotate(-2deg); -webkit-text-stroke: 0.7px currentColor; }
.cal__title span { display: block; }
.cal__title [data-subtitle] { max-width: 8.6em; font-size: 0.34em; line-height: 1.3; letter-spacing: 0.12em; -webkit-text-stroke: 0; }
.cal__title .doodle--swash { left: -0.22em; top: 0.28em; width: 2.9em; height: 0.76em; }
.cal__fill, .cal__second { display: block; width: 100%; min-height: 54px; padding: 8px 20px; font: inherit; font-weight: 700; font-size: 1.125rem; line-height: 1.2; color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 0 2px 0 rgba(38, 48, 59, 0.14); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cal__fill { min-height: 50px; margin-top: 14px; }
.cal__fill:hover, .cal__second:hover { background: var(--paper); }
.cal__fill:active, .cal__second:active { transform: translateY(1px); box-shadow: none; }
/* twelve short names: on a phone the year is a long way down */
.cal__jump { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.cal__jump a { display: grid; place-items: center; min-height: 38px; font-size: 1rem; line-height: 1; color: var(--ink); text-decoration: none; background: var(--paper); border: 1.5px solid var(--dot); border-radius: 3px; -webkit-tap-highlight-color: transparent; }
.cal__jump a:hover { border-color: var(--ink); }

/* a month whose ideas are open grows by itself: the months beside it keep their height */
.cal__months { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 20px; margin-top: 16px; }
.cal__month { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name grid" "art grid" "rows rows" "ideas ideas"; grid-template-rows: auto 1fr auto auto; column-gap: 10px; align-content: start; padding: 14px 12px 0; color: var(--ink); background-color: var(--paper); background-image: var(--dots); background-size: var(--grid) var(--grid); box-shadow: 0 0 0 1px var(--paper-edge), var(--lift); scroll-margin-top: 14px; }
.tool__sheet .cal__name { grid-area: name; font-family: var(--hand); font-weight: 500; font-size: 1.625rem; line-height: 1.15; }
.cal__name span { display: inline-block; margin-left: -4px; padding: 0 8px 0 6px; background: linear-gradient(176deg, transparent 46%, var(--glow) 47%, var(--glow) 88%, transparent 89%); transform: rotate(-1.5deg); }
.cal__doodle { grid-area: art; position: static; align-self: start; width: 68px; height: 68px; margin: 10px 0 0 8px; }
/* the dates: figures in the sans, a letter for each weekday */
.cal__grid { grid-area: grid; align-self: start; border-collapse: collapse; font-family: var(--ui); }
.cal__grid th, .cal__grid td { width: 21px; height: 17px; padding: 0; text-align: center; vertical-align: middle; font-size: 0.8125rem; line-height: 1; font-weight: 400; }
.cal__grid th { height: 20px; padding-bottom: 3px; font-weight: 700; font-size: 0.6875rem; color: var(--pencil-text); border-bottom: 1.5px solid var(--dot); }
.cal__grid tbody tr:first-child td { height: 20px; padding-top: 3px; }

/* the lines: a box drawn by hand, and a line to write on */
.cal__rows { grid-area: rows; list-style: none; margin: 8px 0 0; padding: 0; }
.cal__row { display: grid; grid-template-columns: var(--box) minmax(0, 1fr); align-items: start; gap: 6px; }
.cal__box { display: grid; place-items: center; width: var(--box); height: 44px; padding: 0; color: inherit; background: none; border: 0; border-radius: 3px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cal__box svg { display: block; width: 30px; height: 28px; overflow: visible; }
.cal__box-line { fill: #fff; stroke: var(--soft); stroke-width: 1.6; stroke-linejoin: round; }
.cal__tick { fill: none; stroke: var(--tape); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1.6; stroke-dashoffset: 1.3; transition: stroke-dashoffset 0.25s ease-out; }
.cal__box[aria-pressed="true"] .cal__tick { stroke-dashoffset: 0; }
.cal__box[disabled] { cursor: default; }
.cal__box[disabled] svg { opacity: 0.55; }
/* A line is a text field that grows: its words are written once more behind it, unseen
   (the script keeps data-words), and that copy gives the field its height. */
.cal__write { display: grid; min-height: 46px; border-bottom: 1.5px solid var(--rule); }
.cal__write::after { content: attr(data-words) " "; visibility: hidden; white-space: pre-wrap; }
.cal__write::after, .cal__input { grid-area: 1 / 1; min-width: 0; margin: 0; padding: 12px 2px 6px; font-family: var(--hand); font-weight: 500; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.cal__input { display: block; width: 100%; height: 100%; color: inherit; background: none; border: 0; border-radius: 2px; resize: none; overflow: hidden; }
.cal__input.is-done { color: var(--soft); text-decoration: line-through; text-decoration-color: var(--tape); text-decoration-thickness: 2px; }

/* a month's ideas, under its lines */
.cal .cal__ideas { grid-area: ideas; margin-top: 0; border: 0; }
.cal__ideas summary { min-height: 52px; }
.cal__ideas summary b { font-size: 1.125rem; }
.cal__ideas .vgroup__items { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 16px; }
.cal__ideas .idea { background: var(--slip); }
.cal__ideas .idea.is-used { background: var(--marker); }
.cal__made { display: none; }
/* what a tap did, said at the foot of the screen while the line itself may be out of sight */
.cal__said { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 8; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 10px 16px 11px; font-family: var(--hand); font-weight: 500; font-size: 1rem; line-height: 1.3; color: var(--paper); background: var(--ink); border-radius: 3px; box-shadow: 0 12px 18px -10px rgba(38, 48, 59, 0.7); pointer-events: none; }

/* under the months: the count, the first day of the week, what to keep */
.cal__keep { margin-top: 26px; }
.cal__count { font-family: var(--title); font-style: italic; font-size: 1.1875rem; color: var(--ink-soft); }
.cal__count b { font-family: var(--ui); font-style: normal; font-weight: 700; font-size: 1.375rem; color: var(--ink); }
.cal__keep .vmap__actions { margin-top: 20px; }
.cal__keep .vmap__actions .tape-button { margin-bottom: 8px; }
.cal__second { flex: 1 0 100%; margin-bottom: 4px; }
.cal__second + .quiet-button { margin-left: -14px; }

@media (min-width: 700px) {
  .cal__setup { display: flex; flex-direction: column; align-items: center; }
  .cal__fill, .cal__second { width: auto; }
  .cal__head { padding-top: 8px; }
  .tool__sheet .cal__title { display: block; font-size: 4.25rem; text-align: center; }
  .cal__title [data-subtitle] { max-width: none; margin-top: 0.36em; line-height: 1; }
  .cal__title .doodle--swash { left: 50%; width: 3.2em; margin-left: -1.6em; }
  .cal__fill { min-height: 54px; margin-top: 18px; }
  .cal__months { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 22px; }
  .cal__month { padding: 16px 16px 0; }
  .cal__jump { grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 18px; }
  .cal__keep .vmap__actions .tape-button, .cal__second { flex: none; margin: 0 6px 0 0; }
  .cal__second + .quiet-button { margin-left: 0; }
}
@media (min-width: 1040px) {
  /* the whole year is in sight three months at a time: no need to jump */
  .cal__months { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
  .cal__jump { display: none; }
  .cal__keep { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .cal__tick { transition: none; }
}
@media print {
  /* The calendar alone, upright, made to fit US Letter and A4. As it comes: the year on one
     page, three months across and four down. */
  .toolpage--calendar .top, .toolpage--calendar .foot, .toolpage--calendar .tool__head, .toolpage--calendar .tool__text, .toolpage--calendar .tool__noscript,
  .toolpage--calendar .cal__setup, .toolpage--calendar .cal__jump, .toolpage--calendar .cal__ideas, .toolpage--calendar .cal__keep, .toolpage--calendar .cal__said,
  .toolpage--calendar .cal__input { display: none; }
  .toolpage--calendar .tool, .toolpage--calendar .tool__sheet { max-width: none; margin: 0; padding: 0; background: none; }
  .toolpage--calendar .cal { --rule: #9A9A9A; --soft: #555; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .toolpage--calendar .cal__page { display: flex; flex-direction: column; height: 9.6in; break-inside: avoid; }
  .toolpage--calendar .cal__head { padding: 0 0 0.16in; }
  .toolpage--calendar .cal__title { display: flex; align-items: baseline; gap: 14pt; margin: 0 0 0 6pt; font-size: 30pt; transform: none; }
  .toolpage--calendar .cal__title [data-subtitle] { max-width: none; margin: 0; font-size: 15pt; line-height: 1; letter-spacing: 0.06em; }
  .toolpage--calendar .cal__title .doodle--swash { left: -0.2em; margin-left: 0; width: 2.9em; }
  .toolpage--calendar .cal__months { flex: 1 1 0; min-height: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 0.13in 0.22in; margin: 0; }
  .toolpage--calendar .cal__month { grid-template-areas: "name grid" "art grid" "rows rows"; grid-template-rows: auto auto minmax(0, 1fr); column-gap: 6pt; padding: 0; color: #000; background: none; box-shadow: none; break-inside: avoid; }
  .toolpage--calendar .cal__name { font-size: 14pt; }
  .toolpage--calendar .cal__doodle { width: 0.44in; height: 0.44in; margin: 3pt 0 0 3pt; }
  .toolpage--calendar .cal__doodle .doodle__line { stroke-width: 1.1pt; }
  .toolpage--calendar .cal__grid th, .toolpage--calendar .cal__grid td, .toolpage--calendar .cal__grid tbody tr:first-child td { width: 11.6pt; height: 8.2pt; padding: 0; font-size: 6.8pt; color: #000; }
  .toolpage--calendar .cal__grid th { height: 9pt; padding-bottom: 1pt; font-size: 6pt; color: #444; border-bottom: 0.6pt solid #9A9A9A; }
  .toolpage--calendar .cal__grid tbody tr:first-child td { height: 9.6pt; padding-top: 1.4pt; }
  .toolpage--calendar .cal__rows { display: flex; flex-direction: column; min-height: 0; margin-top: 2pt; }
  .toolpage--calendar .cal__row { flex: 1 1 0; min-height: 0; grid-template-columns: 14pt minmax(0, 1fr); gap: 3pt; align-items: stretch; }
  .toolpage--calendar .cal__box { width: 14pt; height: auto; align-items: end; justify-items: start; padding-bottom: 1.5pt; }
  .toolpage--calendar .cal__box svg { width: 13pt; height: 12pt; opacity: 1; }
  .toolpage--calendar .cal__box-line { stroke-width: 1.3; }
  /* on paper the words are the copy behind the field: one line, or two small ones, standing on the rule */
  .toolpage--calendar .cal__write { min-height: 0; align-items: end; border-bottom: 0.7pt solid var(--rule); }
  .toolpage--calendar .cal__write::after { visibility: visible; max-height: 2.3em; padding: 0 0 1.5pt 1pt; font-size: 8.5pt; line-height: 1.1; white-space: normal; overflow: hidden; }
  .toolpage--calendar .cal__write.is-done::after { color: #555; text-decoration: line-through; text-decoration-color: var(--tape); }
  .toolpage--calendar .cal__made { display: block; margin-top: 5pt; text-align: right; font-family: var(--hand); font-weight: 500; font-size: 7.5pt; color: #555; }

  /* "Print a page for each month" (the script puts print-months on the body): twelve pages,
     each a page of a wall calendar. The month and its drawing, a square for every day, its
     four lines. A week without a day in it is left out, so the squares are as tall as they can be. */
  .print-months.toolpage--calendar .cal__page { display: block; height: auto; break-inside: auto; }
  .print-months.toolpage--calendar .cal__head, .print-months.toolpage--calendar .cal__made { display: none; }
  .print-months.toolpage--calendar .cal__months { display: block; }
  .print-months.toolpage--calendar .cal__month { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name art" "grid grid" "rows rows" "made made"; grid-template-rows: auto minmax(0, 1fr) auto auto; column-gap: 0; height: 9.6in; page-break-after: always; break-after: page; }
  .print-months.toolpage--calendar .cal__month:last-child { page-break-after: auto; break-after: auto; }
  .print-months.toolpage--calendar .cal__month::after { content: "ticklist.me/tools"; grid-area: made; margin-top: 6pt; text-align: right; font-family: var(--hand); font-weight: 500; font-size: 8pt; color: #555; }
  .print-months.toolpage--calendar .cal__name { align-self: end; padding: 0 0 0.16in 6pt; font-size: 42pt; }
  .print-months.toolpage--calendar .cal__name::after { content: attr(data-year); margin-left: 14pt; font-family: var(--ui); font-weight: 700; font-size: 24pt; color: #555; }
  .print-months.toolpage--calendar .cal__doodle { align-self: end; width: 0.95in; height: 0.95in; margin: 0 0.12in 0.1in 0; }
  .print-months.toolpage--calendar .cal__doodle .doodle__line { stroke-width: 1.9pt; }
  .print-months.toolpage--calendar .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 0.3in; grid-auto-rows: minmax(0, 1fr); align-self: stretch; min-height: 0; padding: 0 0.8pt 0.8pt 0; }
  .print-months.toolpage--calendar .cal__grid thead, .print-months.toolpage--calendar .cal__grid tbody, .print-months.toolpage--calendar .cal__grid tr { display: contents; }
  .print-months.toolpage--calendar .cal__grid tr.is-spare { display: none; }
  .print-months.toolpage--calendar .cal__grid th, .print-months.toolpage--calendar .cal__grid td, .print-months.toolpage--calendar .cal__grid tbody tr:first-child td { display: block; width: auto; height: auto; margin: 0 -0.8pt -0.8pt 0; padding: 4pt 6pt; text-align: left; font-weight: 700; font-size: 14pt; border: 0.8pt solid #555; }
  .print-months.toolpage--calendar .cal__grid th { padding: 0 6pt; font-size: 0; }
  .print-months.toolpage--calendar .cal__grid th::after { content: attr(data-long); font-size: 10pt; line-height: 0.3in; color: #000; }
  .print-months.toolpage--calendar .cal__rows { display: block; margin-top: 0.2in; }
  .print-months.toolpage--calendar .cal__rows::before { content: attr(aria-label) " bucket list"; display: block; padding-left: 2pt; font-family: var(--hand); font-weight: 500; font-size: 15pt; }
  .print-months.toolpage--calendar .cal__row { height: 0.42in; grid-template-columns: 24pt minmax(0, 1fr); gap: 8pt; }
  .print-months.toolpage--calendar .cal__box { width: 24pt; padding-bottom: 2pt; }
  .print-months.toolpage--calendar .cal__box svg { width: 21pt; height: 19.5pt; }
  .print-months.toolpage--calendar .cal__write::after { max-height: 1.3em; padding: 0 2pt 2pt; font-size: 14pt; line-height: 1.25; white-space: nowrap; }
}

/* ---------- the reverse bucket list */

/* the two kinds of list, as the index tabs of a notebook: the open one is part of the sheet */
.reverse__tabs { display: flex; align-items: flex-end; gap: 6px; border-bottom: 1.5px solid var(--ink); }
.reverse__tabs button { flex: 0 1 auto; min-width: 0; display: grid; align-content: start; gap: 1px; min-height: 54px; padding: 7px 12px 8px; font: inherit; line-height: 1.15; text-align: left; color: var(--ink-soft); background: var(--paper); border: 1.5px dashed var(--pencil); border-bottom: 0; border-radius: 7px 7px 0 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.reverse__tabs b { font-family: var(--title); font-size: 1.1875rem; }
.reverse__tabs small { font-family: var(--hand); font-weight: 500; font-size: 0.8125rem; color: var(--pencil-text); }
.reverse__tabs button:hover { color: var(--ink); border-color: var(--ink); }
.reverse__tabs button[aria-selected="true"] { margin-bottom: -1.5px; padding-bottom: 11px; color: var(--ink); background: var(--slip); border: 1.5px solid var(--ink); border-bottom: 0; }
.reverse__panel { padding-top: 18px; }
.reverse__jump { white-space: nowrap; }
/* figures in the serif: lining ones, so that "100" does not read as "IOO" */
.reverse__ideas h2, .reverse .vmap__tally span, .toolpage--reverse .tool__intro { font-variant-numeric: lining-nums; }

/* the examples: each a scrap with a box, ticked in red once it is on the sheet */
.reverse__ideas { margin-top: 22px; scroll-margin-top: 16px; }
.reverse__ideas > p { margin-top: 8px; max-width: 34em; font-size: 1.0625rem; color: var(--ink-soft); }
.reverse__ideas .vgroup__items, .reverse__starts div { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 18px; }
.reverse__ideas .idea { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 10px; }
.reverse__ideas .idea::before { content: ""; flex: none; width: 17px; height: 17px; background: #fff; border: 1.5px solid var(--pencil); border-radius: 3px; }
.reverse__ideas .idea.is-used { font-weight: 700; background: rgba(217, 71, 43, 0.09); border: 1.5px solid var(--stamp); }
.reverse__ideas .idea.is-used::before { border-color: var(--stamp); background: var(--tape) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.6 3.8 7.4-8.6' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* the sheet itself: a page of the dotted paper, taped on, a little crooked */
.reverse__mine { margin-top: 30px; }
.reverse__orders { margin: 0 0 4px; }
.reverse__sheet { position: relative; margin: 22px -6px 0; padding: 34px 13px 16px; background-color: var(--paper); background-image: var(--dots); background-size: var(--grid) var(--grid); box-shadow: 0 0 0 1px var(--paper-edge), var(--lift); transform: rotate(-0.35deg); scroll-margin-top: 28px; }
.reverse__sheet::before { content: ""; position: absolute; left: 50%; top: -11px; width: 104px; height: 25px; margin-left: -52px; background: var(--tape); opacity: 0.94; clip-path: var(--torn); transform: rotate(2deg); }
.tool__sheet .reverse__title { font-family: var(--hand); font-weight: 500; font-size: clamp(2.125rem, 10vw, 2.875rem); line-height: 1.1; letter-spacing: -0.015em; text-align: center; }
/* a stroke of the red pen under the title */
.reverse__title::after { content: ""; display: block; width: 8.5rem; height: 10px; margin: 5px auto 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 136 10' preserveAspectRatio='none'%3E%3Cpath d='M3 6c30-5 60 4 130-2' fill='none' stroke='%23D9472B' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.reverse__sheet--wants .reverse__title::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 136 10' preserveAspectRatio='none'%3E%3Cpath d='M3 6c30-5 60 4 130-2' fill='none' stroke='%237B808B' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.reverse__printline { display: none; }
.reverse__rows, .reverse__wants { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.reverse__row, .reverse__want { border-bottom: 1.5px solid var(--dot); }
.reverse__empty { margin-top: -1.5px; padding: 13px 2px; border-bottom: 1.5px solid var(--dot); font-family: var(--hand); font-weight: 500; font-size: 1rem; line-height: 1.35; color: var(--pencil-text); }

/* a line: a red tick, the words in handwriting, the year in figures, a small pencil to say it can be changed */
.reverse__line { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 15px; align-items: start; gap: 0 8px; width: 100%; min-height: 50px; padding: 13px 2px 11px; font: inherit; text-align: left; color: var(--ink); background: none; border: 0; border-radius: 2px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.reverse__line::before { content: ""; grid-column: 1; grid-row: 1; width: 20px; height: 20px; margin-top: 1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2.5 10.5l4.6 5.3 10.2-12' fill='none' stroke='%23D9472B' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.reverse__line::after { content: ""; grid-column: 4; grid-row: 1; width: 15px; height: 15px; margin-top: 4px; opacity: 0.6; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.2 13.8l.7-3.3 8-8a1.3 1.3 0 0 1 1.9 0l.7.7a1.3 1.3 0 0 1 0 1.9l-8 8zM9.6 3.8l2.6 2.6' fill='none' stroke='%237B808B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.reverse__text { grid-column: 2; grid-row: 1; font-family: var(--hand); font-weight: 500; font-size: 1.0625rem; line-height: 1.35; overflow-wrap: anywhere; }
.reverse__year { grid-column: 3; grid-row: 1; font-family: var(--ui); font-weight: 700; font-size: 1.0625rem; line-height: 1.35; color: var(--pencil-text); white-space: nowrap; }
.reverse__year:empty { display: none; }
@media (hover: hover) {
  .reverse__line:hover { background: rgba(241, 233, 216, 0.75); }
  .reverse__line:hover::after { opacity: 1; }
}
/* by year: the year comes first, in the red of things lived, and the sheet reads as a timeline */
.reverse__rows[data-order="year"] .reverse__line { grid-template-columns: 2.6rem minmax(0, 1fr) 15px; }
.reverse__rows[data-order="year"] .reverse__line::before { display: none; }
.reverse__rows[data-order="year"] .reverse__year { grid-column: 1; display: block; color: var(--stamp); }
.reverse__rows[data-order="year"] .reverse__year:empty { width: 20px; height: 20px; margin-top: 1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2.5 10.5l4.6 5.3 10.2-12' fill='none' stroke='%23D9472B' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.reverse__rows[data-order="year"] .reverse__line::after { grid-column: 3; }

/* a line that is open, and the line at the foot of the sheet where a new one is written */
.reverse__editor, .reverse__add { display: grid; grid-template-columns: minmax(0, 1fr) 4.75rem; gap: 8px; }
.reverse__editor { padding: 9px 0 0; }
.reverse__editor div { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 6px; margin: -4px 0 0 -14px; }
.reverse__add { align-items: end; margin-top: 16px; }
.reverse__add--want { grid-template-columns: minmax(0, 1fr); }
.reverse__field span { display: block; margin-bottom: 5px; font-weight: 700; font-size: 1rem; line-height: 1.2; }
.reverse__input, .reverse__field input { display: block; width: 100%; height: 50px; padding: 0 10px; font-family: var(--hand); font-weight: 500; font-size: 1.0625rem; color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; -webkit-appearance: none; appearance: none; }
.reverse__input--year, .reverse__field--year input { padding: 0 4px; font-family: var(--ui); font-weight: 700; font-size: 1.125rem; text-align: center; }
.reverse__field input::placeholder, .reverse__input::placeholder { color: var(--pencil-text); opacity: 0.75; }
.reverse__input:focus-visible, .reverse__field input:focus-visible { outline-offset: 1px; }
.reverse__put { grid-column: 1 / -1; min-height: 50px; padding: 0 18px; font: inherit; font-weight: 700; font-size: 1.0625rem; color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 0 2px 0 rgba(38, 48, 59, 0.14); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.reverse__put:hover { background: var(--paper-edge); }
.reverse__put:active { transform: translateY(1px); box-shadow: none; }

/* what just happened, said at the foot of the screen while the sheet is out of sight */
.reverse__toast { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 8; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 10px 16px 11px; font-family: var(--hand); font-weight: 500; font-size: 1rem; line-height: 1.3; color: var(--paper); background: var(--ink); border-radius: 3px; box-shadow: 0 12px 18px -10px rgba(38, 48, 59, 0.7); pointer-events: none; }

/* "Let go": wants in handwriting, crossed out with one stroke of the pencil */
.reverse__calm { max-width: 34rem; }
.reverse__want { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; }
.reverse__strike { min-height: 50px; padding: 12px 2px; font-family: var(--hand); font-weight: 500; font-size: 1.0625rem; line-height: 1.35; text-align: left; color: var(--ink); overflow-wrap: anywhere; background: none; border: 0; border-radius: 2px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.reverse__strike[aria-pressed="true"] span { color: var(--pencil-text); text-decoration: line-through; text-decoration-color: var(--pencil); text-decoration-thickness: 2px; }
.reverse__x { width: 44px; height: 44px; padding: 0 0 3px; font-family: var(--ui); font-size: 1.625rem; line-height: 1; color: var(--pencil-text); background: none; border: 0; border-radius: 2px; cursor: pointer; }
.reverse__x:hover { color: var(--stamp); }
.reverse__starts { margin-top: 30px; }
.reverse__starts p { font-size: 1.0625rem; color: var(--ink-soft); }
.reverse__starts div { padding: 10px 0 0; }
.reverse__last { margin: 12px 0 0 -14px; }

@media (min-width: 560px) {
  .reverse__sheet { margin-left: 0; margin-right: 0; padding: 38px 24px 22px; }
  .reverse__add { grid-template-columns: minmax(0, 1fr) 5rem auto; }
  .reverse__add--want { grid-template-columns: minmax(0, 1fr) auto; }
  .reverse__put { grid-column: auto; }
  .reverse__line { gap: 0 10px; }
}
@media (min-width: 700px) {
  .reverse__tabs button { padding: 8px 20px 9px; }
  .reverse__tabs button[aria-selected="true"] { padding-bottom: 12px; }
  .reverse__tabs b { font-size: 1.3125rem; }
}
@media (min-width: 1040px) {
  /* the examples on the left; the sheet beside them, staying in view while it fits the screen */
  .reverse__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27.5rem); column-gap: 56px; align-items: start; }
  .reverse__jump { display: none; }
  .reverse__mine { position: sticky; top: 20px; margin-top: 22px; }
  .reverse__mine.is-tall { position: static; }
  .reverse__mine .vmap__actions .tape-button { flex: 1 0 100%; margin: 0 0 6px; }
  .reverse__mine .vmap__actions .quiet-button:first-of-type { margin-left: -14px; }
}
@media print {
  /* the sheet alone: its title, the count, every line with its year */
  .toolpage--reverse .top, .toolpage--reverse .foot, .toolpage--reverse .tool__head, .toolpage--reverse .tool__text, .toolpage--reverse .tool__noscript,
  .toolpage--reverse .reverse__tabs, .toolpage--reverse .vmap__top, .toolpage--reverse .reverse__jump, .toolpage--reverse .reverse__ideas,
  .toolpage--reverse .reverse__orders, .toolpage--reverse .reverse__add, .toolpage--reverse .reverse__empty, .toolpage--reverse .vmap__note,
  .toolpage--reverse .vmap__picture, .toolpage--reverse .reverse__toast, .toolpage--reverse .reverse__starts, .toolpage--reverse .reverse__last,
  .toolpage--reverse .reverse__x, .toolpage--reverse .reverse__line::after, .toolpage--reverse .reverse__sheet::before { display: none; }
  .toolpage--reverse .tool, .toolpage--reverse .tool__sheet, .toolpage--reverse .reverse__panel, .toolpage--reverse .reverse__mine { max-width: none; margin: 0; padding: 0; background: none; }
  .toolpage--reverse .reverse__cols { display: block; }
  .toolpage--reverse .reverse__mine { position: static; }
  .toolpage--reverse .reverse__calm { max-width: none; }
  .toolpage--reverse .reverse__sheet { margin: 0; padding: 0; background: none; box-shadow: none; transform: none; }
  .toolpage--reverse .reverse__title { font-size: 30pt; }
  .toolpage--reverse .reverse__printline { display: block; margin-top: 6pt; text-align: center; font-size: 11.5pt; color: #000; }
  .toolpage--reverse .reverse__printline::after { content: " \00b7  ticklist.me/tools/reverse-bucket-list"; }
  .toolpage--reverse .reverse__rows, .toolpage--reverse .reverse__wants { margin-top: 16pt; border-top: 0.8pt solid #000; }
  .toolpage--reverse .reverse__row, .toolpage--reverse .reverse__want { border-bottom: 0.6pt solid #999; break-inside: avoid; }
  .toolpage--reverse .reverse__line, .toolpage--reverse .reverse__strike { min-height: 0; padding: 7pt 0 6pt; color: #000; }
  /* a printer leaves out background pictures, so the tick is a letter */
  .toolpage--reverse .reverse__line::before, .toolpage--reverse .reverse__rows[data-order="year"] .reverse__year:empty::before { content: "\2713"; background: none; font: 700 12pt/1.35 var(--ui); color: #000; }
  .toolpage--reverse .reverse__rows[data-order="year"] .reverse__year:empty { background: none; }
  .toolpage--reverse .reverse__text, .toolpage--reverse .reverse__strike { font-size: 12.5pt; }
  .toolpage--reverse .reverse__year, .toolpage--reverse .reverse__rows[data-order="year"] .reverse__year { font-size: 13pt; color: #000; }
  .toolpage--reverse .reverse :focus-visible { outline: 0; }
  .toolpage--reverse .reverse__strike[aria-pressed="true"] span { color: #000; text-decoration-color: #000; }
}

/* ---------- the christmas bucket list */

/* A December sheet with 24 windows. On a phone, three things under each other: who it is
   for and the button that fills the sheet, the sheet with what to do with it, the ideas.
   On a wide screen the sheet stands on the left and the other two beside it. */
.advent { display: grid; grid-template-columns: minmax(0, 1fr); }
.advent__setup .chips { margin-top: 0; }
.advent__fill { display: block; width: 100%; min-height: 54px; margin-top: 14px; padding: 8px 20px; font: inherit; font-weight: 700; font-size: 1.125rem; line-height: 1.2; color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 0 2px 0 rgba(38, 48, 59, 0.14); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.advent__fill:hover { background: var(--paper); }
.advent__fill:active { transform: translateY(1px); box-shadow: none; }
.advent__page { max-width: 42rem; }

/* The sheet: dotted paper under a strip of tape (the script draws the picture with the same
   colors). On a phone it reaches a little past the text beside it, so that two windows
   across have room for handwriting. --line is the height of one written line. */
.advent__sheet { --rule: var(--dot); --soft: var(--pencil-text); --glow: var(--marker); --pad: 10px; --line: 22px;
  position: relative; margin: 34px -6px 0; padding: 26px var(--pad) 10px; color: var(--ink); background-color: var(--paper); background-image: var(--dots); background-size: var(--grid) var(--grid); box-shadow: var(--lift), 0 0 0 1px var(--paper-edge);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.advent__sheet::before { content: ""; position: absolute; left: 50%; top: -11px; width: 96px; height: 24px; margin-left: -48px; background: var(--tape); opacity: 0.94; clip-path: var(--torn); transform: rotate(-2deg); }

/* the title, written a little askew over a stroke of marker; a tree and a star beside it */
.advent__head { position: relative; padding: 38px 0 20px; }
.tool__sheet .advent__title { position: relative; isolation: isolate; width: fit-content; margin: 0 auto; font-family: var(--hand); font-weight: 500; font-size: clamp(2.125rem, 10.6vw, 2.625rem); line-height: 1; text-align: center; transform: rotate(-2.5deg); -webkit-text-stroke: 0.7px currentColor; }
.advent__title span { display: block; }
.advent__title [data-subtitle] { margin-top: 0.36em; font-size: 0.42em; letter-spacing: 0.15em; -webkit-text-stroke: 0; }
.doodle--tree { left: 0; top: -20px; width: 48px; height: 69px; transform: rotate(-6deg); }
.doodle--star { right: 4px; top: -12px; width: 40px; height: 40px; transform: rotate(10deg); }

/* the month under a stroke of marker, a gift and a candy cane at the other end of its line */
.advent__month { display: flex; align-items: flex-end; min-height: 48px; padding: 0 4px 10px; font-family: var(--hand); font-weight: 500; font-size: 1.5rem; line-height: 1.1; }
.advent__month span { margin-right: auto; padding: 0 8px 0 6px; white-space: nowrap; background: linear-gradient(176deg, transparent 46%, var(--glow) 47%, var(--glow) 88%, transparent 89%); transform: rotate(-1.5deg); }
.advent__month .doodle { position: static; flex: none; }
.doodle--gift { width: 48px; height: 38px; }
.doodle--cane { width: 23px; height: 38px; margin-left: 12px; transform: rotate(12deg); }

/* The windows: each a small frame drawn by hand, with the number of its day, the weekday,
   a box to tick and two lines to write on. Saturday and Sunday stand under yellow marker. */
.advent__days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; }
.advent__day { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 3px 6px 8px 8px; background: #fff; border: 1.5px solid var(--pencil); border-radius: 13px 5px 11px 4px / 5px 12px 4px 13px; }
.advent__top { display: flex; align-items: center; gap: 4px; min-height: 38px; }
.advent__n { font-family: var(--ui); font-weight: 700; font-size: 1.75rem; line-height: 1; letter-spacing: -0.02em; color: var(--tape); }
.advent__wd { padding: 0 4px; font-family: var(--hand); font-weight: 500; font-size: 0.8125rem; line-height: 1.5; color: var(--soft); }
.advent__day.is-weekend .advent__wd { color: var(--ink); background: linear-gradient(176deg, transparent 10%, var(--glow) 11%, var(--glow) 88%, transparent 89%); transform: rotate(-2deg); }
.advent__day.is-today { border-color: var(--stamp); box-shadow: 0 0 0 1.5px var(--stamp); }
.advent__today { position: absolute; left: 50%; top: -10px; padding: 0 9px; font-family: var(--hand); font-weight: 500; font-size: 0.75rem; line-height: 18px; color: #fff; background: var(--stamp); transform: translateX(-50%) rotate(-2deg); }
.advent__box { display: grid; place-items: center; flex: none; width: 38px; height: 38px; margin: 0 -4px 0 auto; padding: 0; color: inherit; background: none; border: 0; border-radius: 3px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.advent__box svg { display: block; width: 28px; height: 26px; overflow: visible; }
.advent__box-line { fill: #fff; stroke: var(--soft); stroke-width: 1.6; stroke-linejoin: round; }
.advent__tick { fill: none; stroke: var(--tape); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1.6; stroke-dashoffset: 1.3; transition: stroke-dashoffset 0.25s ease-out; }
.advent__box[aria-pressed="true"] .advent__tick { stroke-dashoffset: 0; }
.advent__box:focus-visible { outline-width: 2px; outline-offset: -3px; }
.advent__box[disabled] { cursor: default; }
.advent__box[disabled] svg { opacity: 0.55; }
/* The words of a day are a text field that grows: they are written once more behind it,
   unseen (the script keeps data-words), and that copy gives the window its height. */
.advent__write { flex: 1 0 auto; display: grid; min-height: calc(2 * var(--line)); background-image: linear-gradient(to bottom, transparent calc(var(--line) - 1.5px), var(--rule) 0); background-size: 100% var(--line); }
.advent__write::after { content: attr(data-words) " "; visibility: hidden; white-space: pre-wrap; }
.advent__write::after, .advent__input { grid-area: 1 / 1; min-width: 0; margin: 0; padding: 0 1px; font-family: var(--hand); font-weight: 500; font-size: 1rem; line-height: var(--line); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.advent__input { display: block; width: 100%; height: 100%; color: inherit; background: none; border: 0; border-radius: 2px; resize: none; overflow: hidden; }
.advent__input:focus-visible { outline-width: 2px; outline-offset: 2px; }
.advent__input.is-done { color: var(--soft); text-decoration: line-through; text-decoration-color: var(--tape); text-decoration-thickness: 2px; }
.advent__made { margin-top: 12px; text-align: center; font-family: var(--hand); font-weight: 500; font-size: 0.8125rem; color: var(--soft); }

/* under the sheet: the days that are left, the count, what to keep */
.advent__when { margin-top: 20px; font-family: var(--hand); font-weight: 500; font-size: 1.0625rem; line-height: 1.35; color: var(--stamp); }
.advent__count { margin-top: 6px; font-family: var(--title); font-style: italic; font-size: 1.1875rem; color: var(--ink-soft); }
.advent__count b { font-family: var(--ui); font-style: normal; font-weight: 700; font-size: 1.375rem; color: var(--ink); }
.advent__page .vmap__actions { margin-top: 20px; }
.advent__page .vmap__actions .tape-button + .quiet-button { margin-left: -14px; }

/* the ideas: a big one carries a square of the weekend's yellow */
.advent__ideas { margin-top: 32px; padding-top: 24px; border-top: 1.5px dashed var(--dot); scroll-margin-top: 16px; }
.advent__ideas > p { margin-top: 8px; font-size: 1.0625rem; color: var(--ink-soft); }
.advent__ideas .vgroup__items { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 18px; }
.advent__big, .advent__ideas .idea[data-size="big"]::before { content: ""; display: inline-block; width: 12px; height: 12px; margin: 0 8px -1px 0; background: var(--marker); border: 1.5px solid var(--ink); border-radius: 2px; transform: rotate(-6deg); }
.advent__big { margin: 0 1px -1px 2px; }
.advent__ideas .idea.is-used[data-size="big"]::before { background: #fff; }
/* what a tap did, kept in sight while the ideas scroll by */
.advent__ideas > .advent__said { position: sticky; bottom: 12px; z-index: 2; width: fit-content; max-width: 100%; margin-top: 14px; padding: 9px 14px; font-family: var(--hand); font-weight: 500; font-size: 1rem; line-height: 1.3; color: var(--ink); background: var(--marker); box-shadow: var(--lift); overflow-wrap: anywhere; }

@media (max-width: 359px) {
  /* a narrow phone: the drawings and the month a size smaller, so they stay clear of the words */
  .advent__head { padding-top: 44px; }
  .doodle--tree { width: 38px; height: 54px; }
  .doodle--star { width: 34px; height: 34px; }
  .advent__month { font-size: 1.25rem; }
  .doodle--gift { width: 40px; height: 32px; }
  .doodle--cane { width: 19px; height: 32px; margin-left: 9px; }
}
@media (min-width: 560px) {
  .advent__days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 700px) {
  .advent__fill { width: auto; }
  .advent__page .vmap__actions .tape-button + .quiet-button { margin-left: 0; }
  .advent__sheet { --pad: 26px; margin-left: 0; margin-right: 0; padding-top: 34px; padding-bottom: 12px; }
  .advent__head { padding: 30px 0 26px; }
  .tool__sheet .advent__title { font-size: 3.75rem; }
  .doodle--tree { left: 8px; top: -18px; width: 78px; height: 111px; }
  .doodle--star { right: 12px; top: -8px; width: 76px; height: 76px; }
  .advent__month { font-size: 1.75rem; padding-bottom: 12px; }
  .doodle--gift { width: 60px; height: 48px; }
  .doodle--cane { width: 29px; height: 48px; }
  .advent__days { gap: 12px 10px; }
}
@media (min-width: 840px) {
  .advent__days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  /* the sheet on the left, three windows across until there is room for four */
  .advent { grid-template-columns: minmax(0, 33rem) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 40px; align-items: start; }
  .advent__setup { grid-column: 2; grid-row: 1; }
  .advent__page { grid-column: 1; grid-row: 1 / span 2; }
  .advent__ideas { grid-column: 2; grid-row: 2; margin-top: 28px; }
  .advent__sheet { margin-top: 12px; }
  .advent__days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool__sheet .advent__title { font-size: 3.125rem; }
  .doodle--tree { left: 2px; width: 62px; height: 88px; }
  .doodle--star { right: 6px; width: 58px; height: 58px; }
}
@media (min-width: 1280px) {
  .advent { grid-template-columns: minmax(0, 42rem) minmax(0, 1fr); column-gap: 48px; }
  .advent__days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tool__sheet .advent__title { font-size: 3.75rem; }
  .doodle--tree { left: 8px; width: 78px; height: 111px; }
  .doodle--star { right: 12px; width: 76px; height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .advent__tick { transition: none; }
}
@media print {
  /* the sheet alone, on one page: the title, the month, 24 windows four across. "Today" is
     left out: a sheet on the fridge is looked at for weeks */
  .toolpage--advent .top, .toolpage--advent .foot, .toolpage--advent .tool__head, .toolpage--advent .tool__text, .toolpage--advent .tool__noscript,
  .toolpage--advent .advent__setup, .toolpage--advent .advent__ideas, .toolpage--advent .advent__when, .toolpage--advent .advent__count,
  .toolpage--advent .vmap__note, .toolpage--advent .vmap__picture, .toolpage--advent .advent__sheet::before, .toolpage--advent .advent__today { display: none; }
  .toolpage--advent .tool, .toolpage--advent .tool__sheet { max-width: none; margin: 0; padding: 0; background: none; }
  .toolpage--advent .advent { display: block; }
  .toolpage--advent .advent__page { max-width: none; }
  .toolpage--advent .advent__sheet { --pad: 0.42in; --line: 14pt; display: flex; flex-direction: column; height: 9.6in; margin: 0; padding: 0.3in var(--pad) 0.14in; box-shadow: none; break-inside: avoid; }
  .toolpage--advent .advent__head { padding: 0.22in 0 0.26in; }
  .toolpage--advent .advent__title { font-size: 44pt; }
  .toolpage--advent .doodle--tree { left: 0.25in; top: -0.08in; width: 0.86in; height: 1.23in; }
  .toolpage--advent .doodle--star { right: 0.3in; top: 0; width: 0.95in; height: 0.95in; }
  .toolpage--advent .advent__month { min-height: 0; padding: 0 3pt 8pt; font-size: 20pt; }
  .toolpage--advent .doodle--gift { width: 44pt; height: 35pt; }
  .toolpage--advent .doodle--cane { width: 21pt; height: 35pt; margin-left: 9pt; }
  .toolpage--advent .advent__days { flex: 1 1 0; min-height: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); gap: 7pt; }
  .toolpage--advent .advent__day, .toolpage--advent .advent__day.is-today { min-height: 0; padding: 2pt 5pt 4pt 7pt; overflow: hidden; border: 1pt solid var(--pencil); box-shadow: none; }
  .toolpage--advent .advent__top { min-height: 0; gap: 3pt; }
  .toolpage--advent .advent__n { font-size: 20pt; }
  .toolpage--advent .advent__wd { font-size: 9.5pt; }
  .toolpage--advent .advent__box { width: 22pt; height: 23pt; margin: 0 -2pt 0 auto; }
  .toolpage--advent .advent__box svg { width: 20pt; height: 18.6pt; opacity: 1; }
  .toolpage--advent .advent__write { min-height: 0; }
  .toolpage--advent .advent__write::after, .toolpage--advent .advent__input { font-size: 10.5pt; }
  .toolpage--advent .advent__input:focus-visible { outline: 0; }
  .toolpage--advent .advent__made { margin-top: 7pt; font-size: 9pt; }
}

/* ---------- the note about the app, right after the tool */

.appnote { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; margin-top: 44px; padding: 24px 20px; background: var(--slip); box-shadow: var(--lift); transform: rotate(-0.3deg); }
.appnote::before { content: ""; position: absolute; left: 50%; top: -12px; width: 92px; height: 25px; margin-left: -46px; background: var(--tape); opacity: 0.94; clip-path: var(--torn); transform: rotate(2.5deg); }
.appnote img { border-radius: 14px; display: block; }
.appnote__title { font-family: var(--title); font-weight: 700; font-size: 1.4375rem; line-height: 1.15; text-wrap: balance; }
.appnote__line { margin-top: 6px; font-size: 1.0625rem; color: var(--ink-soft); }
.appnote .tape-button { grid-column: 1 / -1; justify-self: start; }

/* ---------- the words under the tool */

.tool__body { margin-top: 0; }
.tool__text { max-width: 44rem; margin-top: 64px; }
.tool__text h2, .tool__more h2 { font-size: clamp(1.875rem, 6vw, 2.375rem); }
.tool__text h3 { font-size: 1.4375rem; margin-top: 34px; }
.tool__text p, .tool__text ul, .tool__text ol { margin-top: 14px; }
.tool__text ul { padding-left: 1.25em; }
.tool__text li { margin-top: 8px; }
.tool__about h2 + p { font-family: var(--title); font-style: italic; font-size: 1.3125rem; line-height: 1.4; color: var(--ink-soft); }

/* how to use it: the steps, numbered in pencil */
.howto { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: step; }
.tool__text .howto li { counter-increment: step; position: relative; min-height: 44px; margin-top: 16px; padding-left: 52px; }
.howto li::before { content: counter(step); position: absolute; left: 0; top: -6px; width: 38px; text-align: center; font-family: var(--ui); font-weight: 700; font-size: 2.5rem; line-height: 1; color: var(--pencil); }

/* the questions: each opens by itself, without a script */
.faq__item { border-bottom: 1.5px solid var(--dot); }
.faq h2 + .faq__item { margin-top: 20px; border-top: 1.5px solid var(--dot); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 10px 0; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.faq__item summary::after { content: "+"; flex: none; width: 30px; text-align: center; font-family: var(--title); font-weight: 700; font-size: 1.875rem; line-height: 1; color: var(--pencil); }
.faq__item[open] summary::after { content: "\2212"; color: var(--ink); }
.faq__answer { padding: 0 46px 20px 0; }
.faq__answer p:first-child { margin-top: 0; }

/* ---------- other tools: each a card with its picture */

.tool__more { margin-top: 72px; }
.toolcards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 30px 28px; }
.toolcard { display: flex; flex-direction: column; height: 100%; padding: 12px 12px 18px; background: var(--slip); box-shadow: var(--lift); text-decoration: none; transition: transform 0.18s ease; }
.toolcard img { display: block; width: 100%; height: auto; border: 1px solid var(--paper-edge); }
/* lining figures: the serif's old-style "1" reads as a capital I ("100" as "IOO") */
.toolcard__name { margin: 16px 6px 0; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: lining-nums; }
.toolcard__line { margin: 8px 6px 0; font-size: 1.0625rem; line-height: 1.4; color: var(--ink-soft); }
.toolcard__go { margin: auto 6px 0; padding-top: 14px; font-weight: 700; font-size: 1.0625rem; color: var(--stamp); }
.toolcard__go::after { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 0 1px 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.toolcard:hover { color: var(--ink); transform: rotate(-0.6deg) translateY(-3px); }
.tool__all { margin-top: 26px; font-size: 1.0625rem; }

/* ---------- /tools/: the groups */

.hub { padding-bottom: 96px; }
.toolgroup { margin-top: 56px; }
.toolgroup h2 { font-size: clamp(1.75rem, 6vw, 2.25rem); }
.toolgroup h2 + p { margin-top: 8px; max-width: 36em; color: var(--ink-soft); }
.toolgroup .toolcards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); max-width: 1180px; }
.hub__more { margin-top: 64px; max-width: 36em; font-family: var(--title); font-style: italic; font-size: 1.25rem; color: var(--ink-soft); }

/* ---------- the navy band above the footer */

.appband { margin-top: 96px; padding: 72px var(--edge) 80px; background: var(--cover); color: var(--chalk); text-align: center; }
.appband__in { max-width: 46rem; margin: 0 auto; }
.appband h2 { font-size: clamp(2.125rem, 8vw, 3.5rem); line-height: 1.02; letter-spacing: -0.015em; }
.appband p { margin-top: 18px; font-size: 1.1875rem; color: var(--chalk-soft); }
.appband .tape-button { margin-top: 28px; }
.appband .get { margin: 28px auto 0; }
.appband .get__note { color: var(--chalk-soft); }
.appband .store-badge { background: var(--chalk); color: var(--ink); }
.appband :focus-visible { outline-color: var(--chalk); }

/* ---------- wider than a phone */

@media (min-width: 700px) {
  .tool__sheet { padding: 28px 28px 30px; }
  .vmap__frame { margin-left: -28px; margin-right: -28px; }
  .vmap__tally b { font-size: 5.25rem; }
  .vmap__top { align-items: flex-end; }
  .vmap__sub { padding-bottom: 8px; font-size: 1.125rem; }
  .vmap__pens { margin-top: 20px; }
  .vmap__pens > span { flex: none; margin: 0 2px 0 0; }
  .vmap__coast { stroke-width: 3.2; }
  .vmap__actions .tape-button { flex: none; margin: 0 6px 0 0; }
  .vmap__actions .quiet-button:first-of-type { margin-left: 0; }
  .chips__name { flex: none; min-width: 3.4rem; margin: 0; }
  .quiz__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quiz__card { grid-template-columns: 1fr; align-content: start; }
  .spin__frame { aspect-ratio: 2.3; }
  .appnote { grid-template-columns: auto 1fr auto; padding: 26px 30px; }
  .appnote .tape-button { grid-column: auto; }
}

@media (min-width: 1040px) {
  .tool, .hub { padding-top: 52px; }
  .tool__intro { font-size: 1.5rem; }
  .tool__sheet { margin-top: 40px; padding: 34px 40px 36px; }
  .vmap__frame { margin-left: -40px; margin-right: -40px; }
  .vmap__top { gap: 2px 28px; }
  /* the tally and the pens share one row above the map */
  .vmap__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .vmap__pens { margin-top: 0; padding-bottom: 6px; flex: none; }

  /* 30 before 30: the lines on the left, the ideas beside them */
  .list30__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .list30__ideas { margin-top: 18px; padding-top: 0; border-top: 0; }
  .list30__jump { display: none; }

  /* the words on the left, the note about the app beside them, staying in view */
  .tool__body { display: grid; grid-template-columns: minmax(0, 44rem) minmax(0, 20rem); column-gap: clamp(48px, 7vw, 120px); align-items: start; }
  .tool__body > .tool__text, .tool__body > .tool__more { grid-column: 1; }
  .tool__body > .appnote { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 28px; margin-top: 78px; grid-template-columns: auto 1fr; padding: 30px 26px 28px; }
  .tool__body > .appnote .tape-button { grid-column: 1 / -1; }
  .tool__body > .tool__more { grid-column: 1 / -1; }
  .appband { padding: 100px var(--edge) 108px; }
  .appband p { font-size: 1.375rem; }
}

@media print {
  .tool__sheet { box-shadow: none; }
  .tool__sheet::before { display: none; }
  .vmap__pens, .vmap__views, .vmap__actions, .vmap__list, .appnote, .appband, .tool__more, .crumbs { display: none; }
  /* 30 before 30 prints as the list alone: its title, the date line, thirty lines */
  .toolpage--list .top, .toolpage--list .foot, .toolpage--list .tool__intro, .toolpage--list .tool__text,
  .toolpage--list .list30__ideas, .toolpage--list .list30__date, .toolpage--list .list30__jump,
  .toolpage--list .vmap__note, .toolpage--list .vmap__picture { display: none; }
  .toolpage--list .tool, .toolpage--list .tool__sheet { padding: 0; margin: 0; background: none; }
  .toolpage--list .list30__cols { display: block; }
  .toolpage--list .list30__row { min-height: 0; break-inside: avoid; }
  .toolpage--list .list30__input { min-height: 30px; }
}
