:root { --ink: #222; --muted: #6d6863; --line: #e7e2dc; --tile: #f6f3ef; --bg: #fff; --plum: #5b2a6e; --tape: rgba(222,170,90,.5); --wa: #1f1f1f; }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--ink); font-family: Jost, system-ui, sans-serif; font-weight: 300; font-size: 16px; line-height: 1.7; }
  a { color: inherit; }
  .hand { font-family: Caveat, cursive; font-weight: 500; }

  /* announcement strip */
  .strip { overflow: hidden; white-space: nowrap; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .14em; color: var(--plum); padding: 7px 0; }
  .strip span { display: inline-block; animation: run 30s linear infinite; }
  @keyframes run { to { transform: translateX(-50%); } }

  header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.96); z-index: 10; }
  nav { display: flex; gap: 26px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; }
  nav a { text-decoration: none; white-space: nowrap; }
  .mark { text-align: center; text-decoration: none; }
  .mark b { display: block; font-family: "Cormorant Garamond"; font-weight: 400; font-size: 32px; letter-spacing: .12em; line-height: 1; }
  .mark small { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
  .hdr-r { display: flex; justify-content: flex-end; }
  .hdr-r a { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ink); padding: 8px 14px; }
  @media (max-width: 960px) { header { grid-template-columns: 1fr auto; } header nav { display: none; } .hdr-r a { padding: 6px 10px; font-size: 11px; } }

  /* collection hero */
  .hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; }
  @media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }
  .hero-text { background: var(--tile); display: grid; place-items: center; text-align: center; padding: 50px 36px; position: relative; }
  .hero-text h1 { font-weight: 400; font-size: 22px; letter-spacing: .3em; margin: 0 0 18px; }
  .hero-text p { max-width: 400px; margin: 0 auto; color: #444; font-size: 15px; line-height: 2; }
  .hero-note { position: absolute; right: 30px; bottom: -22px; background: #fffdf6; padding: 12px 18px 10px; box-shadow: 0 6px 14px rgba(0,0,0,.08); transform: rotate(-2.5deg); font-size: 22px; line-height: 1.2; color: var(--plum); z-index: 2; max-width: 230px; text-align: left; }
  .hero-note::before { content: ""; position: absolute; top: -10px; left: 30%; width: 70px; height: 20px; background: var(--tape); transform: rotate(4deg); }
  .hero-img { min-height: 380px; overflow: hidden; }
  .hero-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

  .crumbs { padding: 26px 24px 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

  /* product grid */
  .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; padding: 0 24px; max-width: 1400px; margin: auto; }
  @media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
  .card { text-decoration: none; text-align: center; display: block; }
  .card .img { position: relative; aspect-ratio: 3 / 2; background: var(--tile); overflow: hidden; }
  .card .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; }
  .card .img .card-alternate { opacity: 0; }
  @media (hover: hover) and (pointer: fine) { .card:hover .img .card-alternate { opacity: 1; } }
  .card:focus-visible .img .card-alternate { opacity: 1; }
  .card h2 { text-transform: lowercase; }
  .badge { position: absolute; top: 10px; left: 10px; background: #e9e4dd; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; font-weight: 400; }
  .card h2 { margin: 12px 0 0; font-size: 13px; letter-spacing: .14em; font-weight: 500; }
  .card .p { font-size: 13px; letter-spacing: .1em; color: var(--muted); }
  .card.soon .img { background: repeating-linear-gradient(45deg, var(--tile) 0 12px, #faf8f5 12px 24px); }
  .card.soon .hand { font-size: 24px; color: var(--plum); }

  /* product detail */
  .pdp { display: grid; grid-template-columns: 1.45fr 1fr; gap: 40px; padding: 80px 24px 40px; max-width: 1400px; margin: 0 auto; }
  @media (max-width: 900px) { .pdp { grid-template-columns: 1fr; padding-top: 50px; } }
  .gallery { min-width: 0; }
  .gallery-stage { background: var(--tile); aspect-ratio: 4 / 3; position: relative; }
  .gallery-photo { display: block; width: 100%; height: 100%; object-fit: contain; }
  .viewer { position: absolute; inset: 0; background: var(--tile); }
  .viewer canvas { width: 100%; height: 100%; display: block; touch-action: none; outline: none; cursor: grab; }
  .drag { position: absolute; top: 16px; left: 22px; font-size: 24px; color: var(--plum); pointer-events: none; transform: rotate(-5deg); transition: opacity .5s; }
  .vctl { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 12px; background: var(--tile); border-top: 1px solid var(--line); }
  .vctl button { font: 400 11px Jost; letter-spacing: .1em; text-transform: uppercase; min-height: 44px; padding: 8px 12px; background: rgba(255,255,255,.9); border: 1px solid var(--line); cursor: pointer; color: var(--ink); }
  .vctl button.on, .vctl button:hover { border-color: var(--ink); }
  .gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
  .gallery-thumb { padding: 0; width: 108px; flex: 0 1 108px; background: var(--tile); color: var(--ink); border: 1px solid var(--line); cursor: pointer; }
  .gallery-thumb[aria-pressed="true"] { border-color: var(--plum); box-shadow: inset 0 -2px var(--plum); }
  .gallery-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
  .gallery-thumb .turn { display: grid; place-items: center; aspect-ratio: 3 / 2; font: 28px "Cormorant Garamond", serif; color: var(--plum); }
  .gallery-thumb .caption { display: block; padding: 6px 4px; font: 400 11px Jost, sans-serif; letter-spacing: .05em; }
  .gallery-status { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; background: rgba(246,243,239,.96); color: var(--muted); pointer-events: none; }
  .gallery-status p { margin: 0; }
  .gallery-status button { pointer-events: auto; margin: 16px auto 0; background: white; border: 1px solid var(--line); padding: 12px 16px; cursor: pointer; font: inherit; }
  [hidden] { display: none !important; }
  :is(a, button, summary, canvas):focus-visible { outline: 2px solid var(--plum); outline-offset: 4px; }
  #product, #shop, #about { scroll-margin-top: 110px; }
  [data-photo] { aspect-ratio: 1; background: var(--tile); display: grid; place-items: center; overflow: hidden; }
  [data-photo] img { width: 100%; height: 100%; object-fit: cover; }
  .hero-img[data-photo] { aspect-ratio: auto; }
  .ph-label { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-align: center; }
  .ph-label small { display: block; font-size: 10px; opacity: .7; font-family: monospace; letter-spacing: 0; }

  .info { position: sticky; top: 100px; align-self: start; }
  .info .row1 { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
  .info h1 { font-weight: 400; font-size: 26px; letter-spacing: .08em; line-height: 1.4; margin: 0; text-transform: lowercase; }
  .price { font-size: 17px; letter-spacing: .06em; white-space: nowrap; }
  .price small { font-size: 11px; color: var(--muted); }
  .sub { font-size: 13px; letter-spacing: .1em; color: var(--muted); margin-top: 2px; }
  .buy { display: block; width: 100%; text-align: center; margin: 26px 0 8px; background: var(--wa); color: #fff; text-decoration: none; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; padding: 17px; font-weight: 400; }
  .buy:hover { background: var(--plum); }
  .ship { text-align: center; font-size: 12px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
  .label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 34px 0 6px; }
  .story p { margin: 0 0 14px; font-size: 15px; }
  .meaning { font-size: 13px; letter-spacing: .12em; }
  .note { position: relative; background: #fffdf6; margin: 28px 6px; padding: 18px 20px 14px; transform: rotate(-1.2deg); box-shadow: 0 6px 16px rgba(0,0,0,.07); font-size: 23px; line-height: 1.25; color: #3a2d40; }
  .note::before { content: ""; position: absolute; top: -10px; left: 40%; width: 80px; height: 20px; background: var(--tape); transform: rotate(-3deg); }
  .note .sig { color: var(--plum); text-align: right; margin-top: 6px; }
  details { border: 1px solid var(--line); margin-top: 10px; }
  summary { cursor: pointer; padding: 14px 16px; font-size: 13px; letter-spacing: .14em; list-style: none; display: flex; justify-content: space-between; }
  summary::after { content: "+"; } details[open] summary::after { content: "–"; }
  details div { padding: 0 16px 14px; font-size: 14px; color: #444; }

  /* maker */
  .maker { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: center; max-width: 1000px; margin: 60px auto 0; padding: 60px 24px; border-top: 1px solid var(--line); }
  @media (max-width: 760px) { .maker { grid-template-columns: 1fr; gap: 30px; } }
  .maker:has(> .polaroid[hidden]) { grid-template-columns: 1fr; max-width: 720px; }
  .polaroid { background: #fff; padding: 10px 10px 44px; box-shadow: 0 10px 24px rgba(0,0,0,.1); transform: rotate(-3deg); position: relative; }
  .polaroid .hand { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 24px; }
  .maker h2 { font-weight: 400; font-size: 20px; letter-spacing: .26em; margin: 0 0 12px; }
  .maker p { margin: 0 0 14px; font-size: 17px; }
  .maker p:last-child { font-family: Caveat, cursive; font-size: 25px; line-height: 1.3; color: var(--plum); }
  footer { border-top: 1px solid var(--line); padding: 30px 24px; text-align: center; font-size: 12px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
  /* phones: keep the selected image, thumbnails and order panel together. */
  @media (max-width: 900px) {
    .info { position: static; }
    .pdp { gap: 28px; }
  }
  @media (max-width: 520px) {
    .grid { grid-template-columns: 1fr; gap: 32px; padding: 0 16px; }
    .card h2 { font-size: 12px; letter-spacing: .06em; }
    .card .badge { font-size: 8px; top: 6px; left: 6px; padding: 2px 5px; }
    .pdp { padding-left: 16px; padding-right: 16px; }
    .info .row1 { flex-wrap: wrap; gap: 4px 16px; }
    .info h1 { font-size: 24px; letter-spacing: .06em; }
    .hero-img { min-height: 0; aspect-ratio: 2 / 1; }
    .hero-text h1 { font-size: 20px; letter-spacing: .18em; }
    .vctl { gap: 6px; padding: 8px; }
    .vctl button { flex: 1; padding: 8px; font-size: 10px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .strip span { animation: none; }
    .card .img img { transition: none; }
  }

  .skip-link { position: fixed; top: 8px; left: 8px; z-index: 50; padding: 12px 20px; background: white; transform: translateY(-160%); }
  .skip-link:focus { transform: none; }
  .view-piece { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--plum); text-underline-offset: 4px; }
  .card:hover .view-piece { text-decoration: underline; }
  .product-breadcrumb { max-width: 1400px; margin: 0 auto; padding: 24px; gap: 10px; flex-wrap: wrap; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
  .product-breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }
  .product-page .pdp { padding-top: 0; }
  .product-page .info { top: 110px; }
  .collection-link { display: inline-block; margin-top: 8px; text-decoration: none; }
  .collection-link:hover { text-decoration: underline; }
  .product-intro { margin: 20px 0; font-size: 15px; }
  .order-help { margin: 8px 0 26px; text-align: center; font-size: 12px; color: var(--muted); }
  .gallery-navigation { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 0 0; font-size: 12px; color: var(--muted); }
  .gallery-navigation button, .dialog-navigation button, .dialog-toolbar button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
  .gallery-navigation button:hover, .dialog-navigation button:hover { background: var(--tile); }
  .gallery-navigation #enlarge-photo { margin-left: auto; text-decoration: underline; text-underline-offset: 4px; padding: 0 10px; }
  .gallery-photo { cursor: zoom-in; }
  .gallery-thumbs { margin-top: 4px; }
  .product-maker { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 1160px; margin: 20px auto 56px; padding: 36px 24px; border-top: 1px solid var(--line); }
  .product-maker .note { margin: 20px 6px; }
  .product-maker p { margin: 0 0 12px; }
  .product-maker a { font-size: 13px; text-underline-offset: 4px; }
  .eyebrow { text-transform: uppercase; font-size: 11px; letter-spacing: .16em; color: var(--muted); }
  .related-products { max-width: 1400px; margin: 0 auto 64px; padding: 0 24px; }
  .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
  .section-heading p { margin: 0 0 4px; }
  .section-heading h2 { font-size: 23px; font-weight: 400; margin: 0; }
  .section-heading > a { font-size: 13px; text-underline-offset: 4px; }
  #related-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .related-card { display: block; min-width: 0; text-decoration: none; }
  .related-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--tile); margin-bottom: 12px; }
  .related-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 400; text-transform: lowercase; }
  .related-card p { margin: 0; font-size: 13px; color: var(--muted); }
  .related-card .view-piece { margin-top: 12px; }
  .missing-product { max-width: 680px; min-height: 60vh; margin: auto; padding: 80px 24px; text-align: center; }
  .missing-product h1 { font-weight: 400; }
  .photo-dialog { width: min(94vw, 1400px); max-width: none; max-height: 94dvh; padding: 16px; border: 0; color: var(--ink); }
  .photo-dialog::backdrop { background: rgba(25,20,24,.76); }
  .dialog-toolbar, .dialog-navigation { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; }
  .dialog-toolbar span { text-transform: lowercase; letter-spacing: .06em; }
  .photo-dialog img { display: block; width: 100%; height: min(70dvh, 850px); object-fit: contain; background: var(--tile); }
  .dialog-navigation { justify-content: center; }
  body:has(.photo-dialog[open]) { overflow: hidden; }
  @media (max-width: 760px) {
    .product-maker { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
    .section-heading { align-items: start; flex-direction: column; gap: 12px; }
    .product-breadcrumb { padding: 20px 16px; font-size: 10px; }
    .related-products { padding: 0 16px; }
    #related-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
    .related-card h3 { font-size: 14px; }
    .photo-dialog { padding: 10px; }
    .photo-dialog img { height: auto; max-height: 70dvh; }
  }
