/* Crafty Crafts — craftycrafts.net
   Palette from the logo's watercolor crystal (aqua → amethyst → rose), cool not cream.
   Marcellus (carved-stone Roman capitals) for headings, Nunito Sans for reading.
   One bold element: the "Shop by intention" beads. Everything else stays quiet.
   Spacing on a 4px scale (4, 8, 12, 16, 24, 32, 48, 64, 96). */
:root {
  --mist: #f4f6fb;        /* page */
  --paper: #ffffff;       /* raised surfaces */
  --ink: #27233a;         /* text */
  --ink-soft: #5d5870;    /* secondary text, 6.3:1 on mist */
  --line: #e2e3ee;
  --amethyst: #5a44a0;    /* actions, links: 7.9:1 on white */
  --amethyst-deep: #45337f;
  --rose: #e8c7d6;
  --aqua: #cfe0ef;
  --r-s: 8px;
  --r-m: 14px;
  --display: "Marcellus", "Iowan Old Style", Georgia, serif;
  --body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --zh: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 17px/1.65 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--amethyst); text-underline-offset: 3px; }
a:hover { color: var(--amethyst-deep); }
:focus-visible { outline: 3px solid var(--amethyst); outline-offset: 3px; border-radius: 4px; }

/* type scale: 17 → 21 → 26 → 34 → 46 (≈1.25 ratio) */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; letter-spacing: .005em; margin: 0 0 12px; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2rem); }
h3 { font-size: 1.3rem; margin-top: 32px; }
p { margin: 0 0 16px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.section-sub { color: var(--ink-soft); max-width: 40em; margin-bottom: 24px; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.note { color: var(--ink-soft); margin-top: 32px; }
[lang="zh"], .zh { font-family: var(--zh); color: var(--ink-soft); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 900px) { .section { padding-top: 64px; padding-bottom: 64px; } }

/* header */
.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 400 1.45rem var(--display); }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav a:hover { background: var(--mist); color: var(--ink); }
.nav a[aria-current] { color: var(--amethyst); box-shadow: inset 0 -2px 0 var(--amethyst); border-radius: 0; }
@media (max-width: 640px) {
  .header-inner { padding-top: 8px; }
  .nav { width: calc(100% + 40px); margin: 0 -20px; padding: 0 6px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--amethyst); color: #fff; border: 2px solid var(--amethyst); font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--amethyst-deep); border-color: var(--amethyst-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--amethyst); }
.btn-ghost:hover { background: var(--paper); color: var(--amethyst-deep); }
.btn-big { width: 100%; min-height: 56px; font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* hero: words left, a real piece right */
.hero { background:
  radial-gradient(60% 80% at 85% 20%, rgba(232, 199, 214, .55), transparent 70%),
  radial-gradient(50% 70% at 10% 0%, rgba(207, 224, 239, .8), transparent 70%), var(--mist); }
.hero-grid { display: grid; gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 48px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; padding-top: 64px; padding-bottom: 80px; } }
.hero-copy h1 { font-size: clamp(2.3rem, 5.6vw, 3.4rem); max-width: 12em; }
.hero-photo { position: relative; display: block; border-radius: 160px 160px var(--r-m) var(--r-m); overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(40, 30, 90, .45); color: #fff; text-decoration: none; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 48px 20px 16px;
  background: linear-gradient(transparent, rgba(20, 14, 40, .72)); font-size: .95rem; }
.hero-caption b { font-weight: 600; }
.hero-photo:hover { color: #fff; }

/* the beads: glossy stone spheres in each intention's colors */
.beads { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 12px; }
@media (max-width: 520px) { .beads { grid-template-columns: repeat(3, 1fr); } }
.bead-link { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: var(--r-m); color: var(--ink); text-decoration: none; text-align: center; }
.bead-link:hover, .bead-link[aria-current] { background: var(--paper); color: var(--ink); }
.bead { width: clamp(64px, 9vw, 88px); height: clamp(64px, 9vw, 88px); border-radius: 50%; margin-bottom: 6px; flex: none;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .95) 0 7%, rgba(255, 255, 255, .35) 14%, transparent 30%),
    radial-gradient(circle at 60% 70%, var(--b1) 0%, transparent 45%),
    radial-gradient(circle at 40% 35%, var(--b2) 20%, var(--b3) 100%);
  box-shadow: inset -8px -10px 18px rgba(0, 0, 0, .28), inset 6px 6px 12px rgba(255, 255, 255, .25), 0 10px 18px -8px rgba(30, 20, 60, .45);
  transition: transform .25s ease; }
.bead-link:hover .bead { transform: translateY(-3px) rotate(-8deg); }
.bead-lg { width: 112px; height: 112px; }
.bead-name { font: 400 1.2rem var(--display); }
.bead-count { font-size: .85rem; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .bead { transition: none; } .bead-link:hover .bead { transform: none; } }

/* featured: one large piece leads, the rest sit beside it; a swipe row on phones */
.features { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 900px) {
  /* [1 1 2] [1 1 3] [4 5 6]: the lead piece takes a 2×2 block */
  .features { grid-template-columns: repeat(3, 1fr); column-gap: 24px; row-gap: 32px; }
  .features .feature:first-child { grid-column: span 2; grid-row: span 2; }
  .features .feature:first-child .feature-img { flex: 1; }
  .features .feature:first-child .feature-img img { aspect-ratio: auto; height: 100%; }
  .features .feature:first-child .feature-title { font-size: 1.7rem; }
}
@media (max-width: 899px) {
  .features { grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
  .feature { scroll-snap-align: start; }
}
.feature { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.feature-img { display: block; border-radius: var(--r-m); overflow: hidden; background: var(--aqua); }
.feature-img img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.feature-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 2px 0; }
.feature-title { font: 400 1.3rem/1.25 var(--display); }
.feature-stones { color: var(--ink-soft); font-size: .9rem; }
.feature-price { font-weight: 700; color: var(--amethyst); margin-top: 4px; }
.feature:hover .feature-title { color: var(--amethyst); }

/* category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tile { position: relative; display: block; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 16 / 10; color: #fff; text-decoration: none; background: var(--aqua); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile span { position: absolute; inset: auto 0 0 0; padding: 48px 20px 16px; font: 400 1.6rem var(--display); background: linear-gradient(transparent, rgba(20, 14, 40, .7)); }
.tile small { display: block; font: 600 .9rem var(--body); opacity: .9; }
.tile:hover { color: #fff; }

/* product grid: photo, name, price; no boxes */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.section-head a { font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 20px; margin-top: 16px; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; } }
.card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.card-img { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; background: var(--aqua); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; }
.card-title { font-weight: 600; line-height: 1.35; }
.card-price { color: var(--ink-soft); }
.card:hover .card-title { color: var(--amethyst); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; }
.chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* story band */
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 64px; padding-top: 56px; padding-bottom: 56px; }
.band a { font-weight: 700; }

