/* Floofwell — The Sketchbook */
body[data-store="floofwell"] {
  --hand: "Caveat", "Bradley Hand", cursive;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% 0%, transparent 60%, rgba(120, 84, 40, .10)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .33  0 0 0 0 .18  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
body[data-store="floofwell"] .head { background: color-mix(in srgb, var(--paper) 94%, transparent); }
body[data-store="floofwell"] .mark { font-style: italic; }
.hand, .hand-t { font-family: var(--hand); }
.hand { font-size: 1.5rem; line-height: 1.1; color: var(--accent); }

/* the spread: two notebook pages, a gutter between */
.fw-spread { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-block: clamp(12px, 2.5vw, 28px); }
.fw-page { position: relative; min-height: 520px; padding: clamp(18px, 3vw, 40px); }
.fw-left { border-right: 1px solid rgba(80, 52, 20, .18); box-shadow: inset -26px 0 30px -30px rgba(80, 52, 20, .45); }
.fw-right { box-shadow: inset 26px 0 30px -30px rgba(80, 52, 20, .35); display: grid; align-content: start; gap: 22px; }
.fw-dog { width: 100%; height: auto; max-height: 620px; overflow: visible; cursor: grab; touch-action: pan-y; }
.fw-dog .hand-t { font-family: var(--hand); }

/* the drawing performs: each stroke is laid down in order, the chalk shading follows, then the hair lets go */
.fw-dog .d { stroke-dasharray: 1; stroke-dashoffset: 1; animation: fw-draw 1.1s cubic-bezier(.5, 0, .3, 1) forwards; }
.fw-dog .d1 { animation-delay: .1s; } .fw-dog .d2 { animation-delay: .5s; } .fw-dog .d3 { animation-delay: .8s; }
.fw-dog .d4 { animation-delay: 1.1s; } .fw-dog .d5 { animation-delay: 1.5s; } .fw-dog .d6 { animation-delay: 1.75s; }
.fw-dog .d7 { animation-delay: 2s; } .fw-dog .d8 { animation-delay: 2.25s; } .fw-dog .d9 { animation-delay: 2.5s; }
.fw-dog circle.d { animation-name: fw-dot; opacity: 0; }
.fw-dog .chalk { animation: fw-fade .8s 2.6s forwards; }
.fw-dog .notes { opacity: 0; animation: fw-fade .6s 3s forwards; }
.fw-dog .hair { opacity: 0; animation: fw-drift 5.5s ease-in-out infinite; }
.fw-dog .h0 { animation-delay: 3.2s; } .fw-dog .h1 { animation-delay: 3.9s; } .fw-dog .h2 { animation-delay: 4.5s; } .fw-dog .h3 { animation-delay: 5.1s; }
.fw-dog .h4 { animation-delay: 5.8s; } .fw-dog .h5 { animation-delay: 6.3s; } .fw-dog .h6 { animation-delay: 7s; } .fw-dog .h7 { animation-delay: 7.6s; }
@keyframes fw-draw { to { stroke-dashoffset: 0; } }
@keyframes fw-dot { to { opacity: 1; } }
@keyframes fw-fade { to { opacity: 1; } }
@keyframes fw-drift { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 15% { opacity: .9; } 85% { opacity: .7; } 100% { opacity: 0; transform: translate(150px, -40px) rotate(40deg); } }

/* the specimen: the real product photo, taped into the notebook */
.fw-specimen { position: relative; margin: 0 0 0 auto; width: min(250px, 58%); background: #fff; padding: 12px 12px 6px; transform: rotate(2.4deg);
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 18px 30px -18px rgba(60, 40, 10, .55); }
.fw-specimen img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.fw-specimen figcaption { padding: 8px 2px 4px; font-size: 1.35rem; }
.tape { position: absolute; width: 92px; height: 26px; background: rgba(236, 222, 180, .78); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tape.t1 { top: -12px; left: -22px; transform: rotate(-32deg); }
.tape.t2 { top: -10px; right: -24px; transform: rotate(28deg); }
.fw-words h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1; }
.fw-words .lede { margin-top: 16px; font-size: 1.1875rem; color: var(--muted); max-width: 40ch; }
.fw-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.when-hand { font-size: 1.6rem; transform: rotate(-3deg); }

/* storyboard: three drawings on the page, numbered because they are a sequence */
.story { padding-block: clamp(28px, 5vw, 64px); }
.story h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 24px; }
.fw-story { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); counter-reset: s; }
.fw-story li { counter-increment: s; position: relative; padding-top: 10px; }
.fw-story li::before { content: counter(s); position: absolute; top: -8px; left: -4px; font-family: var(--hand); font-size: 2.6rem; color: var(--accent); }
.fw-story svg { width: 100%; height: auto; border-bottom: 1px solid rgba(80, 52, 20, .25); }
.fw-story p { margin-top: 12px; max-width: 34ch; }

