/* bakinom.eu: Bootstrap 5.3 dressed in the bakinom palette (tokens.css) */

/* Bootstrap's own variables, pointed at the palette */
:root,
[data-bs-theme] {
  --bs-body-font-family: 'Josefin Sans Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-font-size: 1.125rem;
  --bs-body-line-height: 1.6;
  --bs-body-bg: var(--bk-bg);
  --bs-body-bg-rgb: var(--bk-bg-rgb);
  --bs-body-color: var(--bk-text);
  --bs-body-color-rgb: var(--bk-text-rgb);
  --bs-emphasis-color: var(--bk-text);
  --bs-emphasis-color-rgb: var(--bk-text-rgb);
  --bs-heading-color: var(--bk-text);
  --bs-secondary-color: var(--bk-text-muted);
  --bs-secondary-bg: var(--bk-surface-2);
  --bs-tertiary-bg: var(--bk-surface-2);
  --bs-border-color: var(--bk-border);
  --bs-primary: var(--bk-primary);
  --bs-primary-rgb: var(--bk-primary-rgb);
  --bs-link-color: var(--bk-primary);
  --bs-link-color-rgb: var(--bk-primary-rgb);
  --bs-link-hover-color: var(--bk-primary-hover);
  --bs-link-hover-color-rgb: var(--bk-primary-hover-rgb);
  --bs-focus-ring-color: rgba(var(--bk-primary-rgb), .35);
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
h1, h2, h3 { font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
section { padding: 4.5rem 0; }

.btn { --bs-btn-border-radius: 999px; --bs-btn-padding-x: 1.5rem; --bs-btn-padding-y: .5rem; --bs-btn-font-weight: 600; --bs-btn-line-height: 1.4; }
.btn-lg { --bs-btn-padding-y: .55rem; --bs-btn-font-size: 1.125rem; --bs-btn-line-height: 1.35; }
.btn-primary {
  --bs-btn-color: var(--bk-on-primary);
  --bs-btn-bg: var(--bk-primary);
  --bs-btn-border-color: var(--bk-primary);
  --bs-btn-hover-color: var(--bk-on-primary);
  --bs-btn-hover-bg: var(--bk-primary-hover);
  --bs-btn-hover-border-color: var(--bk-primary-hover);
  --bs-btn-active-color: var(--bk-on-primary);
  --bs-btn-active-bg: var(--bk-primary-hover);
  --bs-btn-active-border-color: var(--bk-primary-hover);
  --bs-btn-focus-shadow-rgb: var(--bk-primary-rgb);
}
.btn-outline-primary {
  --bs-btn-color: var(--bk-primary);
  --bs-btn-border-color: var(--bk-border-strong);
  --bs-btn-hover-color: var(--bk-on-primary);
  --bs-btn-hover-bg: var(--bk-primary);
  --bs-btn-hover-border-color: var(--bk-primary);
  --bs-btn-active-color: var(--bk-on-primary);
  --bs-btn-active-bg: var(--bk-primary-hover);
  --bs-btn-active-border-color: var(--bk-primary-hover);
  --bs-btn-focus-shadow-rgb: var(--bk-primary-rgb);
}

.card {
  --bs-card-bg: var(--bk-surface);
  --bs-card-border-color: var(--bk-border);
  --bs-card-border-radius: 1.25rem;
  --bs-card-spacer-x: 1.5rem;
  --bs-card-spacer-y: 1.5rem;
}

/* One picture per theme: the other stays hidden */
[data-bs-theme="dark"] .only-light,
[data-bs-theme="light"] .only-dark { display: none !important; }

.site-nav { background: rgba(var(--bk-bg-rgb), .88); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-nav .navbar-brand img { height: 2.5rem; width: auto; }
.site-nav .nav-link { color: var(--bk-text-muted); }
.site-nav .nav-link:hover, .site-nav .nav-link:focus-visible { color: var(--bk-primary); }
.theme-toggle { width: 2.5rem; height: 2.5rem; padding: 0; display: inline-grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--bk-border); background: transparent; color: var(--bk-text-muted); }
/* the Apps menu */
.dropdown-menu { --bs-dropdown-bg: var(--bk-surface); --bs-dropdown-color: var(--bk-text); --bs-dropdown-border-color: var(--bk-border);
  --bs-dropdown-border-radius: .9rem; --bs-dropdown-font-size: 1rem; --bs-dropdown-padding-y: .4rem; --bs-dropdown-divider-bg: var(--bk-border);
  --bs-dropdown-link-color: var(--bk-text); --bs-dropdown-link-hover-color: var(--bk-text); --bs-dropdown-link-hover-bg: var(--bk-surface-2);
  --bs-dropdown-link-active-color: var(--bk-text); --bs-dropdown-link-active-bg: var(--bk-surface-2);
  box-shadow: 0 .6rem 1.5rem rgba(4, 32, 42, .18); }
.dropdown-item { display: flex; align-items: center; gap: .6rem; padding-block: .45rem; }
/* app icons in the Apps menu: one size, with a thin golden rim (her wish), so a dark icon keeps its edge on the dark menu */
.dropdown-item img { flex: none; width: 36px; height: 36px; border-radius: 22.5%; box-shadow: 0 0 0 1.5px var(--bk-spark); }
.dropdown-item:has(img) { gap: .8rem; padding-block: .55rem; }
.site-nav .nav-link.show { color: var(--bk-primary); }
.site-nav .nav-link.active { color: var(--bk-text); }
/* SK | EN: both shown, the current one filled in */
.lang-switch { display: inline-flex; padding: 2px; border: 1px solid var(--bk-border); border-radius: 999px; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; }
.lang-switch > * { padding: .3rem .7rem; border-radius: 999px; color: var(--bk-text-muted); text-decoration: none; line-height: 1.4; }
.lang-switch a:hover { color: var(--bk-primary); }
.lang-switch .active { background: var(--bk-primary); color: var(--bk-on-primary); }
.theme-toggle:hover { color: var(--bk-primary); border-color: var(--bk-border-strong); }

.kicker { color: var(--bk-spark); font-size: .8125rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .75rem; }
.lead { color: var(--bk-text-muted); font-size: 1.25rem; font-weight: 400; }

.hero { padding: 4rem 0 1rem; text-align: center; }
.hero .lead { max-width: 40rem; margin-inline: auto; }
/* the constellation fades out towards its edges by itself (its own SVG mask) */
.hero-sky { position: relative; max-width: 1600px; margin: 1.5rem auto 0; }
.hero-sky img { display: block; width: 100%; height: auto; }
/* a glow over each star, every one breathing at its own pace (--pace) from its own moment (--from) */
.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-stars circle { fill: url(#star-glow); transform-box: fill-box; transform-origin: center; opacity: 0;
  animation: star-breath var(--pace) ease-in-out var(--from) infinite; }
.hero-stars .heart { stop-color: #fff6da; stop-opacity: .95; }
.hero-stars .halo { stop-color: #f3c35a; stop-opacity: .4; }
.hero-stars .edge { stop-color: #f3c35a; stop-opacity: 0; }
[data-bs-theme="light"] .hero-stars .heart { stop-color: #ffe2a0; }
[data-bs-theme="light"] .hero-stars .halo { stop-color: #f0a62c; stop-opacity: .45; }
[data-bs-theme="light"] .hero-stars .edge { stop-color: #f0a62c; }
@keyframes star-breath {
  0%, 100% { opacity: 0; transform: scale(.6); }
  50% { opacity: var(--peak, .7); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .hero-stars circle { animation: none; } }

.app-icon { border-radius: 22.5%; box-shadow: 0 .5rem 1.5rem rgba(4, 32, 42, .25); }
.app-featured .app-icon { width: 8rem; height: 8rem; }
.app-small .app-icon { width: 4rem; height: 4rem; }
.app-small .app-icon { flex: none; }
.app-icon-blank { display: grid; place-items: center; background: var(--bk-surface-2); border: 1px dashed var(--bk-border-strong);
  box-shadow: none; color: var(--bk-text-muted); font-size: 1.75rem; }
.app-small h3 { font-size: 1.375rem; margin: 0; }
.status { display: inline-block; padding: .3rem .8rem; border-radius: 999px; font-size: .8125rem; font-weight: 600;
  letter-spacing: .04em; background: var(--bk-surface-2); color: var(--bk-text-muted); }
.status.soon { color: var(--bk-primary); }

.download h2 { font-size: 1.375rem; }
.download { border-style: dashed; }
.band { background: var(--bk-surface-2); }
.mail { font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.mail:hover { text-decoration: underline; }

footer { padding: 2.5rem 0; color: var(--bk-text-muted); font-size: 1rem; border-top: 1px solid var(--bk-border); }
footer a { color: var(--bk-text-muted); text-decoration: none; }
footer a:hover { color: var(--bk-primary); }

.prose { max-width: 42rem; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
/* What's new: one version after another, newest first */
.release { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--bk-border); }
.release ul { padding-left: 1.2rem; }
.release li + li { margin-top: .35rem; }

/* An app's own row of links, under the header */
/* an app's own row under the site's menu: a band of its own, set off by a thin golden line that fades out at both ends */
.app-nav { position: relative; background: var(--bk-surface); border-bottom: 1px solid var(--bk-border); }
.app-nav::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--bk-spark) 25%, var(--bk-spark) 75%, transparent); opacity: .55; }
.app-nav .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-block: .6rem; }
.app-nav-name { display: inline-flex; align-items: center; gap: .6rem; color: var(--bk-text); font-weight: 600; text-decoration: none; }
.app-nav-name img { flex: none; border-radius: 22.5%; box-shadow: 0 0 0 1px var(--bk-border); }
/* on a wider screen the app's name is the page's heading row: a real icon, a bigger name */
@media (min-width: 768px) { .app-nav .container { padding-block: .8rem; } .app-nav-name { gap: .8rem; font-size: 1.375rem; } .app-nav-name img { width: 44px; height: 44px; } }
.app-nav nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: 1rem; }
/* five links fit one line on a phone */
@media (max-width: 575.98px) { .app-nav nav { gap: .25rem .85rem; font-size: .9375rem; } }
@media (max-width: 400px) { .app-nav nav { gap: .25rem .7rem; font-size: .875rem; } }
.app-nav nav a { color: var(--bk-text-muted); text-decoration: none; }
.app-nav nav a:hover { color: var(--bk-primary); }
.app-nav nav .active { color: var(--bk-text); box-shadow: 0 2px 0 var(--bk-spark); }

/* Spellwork's pages */
.sw-icon { width: 8rem; height: 8rem; }
.sw-sub { max-width: 40rem; margin: 0 auto 2rem; color: var(--bk-text-muted); }
.sw-shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.sw-phone { width: 13.5rem; aspect-ratio: 9 / 19.5; display: grid; place-items: center; padding: 1.25rem; text-align: center;
  border: 2px dashed var(--bk-border-strong); border-radius: 2.1rem; background: var(--bk-surface); color: var(--bk-text-muted); font-size: 1rem; }
.sw-shots { gap: 2rem 2.5rem; }
.sw-shot { margin: 0; text-align: center; }
/* the dark and the light look of one screen, side by side */
.sw-pair { display: flex; gap: .6rem; }
.sw-pair img { width: 10.5rem; height: auto; border-radius: 1.3rem; border: 1px solid var(--bk-border); box-shadow: 0 .8rem 2rem rgba(4, 32, 42, .25); }
@media (max-width: 575.98px) { .sw-pair img { width: calc((100vw - 3rem) / 2); max-width: 10.5rem; } }
.sw-framed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.75rem; max-width: 62rem; }
.sw-framed img { width: 100%; height: auto; border-radius: 1.4rem; box-shadow: 0 .8rem 2rem rgba(4, 32, 42, .3); }
@media (max-width: 575.98px) { .sw-framed { grid-template-columns: repeat(2, 1fr); gap: 1rem .75rem; } .sw-framed img { border-radius: .9rem; } }
.sw-shot figcaption { margin-top: .6rem; color: var(--bk-text-muted); font-size: .9375rem; }
.sw-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.sw-card { width: 8.5rem; margin: 0; padding: .75rem .5rem .6rem; background: var(--bk-surface); border: 1px solid var(--bk-border); border-radius: 1.1rem; }
.sw-card img { width: 100%; height: auto; }
.sw-card-veiled img { opacity: .75; }
.sw-card figcaption { margin-top: .25rem; color: var(--bk-text-muted); font-size: .9375rem; }
/* the plain bar timer, drawn: a track two-thirds filled with gold */
.sw-bar { aspect-ratio: 276 / 222; display: grid; align-items: center; padding: 0 .6rem; }
.sw-bar::before { content: ''; grid-area: 1 / 1; height: .55rem; border-radius: 99px; background: var(--bk-surface-2); }
.sw-bar span { grid-area: 1 / 1; width: 66%; height: .55rem; border-radius: 99px; background: var(--bk-spark); }
/* the last tile, two cards wide: the ranks bring more */
.sw-card-more { width: 18rem; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1rem 1.25rem; }
.sw-more-spark { color: var(--bk-spark); font-size: 1.25rem; line-height: 1; margin-bottom: .4rem; }
.sw-cat { width: 12.5rem; height: auto; filter: drop-shadow(0 .5rem 1.1rem rgba(4, 32, 42, .35)); }
.sw-extras { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.sw-extras li { padding: .35rem .9rem; border: 1px solid var(--bk-border); border-radius: 999px; color: var(--bk-text-muted); font-size: 1rem; }
.sw-contact { margin-top: 3rem; scroll-margin-top: 6rem; }
.accordion { --bs-accordion-bg: var(--bk-surface); --bs-accordion-color: var(--bk-text); --bs-accordion-border-color: var(--bk-border);
  --bs-accordion-border-radius: 1rem; --bs-accordion-inner-border-radius: calc(1rem - 1px);
  --bs-accordion-btn-color: var(--bk-text); --bs-accordion-btn-bg: var(--bk-surface);
  --bs-accordion-active-color: var(--bk-text); --bs-accordion-active-bg: var(--bk-surface-2);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(var(--bk-primary-rgb), .3); }
.accordion-button { font-weight: 600; }
@media (max-width: 575.98px) {
  .sw-phone { width: 9.5rem; font-size: .875rem; }
  .sw-card { width: 6.5rem; }
  .sw-card-more { width: 14rem; }
}

/* Skip link: hidden until reached with the keyboard */
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 1100; padding: .5rem 1rem; border-radius: .6rem;
  background: var(--bk-primary); color: var(--bk-on-primary); font-weight: 600; text-decoration: none; }

/* Downloads: wallpapers */
.wallpaper-previews { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.wallpaper-previews img { width: 100%; height: auto; border-radius: 1rem; border: 1px solid var(--bk-border);
  box-shadow: 0 .4rem 1rem rgba(4, 32, 42, .15); }
.wallpaper h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.wallpaper-links { display: grid; grid-template-columns: auto 1fr; gap: .2rem .75rem; margin: 0; font-size: 1rem; }
.wallpaper-links dt { font-weight: 600; color: var(--bk-text-muted); }
.wallpaper-links { align-items: center; row-gap: .5rem; }
.wallpaper-links dd { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.wallpaper-links dd a { padding: .2rem .75rem; border: 1px solid var(--bk-border-strong); border-radius: 999px;
  font-size: .9375rem; text-decoration: none; }
.wallpaper-links dd a:hover { background: var(--bk-primary); border-color: var(--bk-primary); color: var(--bk-on-primary); }

/* Spellwork: the App Store QR code and button */
.sw-get { max-width: 40rem; }
.sw-get-tile { aspect-ratio: 660 / 1434; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem 1.25rem; border-radius: 1.4rem; scroll-margin-top: 6rem; }
.sw-framed .sw-get-icon { width: 4.5rem; height: 4.5rem; border-radius: 1rem; margin-bottom: 1rem; box-shadow: 0 .4rem 1rem rgba(4, 32, 42, .25); }
.sw-get-tile .sw-qr { width: 8.5rem; height: 8.5rem; }
/* the App Store button in the tile: one line, whatever the tile's width */
.sw-get-tile .btn { --bs-btn-padding-x: .9rem; --bs-btn-padding-y: .45rem; --bs-btn-font-size: .9375rem; white-space: nowrap; }
@media (max-width: 991.98px) { .sw-get-tile { padding: 1rem .75rem; } .sw-get-tile .sw-qr { width: 7rem; height: 7rem; } .sw-framed .sw-get-icon { width: 3.5rem; height: 3.5rem; margin-bottom: .75rem; } }
@media (max-width: 575.98px) { .sw-get-tile { border-radius: .9rem; } .sw-get-tile h2 { font-size: 1.05rem; margin-bottom: .75rem !important; }
  .sw-get-tile .btn { --bs-btn-padding-x: .55rem; --bs-btn-padding-y: .4rem; --bs-btn-font-size: .75rem; }
  .sw-get-tile p.small { display: none; } .sw-get-tile .sw-qr { width: 5.5rem; height: 5.5rem; margin-bottom: .9rem; } }
.sw-qr { flex: none; width: 9.5rem; height: 9.5rem; padding: .5rem; background: #fff; border-radius: 1rem; }
.sw-qr svg { display: block; width: 100%; height: 100%; }
.sw-qr-empty { display: grid; place-items: center; background: transparent; border: 2px dashed var(--bk-border-strong);
  color: var(--bk-text-muted); font-weight: 600; letter-spacing: .2em; }

/* Spellwork's screenshots, bigger in a window in the middle on a computer (theme.js) */
@media (hover: hover) and (min-width: 768px) { .sw-framed img { cursor: zoom-in; transition: transform .2s; } .sw-framed img:hover { transform: translateY(-3px); } }
.sw-lightbox { position: fixed; inset: 0; z-index: 1080; display: none; align-items: center; justify-content: center;
  background: rgba(4, 12, 18, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sw-lightbox.open { display: flex; animation: sw-lb-in .18s ease-out; }
@keyframes sw-lb-in { from { opacity: 0; } to { opacity: 1; } }
.sw-lightbox figure { position: relative; margin: 0; }
.sw-lightbox img { display: block; height: 94vh; width: auto; max-width: calc(100vw - 12rem); object-fit: contain; border-radius: 1.8rem; box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .55); }
.sw-lb-btn { position: absolute; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--bk-border);
  background: var(--bs-body-bg); color: var(--bs-body-color); font-size: 1.9rem; line-height: 1; padding: 0 0 .2rem;
  box-shadow: 0 .4rem 1.2rem rgba(0, 0, 0, .35); }
.sw-lb-btn:hover { filter: brightness(1.15); }
.sw-lb-prev, .sw-lb-next { top: 50%; transform: translateY(-50%); }
.sw-lb-prev { left: -4.5rem; }
.sw-lb-next { right: -4.5rem; }
.sw-lb-close { top: 0; right: -4.5rem; font-size: 1.5rem; }
.sw-lb-btn[hidden] { display: none; }

/* Spellwork: "The little extras", tiles like the timer cards */
.sw-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 56rem; margin: 0 auto; }
.sw-card-feature { width: auto; padding: 1.1rem .9rem 1rem; }
.sw-card-feature svg { width: 2.25rem; height: 2.25rem; margin-bottom: .6rem; fill: none; stroke: var(--bk-spark);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--bk-spark); }
.sw-feature-title { margin: 0 0 .2rem; font-weight: 600; }
.sw-feature-sub { margin: 0; color: var(--bk-text-muted); font-size: .9375rem; line-height: 1.4; }
@media (max-width: 767.98px) { .sw-features { grid-template-columns: repeat(2, 1fr); } }


/* Instagram: a plain link with a line icon, and a QR code for people on a computer */
.ig-icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.ig-link { display: inline-flex; align-items: center; gap: .4rem; }

/* The home page's app card: the app on the left; on the right everything to get it (QR, button, more) */
.app-featured .app-head-icon { flex: none; width: 5rem; height: 5rem; }
@media (max-width: 575.98px) { .app-featured .app-head-icon { width: 4rem; height: 4rem; } }
.app-get .btn { --bs-btn-padding-x: .75rem; }
@media (min-width: 768px) { .app-get { width: 14.5rem; border-left: 1px solid var(--bk-border); padding-left: 1.5rem; } }

/* Spellwork and its sisters in the Apps menu: a small heading, and the sisters hang from Spellwork on a gold thread */
.dropdown-header { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bk-spark); padding-block: .5rem .25rem; }
.dropdown-menu li.sister { position: relative; }
.dropdown-menu li.sister .dropdown-item { padding-left: 2.6rem; }
.dropdown-menu li.sister::before { content: ""; position: absolute; left: 1.75rem; top: -.55rem; width: .7rem; height: calc(50% + .55rem);
  border-left: 1.5px solid var(--bk-spark); border-bottom: 1.5px solid var(--bk-spark); border-bottom-left-radius: .5rem; opacity: .7; pointer-events: none; z-index: 1; }
.dropdown-menu li.sister + li.sister::after { content: ""; position: absolute; left: 1.75rem; top: -100%; height: 100%; border-left: 1.5px solid var(--bk-spark); opacity: .7; }
.dropdown-menu li.sister .dropdown-item img { width: 30px; height: 30px; }
.soon-pill { margin-left: auto; padding: .1rem .5rem; border-radius: 999px; font-size: .6875rem; font-weight: 600; letter-spacing: .04em;
  color: var(--bk-primary); background: var(--bk-surface-2); }
.dropdown-item:has(.soon-pill) { min-width: 15rem; }

/* the sisters on Spellwork's page, and Spellwork on theirs */
.sister-card { color: inherit; text-decoration: none; transition: transform .2s, border-color .2s; }
.sister-card:hover { transform: translateY(-3px); border-color: var(--bk-spark); color: inherit; }
.sister-card .app-icon { width: 5.5rem; height: 5.5rem; }
.sister-back-icon { width: 5rem; height: 5rem; }
