/* Angel Number shop: a dark, quiet room and one round window (Matej's choice, 11. 11. 2026: look B, the rose window).
   Nine panes around a round one; the digits of the number are the lit panes. The page has few words on purpose.
   The CSP has no 'unsafe-inline': no style="" in markup. The two other looks are kept in out/shop-v2-backup. */

.an { --pad: 24px; --top: 56px; --bg: #131110; --ink: #ece3d0; --muted: #a59c8a; --line: #38322a; --accent: #d59a3c; --on-accent: #17130f;
  --text: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif; --display: 'Fraunces', Georgia, serif;
  margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
@media (min-width: 375px) { .an { --pad: 28px; } }
@media (min-width: 640px) { .an { --pad: 32px; } }
@media (min-width: 1024px) { .an { --pad: 48px; --top: 64px; } }
:where(.an) *, :where(.an) *::before, :where(.an) *::after { box-sizing: border-box; }
:where(.an) h1, :where(.an) h2, :where(.an) p, :where(.an) ol { margin: 0; padding: 0; }
:where(.an) ol { list-style: none; }
:where(.an) a { color: inherit; }
:where(.an) button, :where(.an) input { font: inherit; color: inherit; }
.an [hidden] { display: none !important; }
html:has(.an) { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html:has(.an) { scroll-behavior: auto; } }
.an .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.an-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }

.an-top { position: sticky; top: 0; z-index: 20; height: var(--top); background: var(--bg); border-bottom: 1px solid var(--line); }
.an-top .an-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.an-brand { font: 500 17px/1 var(--display); text-decoration: none; white-space: nowrap; }
.an-topcta { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; font: 600 14px/1 var(--text); text-decoration: none;
  white-space: nowrap; border: 1px solid var(--ink); }