/* piece page */
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 16px; }
.crumbs a { color: var(--ink-soft); }
.piece { padding-top: 24px; }
.piece-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .piece-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; } .gallery { position: sticky; top: 88px; } }
.gallery-main img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; border-radius: var(--r-m); background: var(--aqua); }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
.thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r-s); outline: 2px solid transparent; outline-offset: 2px; }
.thumbs a[aria-current] img { outline-color: var(--amethyst); }
.piece-info h1 { font-size: clamp(2rem, 4.2vw, 2.6rem); }
.piece-intro { font-size: 1.1rem; }
.price { font: 700 1.6rem var(--body); color: var(--ink); margin: 8px 0 16px; }
.sold-badge { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; padding: 4px 16px; border-radius: 999px; }
.glance { margin: 24px 0; padding: 4px 0; border-top: 1px solid var(--line); }
.glance div { display: grid; grid-template-columns: 11em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.glance dt { color: var(--ink-soft); }
.glance dd { margin: 0; font-weight: 600; }
@media (max-width: 420px) { .glance div { grid-template-columns: 1fr; gap: 0; } }
.stones { margin: 24px 0; }
.stones h2 { font-size: 1.3rem; margin-bottom: 8px; }
.stones ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stones li a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.stones li { display: flex; align-items: center; gap: 6px; }
.desc { margin-top: 24px; }
.desc h3 { font-size: 1.25rem; }
.desc ul { padding-left: 1.2em; }

/* intention pages */
.intent-head { display: flex; align-items: center; gap: 24px; margin-bottom: 8px; }
.intent-stones { color: var(--ink-soft); }
@media (max-width: 520px) { .intent-head { flex-direction: column; align-items: flex-start; } }

/* crystal guide */
.stones-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 24px; }
.stone { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.stone:hover { border-color: var(--amethyst); color: var(--ink); }
.stone img, .stone-dot { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.stone-dot { background: radial-gradient(circle at 34% 28%, #fff 0 8%, transparent 26%), radial-gradient(circle at 40% 35%, var(--aqua), #a99bd6 70%, var(--rose)); }
.stone small { display: block; color: var(--ink-soft); font-size: .88rem; line-height: 1.45; margin-top: 2px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.facts div { padding: 12px 18px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); }
.facts dt { font-size: .85rem; color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 700; }
h1 .zh { font-size: .55em; }

/* prose pages */
.prose h2 { margin-top: 40px; }
.contact-list { display: grid; gap: 12px; margin-top: 24px; }
.contact { display: block; padding: 20px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.contact:hover { border-color: var(--amethyst); color: var(--ink); }
.contact b { display: block; font: 400 1.25rem var(--display); color: var(--amethyst); }

/* footer */
.site-footer { background: var(--ink); color: #d9d5e6; padding: 48px 0 24px; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { font: 400 1.5rem var(--display); color: #fff; margin: 0 0 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.fine { font-size: .85rem; color: #b9b3cc; margin-top: 24px; }
.fine p { margin: 4px 0; }
