@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* Wool-felt shop. Fredoka is the puffy applique; Nunito stays readable for sentences.
   Fiber is one tiny tile, multiplied over flat colors that already pass contrast. */
:root {
  --ink: #1c2433;
  --ink-soft: #3d4558;
  --cream: #e7d6c0;
  --paper: #f4e6d2;
  --cream-text: #fbf6ee;
  --note: #f4e7d6;
  --navy: #1c3054;
  --navy-deep: #14243f;
  --coral: #a63e3c;
  --blush: #d98878;
  --sage: #8a997c;
  --copper: #9a4e2c;
  --sky: #d5deee;
  --white: #ffffff;
  --danger: #9b2c1c;
  --danger-bg: #fbe4dd;
  --line: #5c6478;
  --knit: #c6a67c;
  --fiber: url("/images/felt/fiber.webp");
  --star: url("/images/felt/star.svg");
  --display: "Fredoka", "Nunito", "Trebuchet MS", sans-serif;
  --body: "Nunito", "Trebuchet MS", sans-serif;
  --gap: clamp(0.7rem, 1.3vw, 0.95rem);
  --puff:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -7px 12px rgba(48, 28, 14, 0.13),
    0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 16px -12px rgba(48, 28, 14, 0.48),
    0 18px 26px -18px rgba(48, 28, 14, 0.4);
  --stitch-light: rgba(251, 246, 238, 0.72);
  --stitch-dark: rgba(48, 32, 20, 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--knit);
  background-image: url("/images/felt/knit.webp");
  background-size: 192px 192px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 520;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

a {
  color: inherit;
}

::selection {
  background: #e7b2a6;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--navy);
  color: var(--cream-text);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  z-index: 50;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 650;
}

.skip:focus {
  top: 0.75rem;
}

.page {
  position: relative;
  max-width: 78rem;
  margin: clamp(0.4rem, 1.4vw, 0.9rem) auto;
  padding: 0.85rem clamp(0.85rem, 2.2vw, 1.6rem) clamp(0.9rem, 2vw, 1.4rem);
  background-color: var(--cream);
  background-image: var(--fiber);
  background-blend-mode: multiply;
  background-size: 168px 168px;
  border-radius: 26px 32px 28px 34px / 32px 26px 34px 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -10px 18px rgba(48, 28, 14, 0.06),
    0 18px 30px -20px rgba(48, 28, 14, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.25);
}

.page::before {
  content: "";
  position: absolute;
  inset: 0.42rem;
  border: 2px dashed var(--stitch-dark);
  border-radius: inherit;
  pointer-events: none;
}

h1,
h2,
h3,
.btn,
.nav a,
.wordmark,
.tile-label,
.price-tag,
.tile-price,
.tile-add,
.cart-close,
.foot-brand,
.verse blockquote,
.choice,
.test-note {
  font-family: var(--display);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.35rem, 7vw, 4.5rem);
  line-height: 0.98;
  text-shadow:
    0 1px 0 rgba(255, 248, 238, 0.75),
    0 2px 0 rgba(90, 58, 32, 0.14),
    0 8px 14px rgba(60, 36, 16, 0.12);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.05;
}

h1 em {
  font-family: inherit;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: inherit;
  display: inline-block;
  transform: rotate(-1.6deg);
}

p {
  margin: 0;
  text-wrap: pretty;
}

.lede {
  margin-top: 0.75rem;
  max-width: 34rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
  text-wrap: balance;
}

/* Masthead */
.mast {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 0.8rem;
  padding: 0.35rem 0.2rem 0.85rem;
}

.mast-end {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  text-decoration: none;
  border-radius: 14px;
  color: var(--ink);
}

.tote-mark {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 5px rgba(48, 28, 14, 0.28));
}

.tote,
.mark-star .star,
.badge .star {
  width: 100%;
  height: 100%;
  display: block;
}

