* { box-sizing: border-box; }
body { margin: 0; color: #211c16; background: #faf5e9; font: 1.05rem/1.55 system-ui, sans-serif; }
main { max-width: 58rem; margin: auto; padding: clamp(1rem, 4vw, 3rem); }
h1 { font: 700 clamp(2rem, 6vw, 3.75rem)/1.06 Georgia, serif; margin: .25em 0 .5em; }
.brand { color: #704921; font-size: .8rem; font-weight: 750; letter-spacing: .13em; }
a { color: #503219; }
.button, button { display: inline-block; padding: .72rem 1rem; border: 1px solid #235687; border-radius: .45rem;
  background: #235687; color: white; text-decoration: none; font: inherit; cursor: pointer; }
button[hidden] { display: none; }
.actions, .categories { display: flex; gap: .7rem; flex-wrap: wrap; margin: .75rem 0; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 1rem; padding: 0; list-style: none; }
.grid img, .art img { display: block; width: 100%; height: auto; border-radius: .35rem; }
.art { max-width: 27rem; margin: 1rem 0; }
label { display: block; margin: .7rem 0; }
input, textarea { display: block; width: min(100%, 32rem); font: inherit; padding: .55rem; border: 1px solid #8b755c; border-radius: .35rem; }
textarea { min-height: 6rem; }
.note { white-space: pre-wrap; overflow-wrap: anywhere; }
.muted, footer { color: #685a4a; font-size: .92rem; }
summary { cursor: pointer; }
details { margin-bottom: 1rem; }
:focus-visible { outline: 3px solid #a24c0f; outline-offset: 3px; }


.categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.categories .category { display: flex; align-items: center; gap: .65rem; min-height: 4rem; border-color: transparent; font-weight: 700; }
.category span { font-size: 1.45rem; }
.category.birthdays-ages { background: #ffe0a1; color: #563208; }
.category.loving-friendship { background: #ffd9e4; color: #66233c; }
.category.emotion-connection { background: #e6ddff; color: #44276b; }
.category.happy-new-year { background: #d3e8ff; color: #183f69; }
.category.just-because { background: #d3f0de; color: #214b35; }
.category.thank-you-appreciation { background: #ffe1ce; color: #66331e; }
.button.fool-choice { background: #b5122b; border-color: #b5122b; color: #fff; font-size: 1.2rem; font-weight: 800; }
.button.fool-choice:hover { background: #920f23; }
.category:hover { border-color: currentColor; }
.brand { letter-spacing: normal; font-size: 1rem; }

.drawer-offer { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; margin: 0 0 1.2rem;
  padding: .6rem .85rem; border-radius: .5rem; background: #fff0cb; }
.drawer-offer p { margin: 0; }
.button.buy-now { background: #244d38; border-color: #244d38; font-weight: 750; }
.button.buy-now:hover { background: #173626; }

.drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.drawer-heading img { width: clamp(4rem, 16vw, 8rem); height: auto; flex-shrink: 0; }
.drawer-offer p + p { margin-top: .35rem; }

.founder-footer { margin-top: 2.5rem; padding-top: 1.15rem; border-top: 1px solid #dbc8aa; }
.founder-footer p { margin: .15rem 0; }
.founder-footer small { display: block; margin-top: .65rem; }

.button.gift-action { background: #633184; border-color: #633184; }
.button.gift-action:hover { background: #4c2369; }
.button.recover-action { background: #235687; border-color: #235687; }
.button.recover-action:hover { background: #19406a; }

/* Shared controls and collection styles */

.button:hover, button:hover { filter: brightness(.94); }
.button.back-action { background: #e6ddff; color: #44276b; border-color: transparent; }
.back-row { margin: 0 0 .65rem; }
.collection-tiles { align-items: stretch; }
.collection-tiles .original { background: #ffe0a1; color: #563208; }
.collection-tiles .purchased { background: #d3f0de; color: #214b35; }
.collection-tiles .gifted { background: #ffd9e4; color: #66233c; }
.drawer-heading { justify-content: flex-start; column-gap: clamp(.7rem, 3vw, 2rem); }
.drawer-heading > div { flex: 1; min-width: 0; }
.drawer-heading .brand { margin: 0 0 .25rem; }
.drawer-heading h1 { margin-bottom: .25em; overflow-wrap: anywhere; }
.drawer-heading.compact img { width: clamp(3.5rem, 12vw, 5.5rem); }
.founder-footer { margin-top: clamp(1.3rem, 4vw, 2.5rem); }
details { overflow-wrap: anywhere; }
details pre { white-space: pre-wrap; }
.compose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.compose > form { min-width: 0; }
@media (max-width: 36rem) {
  .compose { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .drawer-heading img { width: clamp(3.5rem, 17vw, 6rem); }
}
