@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-soft-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --shopfront: #5b3fa6;
  --gilt: #ffd84d;
  --page: #f3f2ee;
  --paper: #ffffff;
  --ink: #24163f;
  --rule-red: #e85d3f;
  --rule-blue: #dcd6ee;
  --muted: #5a4f73;
  --go: #7ed957;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Atkinson", Verdana, sans-serif;
  font-size: 1.1875rem;
  line-height: 1.55;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rule-red); outline-offset: 3px; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* Shop sign */
.sign { background: var(--shopfront); color: var(--paper); padding: 2.5rem 0 3rem; }
.sign-name {
  font-family: "Fraunces", Georgia, serif; font-weight: 800; font-variation-settings: "SOFT" 100;
  font-size: clamp(2.75rem, 11vw, 6rem);
  line-height: 1;
  color: var(--gilt);
  margin: 0;
  letter-spacing: -0.01em;
}
.sign-line { font-size: clamp(1.35rem, 4.2vw, 2rem); line-height: 1.25; margin: 1.25rem 0 0; max-width: 22em; }
.sign-by { margin: 1rem 0 0; color: #e3dcf5; }
.preview-note { background: var(--gilt); color: var(--ink); padding: 0.6rem 0; font-size: 1.0625rem; }
.preview-note p { margin: 0; }

/* How it works */
.how { padding: 2.5rem 0 1rem; }
h2 { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-variation-settings: "SOFT" 100; font-size: clamp(1.6rem, 5vw, 2.25rem); line-height: 1.15; margin: 0 0 1rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; padding-left: 3.25rem; position: relative; max-width: 34em; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--shopfront); color: var(--gilt);
  font-family: "Fraunces", Georgia, serif; font-size: 1.35rem; font-weight: 800;
  display: grid; place-items: center;
}
.steps strong { display: block; }

/* Cards */
.shelf { padding: 2rem 0 3rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.75rem; }
.filter {
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: transparent; border: 2px solid var(--shopfront); border-radius: 999px;
  padding: 0.55rem 1.1rem; min-height: 3rem; cursor: pointer;
}
.filter.is-on { background: var(--shopfront); color: var(--paper); }
.cards { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 60rem) { .cards { grid-template-columns: 1fr 1fr; align-items: start; } }
.card {
  background: var(--paper);
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 1px 0 #ddd8ea, 0 14px 28px -20px rgba(36, 22, 63, 0.5);
}
.card[hidden] { display: none; }
.card { --tint: #dfe9e4; border-top: 10px solid var(--tint); }
.cat-money { --tint: #ffd84d; }
.cat-health { --tint: #ffb3a3; }
.cat-family { --tint: #ffb86b; }
.cat-hobbies { --tint: #a5e887; }
.cat-home { --tint: #9ccdf5; }
.cat-work { --tint: #c4b1f0; }
.cat-fun { --tint: #ff9ec7; }
.card-top { display: flex; align-items: center; gap: 0.85rem; }
.badge {
  flex: none; width: 3.75rem; height: 3.75rem; border-radius: 50%;
  background: var(--tint); display: grid; place-items: center;
  font-size: 2rem; line-height: 1;
}
.card-kind { margin: 0; color: var(--muted); font-size: 1.0625rem; }
.card h3 {
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-variation-settings: "SOFT" 100;
  font-size: clamp(1.5rem, 5vw, 1.9rem); line-height: 1.15;
  margin: 0.9rem 0 0;
}
.promise { margin: 0.6rem 0 1.25rem; }
.copy, .open {
  font: inherit; font-weight: 700; text-align: center; text-decoration: none;
  min-height: 3.75rem; padding: 0.85rem 1rem; border-radius: 999px; cursor: pointer;
  display: grid; place-items: center;
}
.copy { width: 100%; background: var(--gilt); color: var(--ink); border: 2px solid var(--ink); font-size: 1.3rem; box-shadow: 0 4px 0 var(--ink); }
.copy:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.copy.is-done { background: var(--go); color: var(--ink); }
.after { margin-top: 1rem; padding: 1rem; border-radius: 16px; background: #eaf8e2; }
.after[hidden] { display: none; }
.after p { margin: 0 0 0.8rem; font-weight: 700; }
.after-links { display: grid; gap: 0.6rem; grid-template-columns: 1fr 1fr; }
.open { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); min-height: 3.25rem; }
@media (prefers-reduced-motion: no-preference) {
  .card.just-copied .badge { animation: pop 0.6s ease-out; }
  @keyframes pop { 0% { transform: scale(1) rotate(0); } 40% { transform: scale(1.45) rotate(-12deg); } 70% { transform: scale(0.95) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
}
details { margin-top: 1.1rem; }
summary { cursor: pointer; padding: 0.6rem 0; text-decoration: underline; text-underline-offset: 0.2em; }
.prompt {
  font-family: "Atkinson", Verdana, sans-serif; font-size: 1.0625rem; line-height: 1.75rem;
  white-space: pre-wrap; overflow-wrap: anywhere; margin: 0.4rem 0 0; padding: 0 0.25rem 0 1rem;
  border-left: 2px solid var(--rule-red);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.75rem - 1px), var(--rule-blue) calc(1.75rem - 1px), var(--rule-blue) 1.75rem);
}
.next { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e4e0ee; }
.next p { margin: 0 0 0.4rem; color: var(--muted); }
.next ul { margin: 0; padding-left: 1.2rem; }
.next li { margin: 0.25rem 0; }

/* Story and footer */
.story { background: var(--paper); padding: 3rem 0; }
.story p { max-width: 34em; margin: 0 0 1rem; }
.story .signed { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-variation-settings: "SOFT" 100; font-size: 1.5rem; margin-top: 1.5rem; }
footer { background: var(--ink); color: #e3dcf5; padding: 2rem 0; font-size: 1.0625rem; }
footer p { margin: 0 0 0.5rem; max-width: 40em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (prefers-reduced-motion: no-preference) { .copy { transition: background-color 0.15s, color 0.15s; } }