.wordmark-type {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.wordmark strong {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.wordmark-type span {
  font-family: var(--display);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.mark-star {
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  color: #b8753a;
  align-self: flex-start;
  margin-top: 0.1rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.9rem;
  border-radius: 12px 15px 13px 16px;
  text-decoration: none;
  font-weight: 650;
  font-size: 1rem;
  color: var(--ink);
  background-color: var(--paper);
  background-image: var(--fiber);
  background-blend-mode: multiply;
  background-size: 140px;
  border: 2px dashed var(--stitch-dark);
  box-shadow: var(--puff);
}

.nav a[aria-current="page"] {
  background-color: var(--navy);
  color: var(--cream-text);
  border-color: var(--stitch-light);
}

.cart-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  flex: 0 0 auto;
  border: 2px dashed var(--stitch-dark);
  border-radius: 14px 16px 13px 15px;
  background-color: #c4895a;
  background-image: var(--fiber);
  background-blend-mode: multiply;
  background-size: 120px;
  color: #5c3418;
  box-shadow: var(--puff);
  cursor: pointer;
}

.cart-button .bag {
  width: 1.45rem;
  height: 1.45rem;
}

.cart-count {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--coral);
  color: var(--cream-text);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
  box-shadow: 0 3px 6px -3px rgba(48, 28, 14, 0.6);
}

.cart-count[hidden] {
  display: none;
}

@media (max-width: 420px) {
  .wordmark strong {
    font-size: 1.32rem;
  }

  .tote-mark {
    width: 2.3rem;
    height: 2.3rem;
  }

  .nav a {
    padding: 0 0.65rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .wordmark-type span {
    display: none;
  }
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.8rem;
  margin-top: 1.15rem;
}

.actions.center {
  justify-content: center;
}

.actions .more {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 50px;
  padding: 0.45rem 1.3rem;
  border-radius: 999px;
  background-color: var(--navy);
  background-image: var(--fiber);
  background-blend-mode: multiply;
  background-size: 140px;
  color: var(--cream-text);
  border: 2px dashed var(--stitch-light);
  text-decoration: none;
  font: inherit;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: var(--puff);
}

.btn-icon {
  display: none;
}

.btn-quiet,
button.btn-quiet,
.btn-coral,
.btn-buy {
  background-color: var(--coral);
  color: var(--cream-text);
}

.btn-add {
  background-color: var(--navy);
  color: var(--cream-text);
}

.btn[hidden] {
  display: none;
}

button.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn:focus-visible,
.nav a[aria-current="page"]:focus-visible,
.cart-button:focus-visible,
.tile-deck .tile:focus-visible,
.tile-files .tile:focus-visible,
.tile-bulk .tile:focus-visible,
.foot :focus-visible,
.also :focus-visible {
  outline-color: var(--cream-text);
  box-shadow: var(--puff), 0 0 0 3px var(--ink);
}

.quiet {
  font-family: var(--display);
  font-weight: 650;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--coral);
  border-radius: 4px;
}

.quiet:hover {
  text-decoration-color: currentColor;
}

/* Felt pieces share a stitch inset and a stuffed shadow. */
.tile,
.panel,
.verse,
.also,
.ticket,
.cart-summary,
.cart-empty,
.receipt,
.thanks,
.cart-item,
.foot,
.window,
.board,
.collage .panel {
  position: relative;
  background-image: var(--fiber);
  background-blend-mode: multiply;
  background-size: 168px 168px;
  box-shadow: var(--puff);
}

.tile::before,
.panel::before,
.verse::before,
.also::before,
.ticket::before,
.cart-summary::before,
.cart-empty::before,
.receipt::before,
.thanks::before,
.cart-item::before,
.foot::before,
.window::before,
.board::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border: 2px dashed var(--stitch, var(--stitch-dark));
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.tile::after,
.verse::after,
.home-hero::after {
  content: "";
  position: absolute;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--ornament, var(--coral));
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
  pointer-events: none;
  z-index: 3;
}

