/* Astral Academy: same design system as the main store (owner 23 Nov: everything close to ours) */
:root {
  --ink: #14213d; --ink-2: #33415c; --muted: #5c677d; --line: #e3e0d8;
  --paper: #fbf9f4; --card: #ffffff; --gold: #e0a526; --gold-ink: #8a5a00;
  --r: 14px; --shadow: 0 1px 2px rgba(20,33,61,.06), 0 8px 24px rgba(20,33,61,.07);
  --serif: "Fraunces", "Noto Serif SC", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.7 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
svg { width: 20px; height: 20px; flex: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* header */
.hdr { position: sticky; top: 0; z-index: 10; background: rgba(251,249,244,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font: 600 19px var(--serif); }
.brand small { white-space: nowrap; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { background: #f0ece2; }
.hdr-in > .brand { order: -1; margin-right: auto; }
.menu-btn { display: none; }
.lang-btn { display: flex; align-items: center; justify-content: center; flex: none; min-width: 44px; height: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-2); font: 600 13px var(--sans); text-decoration: none; }
@media (max-width: 719px) {
  .hdr-in { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; }
  .hdr-in > .brand { order: 0; margin: 0; justify-self: center; }
  .menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
  .menu-btn i { display: block; height: 2px; background: var(--ink-2); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .hdr.open .menu-btn i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hdr.open .menu-btn i:nth-child(2) { opacity: 0; }
  .hdr.open .menu-btn i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px 16px 14px; background: #fbf9f4; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20,24,40,.08); }
  .hdr.open .nav { display: flex; }
  .nav a { font-size: 16px; padding: 13px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 600 15px var(--sans); text-decoration: none; background: var(--ink); color: #fff; }
.btn:hover { background: #0c162b; }

/* page top */
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); padding-top: 20px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--gold-ink); background: #fbefd3; padding: 6px 10px; border-radius: 99px; margin-top: 18px; }
.top h1 { font-size: clamp(30px, 6vw, 46px); margin: 14px 0 8px; max-width: 16em; }
.meta { font-size: 13px; color: var(--muted); margin: 0; }

/* article */
.prose { max-width: 720px; padding-top: 8px; }
.prose > p, .prose li { color: var(--ink-2); font-size: 16.5px; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; margin: 16px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prose th, .prose td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: #f3efe5; font-weight: 600; color: var(--ink); }
.tip { background: #fbefd3; border-radius: 12px; padding: 14px 16px; margin: 18px 0; color: var(--ink); font-size: 15.5px; }
.prose figure { margin: 26px 0; background: #f3efe5; border-radius: var(--r); padding: 22px 22px 14px; }
.prose figure img { width: 78%; margin: 0 auto; background: #fff; border-radius: 6px; border: 1px solid #ece8de; box-shadow: 0 1px 1px rgba(0,0,0,.05), 0 10px 30px rgba(20,33,61,.14); }
.prose figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }

/* link tiles (like the store's category picker) */
.cards { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 18px 0; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.cards a { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 66px; padding: 10px 56px 10px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(20,33,61,.06), 0 3px 10px rgba(20,33,61,.06); transition: box-shadow .15s; }
.cards a:hover { box-shadow: var(--shadow); }
.cards a::after { content: "›"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f3efe5; font: 600 20px/1 var(--sans); }
.cards b { font: 600 16px/1.3 var(--sans); }
.cards span { font-size: 13px; color: var(--muted); line-height: 1.35; }

/* product cards (same as the store grid) */
.sec { padding-top: 48px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 18px; }
.sec-head h2 { font-size: 28px; }
.sec-head > span { color: var(--muted); font-size: 14px; }
.grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-art { background: #f3efe5; padding: 22px 22px 0; height: 210px; overflow: hidden; }
.sheet { margin: 0 auto; width: 72%; background: #fff; border-radius: 6px; box-shadow: 0 1px 1px rgba(0,0,0,.05), 0 10px 30px rgba(20,33,61,.14); overflow: hidden; border: 1px solid #ece8de; }
.sheet img { width: 100%; height: auto; aspect-ratio: 1 / 1.414; object-fit: cover; object-position: top; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.card-body h3 { font-size: 20px; }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.tag { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.from { margin-top: 8px; font-size: 14px; color: var(--muted); }
.from b { color: var(--ink); font-size: 17px; }
.card .btn { margin-top: 12px; min-height: 42px; font-size: 14px; }
.grid.one { grid-template-columns: 1fr; max-width: 420px; }
@media (max-width: 559px) {
  .grid { gap: 10px; }
  .card { border-radius: 12px; }
  .card-art { height: 148px; padding: 12px 12px 0; }
  .sheet { width: 86%; }
  .card-body { padding: 10px 11px 12px; gap: 3px; }
  .card-body h3 { font-size: 15px; line-height: 1.25; }
  .card-body p { display: none; }
  .card .tag { font-size: 10px; letter-spacing: .06em; }
  .from { margin-top: auto; padding-top: 4px; font-size: 12px; }
  .from b { font-size: 16px; }
  .card .btn { min-height: 38px; padding: 0 10px; font-size: 13px; margin-top: 8px; border-radius: 10px; }
  .grid.one .card-art { height: 220px; } .grid.one .sheet { width: 60%; }
  .grid.one .card-body h3 { font-size: 19px; }
  .grid.one .card-body p { display: block; }
}

/* footer */
.ftr { margin-top: 72px; background: var(--ink); color: #c9cfdb; }
.ftr .brand b { color: #fff; } .ftr .brand small { color: #9aa3b5; }
.ftr-in { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
@media (min-width: 720px) { .ftr-in { grid-template-columns: 1.3fr 1fr; } }
.ftr-brand p { max-width: 340px; font-size: 14px; margin: 14px 0 0; }
.ftr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ftr-cols h4 { margin: 0 0 10px; color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.ftr-cols a { display: block; text-decoration: none; font-size: 14px; padding: 4px 0; }
.ftr-cols a:hover { color: #fff; }
.ftr-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; padding-bottom: 24px; font-size: 13px; color: #9aa3b5; }
.wa-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 19; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 6px 18px rgba(20,33,61,.22); }
.wa-fab svg { width: 28px; height: 28px; }
