/* =========================================================
   The CMS's own pages (Journal, posts, shop and account pages, forms)
   in the AeroNex look. Loaded after the landing files, so it uses their
   colours, fonts and glass surfaces.
   ========================================================= */

/* glass surfaces */
.glass .hm-glass,
.glass .bj-card,
.glass .bj-feature,
.glass .bj-band-inner,
.glass .card {
  background: linear-gradient(160deg, var(--glass-fill-top), var(--glass-fill) 60%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  border-radius: 26px;
  box-shadow: var(--glass-shadow), var(--glass-inner);
}

/* buttons, labels and small type, as on the landing page */
.hm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 17px/1 var(--body); text-decoration: none; padding: 17px 26px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer;
}
.hm-btn-primary { background: var(--text); color: #fff; border-color: transparent; }
.hm-kicker, .bj-date, .post-meta, .crumbs {
  font: 600 13px/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.hm-link, .bj-more, .bj-feature-link, .post-more a { color: var(--blue-soft); font-weight: 600; text-decoration: none; }
.hm-link:hover, .bj-more:hover, .bj-feature-link:hover { text-decoration: underline; }
.hm-orb, .hm-bg { display: none; }

/* Journal listing */
.bj-section, .bj-hero, .bj-band, .post-hero, .post-body, .post-cover { padding-block: clamp(48px, 7vw, 96px); }
.bj-hero h1, .post-h, .bj-band h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin: 14px 0; }
.bj-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.bj-head h2 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; }
.bj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 860px) { .bj-grid { grid-template-columns: 1fr; } }
.bj-card { display: flex; flex-direction: column; overflow: hidden; color: var(--text); text-decoration: none; }
.bj-card-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.bj-card-img img { width: 100%; height: 100%; object-fit: cover; }
.bj-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.bj-card-title { font: 700 22px/1.2 var(--display); letter-spacing: -.02em; }
.bj-card-excerpt { color: var(--muted); font-size: 16px; }
.bj-more { font-size: 15px; }
.bj-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: clamp(22px, 3vw, 36px); margin-block: 24px; }
.bj-feature-img img { width: 100%; border-radius: 18px; }
.bj-feature-title { font: 800 clamp(26px, 3vw, 34px)/1.15 var(--display); letter-spacing: -.03em; margin: 10px 0; }
@media (max-width: 860px) { .bj-feature { grid-template-columns: 1fr; } }
.bj-band { text-align: center; }
.bj-band-inner { padding: clamp(28px, 4vw, 48px); max-width: 760px; margin-inline: auto; }

/* one post */
.post-hero { max-width: 860px; }
.post-dek { color: var(--muted); font-size: clamp(18px, 1.7vw, 21px); max-width: 60ch; margin-top: 10px; }
.post-cover img { width: 100%; border-radius: 26px; }
.post-body { max-width: 720px; }
.post-body img { width: 100%; border-radius: 18px; margin-block: 20px; }
.post-body h2 { font-family: var(--display); font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.025em; margin: 40px 0 12px; }
.post-body p { margin: 0 0 18px; }
.post-body blockquote { margin: 28px 0; padding-left: 20px; border-left: 3px solid var(--orange); color: var(--muted); font-style: italic; }
.post-more { padding-bottom: 80px; }

/* reading progress bar, like the landing page's scroll bar */
.read-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 100; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--blue)); transform-origin: 0 50%; transform: scaleX(0); }

/* shop, cart and account pages: plain blocks in the same look */
.card { padding: 22px; }
.card-img img { width: 100%; border-radius: 18px; }
.price { font: 700 18px/1.2 var(--display); }
.notice { padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.7); border: 1px solid var(--line); margin-bottom: 14px; }
.notice.error { color: var(--bad); }
.placeholder { color: var(--muted); }
input, select, textarea {
  font: 500 16px/1.4 var(--body); color: var(--text); background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; max-width: 100%;
}

/* explainer videos on the landing pages */
.explainer { padding-block: clamp(40px, 6vw, 80px); }
.explainer-card { max-width: 1100px; margin: 36px auto 0; padding: 18px; }
.explainer-card video { display: block; width: 100%; border-radius: 18px; background: #0B1B3A; }
.explainer-card .vid-frame { border-radius: 18px; box-shadow: none; }
.explainer-card .vid-frame video { border-radius: 0; }
/* the big "Play with sound" button owns the frame until the first play */
.explainer-card .vid-frame:not(.playing) .vidui { opacity: 0; pointer-events: none; }
.explainer-card figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 16px; }