/* Home */
.home-hero {
  position: relative;
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.home-hero::after {
  top: 0.15rem;
  right: 0.2rem;
  --ornament: #b8753a;
}

.home-hero h1 .line {
  display: block;
}

.home-hero h1 {
  font-size: clamp(2.45rem, 5.6vw, 4.15rem);
  max-width: 14ch;
}

.stack {
  display: inline-flex;
  vertical-align: 0.08em;
  margin-left: 0.12em;
}

.stack > span {
  display: grid;
  place-items: center;
  width: 0.78em;
  height: 0.78em;
  border-radius: 46% 54% 50% 50%;
  overflow: hidden;
  box-shadow: 0 0 0 0.07em var(--cream), 0 4px 6px -4px rgba(48, 28, 14, 0.45);
  background-image: var(--fiber);
  background-blend-mode: multiply;
  background-size: 80px;
}

.stack > span + span {
  margin-left: -0.18em;
}

.stack > span:nth-child(1) { background-color: var(--blush); }
.stack > span:nth-child(2) { background-color: var(--sage); }
.stack > span:nth-child(3) { background-color: #c4895a; }

.stack img {
  width: 74%;
  height: 74%;
  object-fit: contain;
}

.stack > span:nth-child(3) img {
  width: 100%;
  height: 100%;
  transform: translateX(8%);
}

.home-side .lede {
  margin-top: 0.85rem;
}

.home-side .actions {
  margin-top: 1rem;
}

@media (max-width: 560px) {
  .home-side .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-side .btn {
    width: 100%;
  }
}

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.tile-item {
  position: relative;
  display: flex;
  min-width: 0;
  border-radius: 20px 24px 18px 22px / 22px 18px 24px 20px;
}

.tile {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 10.75rem;
  border-radius: inherit;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  --stitch: var(--stitch-dark);
  --ornament: var(--coral);
}

.tile-deck .tile {
  background-color: var(--navy);
  color: var(--cream-text);
  --stitch: var(--stitch-light);
  --ornament: var(--cream-text);
}

.tile-verse .tile {
  background-color: var(--blush);
  --ornament: var(--navy);
}

.tile-knob .tile {
  background-color: var(--sage);
  --ornament: var(--coral);
}

.tile-files .tile {
  background-color: var(--copper);
  color: var(--cream-text);
  --stitch: var(--stitch-light);
  --ornament: var(--cream-text);
}

.tile-bulk .tile {
  background-color: var(--coral);
  color: var(--cream-text);
  --stitch: var(--stitch-light);
  --ornament: var(--cream-text);
}

.tile-deck .tile::after { top: 42%; right: 14%; }
.tile-verse .tile::after { top: 46%; left: 10%; width: 0.7rem; height: 0.7rem; }
.tile-knob .tile::after { top: 18%; right: 12%; }
.tile-files .tile::after { bottom: 18%; left: 12%; top: auto; }
.tile-bulk .tile::after { top: 22%; right: 8%; width: 1.05rem; height: 1.05rem; }

.tile-label {
  position: absolute;
  z-index: 3;
  left: 0.95rem;
  top: 0.8rem;
  right: 1.4rem;
  font-weight: 650;
  font-size: 1.08rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.tile-note {
  display: none;
}

.tile-price {
  position: absolute;
  z-index: 3;
  left: 0.7rem;
  bottom: 0.7rem;
  padding: 0.12rem 0.6rem;
  font-size: 0.95rem;
  background-color: var(--paper);
  color: var(--ink);
  border: 1.5px dashed var(--stitch-dark);
  box-shadow: 0 4px 8px -6px rgba(48, 28, 14, 0.6);
}

.tile-go {
  display: none;
}

.tile-art {
  position: absolute;
  z-index: 2;
  inset: 2.6rem 0.55rem 0.5rem;
  display: grid;
  place-items: end center;
}

.tile-art img {
  max-width: 84%;
  max-height: 100%;
  width: auto;
  height: auto;
  filter: drop-shadow(0 10px 8px rgba(28, 18, 10, 0.28));
}

.tile-add {
  position: absolute;
  z-index: 4;
  right: 0.6rem;
  bottom: 0.6rem;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 2px dashed var(--stitch-light);
  border-radius: 999px;
  background-color: var(--navy);
  background-image: var(--fiber);
  background-blend-mode: multiply;
  background-size: 100px;
  color: var(--cream-text);
  font: inherit;
  font-family: var(--display);
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--puff);
}

.tile-deck .tile-add {
  background-color: var(--paper);
  color: var(--ink);
  border-color: var(--stitch-dark);
}

.tile:focus-visible {
  outline-offset: 4px;
}

.tile-verse .tile-art img {
  max-width: 78%;
}

.tile-knob .tile-art {
  inset: 2.7rem 0 0.7rem;
  justify-items: start;
}

.tile-knob .tile-art img {
  max-width: 108%;
}

.mesh {
  width: 78%;
  max-height: 100%;
}

.tile-files .tile-art {
  place-items: center;
  inset: 2.3rem 0.4rem 0.3rem;
}

.fan {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.tile-art .fan img {
  position: absolute;
  bottom: 6%;
  width: 46%;
  max-width: none;
  transform-origin: 50% 100%;
}

.fan img:nth-child(1) { left: 6%; transform: rotate(-11deg); }
.fan img:nth-child(2) { left: 27%; transform: rotate(-1deg); z-index: 1; }
.fan img:nth-child(3) { left: 48%; transform: rotate(10deg); z-index: 2; }

.tile-bulk {
  grid-column: 1 / -1;
}

.tile-bulk .tile {
  aspect-ratio: auto;
  min-height: 7.2rem;
}

.tile-bulk .tile-label {
  right: 46%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(1.35rem, 4vw, 1.8rem);
}

.tile-bulk .tile-note {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 560;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--note);
}

.tile-bulk .tile-art {
  inset: 0.45rem 0.3rem 0.35rem auto;
  width: 52%;
}

.tile-files .tile-note {
  color: var(--note);
}

@media (min-width: 1040px) {
  .home-board {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(9.2rem, 0.5fr) minmax(9.2rem, 0.5fr);
    grid-template-rows: minmax(12.5rem, 1fr) minmax(12.5rem, 1fr) auto;
    gap: 0.85rem;
    align-items: stretch;
  }

  .home-hero {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    margin: 0;
    padding: 0.4rem 0.6rem 0.4rem 0.35rem;
  }

  .home-hero h1 {
    max-width: 12ch;
  }

  .tiles {
    display: contents;
  }

  .tile-deck { grid-column: 2; grid-row: 1; }
  .tile-verse { grid-column: 3; grid-row: 1; }
  .tile-knob { grid-column: 2; grid-row: 2; }
  .tile-files { grid-column: 3; grid-row: 2; }
  .tile-bulk { grid-column: 1 / -1; grid-row: 3; }

  .tile {
    min-height: 0;
    aspect-ratio: auto;
  }

  .tile-label {
    left: 1.15rem;
    top: 1rem;
    font-size: 1.2rem;
  }

  .tile-deck .tile-label,
  .tile-bulk .tile-label {
    font-size: clamp(1.45rem, 2vw, 1.9rem);
  }

  .tile-files .tile-note,
  .tile-bulk .tile-note {
    display: block;
    margin-top: 0.35rem;
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .tile-files .tile-label {
    right: 1.2rem;
  }

  .tile-files .tile-art {
    inset: 3.4rem 0.6rem 0.4rem;
  }

  .tile-bulk .tile {
    min-height: 7.5rem;
  }

  .tile-bulk .tile-label {
    left: clamp(1.4rem, 3vw, 2.4rem);
    right: auto;
    max-width: 18rem;
  }

  .tile-bulk .tile-art {
    width: min(46%, 28rem);
    inset: 0.5rem 1.2rem 0.4rem auto;
  }

  .tile-price {
    left: 1rem;
    bottom: 1rem;
  }
}

/* Verse patch */
.verse {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
  padding: clamp(2rem, 6vw, 3.6rem) clamp(1.1rem, 5vw, 3rem);
  border-radius: 24px 30px 22px 28px / 28px 22px 30px 24px;
  background-color: var(--blush);
  color: var(--ink);
  text-align: center;
  overflow: hidden;
  --stitch: var(--stitch-dark);
  --ornament: var(--navy);
}

.verse::after {
  top: 1.1rem;
  right: 8%;
}

.verse-mark {
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.verse-mark .star {
  width: 100%;
  height: 100%;
}

.verse blockquote {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 40rem;
}

.verse blockquote p {
  font-family: var(--display);
  font-style: normal;
  font-weight: 650;
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 248, 238, 0.35);
}

.verse figcaption {
  position: relative;
  z-index: 2;
  margin-top: 0.9rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ink);
}

.verse figcaption a {
  color: var(--ink);
  text-decoration-color: var(--navy);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

/* Prints and interior pages */
.page-intro {
  max-width: 40rem;
  margin: 0.35rem 0.15rem clamp(1.1rem, 2.5vw, 1.8rem);
}

.product {
  display: grid;
  gap: 1.1rem;
  margin-bottom: clamp(1.8rem, 5vw, 3.2rem);
}

.product-panels {
  display: grid;
  gap: var(--gap);
}

.product-panels .panel {
  aspect-ratio: 4 / 3;
}

.product-panels.two {
  grid-template-columns: 1.35fr 1fr;
}

.product-panels.two .panel {
  aspect-ratio: auto;
  min-height: 12rem;
}

.product-panels.two .panel:first-child img {
  max-width: 64%;
}

.tone-coral { background-color: #e09888; }
.tone-sage { background-color: #a7b79a; }
.tone-copper { background-color: #c4895a; }
.tone-sky { background-color: var(--sky); }

.panel {
  display: grid;
  place-items: center;
  border-radius: 22px 28px 20px 26px / 26px 20px 28px 22px;
  padding: clamp(0.8rem, 3vw, 1.8rem);
  overflow: hidden;
  --stitch: var(--stitch-dark);
}

.panel img {
  position: relative;
  z-index: 2;
  width: auto;
  max-height: 100%;
  filter: drop-shadow(0 14px 12px rgba(28, 18, 10, 0.28));
}

.panel-bleed {
  padding-left: 0;
  justify-items: start;
}

.panel-bleed img {
  max-width: 94%;
}

.product-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.product-copy > .price {
  margin-top: 0.55rem;
}

.price-tag,
.tile-price {
  display: inline-block;
  border-radius: 999px;
  background-color: var(--paper);
  background-image: var(--fiber);
  background-blend-mode: multiply;
  background-size: 120px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.price-tag {
  padding: 0.18rem 0.85rem;
  font-size: 1.25rem;
  border: 1.5px dashed var(--stitch-dark);
}

.product-copy > .test-note,
.test-note {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.28rem 0.7rem 0.28rem 0.55rem;
  border-radius: 999px;
  background-color: var(--paper);
  background-image: var(--fiber);
  background-blend-mode: multiply;
  background-size: 120px;
  border: 1.5px dashed var(--stitch-dark);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
  box-shadow: var(--puff);
}

.test-note::before {
  content: "";
  position: static;
  inset: auto;
  width: 0.55rem;
  height: 0.55rem;
  border: 0;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: none;
}

.product-copy > p {
  margin-top: 0.55rem;
  max-width: 32rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

@media (min-width: 840px) {
  .product {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
  }

  .product-flip {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  }

  .product-flip .product-copy {
    order: -1;
  }

  .product-panels.two {
    aspect-ratio: 5 / 4;
  }

  .product-panels.two .panel {
    min-height: 0;
  }
}

.also {
  display: grid;
  gap: 0.5rem 2rem;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border-radius: 22px 28px 20px 26px;
  background-color: var(--navy);
  color: var(--cream-text);
  --stitch: var(--stitch-light);
}

.also h2 {
  color: var(--cream-text);
}

.also p:not(.actions) {
  margin-top: 0.55rem;
  max-width: 32rem;
  color: var(--note);
}

@media (min-width: 840px) {
  .also {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .also .actions {
    margin-top: 0;
  }
}

/* About */
.collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.collage .panel {
  aspect-ratio: 1;
}

.collage .panel:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.collage .panel:first-child img {
  max-width: 78%;
}

@media (min-width: 700px) {
  .collage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .collage .panel,
  .collage .panel:first-child {
    grid-column: auto;
    aspect-ratio: 4 / 5;
  }

  .collage .panel:nth-child(2) {
    margin-top: clamp(1.2rem, 3vw, 2.4rem);
  }
}

main > .actions {
  margin-top: clamp(1.4rem, 3vw, 2rem);
}

/* Order form */
.order-layout {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 980px) {
  .order-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: 2.2rem;
    align-items: start;
  }

  .order-layout .page-intro {
    position: sticky;
    top: 1.2rem;
  }
}

.ticket {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.05rem, 3vw, 1.8rem);
  border-radius: 22px 26px 20px 24px;
  background-color: var(--paper);
  --stitch: var(--stitch-dark);
}

.kinds {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

@media (min-width: 560px) {
  .kinds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.kinds legend,
.ship-choices legend {
  font-family: var(--display);
  font-weight: 650;
  padding: 0;
  margin-bottom: 0.55rem;
}

.kinds .field-error {
  grid-column: 1 / -1;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.6rem 0.8rem;
  border-radius: 14px 16px 13px 15px;
  background-color: var(--cream);
  background-image: var(--fiber);
  background-blend-mode: multiply;
  background-size: 140px;
  border: 2px dashed var(--stitch-dark);
  color: var(--ink);
  cursor: pointer;
  font-weight: 650;
  line-height: 1.2;
  box-shadow: var(--puff);
}

.choice::after {
  content: "";
  margin-left: auto;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--coral);
}

.choice-shelf::after { background: var(--coral); }
.choice-files::after { background: var(--navy); }
.choice-bulk::after { background: var(--copper); }

.choice:has(input:checked) {
  background-color: var(--navy);
  color: var(--cream-text);
  border-color: var(--stitch-light);
}

.choice:has(input:checked) .choice-hint,
.choice:has(input:checked) .choice-title {
  color: var(--cream-text);
}

.choice:has(input:checked)::after {
  background: var(--cream-text);
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--coral);
  margin: 0;
  flex: 0 0 auto;
}

.choice:has(input:checked) input {
  accent-color: var(--cream-text);
}

.field {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.field label {
  font-family: var(--display);
  font-weight: 650;
}

.field-short {
  max-width: 20rem;
}

.hint {
  font-family: var(--body);
  font-weight: 560;
  color: var(--ink-soft);
}

input,
textarea {
  width: 100%;
  font: inherit;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  border: 2px dashed var(--line);
  border-radius: 12px 14px 11px 13px;
  padding: 0.65rem 0.8rem;
  min-height: 50px;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-style: solid;
  border-color: var(--navy);
}

.choice:has(input:checked) input:focus-visible {
  outline-color: var(--cream-text);
}

[aria-invalid="true"] {
  border-color: var(--danger);
  border-style: solid;
}

.field-error {
  color: var(--danger);
  font-weight: 700;
  font-size: 0.95rem;
}

.split {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 700px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.error {
  color: var(--danger);
  background-color: var(--danger-bg);
  background-image: var(--fiber);
  background-blend-mode: multiply;
  background-size: 140px;
  border-radius: 16px;
  border: 2px dashed var(--danger);
  padding: 0.9rem 1rem;
}

.error p {
  font-family: var(--display);
  font-weight: 700;
}

.error ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.error a {
  color: inherit;
}

.form-status:empty {
  display: none;
}

.form-status {
  margin-top: 0.7rem;
  font-weight: 700;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Receipt, thanks, missing page */
.result {
  max-width: 44rem;
}

.thanks {
  max-width: 40rem;
  margin: clamp(0.4rem, 3vw, 1.6rem) auto clamp(0.6rem, 3vw, 2rem);
  padding: clamp(1.8rem, 6vw, 3.2rem) clamp(1.1rem, 5vw, 2.6rem);
  border-radius: 24px 30px 22px 28px;
  background-color: var(--paper);
  text-align: center;
  --stitch: var(--stitch-dark);
}

.thanks .stack {
  margin: 0 0 0.9rem;
  font-size: clamp(3rem, 10vw, 4.2rem);
}

.thanks .stack > span {
  box-shadow: 0 0 0 0.06em var(--paper);
}

.thanks h1 {
  font-size: clamp(2.5rem, 8vw, 3.8rem);
}

.thanks .lede {
  margin-inline: auto;
}

.specs {
  display: grid;
  grid-template-columns: minmax(6.5rem, 9rem) minmax(0, 1fr);
  gap: 0.5rem 1rem;
  margin: 0;
}

.specs dt {
  color: var(--ink-soft);
  font-weight: 700;
}

.specs dd {
  margin: 0;
}

.receipt {
  margin-top: 1.5rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 20px 24px 18px 22px;
  background-color: var(--paper);
  --stitch: var(--stitch-dark);
}

.receipt .note {
  white-space: pre-wrap;
}

/* Footer */
.foot {
  display: grid;
  gap: 0.35rem;
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
  padding: clamp(1.2rem, 3vw, 1.6rem) clamp(1.1rem, 3vw, 1.8rem);
  border-radius: 20px 26px 18px 24px;
  background-color: var(--navy);
  color: var(--note);
  --stitch: var(--stitch-light);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.25rem;
  color: var(--cream-text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.badge {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 9px 11px 8px 10px;
  background: #c4895a;
  color: var(--cream-text);
  flex: 0 0 auto;
}

.foot a {
  color: var(--cream-text);
  text-decoration-color: #e7b2a6;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

@media (min-width: 900px) {
  .foot {
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1.5rem;
  }

  .foot-brand {
    margin-bottom: 0;
  }
}

/* Cart */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cart-drawer[hidden] {
  display: none;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(48, 28, 14, 0.46);
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(26.5rem, 100%);
  overflow: auto;
  background-color: var(--cream);
  background-image: var(--fiber);
  background-blend-mode: multiply;
  background-size: 168px;
  padding: 1rem 1rem 1.6rem;
  box-shadow: -16px 0 28px -18px rgba(48, 28, 14, 0.65);
  border-left: 2px dashed var(--stitch-dark);
}

.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.cart-panel-head h2 {
  font-size: 1.7rem;
}

.cart-close {
  min-height: 44px;
  padding: 0 0.9rem;
  border: 2px dashed var(--stitch-dark);
  border-radius: 999px;
  background-color: var(--paper);
  background-image: var(--fiber);
  background-blend-mode: multiply;
  background-size: 120px;
  color: var(--ink);
  font: inherit;
  font-family: var(--display);
  font-weight: 650;
  box-shadow: var(--puff);
  cursor: pointer;
}

.cart-layout {
  display: grid;
  gap: 0.9rem;
}

.cart-items {
  display: grid;
  gap: 0.7rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 18px 20px 16px 18px;
  background-color: var(--paper);
  --stitch: var(--stitch-dark);
}

.cart-thumb {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 14px 16px 12px 15px;
  background-image: var(--fiber);
  background-blend-mode: multiply;
  background-size: 100px;
  box-shadow: inset 0 0 0 2px transparent;
  border: 1.5px dashed var(--stitch-dark);
}

.cart-thumb img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 6px 5px rgba(28, 18, 10, 0.25));
}

.cart-item h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.15;
}

.cart-item h3 a {
  text-decoration: none;
}

.cart-item h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--coral);
  text-underline-offset: 0.16em;
}

.cart-line-price {
  margin-top: 0.15rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.qty {
  display: inline-flex;
  align-items: center;
  margin-top: 0.4rem;
  border-radius: 999px;
  background-color: var(--cream);
  background-image: var(--fiber);
  background-blend-mode: multiply;
  background-size: 100px;
  border: 1.5px dashed var(--line);
}

.qty-step {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 650;
  cursor: pointer;
}

.qty-step:disabled {
  color: var(--line);
  cursor: default;
}

.qty input {
  width: 2.5rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.cart-remove {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.1rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.cart-summary {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  padding: clamp(0.9rem, 2.5vw, 1.2rem);
  border-radius: 20px 24px 18px 22px;
  background-color: var(--paper);
  --stitch: var(--stitch-dark);
}

.cart-panel .cart-summary {
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  padding: 0.15rem 0 0;
}

.cart-panel .cart-summary::before {
  content: none;
}

.ship-choices {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.ship-choices .choice::after {
  content: none;
}

.choice-copy {
  display: grid;
  gap: 0.05rem;
}

.choice-title {
  font-weight: 700;
}

.choice-hint {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.ship-rule {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.cart-totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1rem;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.cart-totals dt {
  color: var(--ink-soft);
  font-weight: 700;
}

.cart-totals dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.cart-totals .cart-total {
  color: var(--ink);
  font-size: 1.15rem;
}

.cart-summary .btn,
.cart-action .btn {
  width: 100%;
}

.cart-setup {
  margin: 0;
  font-family: var(--display);
  font-weight: 650;
}

.cart-empty {
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 20px 24px 18px 22px;
  background-color: var(--paper);
  --stitch: var(--stitch-dark);
}

.cart-empty p + .actions {
  margin-top: 0.9rem;
}

.cart-page-link {
  margin: 0;
}

@media (min-width: 900px) {
  #cart-page .cart-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
    align-items: start;
    gap: 1rem;
  }

  #cart-page .cart-summary {
    position: sticky;
    top: 0.8rem;
  }
}

/* Stop-motion. Steps, then a rest. Reduced motion strips every animation. */
@media (prefers-reduced-motion: no-preference) {
  .cart-panel {
    animation: cart-slide 0.42s steps(5, end);
  }

  .tile-item:hover,
  .tile-item:focus-within,
  .btn:hover,
  .nav a:hover,
  .cart-button:hover,
  .cart-close:hover,
  .panel:hover,
  .choice:hover,
  .verse:hover,
  .cart-item:hover {
    animation: felt-hop 0.42s steps(4, end) both;
  }

  .cart-button.is-bouncing {
    animation: bag-bounce 0.56s steps(6, end);
  }
}

@keyframes felt-hop {
  0% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-2px) rotate(-0.8deg); }
  50% { transform: translateY(-5px) rotate(0.7deg); }
  75% { transform: translateY(-3px) rotate(-0.3deg); }
  100% { transform: translateY(-4px) rotate(0deg); }
}

@keyframes bag-bounce {
  0% { transform: translateY(0) rotate(0deg); }
  16% { transform: translateY(-8px) rotate(-8deg); }
  33% { transform: translateY(0) rotate(6deg); }
  50% { transform: translateY(-5px) rotate(-4deg); }
  66% { transform: translateY(0) rotate(3deg); }
  83% { transform: translateY(-2px) rotate(-1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes cart-slide {
  0% { transform: translateX(110%); }
  40% { transform: translateX(14px); }
  70% { transform: translateX(0); }
  85% { transform: translateX(7px); }
  100% { transform: translateX(0); }
}

.btn:active,
.tile-add:active,
.cart-button:active {
  animation: none;
  transform: translateY(2px);
}

/* Private shop counts. Same wool and stitch as the rest of the site. */
.admin h1 {
  font-size: clamp(2.05rem, 5.4vw, 3.3rem);
}

.windows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.window,
.board {
  background-color: var(--paper);
  --stitch: var(--stitch-dark);
  border-radius: 20px 24px 18px 22px;
  padding: 1.05rem 1rem 0.95rem;
}

.board {
  margin-top: 0.75rem;
}

.window h2,
.board h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}

.board-note,
.admin-note,
.empty-count {
  margin-top: 0.35rem;
  color: var(--ink-soft);
}

.admin-note {
  margin-top: 1rem;
  max-width: 38rem;
}

.stat-line {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.28rem;
}

.stat-line strong,
.bar-row .label,
.bar-row .n {
  font-family: var(--display);
  font-weight: 650;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label n"
    "bar bar";
  gap: 0.2rem 0.6rem;
  align-items: center;
  margin-top: 0.7rem;
}

.bar-row .label {
  grid-area: label;
  min-width: 0;
  line-height: 1.2;
}

.bar-row .bar {
  grid-area: bar;
}

.bar-row .n {
  grid-area: n;
}

.bar {
  width: 100%;
  height: 0.85rem;
  display: block;
}

.bar-track {
  fill: var(--sky);
}

.bar-fill.tone-navy {
  fill: var(--navy);
}

.bar-fill.tone-coral {
  fill: var(--coral);
}

.bar-fill.tone-copper {
  fill: var(--copper);
}

.bar-fill.tone-sage {
  fill: var(--sage);
}

.bar-row .n {
  justify-self: end;
}

@media (min-width: 560px) {
  .bar-row {
    grid-template-columns: minmax(7.5rem, 13rem) minmax(0, 1fr) 2.5rem;
    grid-template-areas: "label bar n";
  }

  .bar-row .n {
    justify-self: auto;
    text-align: right;
  }
}

@media (min-width: 800px) {
  .windows {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
