:root {
  color-scheme: light;
  --paper: #faf9f5;
  --ink: #0f1e31;
  --navy: #111f33;
  --light: #f6fbff;
  --soft: #bdcee4;
  --hint: #4b596b;
  --line: #cbd1dc;
  --focus: #436bb1;
  font: 400 100%/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  color: var(--ink); background: var(--paper); margin: 0; height: 100dvh; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0,1fr) auto;
}
h1, h2, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-underline-offset: .18em; }
a:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}
a:hover { text-decoration-thickness: .14em; }
.wrap { width: min(1090px, calc(100% - clamp(32px,9vw,125px))); margin-inline: auto; }
.top, .tour { color: var(--light); background: var(--navy); }
.top-inner, .footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: .4rem 1rem;
  min-height: 55px; flex-wrap: wrap;
}
.top .brand { font-size: 1.08rem; text-decoration: none; white-space: nowrap; }
.brand strong { color: #aac9ff; }
.top nav { display: flex; gap: .9rem; }
.top a, .footer a { display: inline-flex; align-items: center; min-height: 44px; }
.top nav a, .footer a { font-size: .89rem; }
.footer { border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.footer-inner { min-height: 48px; }
.skip {
  position: fixed; z-index: 5; top: .5rem; left: .5rem; transform: translateY(-150%);
  padding: .55rem .9rem; background: #fff; color: var(--ink);
}
.skip:focus { transform: translateY(0); }
.workspace { overflow: auto; overscroll-behavior: contain; min-height: 0; }
.workspace > :not(.tour) { padding-block: clamp(22px,5vh,55px); }
.workspace h1 { font-weight: 790; letter-spacing: -.065em; line-height: .99; font-size: clamp(2.25rem,6vw,4rem); }
.workspace h1:focus { outline: none; }
.workspace h1 + p { color: var(--hint); margin-top: .6rem; max-width: 55ch; }
.filters {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .38rem 1rem;
  padding-block: .85rem .65rem;
}
.filters label { display: block; font-size: .83rem; font-weight: 680; margin-bottom: .18rem; }
.filters :is(input,select) {
  min-height: 44px; width: 100%; border: 1px solid #8795aa; border-radius: .2rem;
  background: #fff; color: var(--ink); font: inherit; padding: .3rem .55rem;
}
#tour-count { grid-column: 1 / -1; color: var(--hint); font-size: .82rem; }
.projects, .topic-list { border-top: 2px solid var(--ink); margin-top: .25rem; }
.projects li {
  min-height: 59px; padding: .45rem 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: .45rem 1rem;
}
.projects h2 { font-size: 1.02rem; font-weight: 720; line-height: 1.15; }
.projects li p { font-size: .82rem; color: var(--hint); margin-top: .14rem; line-height: 1.3; }
.project-actions, .tour-links { display: flex; align-items: center; gap: .4rem .75rem; flex-wrap: wrap; }
.primary, .secondary {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center;
  font-size: .89rem; font-weight: 660;
}
.primary { border-radius: .18rem; padding: .35rem .8rem; background: var(--ink); color: #fff; text-decoration: none; }
.primary:hover { background: #2f4e80; }
.secondary { white-space: nowrap; }
.pages, .slide-actions { display: flex; align-items: center; justify-content: space-between; gap: .4rem .7rem; margin-top: .65rem; }
.pages button {
  color: var(--ink); background: transparent; border: 1px solid #8795aa; font: inherit; border-radius: .18rem;
  min-height: 44px; padding-inline: .72rem; cursor: pointer;
}
.pages button:disabled { opacity: .52; cursor: auto; }
.pages span, .slide-actions span { font-size: .86rem; color: var(--hint); }
#no-tours { margin-top: .75rem; color: var(--hint); }
.topic-list, .starter .projects { margin-top: 1.15rem; }
.topic-list li { border-bottom: 1px solid var(--line); }
.topic-list li a { display: flex; min-height: 47px; align-items: center; font-weight: 650; }
.starter > a { display: inline-flex; align-items: center; min-height: 44px; margin-top: .75rem; }

.tour { min-height: 100%; display: flex; flex-direction: column; justify-content: center; overflow: clip; }
.tour-layout {
  padding-block: clamp(20px,5vh,62px) .7rem; display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,.8fr); gap: .75rem clamp(1.1rem,5vw,4rem);
  align-items: center;
}
.tour-copy { animation: enter .24s ease both; }
.project-name { font-size: 1.04rem; font-weight: 710; }
.tour-status { color: var(--soft); font-size: .84rem; margin-top: .15rem; }
.tour h1 { margin-top: 1.25rem; }
.tour .tour-body { color: var(--soft); font-size: clamp(.98rem,2vw,1.18rem); line-height: 1.4; }
.tour-links { margin-top: .87rem; }
.tour-links .primary { color: var(--ink); background: #c3d8fc; }
.tour-links .primary:hover { background: #fff; }
.tour-links .secondary { color: var(--light); }
.tour-art img { width: 100%; display: block; height: min(44vh,390px); object-fit: cover; border-radius: .15rem; }
.tour-art figcaption { color: var(--soft); font-size: .76rem; margin-top: .35rem; }
.tour-art figcaption a { display: inline-flex; align-items: center; min-height: 32px; }
.type-art {
  padding: .95rem 0 .95rem clamp(.45rem,3vw,1.2rem); color: #bbcdea; font-size: clamp(1.8rem,5.8vw,4.9rem);
  font-weight: 790; letter-spacing: -.082em; line-height: .96; border-left: 1px solid #627590; overflow-wrap: anywhere;
}
.slide-actions { border-top: 1px solid #52627b; margin-bottom: 1rem; padding-top: .4rem; }
.slide-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.slide-actions span { color: var(--soft); }
@keyframes enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 665px) {
  .tour-layout { grid-template-columns: 1fr; }
  .tour h1 { margin-top: .7rem; font-size: clamp(2.15rem,9vw,3.25rem); }
  .tour-art img { height: min(22vh,170px); }
  .tour-art figcaption a { min-height: 22px; }
  .type-art { font-size: clamp(1.6rem,7vw,2.2rem); margin-bottom: .1rem; padding-block: .3rem; }
  .tour-links { margin-top: .35rem; }
}
@media (max-height: 660px) {
  .workspace > :not(.tour) { padding-block: 13px; }
  .workspace h1 { font-size: clamp(1.82rem,6vw,2.8rem); }
  .tour-layout { padding-top: 15px; }
  .tour h1 { margin-top: .55rem; }
  .tour-art img { height: min(19vh,120px); }
  .slide-actions { margin-top: .25rem; margin-bottom: .3rem; }
  .top-inner { min-height: 49px; }
  .footer-inner { min-height: 45px; }
}
@media (max-width: 355px) {
  .top nav { gap: .55rem; }
  .top nav a, .footer a { font-size: .8rem; }
  .project-actions { gap: .42rem; flex-wrap: nowrap; }
  .primary { padding-inline: .56rem; }
  .slide-actions a { font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.top .brand { gap: .17em; }
@media (max-width: 355px) {
  .tour-links { gap: .3rem .45rem; }
  .tour-links .primary { font-size: .8rem; padding-inline: .55rem; }
  .tour-links .secondary { font-size: .8rem; }
  .tour-art img { height: min(17vh,110px); }
}
.tour-art.brand-art img {
  object-fit: contain;
  padding: clamp(12px,4vw,36px);
  background: var(--light);
}
.tour-related {
  margin-top: .45rem; padding-inline-start: .55rem; border-left: 1px solid #708bae;
}
.tour-related a { display: inline-flex; align-items: center; min-height: 44px; color: #c4d8fc; font-size: .88rem; font-weight: 680; }
.tour-related p { color: var(--soft); font-size: .8rem; line-height: 1.25; margin-top: -.4rem; }
@media (max-width: 355px) and (max-height: 660px) {
  [data-tour-step="3"] .tour-art img { height: min(10vh,65px); }
  [data-tour-step="3"] .tour-links { margin-top: .24rem; }
  .tour-related { margin-top: .2rem; }
  .tour-related a { font-size: .82rem; }
  .tour-related p { font-size: .74rem; }
}

.project-info { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.project-thumbnail {
  flex: 0 0 auto; width: 56px; height: 42px; display: block;
  object-fit: contain; border-radius: .18rem; background: #eef2f8;
  border: 1px solid var(--line);
}
@media (max-width: 665px) {
  .project-info { gap: .4rem; }
  .project-thumbnail { width: 44px; height: 36px; }
}
@media (max-width: 355px) {
  .project-thumbnail { width: 34px; height: 32px; }
}
@media (min-width: 666px) {
  .tour-art.whole-image img { object-fit: contain; background: #0e1a2a; }
}
@media (max-width: 355px) and (max-height: 660px) {
  .top-inner { width: calc(100% - 20px); column-gap: .35rem; }
  .top nav { gap: .4rem; }
  .tour-layout { padding-block: 8px 6px; row-gap: 6px; }
  .tour-status { line-height: 1.3; }
  .tour h1 { margin-top: 6px; }
  .tour h1 + .tour-body { margin-top: 5px; line-height: 1.34; }
  .tour-links {
    display: grid; grid-template-columns: minmax(0,1fr) max-content;
    align-items: stretch; gap: .35rem; margin-top: 4px;
  }
  .tour-links a { justify-self: start; }
  .tour-links .primary { line-height: 1.22; text-align: center; }
  .tour-art figcaption { margin-top: 2px; }
  .slide-actions { margin-top: 2px; padding-top: 3px; }
  [data-tour-step="3"] .tour-art img { height: min(10vh,52px); }
}

.tour-art img[src$="/baata-saved-draft.png"],
.tour-art img[src$="/baata-share-preview.png"] { object-fit: contain; background: #0e1a2a; }

[data-tour-project="baata"][data-tour-step="4"] .tour-art.whole-image img {
  height: auto;
  max-height: min(28vh, 220px);
  object-fit: contain;
  background: #0e1a2a;
}

[data-tour-project="deliva"]:is([data-tour-step="4"], [data-tour-step="5"]) .tour-art.whole-image img {
  height: auto;
  max-height: min(30vh, 280px);
  object-fit: contain;
  background: #0e1a2a;
}

:is([data-tour-project="vanix"], [data-tour-project="vanix-studio"])[data-tour-step="2"] .tour-art.whole-image img {
  height: auto;
  max-height: min(52vh, 420px);
  object-fit: contain;
  background: #0e1a2a;
}
