/* Thalitas Treasures: handmade for 11-inch dolls
   Palette: powder-pink paper, satin surfaces, deep rose ink, fuchsia, gold.
   Type: Bodoni Moda for display, Instrument Sans for text. Both self-hosted. */

@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/bodoni-moda-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("../fonts/bodoni-moda-italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans-italic.woff2") format("woff2"); }

:root {
  --powder: #F5E6E6;
  --satin: #FCF8F7;
  --ink: #4A1830;
  --fuchsia: #C63A7E;
  --fuchsia-deep: #A82C68;
  --gold: #B8923F;
  --muted: #7A5B66;
  --hair: rgba(184, 146, 63, .55);
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1180px;
  --band: clamp(56px, 9vw, 112px);
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  background: var(--powder); color: var(--ink);
  font-family: var(--text); font-size: 112.5%; line-height: 1.6;
  font-optical-sizing: auto; -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
}
body { margin: 0; overflow-x: clip; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
a { color: inherit; }
::selection { background: var(--fuchsia); color: var(--satin); }
:focus-visible { outline: 2px solid var(--fuchsia); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--satin); padding: .5em 1em; border-radius: 3px; z-index: 10; }
.skip:focus { left: 12px; }

/* Header */
.top { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding-block: 24px 10px; }
.wordmark { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.55rem; font-variation-settings: "opsz" 32; line-height: 1; text-decoration: none; color: var(--ink); margin-right: auto; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: .96rem; }
.top nav a { text-decoration: none; padding-block: 4px; }
.top nav a:hover { text-decoration: underline; text-decoration-color: var(--fuchsia); text-underline-offset: .3em; text-decoration-thickness: 1.5px; }
.shop-links { display: flex; gap: 8px; }
@media (max-width: 640px) { .shop-links { display: none; } }
@media (max-width: 480px) { .top nav { gap: 6px 16px; font-size: .93rem; } }

