/* Charms page: a fashion collection grid with spec-sheet details. Loaded after styles.css + site.css. */

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.charms { --line: #e4e4e7; --c-ink: #0b0b0c; --mute: #6e6e73; --blue-text: #0066cc; background: #fff; color: var(--c-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.ch { overflow-x: clip; }

/* ---------- hero: what a charm is ---------- */
.ch-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); border-bottom: 1px solid var(--line); }
.ch-hero__copy { display: flex; flex-direction: column; padding: 40px 40px 44px; border-right: 1px solid var(--line); }
.ch-kicker { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; text-transform: uppercase; color: var(--mute); }
.ch-kicker span { display: inline-flex; align-items: center; gap: 8px; }
.ch-title {
  margin-top: auto; padding-top: 64px;
  font-size: clamp(60px, 7.4vw, 148px); font-weight: 600; letter-spacing: -0.055em; line-height: .84; text-transform: uppercase;
}
.ch-lede { margin-top: 22px; max-width: 430px; font-size: 17px; line-height: 1.45; color: #3a3a3c; }
.ch-spec { margin: 32px 0 0; border-top: 1px solid var(--line); font-size: 12px; text-transform: uppercase; }
.ch-spec div { display: grid; grid-template-columns: 116px 1fr; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ch-spec dt { color: var(--mute); }
.ch-spec dd { margin: 0; display: flex; align-items: center; gap: 8px; }
.ch-live { display: inline-block; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: ch-live 1.8s ease-out infinite; }
@keyframes ch-live { 0% { box-shadow: 0 0 0 0 rgba(10, 132, 255, .5); } 100% { box-shadow: 0 0 0 8px rgba(10, 132, 255, 0); } }

.ch-hero__fig {
  position: relative; margin: 0; padding: 64px 48px 56px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background-color: #f6f6f7;
  background-image: linear-gradient(rgba(0, 0, 0, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .045) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center;
}
.ch-hero__stage { position: relative; width: min(100%, 900px); }
.ch-hero__stage img { display: block; width: 100%; height: auto; }
.ch-corner { position: absolute; width: 16px; height: 16px; border: 0 solid var(--c-ink); }
.ch-corner--tl { left: 20px; top: 20px; border-left-width: 1px; border-top-width: 1px; }
.ch-corner--tr { right: 20px; top: 20px; border-right-width: 1px; border-top-width: 1px; }
.ch-corner--bl { left: 20px; bottom: 20px; border-left-width: 1px; border-bottom-width: 1px; }
.ch-corner--br { right: 20px; bottom: 20px; border-right-width: 1px; border-bottom-width: 1px; }
.ch-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ch-leaders line { stroke: var(--c-ink); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 3; }
.ch-dot { position: absolute; left: var(--x); top: var(--y); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; border: 1.5px solid var(--c-ink); }
.ch-note {
  position: absolute; left: var(--lx); top: var(--ly); transform: translate(-50%, -100%); padding: 5px 8px; margin-top: -4px;
  background: rgba(255, 255, 255, .88); border: 1px solid var(--line);
  font-size: 11px; line-height: 1.35; text-transform: uppercase; white-space: nowrap; color: var(--c-ink);
}
.ch-note b { font-weight: 500; color: var(--blue-text); margin-right: 6px; }
.ch-note small { font-size: 10px; color: var(--mute); }
.ch-cap { position: absolute; left: 44px; right: 44px; bottom: 18px; display: flex; justify-content: space-between; font-size: 10px; text-transform: uppercase; color: var(--mute); }

/* ---------- collection grid ---------- */
.ch-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding: 28px 20px 14px; }
.ch-bar h2 { white-space: nowrap; }
.ch-bar h2 { font-size: 14px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.ch-bar p { font-size: 11px; text-transform: uppercase; color: var(--mute); }
.ch-bar p span { color: var(--blue-text); }
.ch-grid { list-style: none; margin: 0; padding: 0 2px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.ch-card { position: relative; border: 1px solid var(--line); background: #fff; }
.ch-card__link { display: block; color: inherit; }
.ch-card__link:hover { color: inherit; }
.ch-card__img { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ch-card__photo { width: 84%; height: auto; transition: transform .7s var(--ease); }
.ch-card__link:hover .ch-card__photo, .ch-card__link:focus-visible .ch-card__photo { transform: translateY(-8px); }
.ch-card__id { position: absolute; left: 14px; top: 14px; z-index: 2; font-size: 11px; color: var(--mute); }
.ch-pill {
  position: absolute; right: 12px; top: 12px; z-index: 2; padding: 6px 12px; border-radius: 999px;
  background: #f1f1f2; font-size: 13px; color: var(--c-ink); white-space: nowrap;
}
.ch-pill--in { background: rgba(10, 132, 255, .1); color: var(--blue-text); }
.ch-card__meta { padding: 2px 14px 14px; }
.ch-sw { display: block; width: 28px; height: 28px; margin-bottom: 14px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0, 0, 0, .14); }
.ch-sw--tba { background: transparent; border: 1px dashed #b4b4b9; }
.ch-card__price, .ch-card__name { font-size: 13px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.35; }
.ch-card__price.mono { font-size: 12px; color: var(--mute); }
.ch-card__name { margin-top: 3px; }
.is-soon .ch-card__name { color: #3a3a3c; }

/* the "releasing" drawing: the real charm footprint, drawn like a spec */
.ch-wire { width: 88%; height: auto; overflow: visible; }
.ch-wire * { vector-effect: non-scaling-stroke; }
.ch-wire .w-top { fill: rgba(11, 11, 12, .025); stroke: var(--c-ink); stroke-width: 1; }
.ch-wire .w-side { fill: none; stroke: var(--c-ink); stroke-width: 1; }
.ch-wire .w-hid { fill: none; stroke: #a1a1a6; stroke-width: 1; stroke-dasharray: 3 3; }
.ch-wire .w-axis { stroke: #c7c7cc; stroke-width: 1; stroke-dasharray: 1 3; }
.ch-wire .w-dim { stroke: var(--blue); stroke-width: 1; }
.ch-wire text { font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-size: var(--fs, 2.1px); fill: var(--blue-text); letter-spacing: .04em; }
.ch-scan {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 46%, rgba(10, 132, 255, .06) 49%, rgba(10, 132, 255, .16) 50%, transparent 50.6%) 0 0 / 100% 240% no-repeat;
  animation: ch-scan 5.5s linear infinite; animation-delay: calc(var(--n, 0) * -.7s);
}
@keyframes ch-scan { from { background-position: 0 115%; } to { background-position: 0 -15%; } }

/* ---------- drop alert ---------- */
.ch-notify { margin: 72px 20px 96px; padding: 44px 40px 48px; background: var(--c-ink); color: #f5f5f7; }
.ch-notify .ch-kicker { color: #8e8e93; }
.ch-notify__h { margin-top: 56px; font-size: clamp(40px, 6vw, 88px); font-weight: 600; letter-spacing: -0.045em; line-height: .95; text-transform: uppercase; }
.ch-notify__p { margin-top: 16px; max-width: 460px; font-size: 17px; line-height: 1.45; color: #a1a1a6; }
.ch-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; margin-top: 28px; padding: 0 30px;
  background: #fff; color: var(--c-ink); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid #fff; transition: background .2s ease, color .2s ease;
}
.ch-btn:hover { background: transparent; color: #fff; }
.ch-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ch-card__link:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }

/* ---------- smaller screens ---------- */
@media (max-width: 833px) {
  .ch-hero { grid-template-columns: 1fr; }
  .ch-hero__copy { padding: 24px 16px 32px; border-right: 0; border-bottom: 1px solid var(--line); }
  .ch-title { padding-top: 48px; font-size: clamp(64px, 21vw, 110px); }
  .ch-lede { font-size: 16px; }
  .ch-hero__fig { padding: 76px 8px 44px; background-size: 32px 32px; }
  .ch-corner--tl, .ch-corner--tr { top: 14px; } .ch-corner--bl, .ch-corner--br { bottom: 14px; }
  .ch-corner--tl, .ch-corner--bl { left: 14px; } .ch-corner--tr, .ch-corner--br { right: 14px; }
  .ch-note { font-size: 10px; }
  .ch-note small { font-size: 9px; }
  .ch-cap { left: 36px; right: 36px; bottom: 12px; }
  .ch-bar { padding: 22px 12px 12px; }
  .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 0; }
  .ch-card__id { left: 10px; top: 10px; font-size: 10px; }
  .ch-pill { right: 8px; top: 8px; padding: 4px 8px; font-size: 11px; }
  .ch-card__meta { padding: 0 10px 12px; }
  .ch-sw { width: 22px; height: 22px; margin-bottom: 10px; }
  .ch-card__price, .ch-card__name { font-size: 11px; }
  .ch-card__price.mono { font-size: 10.5px; }
  .ch-notify { margin: 48px 0 0; padding: 32px 16px 40px; }
  .ch-notify__h { margin-top: 40px; }
  .ch-btn { width: 100%; }
}
@media (max-width: 380px) {
  .ch-note small, .ch-note br { display: none; }
}
@media (max-width: 360px) {
  .ch-pill__more { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ch-scan { display: none; }
}