/* the shelf: pinned specimens, each at its own angle */
body[data-store="floofwell"] .shelf .card .plinth { background: #fff; border-radius: 2px; border: 10px solid #fff; box-shadow: 0 14px 24px -18px rgba(60, 40, 10, .6); }
body[data-store="floofwell"] .shelf .card .plinth img { mix-blend-mode: normal; }
body[data-store="floofwell"] .shelf .card { position: relative; }
body[data-store="floofwell"] .shelf .card::before { content: ""; position: absolute; z-index: 2; top: -8px; left: 50%; width: 70px; height: 20px; margin-left: -35px; background: rgba(236, 222, 180, .85); transform: rotate(-4deg); }
body[data-store="floofwell"] .shelf .card[data-i="0"] .plinth { transform: rotate(-1.6deg); }
body[data-store="floofwell"] .shelf .card[data-i="1"] .plinth { transform: rotate(1.2deg); }
body[data-store="floofwell"] .shelf .card[data-i="2"] .plinth { transform: rotate(-0.6deg); }
body[data-store="floofwell"] .shelf .card[data-i="3"] .plinth { transform: rotate(1.8deg); }
body[data-store="floofwell"] .card h3 { font-family: var(--display); font-weight: 700; }
body[data-store="floofwell"] .fixes { border-top-color: var(--accent); }
body[data-store="floofwell"] .fix .problem { font-style: italic; }

/* product page: a handwritten note on the photo */
.fw-note { position: absolute; left: 6%; bottom: 5%; max-width: 70%; background: rgba(255, 252, 240, .9); padding: 6px 10px; transform: rotate(-2deg); font-size: 1.35rem; color: var(--accent); }

@media (max-width: 900px) {
  .fw-spread { grid-template-columns: 1fr; }
  .fw-page { min-height: 0; }
  .fw-left { border-right: 0; box-shadow: none; padding-bottom: 0; }
  .fw-right { box-shadow: none; padding-top: 0; }
  .fw-dog { max-height: 380px; }
  .fw-specimen { width: 38%; margin: -170px 0 0 auto; padding: 7px 7px 3px; }
  .fw-specimen figcaption { font-size: 1rem; }
  .tape { width: 54px; height: 16px; }
  .fw-left { padding-right: 30%; }
  .fw-story { grid-template-columns: 1fr; }
  .fw-story li { display: grid; grid-template-columns: 44% 1fr; gap: 14px; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .fw-dog .d { stroke-dashoffset: 0; } .fw-dog circle.d, .fw-dog .chalk, .fw-dog .notes { opacity: 1; } .fw-dog .hair { opacity: .6; }
}

/* the brand, all the way down the page: margin notes, hand-numbered steps, a notebook FAQ */
body[data-store="floofwell"] .mark .mk-name { font-style: italic; }
body[data-store="floofwell"] .fix .problem { font-family: var(--hand); font-style: normal; font-weight: 700; font-size: 2rem; color: var(--accent); line-height: 1; }
body[data-store="floofwell"] .fix .answer { font-family: var(--display); font-weight: 400; font-size: 1.125rem; color: var(--ink); }
body[data-store="floofwell"] .steps li::before { font-family: var(--hand); font-weight: 700; font-size: 2.8rem; }
body[data-store="floofwell"] .steps li { border-top: 1px dashed var(--line); }
body[data-store="floofwell"] .faq summary { font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
body[data-store="floofwell"] .faq summary::after { font-family: var(--hand); color: var(--accent); }
body[data-store="floofwell"] .foot { border-top: 1px dashed var(--line); }
body[data-store="floofwell"] .foot .signoff { font-family: var(--hand); font-style: normal; font-size: 1.5rem; color: var(--accent); }

/* ---------- round 4: the notebook as a place ---------- */
/* wayfinding: paper index tabs hanging from the top edge of the notebook */
.fw-head { border-bottom: 0; background: var(--paper); }
.fw-headrow { display: flex; align-items: center; justify-content: space-between; min-height: 64px; border-bottom: 2px solid var(--ink); }
.fw-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.fw-tabs::-webkit-scrollbar { display: none; }
.fw-tabs a { flex: none; font-family: var(--hand); font-weight: 700; font-size: 1.3rem; line-height: 1; text-decoration: none; color: var(--ink);
  padding: 10px 14px 8px; min-height: 44px; display: inline-flex; align-items: flex-end; background: #EADFC8; border: 1.5px solid var(--ink); border-top: 0; border-radius: 0 0 10px 10px; transition: background-color .15s, color .15s; }
.fw-tabs a:nth-child(2n) { background: #E4D6BA; } .fw-tabs a:nth-child(3n) { background: #F0E6D2; }
.fw-tabs a:hover, .fw-tabs a[aria-current="page"] { padding-top: 18px; background: var(--accent); color: var(--accent-ink); }

/* the coat finder: six drawn swatches, an answer written like a field note */
.fw-finder { padding-block: clamp(32px, 5vw, 64px); }
.fw-finder.standalone { padding-top: 0; }
.fw-finder-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.fw-finder-head .hand { font-size: 1.5rem; margin-top: 6px; }
.fw-coats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.fw-coats button { display: grid; gap: 8px; justify-items: center; padding: 14px 10px; min-height: 44px; background: #FBF6EA; border: 1.5px solid var(--edge); cursor: pointer; font-weight: 600; text-align: center; }
.fw-coats button svg { width: 100%; height: 56px; }
.fw-coats button[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); background: #fff; }
.fw-result { margin-top: 22px; min-height: 60px; }
.fw-result-empty { font-size: 1.4rem; opacity: .7; }
.fw-answer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; padding: 24px; background: #fff; box-shadow: 0 18px 30px -24px rgba(60, 40, 10, .6); transform: rotate(-.4deg); }
.fw-answer .hand { font-size: 2rem; }
.fw-answer p + p { margin-top: 10px; }
.fw-answer-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* the shed calendar */
.fw-spread2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 48px); padding-block: clamp(32px, 5vw, 64px); align-items: start; }
.fw-adteaser { display: grid; gap: 12px; padding: 28px; text-decoration: none; background: var(--ink); color: var(--paper); transform: rotate(-1.2deg); box-shadow: 0 20px 30px -20px rgba(30, 20, 10, .7); }
.fw-adteaser .hand { color: #F2B69E; font-size: 1.5rem; }
.fw-adteaser b { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.02; }
.fw-calbox h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.fw-calbox > p { margin-top: 10px; max-width: 52ch; }
.fw-cal { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.fw-cal li { position: relative; min-height: 72px; border: 1.5px solid var(--ink); background: #FBF6EA; display: grid; align-content: start; padding: 6px; font-weight: 700; font-size: .875rem; }
.fw-cal li.blow { background: repeating-linear-gradient(38deg, color-mix(in srgb, var(--accent) 45%, transparent) 0 2px, transparent 2px 7px), #FBF6EA; }
.fw-cal li.now { outline: 3px solid var(--accent); outline-offset: 2px; }
.fw-cal li i { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) rotate(-4deg); white-space: nowrap; font-style: normal; font-size: 1.2rem; }
.fw-join { margin-top: 34px; }
.fw-join select { min-height: 52px; border-radius: 12px; border: 1.5px solid var(--edge); padding: 0 12px; font: inherit; background: #fff; }

/* field notes as torn notebook pages */
body[data-store="floofwell"] .guide-card { background: #FBF6EA; border-radius: 0; border: 1.5px solid var(--line); box-shadow: 0 12px 20px -18px rgba(60, 40, 10, .7);
  background-image: repeating-linear-gradient(transparent 0 27px, rgba(80, 52, 20, .12) 27px 28px); }
body[data-store="floofwell"] .guide-card .g-kind { font-family: var(--hand); font-size: 1.3rem; }
body[data-store="floofwell"] .guide-card:nth-child(2) { transform: rotate(.8deg); }
body[data-store="floofwell"] .guide-card:nth-child(3) { transform: rotate(-.6deg); }
.fw-notes { padding-block: clamp(32px, 5vw, 64px); }

/* the fur pile: community + what people are watching */
.fw-pile { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); padding-block: clamp(32px, 5vw, 64px); align-items: start; }
.fw-pile h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.fw-pile p { margin: 12px 0 18px; max-width: 46ch; }
.fw-pile h3 { font-size: 1.6rem; font-weight: 700; }
.fw-feed { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.fw-feed a { display: grid; gap: 2px; padding: 12px 14px; background: #fff; text-decoration: none; border-left: 4px solid var(--accent); }
.fw-feed span { color: var(--muted); font-size: .9375rem; }
.src { margin-top: 12px; font-size: 1rem; color: var(--muted); }
.src a { color: var(--muted); }
.fw-empty { padding: 30px; border: 2px dashed var(--line); margin: 24px 0; }
.fw-empty .hand { font-size: 1.6rem; }
.fw-table { width: 100%; border-collapse: collapse; margin: 22px 0; background: #FBF6EA; }
.fw-table th, .fw-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.fw-table th { font-family: var(--hand); font-size: 1.3rem; color: var(--accent); }

/* small print as notes in the margin */
.fw-small { padding-block: clamp(32px, 5vw, 64px); }
.fw-small h2 { font-size: 2.2rem; font-weight: 700; color: var(--accent); }
.fw-small ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 24px; }
.fw-small li { padding-left: 16px; border-left: 2px solid var(--accent); }

@media (max-width: 900px) {
  .fw-coats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fw-answer, .fw-spread2, .fw-pile { grid-template-columns: 1fr; }
  .fw-cal { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 30px; }
}
.fw-spread2.solo { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