/* Buttons */
.btn {
  display: inline-block; padding: .8em 1.4em; border-radius: 999px;
  background: var(--fuchsia); color: var(--satin); border: 1.5px solid var(--fuchsia);
  text-decoration: none; font-size: 1rem; font-weight: 500; line-height: 1.2;
}
.btn:hover { background: var(--fuchsia-deep); border-color: var(--fuchsia-deep); }
.btn-quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--gold); }
.btn-quiet:hover { background: rgba(184, 146, 63, .12); }
.btn-sm { padding: .55em 1.05em; font-size: .93rem; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; padding-block: clamp(24px, 5vw, 56px) var(--band); }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); } }
h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 5.1rem); line-height: 1.04; letter-spacing: -.016em;
  text-wrap: balance; margin-bottom: .5em;
  font-variation-settings: "opsz" 96;
}
.nb { white-space: nowrap; }
.lede { font-size: 1.18rem; line-height: 1.6; max-width: 46ch; margin-bottom: 1.5em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.trust { margin-top: 1.6em; font-size: .92rem; color: var(--muted); }
.link { color: var(--fuchsia); text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: .25em; }

/* Croquis: a flat lay of the pieces, not a body */
.croquis { margin: 0; color: var(--ink); }
.croquis svg { display: block; width: 100%; height: auto; max-height: 560px; margin-inline: auto; }
.croquis .card { fill: var(--satin); stroke: var(--hair); stroke-width: 1; }
.croquis .items .ink-line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.croquis .items .ink-dot { fill: var(--ink); }
.croquis .items .gold-dot { fill: var(--gold); }
.croquis .items .gold-line { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
.croquis .items .fuchsia-fill { fill: var(--fuchsia); }
.croquis .thread { fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-dasharray: 1.5 5; stroke-linecap: round; opacity: .55; }
.croquis .notes .lead { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .6; }
.croquis .notes text { font-family: var(--text); font-size: 14.5px; font-weight: 500; fill: var(--ink); }
.croquis .notes .sub { font-size: 12.5px; font-weight: 400; fill: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .js .croquis .items { opacity: 0; }
  .js .croquis .thread { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .croquis .lead { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .croquis .notes text { opacity: 0; }
  .js .croquis.draw .thread { animation: draw 1.1s ease-out .1s forwards; }
  .js .croquis.draw .items { animation: appear .9s ease-out .3s forwards; }
  .js .croquis.draw .lead { animation: draw .7s cubic-bezier(.4, 0, .2, 1) calc(.9s + var(--d, 0s)) forwards; }
  .js .croquis.draw .notes text { animation: appear .5s ease-out calc(1.4s + var(--d, 0s)) forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
}

/* Sections */
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; font-variation-settings: "opsz" 72; }
h3 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; line-height: 1.25; font-variation-settings: "opsz" 28; }
.section-head { display: grid; gap: 12px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
@media (min-width: 760px) { .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.section-head p { color: var(--muted); max-width: 46ch; line-height: 1.5; }

/* Handmade pieces */
.handmade { padding-block: var(--band); }
.pieces { display: grid; gap: 24px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
@media (min-width: 560px) { .pieces { gap: 28px 24px; } }
.piece { display: block; text-decoration: none; color: inherit; }
.photo {
  position: relative; display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5;
  border: 1px solid var(--hair);
  background: radial-gradient(120% 90% at 30% 20%, #FBF1EF 0%, #EDD9DA 100%);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; color: var(--ink);
}
.ph-icon { width: clamp(36px, 10vw, 56px); height: auto; opacity: .82; }
.ph-icon .gold-fill { fill: var(--gold); }
.ph-label {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.3rem, 4.5vw, 2.2rem); font-variation-settings: "opsz" 40;
}
.piece:hover .photo { border-color: var(--gold); }
.piece:hover .ph-icon { opacity: 1; }
.cap { display: block; margin-top: 12px; font-size: .95rem; line-height: 1.5; }
@media (max-width: 559px) { .cap { font-size: .88rem; } .cap b { font-size: 1.1rem; } }
.cap b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.25rem; font-variation-settings: "opsz" 24; line-height: 1.25; margin-bottom: 4px; }
.cap > span { display: block; color: var(--muted); }
.cap .go { color: var(--fuchsia); font-weight: 500; margin-top: 6px; }
.piece:hover .go { text-decoration: underline; text-underline-offset: .25em; }

/* Collection */
.band { background: var(--satin); border-block: 1px solid var(--hair); padding-block: var(--band); }
.shelf { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--hair); }
.shelf li { display: grid; gap: 6px 32px; padding-block: 22px; border-bottom: 1px solid var(--hair); align-items: baseline; }
@media (min-width: 760px) { .shelf li { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr); } }
.shelf p { color: var(--muted); line-height: 1.5; }
.shelf a { color: var(--fuchsia); font-weight: 500; text-decoration: none; }
.shelf a:hover { text-decoration: underline; text-underline-offset: .25em; }
@media (min-width: 760px) { .shelf a { text-align: right; } }

.buying { display: grid; gap: 28px 48px; margin-top: clamp(28px, 4vw, 44px); align-items: start; }
@media (min-width: 860px) { .buying { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.bundles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bundles div { border: 1px solid var(--hair); border-radius: 4px; padding: 12px 10px; text-align: center; background: var(--powder); }
.bundles dt { font-size: .82rem; color: var(--muted); }
.bundles dd { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; color: var(--fuchsia); white-space: nowrap; font-variation-settings: "opsz" 40; }
.how { list-style: none; padding: 0; display: grid; gap: 10px; color: var(--muted); line-height: 1.5; font-size: .97rem; }
.how li { padding-left: 18px; position: relative; }
.how li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* About */
.about { padding-block: var(--band); display: grid; gap: 40px 64px; }
@media (min-width: 860px) { .about { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.statement h2 { margin-bottom: .6em; }
.statement p { max-width: 60ch; line-height: 1.6; }
.statement p + p { margin-top: 1em; }
.notes { align-self: end; }
.notes dt { color: var(--muted); font-size: .88rem; padding-top: 14px; }
.notes dd { padding-bottom: 14px; border-bottom: 1px solid var(--hair); line-height: 1.5; }
.notes dt:first-of-type { padding-top: 0; }
@media (min-width: 480px) {
  .notes { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); column-gap: 20px; }
  .notes dt { padding-block: 14px; border-bottom: 1px solid var(--hair); }
  .notes dt:first-of-type, .notes dd:first-of-type { padding-top: 0; }
}

/* Contact + footer */
.contact h2 { margin-bottom: .4em; }
.contact p { max-width: 50ch; margin-bottom: 1.4em; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-block: 36px 44px; font-size: .86rem; color: var(--muted); }
.foot .mark { font-family: var(--display); font-style: italic; font-weight: 500; color: var(--ink); font-size: 1.1rem; font-variation-settings: "opsz" 24; }
.foot span:last-child { max-width: 60ch; }
