  :root{
    --paper:#F3EEE0;
    --paper-deep:#EAE2CC;
    --ink:#23233B;
    --ink-soft:#4B4A63;
    --plum:#8C3B62;
    --mustard:#C98A1D;
    --sage:#5F7248;
    --teal:#2B6667;
    --rose:#B5546B;
    --line: rgba(35,35,59,0.14);
  }

  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  @media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto;}
    *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important;}
  }

  body{
    background:var(--paper);
    color:var(--ink);
    font-family:'Work Sans', sans-serif;
    line-height:1.5;
    background-image:
      radial-gradient(circle at 1px 1px, rgba(35,35,59,0.07) 1px, transparent 0);
    background-size: 22px 22px;
  }

  a{color:inherit; text-decoration:none;}
  img{max-width:100%; display:block;}
  button{font-family:inherit; cursor:pointer; background:none; border:none; color:inherit;}

  .display{
    font-family:'Fraunces', serif;
    font-weight:500;
    letter-spacing:-0.01em;
  }
  .hand{
    font-family:'Caveat', cursive;
    font-weight:600;
  }

  .wrap{
    max-width:1180px;
    margin:0 auto;
    padding:0 32px;
  }

  header{
    position:sticky;
    top:0;
    z-index:50;
    background:rgba(243,238,224,0.92);
    backdrop-filter: blur(6px);
    border-bottom:1px solid var(--line);
  }
  .header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 32px;
    max-width:1180px;
    margin:0 auto;
    gap:20px;
  }
  .logo{
    font-family:'Fraunces', serif;
    font-weight:600;
    font-size:1.45rem;
    display:flex;
    align-items:baseline;
    gap:8px;
    white-space:nowrap;
  }
  .logo .dot{ color:var(--plum); }
  nav{ display:flex; gap:6px; flex-wrap:wrap; }
  .tab{
    position:relative;
    font-size:0.86rem;
    font-weight:600;
    padding:9px 16px;
    border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
    transition: transform .25s ease, border-radius .25s ease;
    border:1.5px solid transparent;
  }
  .tab:hover, .tab:focus-visible{
    transform: translateY(-2px) rotate(-1deg);
    border-radius: 55% 45% 45% 55% / 45% 55% 45% 55%;
    outline: none;
  }
  .tab:focus-visible{ border-color: var(--ink); }
  .tab[data-c="canvases"]{ background: color-mix(in srgb, var(--plum) 16%, transparent); color:var(--plum); }
  .tab[data-c="magnets"]{ background: color-mix(in srgb, var(--mustard) 20%, transparent); color:#8a5f10; }
  .tab[data-c="keychains"]{ background: color-mix(in srgb, var(--sage) 18%, transparent); color:var(--sage); }
  .tab[data-c="jewellery"]{ background: color-mix(in srgb, var(--teal) 16%, transparent); color:var(--teal); }
  .tab[data-c="fabric"]{ background: color-mix(in srgb, var(--rose) 16%, transparent); color:var(--rose); }

  .header-contact{ display:flex; gap:10px; align-items:center; }
  .icon-btn{
    width:38px; height:38px;
    display:flex; align-items:center; justify-content:center;
    border:1.5px solid var(--ink);
    border-radius:50%;
    transition: background .2s ease, color .2s ease, transform .2s ease;
    flex-shrink:0;
  }
  .icon-btn:hover{ background:var(--ink); color:var(--paper); transform: rotate(-8deg); }

  .edit-toggle{
    display:flex;
    align-items:center;
    gap:8px;
    padding:9px 16px;
    border:1.5px solid var(--ink);
    border-radius:30px;
    font-size:0.85rem;
    font-weight:600;
    transition: background .2s ease, color .2s ease;
    white-space:nowrap;
  }
  .edit-toggle svg{ width:15px; height:15px; }
  .edit-toggle.is-on{ background:var(--plum); border-color:var(--plum); color:#fff; }

  @media (max-width: 860px){
    .header-inner{flex-wrap:wrap;}
    nav{order:3; width:100%; justify-content:flex-start;}
  }

  .hero{ padding:88px 0 70px; overflow:hidden; }
  .hero-grid{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap:56px; align-items:center; }
  .eyebrow{
    font-family:'Caveat', cursive;
    font-size:1.35rem;
    color:var(--plum);
    display:inline-block;
    margin-bottom:6px;
    transform: rotate(-2deg);
  }
  h1.display{ font-size:clamp(2.6rem, 5.2vw, 4.3rem); line-height:1.04; margin-bottom:22px; }
  h1.display em{ font-style:italic; color:var(--plum); }
  .hero p.lede{ font-size:1.12rem; color:var(--ink-soft); max-width:46ch; margin-bottom:30px; }
  .hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; }
  .btn{
    display:inline-flex; align-items:center; gap:8px;
    padding:13px 24px; border-radius:30px;
    font-weight:600; font-size:0.95rem;
    border:1.5px solid var(--ink);
    transition: transform .2s ease, background .2s ease, color .2s ease;
  }
  .btn.primary{ background:var(--ink); color:var(--paper); }
  .btn.primary:hover{ transform: translateY(-2px); background:var(--plum); border-color:var(--plum); }
  .btn.ghost:hover{ transform: translateY(-2px); background:var(--ink); color:var(--paper); }

  .diary-carousel{ display:flex; flex-direction:column; align-items:center; gap:16px; max-width:420px; margin-left:auto; }
  .diary-stack{
    position:relative;
    width:100%;
    height:420px;
    overflow:hidden;
    touch-action:pan-y;
    cursor:grab;
  }
  .diary-stack:active{ cursor:grabbing; }
  .page{
    position:absolute;
    top:0;
    left:50%;
    width:min(78%, 320px);
    aspect-ratio:4/5;
    border-radius:6px 16px 6px 16px;
    border:1.5px solid var(--ink);
    box-shadow: 6px 6px 0 rgba(35,35,59,0.12);
    padding:18px;
    display:flex; flex-direction:column; justify-content:space-between;
    transition: transform .4s ease, opacity .4s ease;
    transform: translateX(-50%) translateX(120%);
    opacity:0;
  }
  .page .tag{ font-family:'Caveat', cursive; font-size:1.6rem; }
  .page .swatch{ width:100%; height:56%; border-radius:4px 12px 4px 12px; }
  .page.is-active{ transform: translateX(-50%) translateX(0) rotate(-2deg); opacity:1; z-index:3; }
  .page.is-next{ transform: translateX(-50%) translateX(110%) rotate(5deg); opacity:0.6; z-index:2; }
  .page.is-prev{ transform: translateX(-50%) translateX(-110%) rotate(-7deg); opacity:0.6; z-index:1; }
  .page.is-hidden{ transform: translateX(-50%) translateX(220%) rotate(8deg); opacity:0; pointer-events:none; }
  .page-1{ background:var(--paper); }
  .page-1 .swatch{ background: repeating-linear-gradient(135deg, var(--plum), var(--plum) 10px, #7a3054 10px, #7a3054 20px);}
  .page-2{ background:var(--paper); }
  .page-2 .swatch{ background: repeating-linear-gradient(135deg, var(--mustard), var(--mustard) 10px, #b57a15 10px, #b57a15 20px);}
  .page-3{ background:var(--paper); }
  .page-3 .swatch{ background: repeating-linear-gradient(135deg, var(--sage), var(--sage) 10px, #4f5f3b 10px, #4f5f3b 20px);}
  .diary-dots{ display:flex; gap:8px; }
  .diary-dot{
    width:10px; height:10px; border-radius:999px;
    border:1px solid var(--ink);
    background:transparent;
    padding:0;
  }
  .diary-dot.is-active{ background:var(--plum); border-color:var(--plum); }

  @media (max-width: 900px){
    .hero-grid{grid-template-columns:1fr;}
    .diary-carousel{ margin:20px auto 0; }
    .diary-stack{height:320px;}
  }

  section{ padding:70px 0; }
  .section-head{ display:flex; align-items:baseline; gap:16px; margin-bottom:40px; flex-wrap:wrap; }
  .section-head .num{ font-family:'Caveat', cursive; font-size:1.5rem; }
  .section-head h2{ font-size:clamp(1.8rem, 3.2vw, 2.5rem); }
  .section-head .rule{ flex:1; height:1.5px; background:var(--line); min-width:60px; }

  .about{ background:var(--paper-deep); border-top:1.5px solid var(--line); border-bottom:1.5px solid var(--line); }
  .about-grid{ display:grid; grid-template-columns: 0.8fr 1.2fr; gap:50px; align-items:center; }
  .about-card{
    border:1.5px solid var(--ink);
    background:var(--paper);
    border-radius:8px 22px 8px 22px;
    padding:34px;
    box-shadow:7px 7px 0 rgba(35,35,59,0.1);
  }
  .about-card p.hand{ font-size:1.9rem; color:var(--plum); line-height:1.2; }
  .about-copy p{ color:var(--ink-soft); margin-bottom:16px; max-width:56ch; }
  @media (max-width:860px){ .about-grid{grid-template-columns:1fr;} }

  .category{ scroll-margin-top:90px; }
  .cat-head{ display:flex; align-items:center; gap:18px; margin-bottom:10px; }
  .cat-blob{
    width:54px; height:54px;
    border-radius:60% 40% 55% 45% / 50% 60% 40% 50%;
    flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
  }
  .cat-blob svg{ width:26px; height:26px; }
  .cat-title{ font-size:clamp(1.6rem,3vw,2.2rem); }
  .cat-desc{ color:var(--ink-soft); max-width:60ch; margin:14px 0 32px; }

  .gallery{ display:grid; grid-template-columns:repeat(auto-fill, minmax(190px,1fr)); gap:18px; }
  .tile{
    aspect-ratio:1/1;
    border-radius:10px 26px 10px 26px;
    border:1.5px solid var(--ink);
    display:flex; align-items:center; justify-content:center;
    position:relative; overflow:hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    cursor:pointer;
  }
  .tile:hover{ transform: rotate(-1.5deg) translateY(-4px); box-shadow:6px 6px 0 rgba(35,35,59,0.14); }
  .tile .fill{ position:absolute; inset:0; opacity:0.9; }
  .tile img.piece-photo{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
  .tile .hover-info{
    position:absolute; inset:0;
    display:flex; align-items:flex-start; justify-content:flex-start;
    padding:14px 14px 24px;
    background:linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.58) 100%);
    opacity:0;
    transition:opacity .25s ease;
    pointer-events:none;
  }
  .tile:hover .hover-info{ opacity:1; }
  .tile .hover-card{
    background:rgba(255,255,255,0.72);
    backdrop-filter: blur(8px);
    border:1px solid rgba(35,35,59,0.16);
    border-radius:14px;
    padding:10px 12px;
    max-width:100%;
    box-shadow:0 8px 20px rgba(0,0,0,0.14);
    margin-top:6px;
  }
  .tile .hover-price{
    display:block;
    font-family:'Work Sans', sans-serif;
    font-size:0.76rem;
    font-weight:700;
    color:var(--plum);
    margin-bottom:4px;
    text-transform:uppercase;
    letter-spacing:0.04em;
  }
  .tile .hover-text{
    font-family:'Work Sans', sans-serif;
    font-size:0.84rem;
    color:var(--ink);
    line-height:1.35;
  }
  .tile .caption{
    position:absolute; left:0; right:0; bottom:0;
    padding:10px 12px;
    background:linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0));
    display:flex; justify-content:space-between; align-items:flex-end; gap:8px; flex-wrap:wrap;
  }
  .tile .label{
    position:relative;
    font-family:'Caveat', cursive;
    font-size:1.15rem;
    color:#fff;
    text-shadow:0 1px 3px rgba(0,0,0,0.35);
    text-align:left;
    line-height:1.1;
  }
  .tile .price-tag{
    font-family:'Work Sans', sans-serif;
    font-size:0.78rem;
    font-weight:600;
    color:#fff;
    background:rgba(35,35,59,0.55);
    padding:3px 9px;
    border-radius:20px;
    white-space:nowrap;
    flex-shrink:0;
  }
  .tile .buy-btn{
    margin-left:auto;
    border:none;
    border-radius:999px;
    background:var(--paper);
    color:var(--ink);
    padding:6px 10px;
    font-family:'Work Sans', sans-serif;
    font-size:0.74rem;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(0,0,0,0.18);
    transition:transform .2s ease, box-shadow .2s ease;
  }
  .tile .buy-btn:hover{ transform:translateY(-1px); box-shadow:0 6px 12px rgba(0,0,0,0.24); }
  .tile .edit-pencil{
    position:absolute; top:8px; right:8px;
    width:30px; height:30px;
    border-radius:50%;
    background:rgba(243,238,224,0.92);
    border:1.5px solid var(--ink);
    display:flex; align-items:center; justify-content:center;
    opacity:0; transform:scale(0.8);
    transition:opacity .2s ease, transform .2s ease;
  }
  body.edit-mode .tile .edit-pencil{ opacity:1; transform:scale(1); }
  .tile .edit-pencil svg{ width:14px; height:14px; }

  .tile.add-tile{
    display:none; flex-direction:column; gap:6px;
    background:transparent; border-style:dashed;
    color:var(--ink-soft); font-weight:600; font-size:0.9rem;
  }
  body.edit-mode .tile.add-tile{ display:flex; }
  .tile.add-tile:hover{ color:var(--ink); background:rgba(35,35,59,0.04); }
  .tile.add-tile svg{ width:26px; height:26px; }

  .checkout-page{
    min-height:100vh;
    background:linear-gradient(145deg, rgba(243,238,224,0.96), rgba(234,226,204,0.95));
  }
  .checkout-header{
    display:flex; justify-content:space-between; align-items:center;
    max-width:1100px; margin:0 auto; padding:24px 32px 0;
    gap:16px;
  }
  .back-link{
    display:inline-flex; align-items:center; gap:8px;
    font-weight:600; color:var(--ink-soft);
  }
  .secure-pill{
    display:inline-flex; align-items:center; gap:8px;
    padding:8px 12px; border-radius:999px;
    background:rgba(43,102,103,0.12); color:var(--teal);
    font-weight:700; border:1px solid rgba(43,102,103,0.2);
  }
  .checkout-shell{ max-width:1100px; margin:0 auto; padding:24px 32px 60px; }
  .checkout-card{
    background:rgba(255,255,255,0.82); border:1.5px solid var(--line);
    border-radius:24px; padding:32px; box-shadow:0 18px 40px rgba(35,35,59,0.08);
  }
  .checkout-intro{ margin-bottom:24px; }
  .checkout-intro .eyebrow{ text-transform:uppercase; letter-spacing:.24em; color:var(--plum); font-size:0.73rem; font-weight:700; margin-bottom:8px; }
  .checkout-intro p{ color:var(--ink-soft); max-width:64ch; }
  .checkout-form{ display:grid; gap:18px; }
  .form-grid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; }
  .form-grid label{ display:flex; flex-direction:column; gap:8px; font-weight:600; color:var(--ink-soft); }
  .form-grid label.full{ grid-column:1 / -1; }
  .form-grid input, .form-grid select, .form-grid textarea{
    border:1.5px solid var(--line); border-radius:14px; padding:12px 14px;
    background:var(--paper); color:var(--ink); font:inherit;
  }
  .form-grid textarea{ min-height:110px; resize:vertical; }
  .form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus{ outline:2px solid rgba(140,59,98,0.22); border-color:var(--plum); }
  .checkout-actions{ display:flex; flex-direction:column; gap:10px; margin-top:20px; }
  .checkout-actions .btn{ align-self:flex-start; }
  .security-note{ color:var(--ink-soft); font-size:0.92rem; max-width:62ch; }
  .success-box{
    margin-top:18px; padding:14px 16px; border-radius:14px; border:1px solid rgba(43,102,103,0.2);
    background:rgba(43,102,103,0.1); color:var(--teal); font-weight:600;
  }
  .success-box.hidden{ display:none; }
  .order-summary{ margin-top:18px; padding:12px 14px; border-radius:14px; background:rgba(140,59,98,0.08); color:var(--ink); }
  @media (max-width:700px){
    .form-grid{ grid-template-columns:1fr; }
    .checkout-header{ padding:18px 20px 0; }
    .checkout-shell{ padding:18px 20px 40px; }
    .checkout-card{ padding:22px; }
  }

  #canvases .cat-blob{ background: color-mix(in srgb, var(--plum) 22%, var(--paper)); }
  #canvases .cat-blob svg{ stroke:var(--plum); }
  #magnets .cat-blob{ background: color-mix(in srgb, var(--mustard) 26%, var(--paper)); }
  #magnets .cat-blob svg{ stroke:#8a5f10; }
  #keychains .cat-blob{ background: color-mix(in srgb, var(--sage) 24%, var(--paper)); }
  #keychains .cat-blob svg{ stroke:var(--sage); }
  #jewellery .cat-blob{ background: color-mix(in srgb, var(--teal) 22%, var(--paper)); }
  #jewellery .cat-blob svg{ stroke:var(--teal); }
  #fabric .cat-blob{ background: color-mix(in srgb, var(--rose) 22%, var(--paper)); }
  #fabric .cat-blob svg{ stroke:var(--rose); }

  .swatch-a{ background:linear-gradient(135deg,var(--plum),#5f2340); }
  .swatch-b{ background:linear-gradient(135deg,var(--mustard),#8a5f10); }
  .swatch-c{ background:linear-gradient(135deg,var(--sage),#3d4a2c); }
  .swatch-d{ background:linear-gradient(135deg,var(--teal),#173e3e); }
  .swatch-e{ background:linear-gradient(135deg,var(--rose),#7c3547); }

  .note{ margin-top:26px; font-family:'Caveat', cursive; font-size:1.15rem; color:var(--ink-soft); }
  .gallery-status{ font-size:0.85rem; color:var(--ink-soft); margin-bottom:16px; }

  .category:nth-of-type(even){ background:var(--paper-deep); border-top:1.5px solid var(--line); border-bottom:1.5px solid var(--line);}

  .contact{ padding:90px 0 100px; }
  .postcard{
    border:1.5px solid var(--ink);
    border-radius:14px 40px 14px 40px;
    background:var(--paper);
    padding:50px;
    display:grid; grid-template-columns: 1.1fr 0.9fr; gap:40px;
    box-shadow: 10px 10px 0 rgba(35,35,59,0.12);
  }
  .postcard h2{ font-size:clamp(1.9rem,3.4vw,2.6rem); margin-bottom:14px; }
  .postcard p{ color:var(--ink-soft); margin-bottom:26px; max-width:44ch;}
  .contact-line{ display:flex; align-items:center; gap:14px; padding:14px 0; border-top:1px dashed var(--line); font-weight:600; }
  .contact-line:first-of-type{ border-top:none; }
  .contact-line .ic{
    width:36px;height:36px; border-radius:50%; border:1.5px solid var(--ink);
    display:flex;align-items:center;justify-content:center; flex-shrink:0;
  }
  .postcard-stamp{
    align-self:start; justify-self:end; width:110px; height:130px;
    border:2px dashed var(--ink); border-radius:6px;
    display:flex; align-items:center; justify-content:center;
    transform:rotate(6deg);
  }
  .postcard-stamp span{ font-family:'Caveat', cursive; font-size:1.2rem; text-align:center; color:var(--plum); }
  @media (max-width:860px){
    .postcard{grid-template-columns:1fr; padding:34px;}
    .postcard-stamp{justify-self:start;}
  }

  footer{ padding:30px 0; border-top:1.5px solid var(--line); text-align:center; font-size:0.85rem; color:var(--ink-soft); }
  footer .hand{ color:var(--plum); font-size:1.1rem; }

  .modal-overlay{
    position:fixed; inset:0; background:rgba(35,35,59,0.55);
    display:none; align-items:center; justify-content:center;
    z-index:200; padding:20px;
  }
  .modal-overlay.open{ display:flex; }
  .modal{
    background:var(--paper); border:1.5px solid var(--ink);
    border-radius:12px 30px 12px 30px;
    width:100%; max-width:420px; padding:30px;
    box-shadow:10px 10px 0 rgba(35,35,59,0.16);
    max-height:90vh; overflow-y:auto;
  }
  .modal h3{ font-size:1.5rem; margin-bottom:18px; }
  .field{ margin-bottom:16px; }
  .field label{ display:block; font-size:0.82rem; font-weight:600; margin-bottom:6px; color:var(--ink-soft); }
  .field input[type="text"]{
    width:100%; padding:10px 12px; border:1.5px solid var(--ink); border-radius:8px;
    font-family:'Work Sans', sans-serif; font-size:0.95rem; background:#fff;
  }
  .field input[type="text"]:focus{ outline:2px solid var(--plum); outline-offset:1px; }
  .image-drop{ border:1.5px dashed var(--ink); border-radius:10px; padding:16px; text-align:center; cursor:pointer; position:relative; }
  .image-drop img{ max-height:160px; margin:0 auto 10px; border-radius:6px; }
  .image-drop input[type="file"]{ position:absolute; inset:0; opacity:0; cursor:pointer; }
  .image-drop .hint{ font-size:0.82rem; color:var(--ink-soft); }
  .modal-actions{ display:flex; gap:10px; margin-top:22px; flex-wrap:wrap; }
  .modal-actions .btn{ padding:11px 18px; font-size:0.88rem; }
  .btn.danger{ border-color:#a33; color:#a33; }
  .btn.danger:hover{ background:#a33; color:#fff; }
  .btn[disabled]{ opacity:0.5; pointer-events:none; }

  .toast{
    position:fixed; bottom:24px; left:50%;
    transform:translateX(-50%) translateY(10px);
    background:var(--ink); color:var(--paper);
    padding:12px 22px; border-radius:30px;
    font-size:0.88rem; font-weight:600;
    opacity:0; pointer-events:none;
    transition:opacity .25s ease, transform .25s ease;
    z-index:300;
  }
  .toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