/* ---- the window (also on the home page's door and on the buyer's own page) */
.rw-line { fill: none; stroke: #ece3d0; stroke-width: .7; opacity: .75; }
.rw-line.thin { stroke-width: .45; opacity: .5; }
.rw-pane path, .rw-pane circle { fill: #d59a3c; fill-opacity: 0; stroke: #ece3d0; stroke-width: .6; stroke-opacity: .7; transition: fill-opacity .9s ease; }
.rw-pane text { font: 400 9px/1 'Fraunces', Georgia, serif; fill: #ece3d0; opacity: .5; transition: opacity .9s ease; }
.rw-pane.on path, .rw-pane.on circle { fill-opacity: .3; }
.rw-pane.on text { opacity: 1; }
.rw-pane.ring path, .rw-pane.ring circle { animation: rw-ring 3.4s ease-out; }
@keyframes rw-ring { 0% { fill-opacity: .3; } 6% { fill-opacity: .95; } 100% { fill-opacity: .3; } }

/* ---- the first screen: the window, the number, its first line, hear it, open it */
.an-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px 0 48px; }
.an-art { width: min(100% - 2 * var(--pad), 250px, 34svh); margin: 0 auto; }
.an-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.an-in { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
:where(.an) h1 { font: 500 clamp(21px, 2.3vw, 30px)/1.2 var(--display); text-wrap: balance; }
.an-num { display: block; max-width: 100%; margin-top: 10px; padding: 0; border: 0; border-radius: 0; background: none; outline: 0; text-align: center;
  caret-color: var(--muted); font: 400 clamp(84px, 13vw, 168px)/0.95 var(--display); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em;
  color: #f2e9d6; -webkit-appearance: none; appearance: none; }
.an-num:focus-visible { box-shadow: 0 2px 0 var(--line); }
.an-says { margin-top: 14px; max-width: 34ch; font: 400 clamp(19px, 1.9vw, 24px)/1.4 var(--display); text-wrap: balance; }
.an-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 2px; margin-top: 14px; }
.an-chip { min-height: 40px; padding: 8px 11px; border: 0; background: none; color: var(--muted); cursor: pointer; font: 500 15px/1 var(--text);
  font-variant-numeric: tabular-nums; -webkit-tap-highlight-color: transparent; }
.an-chip.on { color: var(--ink); box-shadow: inset 0 -1.5px 0 var(--ink); }
@media (hover: hover) { .an-chip:hover { color: var(--ink); } }
.an-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.an-buy { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; cursor: pointer;
  font: 600 16.5px/1.2 var(--text); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.an-buy { border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font-variant-numeric: tabular-nums; }
.an-buy:disabled { opacity: .55; cursor: default; }
.an-buy:focus-visible, .an-chip:focus-visible, .an-topcta:focus-visible, .an-faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 599px) {
  /* phone: the quick numbers are one row to swipe, the two buttons share the width */
  .an-chips { flex-wrap: nowrap; justify-content: flex-start; width: calc(100% + 2 * var(--pad)); max-width: none; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1);
    padding: 0 calc(var(--pad) - 11px); overflow-x: auto; scrollbar-width: none; }
  .an-chips::-webkit-scrollbar { display: none; }
  .an-chip { flex: none; }
  .an-act { display: grid; grid-template-columns: 1fr; width: 100%; }
}
@media (min-width: 900px) {
  .an-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 0; min-height: calc(100svh - var(--top)); padding: 48px 0; }
  .an-art { width: min(78%, 68vh, 560px); }
  .an-in { align-items: flex-start; text-align: left; }
  .an-num { margin-top: 18px; text-align: left; }
  .an-chips { justify-content: flex-start; margin-left: -11px; margin-top: 22px; }
  .an-act { justify-content: flex-start; margin-top: 30px; }
}

/* ---- what opens, paying, the one fact, questions */
.an-open { padding: 80px 0; border-top: 1px solid var(--line); }
:where(.an) h2 { font: 500 clamp(28px, 3.6vw, 44px)/1.1 var(--display); text-wrap: balance; }
.an-three { display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--ink); }
.an-three li { padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.an-three b { display: block; font: 500 22px/1.2 var(--display); }
.an-three span { display: block; margin-top: 6px; color: var(--muted); max-width: 34ch; }
.an-three i { font-style: normal; font-variant-numeric: tabular-nums; }
@media (min-width: 860px) {
  .an-open { padding: 112px 0; }
  .an-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .an-three li { padding: 24px 28px 26px 0; border-bottom: 0; }
  .an-three li + li { padding-left: 28px; border-left: 1px solid var(--line); }
}
.an-pay { margin-top: 36px; max-width: 420px; }
.an-buy.big { width: 100%; }
.an-err { margin-top: 12px; padding: 12px 14px; border-left: 3px solid #d0604a; background: rgba(208, 96, 74, .16); font-size: 15px; font-weight: 600; }
.an-faq { padding: 72px 0 88px; border-top: 1px solid var(--line); }
.an-faq .list { margin-top: 28px; max-width: 860px; border-top: 1px solid var(--ink); }
.an-faq details { border-bottom: 1px solid var(--line); }
.an-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font: 500 19px/1.3 var(--display); }
.an-faq summary::-webkit-details-marker { display: none; }
.an-faq summary::after { content: "+"; flex: none; font: 400 24px/1 var(--text); }
.an-faq details[open] summary::after { content: "–"; }
.an-faq details p { padding: 0 0 20px; max-width: 64ch; color: var(--muted); }
.an-foot { padding: 36px 0 52px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.an-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 12px; }
.an-foot nav a { color: var(--ink); font-weight: 600; }

/* ---- the buyer's own page (order.html) takes the same room: base.css reads these */
body[data-store="cisla"] { --bg: #131110; --ink: #ece3d0; --muted: #a59c8a; --line: #38322a; --accent: #d59a3c; --on-accent: #17130f;
  --card: #1a1715; --field: #1a1715; --radius: 0px; --display: 'Fraunces', Georgia, serif; }
[data-store="cisla"] .brand { font-weight: 500; font-size: 17px; }
[data-store="cisla"] h1 { font-weight: 500; }
[data-store="cisla"] .err { background: rgba(208, 96, 74, .16); color: #f0b3a6; }
[data-store="cisla"] .okmsg { background: #10231a; color: #a7e3c2; }
.rd-art { width: min(64%, 260px); margin: 34px auto 0; }
.rd-art svg { display: block; width: 100%; height: auto; overflow: visible; }
