@font-face {
  font-family: Nunito;
  src: url("/fonts/nunito.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fffcf8;
  --white: #fffefd;
  --ink: #4b3538;
  --muted: #766768;
  --rose: #a74760;
  --rose-light: #f9e7e9;
  --border: #e8dfda;
  --display: Nunito, "Trebuchet MS", sans-serif;
  --body: "DM Sans", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 280px; scroll-padding-top: 20px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 1rem/1.5 var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; }
button:disabled { cursor: wait; opacity: .66; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #377f96; outline-offset: 3px; }
input:focus-visible, select:focus-visible { outline-offset: 0; }
::selection { background: #f3c9ce; color: #4a3034; }
img, svg { display: block; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 5; padding: 12px 22px; background: white; }
.shell { width: min(1216px, calc(100% - clamp(48px, 9vw, 144px))); margin-inline: auto; }
.masthead { border-bottom: 1px solid #eee4df; background: #fffefd; }
.header-inner { min-height: 80px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.wordmark, .footer-logo { font-family: var(--display); text-decoration: none; font-weight: 950; }
.wordmark { display: inline-flex; align-items: center; justify-self: start; gap: 9px; font-size: 2.15rem; letter-spacing: -1.8px; line-height: 1; }
.wordmark img { transform: rotate(-7deg); }
.brand-dot, .footer-logo span { color: #c76f80; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-item, .account-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; font-weight: 650; font-size: .925rem; min-height: 42px; border: 0; background: transparent; }
.nav-item { border-radius: 15px; padding: 0 17px; color: var(--muted); transition: background .18s, color .18s; }
.nav-item .icon { width: 17px; height: 17px; }
.nav-item.active { background: #f8e8e9; color: #9a415c; }
.nav-item:hover { background: #f7efed; }
.account-button { justify-self: end; gap: 9px; padding: 4px 0 4px 8px; color: #655456; }
.account-icon { background: #e2eff0; border: 1px solid #cbdfe0; color: #54777b; width: 33px; height: 33px; border-radius: 50%; transition: background .2s; }
.account-icon .icon { width: 16px; height: 16px; }
.account-button:hover .account-icon { background: #cfe5e8; }
.main-shell { padding-top: 27px; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 267px;
  display: flex; align-items: center;
  padding: 27px clamp(26px, 4vw, 58px) 28px;
  border: 1px solid #eccdd1; border-radius: 24px;
  background-color: #fae8e6;
  background-image: linear-gradient(90deg, #fff9f730, transparent 60%), repeating-linear-gradient(0deg, transparent 0 12px, #e5aeb72b 12px 24px), repeating-linear-gradient(90deg, transparent 0 12px, #e5aeb72b 12px 24px);
}
.hero-stitch { position: absolute; inset: 9px; border: 1.5px dashed #ce929eab; border-radius: 17px; pointer-events: none; z-index: -1; }
.hero-copy { position: relative; z-index: 1; width: 60%; }
.album-label { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; background: #fff9f0; border: 1px solid #e9d5c9; border-radius: 6px; color: #865457; font: 750 .77rem/1.35 var(--body); letter-spacing: .03em; transform: rotate(-2deg); box-shadow: 0 2px 2px #84565b0a; }
.album-label .icon { width: 15px; height: 15px; stroke-width: 1.8; }
.hero h1 { margin: 12px 0 9px; font: 900 clamp(2.8rem, 4.3vw, 4.1rem)/.99 var(--display); letter-spacing: -.052em; color: #51393b; }
.title-accent { display: inline-block; position: relative; color: #a64e64; }
.title-accent svg { position: absolute; width: 101%; height: 10px; bottom: -5px; left: 1%; fill: none; stroke: #d58c9a; stroke-linecap: round; stroke-width: 2.8; }
.hero p { max-width: 495px; color: #6e5355; font-size: 1rem; margin: 16px 0 0; }
.hero-picture { position: absolute; width: 32%; right: 12.5%; top: 3%; bottom: 3.2%; display: grid; place-items: center; }
.hero-picture img { width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 6px 2px #a776751a); transform: rotate(2deg); }
.hero-thread { position: absolute; right: 36%; bottom: 13%; width: 13%; height: 93px; color: #ad838b; transform: rotate(-12deg); z-index: -1; }
.fabric-heart { position: absolute; width: 41px; height: 41px; right: 40.7%; top: 17%; transform: rotate(-13deg); }
.star { position: absolute; color: #b7876c; font: 36px/1 Georgia,serif; }
.star-one { right: 11%; top: 18%; transform: rotate(10deg); }
.star-two { right: 45.8%; bottom: 18%; font-size: 22px; }
.sewing-button { position: absolute; right: 6%; bottom: 24%; width: 36px; height: 36px; border-radius: 50%; background: #c8dee4; border: 1.5px solid #9dbbc5; box-shadow: inset 0 0 0 3px #dce8e9, inset 0 0 0 4.5px #acc9ce, 1px 3px 1px #b58d8e29; display: grid; grid-template-columns: repeat(2, 3px); grid-template-rows: repeat(2, 3px); gap: 4px; align-content: center; justify-content: center; transform: rotate(27deg); }
.sewing-button i { width: 3px; height: 3px; background: #7d9ea7; border-radius: 50%; }
.collection { margin-top: 33px; scroll-margin-top: 14px; min-height: 280px; }
.collection-heading, .heading-group, .tools { display: flex; align-items: center; }
.collection-heading, .tools { justify-content: space-between; gap: 18px; }
.heading-group { gap: 12px; min-width: 0; }
.section-icon { width: 38px; height: 38px; border-radius: 13px; background: #f9e9e6; color: #bd7280; transform: rotate(-5deg); }
.section-icon .icon { width: 23px; height: 23px; fill: currentColor; stroke-width: 1.1; }
h2 { margin: 0; font: 850 2rem/1.16 var(--display); letter-spacing: -.045em; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 25px; padding: 0 7px; border: 1px solid #eadfda; border-radius: 9px; color: #756269; background: #f5eeea; font: 800 .8rem var(--display); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; border-radius: 13px; border: 1px solid transparent; padding: 9px 17px; font: 750 .94rem/1.3 var(--display); transition: transform .17s, background .17s, box-shadow .17s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary { background: #ad5269; border-color: #a54b61; color: #fff; box-shadow: 0 2px 3px #8a45531a; }
.button.primary:hover:not(:disabled) { background: #974359; box-shadow: 0 3px 8px #8a455326; }
.button.secondary { background: var(--white); border-color: var(--border); }
.button.secondary:hover:not(:disabled) { background: #f8f1ed; }
.button .icon { width: 18px; height: 18px; stroke-width: 2; }
.tools { margin: 20px 0 26px; }
.search-wrap, .sort-wrap { display: flex; align-items: center; height: 43px; border: 1px solid #e3d9d5; background: #fffefd; border-radius: 12px; color: #8a7b7b; }
.search-wrap { padding: 0 13px; gap: 9px; width: min(100%, 340px); }
.search-wrap:focus-within, .sort-wrap:focus-within { border-color: #b88695; box-shadow: 0 0 0 3px #bf798c1a; }
.search-wrap .icon, .sort-wrap .icon { width: 17px; height: 17px; }
.search-wrap input { width: 100%; min-width: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: .9rem; }
.search-wrap input::placeholder { color: #897d7c; }
.search-wrap input::-webkit-search-cancel-button { display: none; }
.clear-search { display: grid; place-items: center; border: 0; color: var(--muted); border-radius: 5px; padding: 4px; background: none; }
.sort-wrap { position: relative; display: inline-flex; padding-inline: 13px; color: #766a69; }
.sort-wrap select { position: relative; z-index: 1; appearance: none; height: 100%; margin: 0 -13px 0 -30px; padding: 0 35px 0 38px; font-size: .9rem; color: #665456; border: 0; border-radius: 12px; background: transparent; }
.sort-wrap .chevron { position: absolute; right: 12px; pointer-events: none; }
.chevron .icon { width: 13px; height: 13px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 21px; }
.card {
  --tape: #e8b7be; --angle: -6deg;
  position: relative; min-width: 0; padding: 8px; border: 1px solid #e9dfd9; border-radius: 17px;
  background: #fffefd; box-shadow: 0 4px 10px #66423b0b, 0 1px 2px #66423b07;
  animation: appear .38s backwards; transition: transform .22s, box-shadow .22s;
}
.card:nth-child(4n+2) { --tape: #accfdc; --angle: 5deg; }
.card:nth-child(4n+3) { --tape: #bdcfaa; --angle: -4deg; }
.card:nth-child(4n+4) { --tape: #d3bedf; --angle: 6deg; }
.card::before {
  content: ""; position: absolute; z-index: 2; left: calc(50% - 29px); top: -5px; width: 58px; height: 18px; transform: rotate(var(--angle)); pointer-events: none; opacity: .92;
  background-color: var(--tape); background-image: repeating-linear-gradient(90deg, transparent 0 5px, #ffffff36 5px 8px);
  clip-path: polygon(0 0,100% 0,97% 15%,100% 29%,97% 42%,100% 57%,97% 72%,100% 85%,98% 100%,0 100%,3% 84%,0 71%,3% 56%,0 42%,3% 29%,0 15%,2% 7%);
}
.card-open { display: block; width: 100%; padding: 0; background: transparent; border: 0; color: var(--ink); text-align: left; border-radius: 11px; }
.card-photo { display: block; overflow: hidden; width: 100%; aspect-ratio: 1.25; background: #f3e7e4; border-radius: 11px; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .42s ease; }
.card-info { display: block; padding: 13px 9px 10px; }
.card-name { display: block; margin-bottom: 6px; font: 850 1.38rem/1.2 var(--display); letter-spacing: -.035em; overflow-wrap: anywhere; }
.meta-line { display: flex; align-items: center; gap: 7px; min-width: 0; font: 450 .875rem/1.58 var(--body); color: #746365; }
.meta-line .icon { width: 14px; height: 14px; color: #a16d73; }
.meta-line:last-child .icon { color: #81989c; }
.meta-line span { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.heart-button { position: absolute; z-index: 2; right: 16px; top: 16px; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #ffffffd6; border-radius: 50%; color: #80676b; background: #fffcf8f2; box-shadow: 0 1px 5px #714f4612; transition: color .18s, transform .2s; }
.heart-button .icon { width: 18px; height: 18px; stroke-width: 1.8; }
.heart-button[aria-pressed="true"] { color: #b7546c; }
.heart-button[aria-pressed="true"] svg { fill: #c66b81; }
.heart-button:hover:not(:disabled) { color: var(--rose); transform: scale(1.08); }
@media(hover:hover) {
  .card:hover { transform: translateY(-3px); box-shadow: 0 7px 15px #66423b13; }
  .card-open:hover .card-photo img { transform: scale(1.035); }
}
.empty { grid-column: 1/-1; display: grid; justify-items: center; text-align: center; padding: 32px 18px 35px; border: 1px dashed #d8c7c4; border-radius: 18px; background: #fcf6f1; }
.empty > .icon { width: 33px; height: 33px; margin-bottom: 10px; color: #a7747c; }
.empty h3 { margin: 0; font: 850 1.38rem var(--display); }
.empty p { max-width: 470px; color: var(--muted); margin: 6px 0 16px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 39px; padding: 18px 1px 26px; border-top: 1px dashed #dfd1ca; }
.footer-logo { font-size: 1.35rem; letter-spacing: -.06em; color: #8b7174; }
.footer>span { display: flex; align-items: center; gap: 6px; color: #857574; font-size: .8rem; }
.footer .icon { width: 13px; height: 13px; }
#toast { position: fixed; z-index: 5; left: 50%; bottom: 22px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); padding: 12px 20px; border-radius: 14px; box-shadow: 0 3px 24px #43273526; background: #543b42; color: white; text-align: center; font-size: .92rem; }
@keyframes appear { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@media(max-width:1050px) {
  .shell { width: calc(100% - 58px); }
  .hero-picture { right: 9%; }
  .fabric-heart { right: 40%; }
  .hero-thread { right: 35%; }
  .gallery { gap: 25px 15px; }
  .card-photo { aspect-ratio: 1.12; }
  .card-info { padding-inline: 5px; }
}
@media(max-width:800px) {
  .header-inner { min-height: 70px; gap: 12px; }
  .wordmark { font-size: 1.9rem; }
  .wordmark img { width: 36px; height: 36px; }
  .nav-item { padding-inline: 12px; }
  .hero { min-height: 245px; padding: 25px 31px; }
  .hero h1 { font-size: 3rem; }
  .hero p { max-width: 340px; font-size: .93rem; }
  .hero-picture { width: 33%; right: 7%; }
  .fabric-heart { width: 30px; top: 15%; right: 39%; }
  .sewing-button { width: 28px; height: 28px; right: 3.5%; bottom: 20%; }
  .star-one { right: 5%; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  .card-photo { aspect-ratio: 1.45; }
}
@media(max-width:600px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 61px; gap: 6px; }
  .wordmark { font-size: 1.65rem; gap: 4px; letter-spacing: -1.4px; }
  .wordmark img { width: 31px; height: 31px; }
  .main-nav { gap: 1px; }
  .nav-item { min-height: 38px; padding-inline: 9px; gap: 5px; border-radius: 11px; font-size: .82rem; }
  .nav-item .icon { width: 15px; height: 15px; }
  .account-button { min-height: 42px; padding: 0 3px; }
  #account-label { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .account-icon { width: 34px; height: 34px; }
  .main-shell { padding-top: 16px; }
  .hero { min-height: 211px; padding: 20px; border-radius: 19px; }
  .hero-stitch { inset: 6px; border-radius: 14px; }
  .hero-copy { width: 62%; }
  .hero h1 { font-size: clamp(1.95rem, 6.4vw, 2.6rem); line-height: 1.03; margin-block: 11px 6px; }
  .hero p { font-size: .83rem; line-height: 1.45; max-width: 235px; margin-top: 12px; }
  .album-label { padding: 3px 7px; font-size: .67rem; gap: 5px; }
  .album-label .icon { width: 12px; height: 12px; }
  .title-accent svg { height: 6px; bottom: -4px; }
  .hero-picture { width: 41%; right: 2%; top: 18%; bottom: 10%; }
  .fabric-heart { right: 25%; top: 10%; width: 21px; height: 21px; }
  .hero-thread, .star-two { display: none; }
  .star-one { font-size: 24px; right: 5.5%; top: 12%; }
  .sewing-button { width: 21px; height: 21px; bottom: 8%; right: 8%; gap: 2px; grid-template-columns: repeat(2,2px); grid-template-rows: repeat(2,2px); box-shadow: inset 0 0 0 2px #dce8e9, inset 0 0 0 3px #acc9ce; }
  .sewing-button i { width: 2px; height: 2px; }
  .collection { margin-top: 24px; }
  .heading-group { gap: 6px; }
  .section-icon { display: none; }
  h2 { font-size: clamp(1.28rem, 4.8vw, 1.7rem); }
  .count { min-width: 21px; height: 21px; padding: 0 4px; font-size: .7rem; border-radius: 7px; }
  .add-button { min-height: 41px; border-radius: 11px; padding: 8px 10px; font-size: .82rem; gap: 5px; }
  .add-button .icon { width: 16px; height: 16px; }
  .collection-heading { gap: 6px; }
  .tools { gap: 9px; margin: 15px 0 21px; }
  .search-wrap, .sort-wrap { height: 41px; border-radius: 10px; }
  .search-wrap { min-width: 0; padding-inline: 9px; gap: 7px; }
  .search-wrap input { font-size: .82rem; }
  .sort-wrap { flex-shrink: 0; padding-inline: 9px; }
  .sort-wrap select { margin: 0 -9px 0 -26px; padding: 0 24px 0 29px; font-size: .8rem; }
  .sort-wrap .chevron { right: 8px; }
  .gallery { gap: 19px 11px; }
  .card { padding: 5px; border-radius: 13px; }
  .card-photo { aspect-ratio: 1.12; border-radius: 9px; }
  .card-name { font-size: 1.17rem; margin-bottom: 4px; }
  .card-info { padding: 10px 4px 7px; }
  .meta-line { gap: 4px; font-size: .77rem; }
  .meta-line .icon { width: 12px; height: 12px; }
  .heart-button { right: 9px; top: 9px; width: 32px; height: 32px; }
  .heart-button .icon { width: 16px; height: 16px; }
  .card::before { width: 44px; left: calc(50% - 22px); height: 14px; top: -4px; }
  .footer { margin-top: 27px; padding: 16px 0; }
  .footer>span { font-size: .73rem; }
}
@media(max-width:360px) {
  .shell { width: calc(100% - 22px); }
  .wordmark img { width: 25px; height: 25px; }
  .nav-item { gap: 4px; padding-inline: 7px; }
  .hero { padding-inline: 14px; }
  .hero h1 { font-size: 1.85rem; }
  .count { display: none; }
  .search-wrap input { width: 90px; flex: 1; }
}
@media(max-width:410px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 4px; }
  .main-nav { justify-self: center; }
  .nav-item { padding-inline: 6px; }
  .wordmark { font-size: 1.5rem; }
}
@media(max-width:370px) {
  .main-nav [data-icon] { display: none; }
  .wordmark { font-size: 1.4rem; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
