/* Spirit of Basel: preserve the psychedelic lettering, molecule and archive. */
:root { --sb-paper: #f2eee8; --sb-muted: #bbb4c4; --sb-line: #444052; --sb-accent: #edb568; --sb-space: clamp(24px,5vw,72px); }
html:has(.sb-main) { scroll-behavior: smooth; scroll-padding-top: 28px; }
body.page-landing { background: #090711; color: var(--sb-paper); user-select: text; }
.page-landing #bg-video-wrap { display: none; }
.page-landing #lotus-wrap { opacity: .6; }
.sb-main, .sb-header, .sb-footer { position: relative; z-index: 6; width: min(1280px,calc(100% - var(--sb-space) * 2)); margin-inline: auto; }
.sb-header { display: flex; justify-content: space-between; align-items: center; padding-block: 24px; border-bottom: 1px solid var(--sb-line); gap: 24px; }
.sb-home { display: inline-flex; gap: 12px; align-items: center; color: var(--sb-paper); text-decoration: none; font-size: 14px; }
.sb-home img { width: 40px; height: 40px; object-fit: contain; }
.sb-header nav { display: flex; gap: 28px; }
.sb-header nav a, .sb-footer a { color: var(--sb-paper); text-decoration: none; }
.sb-header nav a { font-size: 14px; padding-block: 12px; }
.sb-header a:hover, .sb-footer a:hover { color: var(--sb-accent); }
.sb-date { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 36px; color: var(--sb-muted); font-size: 14px; }
.sb-date img { width: 126px; height: auto; }
.sb-hero h1 { margin-block: 25px 12px; line-height: 1; }
.sb-hero h1 img { display: block; width: 100%; height: auto; }
.sb-hero-line { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 18px 0 42px; }
.sb-hero-line p { color: var(--sb-muted); font-size: clamp(14px,1.4vw,18px); }
.sb-link { color: var(--sb-accent); text-decoration: none; white-space: nowrap; padding-block: 12px; }
.sb-link span { margin-left: 14px; }
.sb-film-layout { display: grid; grid-template-columns: minmax(0,1.85fr) minmax(240px,1fr); align-items: center; gap: clamp(24px,4vw,60px); }
.sb-film { overflow: hidden; border-radius: 14px; background: #14111d; border: 1px solid #645073; }
.sb-film #hero-video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; background: #08060e; }
.sb-main h2 { font-family: 'Oswald', sans-serif; font-weight: 400; font-size: clamp(32px,4vw,52px); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; color: var(--sb-paper); }
.sb-film-copy p { color: var(--sb-muted); line-height: 1.75; margin-top: 20px; max-width: 35ch; }
.sb-play { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 24px; padding: 12px 18px; border-radius: 8px; border: 0; background: var(--sb-accent); color: #1b1120; font: inherit; font-weight: 500; cursor: pointer; }
.sb-play svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.sb-play:hover { background: #ffd09a; }
.sb-film-copy .sb-small { font-size: 12px; margin-top: 12px; }
.sb-archive, .sb-photographs { margin-top: clamp(72px,10vw,144px); padding-top: 32px; border-top: 1px solid var(--sb-line); }
.sb-section-top { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.sb-section-top p { color: var(--sb-muted); font-size: 15px; line-height: 1.65; }
.sb-molecule-archive { position: relative; margin-top: 44px; min-height: 440px; display: grid; align-items: center; }
.sb-molecule { position: absolute; width: 43%; height: 100%; object-fit: contain; left: 28.5%; pointer-events: none; }
.sb-categories { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 43%; }
.sb-category { display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 16px 0; color: var(--sb-paper); text-decoration: none; border-bottom: 1px solid var(--sb-line); }
.sb-category:hover { color: var(--sb-accent); }
.sb-category img { object-fit: contain; flex-shrink: 0; }
.sb-category span { font-size: 16px; line-height: 1.3; flex: 1; }
.sb-category small { display: block; color: var(--sb-muted); margin-top: 7px; font-size: 12px; }
.sb-category svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--sb-accent); fill: none; stroke-width: 1.5; }
.sb-gallery { margin-top: 32px; }
.sb-gallery > img { display: block; width: 100%; height: min(66vw,650px); object-fit: contain; background: #100c18; border-radius: 12px; }
.sb-gallery figcaption { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; color: var(--sb-muted); font-size: 14px; }
.sb-gallery-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.sb-gallery button, #sb-lightbox button { min-height: 44px; padding: 10px 14px; font: inherit; color: var(--sb-paper); background: #21192c; border: 1px solid #65586f; border-radius: 6px; cursor: pointer; }
.sb-gallery button:hover { background: #352743; }
.sb-story { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; padding-block: 100px; }
.sb-story p { font-size: 16px; line-height: 1.85; color: var(--sb-muted); max-width: 70ch; }
.sb-story .sb-story-intro { font-size: 21px; color: var(--sb-paper); line-height: 1.6; }
.sb-story details { margin-top: 24px; }
.sb-story summary { padding-block: 12px; color: var(--sb-accent); cursor: pointer; }
.sb-story details p { margin-top: 20px; }
.sb-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px 42px; border-top: 1px solid var(--sb-line); font-size: 12px; color: var(--sb-muted); }
.sb-footer > div { display: flex; gap: 20px; }
.sb-skip { position: fixed; top: 8px; left: 8px; z-index: 1000; background: var(--sb-accent); color: #1b1120; padding: 16px; transform: translateY(-150%); }
.sb-skip:focus { transform: none; }
#sb-lightbox { position: fixed; inset: 0; margin: auto; width: min(96vw,1500px); max-width: 96vw; max-height: 96vh; padding: 16px; color: white; background: #100c18; border: 1px solid #65586f; border-radius: 12px; }
#sb-lightbox::backdrop { background: #05030bef; }
#sb-lightbox img { display: block; max-width: 100%; max-height: 80vh; object-fit: contain; margin: 12px auto 0; }
.sb-main :focus-visible, .sb-header :focus-visible, .sb-footer :focus-visible { outline: 3px solid var(--sb-accent); outline-offset: 5px; }
@media(max-width: 760px) {
 .sb-header { align-items: flex-start; flex-direction: column; gap: 8px; padding-block: 18px 12px; }
 .sb-header nav { gap: 24px; width: 100%; }
 .sb-header nav a { font-size: 13px; }
 .sb-date { margin-top: 28px; gap: 12px; font-size: 11px; }
 .sb-date img { width: 85px; }
 .sb-hero h1 { margin-top: 24px; }
 .sb-hero-line { align-items: flex-start; flex-direction: column; gap: 4px; margin-bottom: 24px; }
 .sb-film-layout { grid-template-columns: 1fr; gap: 24px; }
 .sb-film-copy p { max-width: 55ch; }
 .sb-section-top { display: block; }
 .sb-section-top p { margin-top: 16px; }
 .sb-molecule-archive { margin-top: 24px; padding-top: 240px; }
 .sb-molecule { top: 0; left: 15%; width: 70%; height: 220px; }
 .sb-categories { gap: 0 24px; }
 .sb-category { gap: 10px; min-height: 84px; }
 .sb-category img { width: 28px; height: 28px; }
 .sb-category span { font-size: 14px; }
 .sb-category svg { display: none; }
 .sb-gallery figcaption { align-items: flex-start; flex-direction: column; gap: 12px; }
 .sb-gallery > img { height: 75vw; }
 .sb-gallery button { padding-inline: 10px; font-size: 12px; }
 .sb-story { grid-template-columns: 1fr; gap: 28px; padding-block: 72px; }
 .sb-story .sb-story-intro { font-size: 19px; }
 .sb-footer { flex-direction: column; align-items: flex-start; }
}
@media(prefers-reduced-motion: reduce) { html:has(.sb-main) { scroll-behavior: auto; } }
.sb-molecule { filter: invert(1); opacity: .85; }
.sb-play:disabled { cursor: default; opacity: .75; }

/* Smileys dock to the molecular vertices, on touch screens too. */
.sb-molecule-archive { display: block; width: min(520px, 100%); aspect-ratio: 667 / 1000; min-height: 0; padding: 0; margin: 64px auto 48px; }
.sb-molecule { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: none; opacity: .85; }
.sb-categories { position: absolute; inset: 0; display: block; }
.sb-category { position: absolute; left: var(--dock-x); top: var(--dock-y); transform: translate(-50%, -50%); display: block; width: 62.4px; height: 62.4px; min-height: 0; padding: 0; border: 0; border-radius: 50%; }
.sb-category img { display: block; width: 100%; height: 100%; transition: transform .2s ease; }
.sb-category:hover img, .sb-category:focus-visible img { transform: scale(1.15); }
.sb-category span { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); width: max-content; max-width: 142px; padding: 3px 6px; background: #090711; border-radius: 4px; text-align: center; font-size: 13px; line-height: 1.3; }
.sb-category small { display: none; font-size: 11px; margin-top: 3px; }
.sb-category:hover small, .sb-category:focus-visible small { display: block; }
.sb-category:hover, .sb-category:focus-visible { z-index: 3; }
.sb-category svg { display: none; }
.page-vortex #hint { top: 88px; bottom: auto; width: min(560px, calc(100vw - 40px)); white-space: normal; text-align: center; font-size: 15px; line-height: 1.5; letter-spacing: 0; text-transform: none; color: #f2eee8; padding: 10px 16px; border-radius: 8px; background: #100c18e6; animation: none; opacity: 1; }
@media(max-width: 760px) {
 .sb-molecule-archive { width: min(420px, calc(100% - 20px)); padding: 0; margin-top: 48px; }
 .sb-category { width: 52.8px; height: 52.8px; }
 .sb-category span { font-size: 10px; max-width: 90px; }
 .page-vortex #hint { top: 104px; font-size: 14px; }
}
.sb-molecule { filter: invert(1) brightness(2); opacity: .85; }

/* Psychedelic lettering: distinct treatments, original molecule anchors. */
@font-face { font-family: 'Shrikhand'; src: url('fonts/shrikhand.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
#archive-title { font-family: 'Shrikhand', Georgia, serif; font-size: clamp(34px,4.8vw,64px); font-weight: 400; line-height: 1.08; letter-spacing: -.025em; color: #ffd58d; text-shadow: 2px 3px 0 #9d3d83, 4px 6px 0 #372263; padding-bottom: 8px; }
#archive-title em { display: inline-block; font-style: normal; color: #f8a9de; transform: rotate(-3deg); }
.sb-section-top .sb-experience { text-align: right; }
.sb-experience strong { display: block; font-family: 'Shrikhand', Georgia, serif; font-weight: 400; font-size: clamp(25px,3vw,38px); line-height: 1.15; letter-spacing: -.02em; background: linear-gradient(135deg,#ffc3f0 5%,#cfb7ff 32%,#8ae7f5 60%,#c8f797 85%); background-clip: text; -webkit-background-clip: text; color: transparent; transform: rotate(2deg); padding: 5px 8px; }
.sb-experience > span { display: block; margin-top: 14px; font-size: 13px; color: #cfc3da; }
.sb-category span { background: linear-gradient(100deg,#ffaea8 0%,#ffd38d 20%,#f5f88f 38%,#a6f6c2 55%,#91dfff 73%,#cfb5ff 87%,#ffb3e7 100%); background-clip: text; -webkit-background-clip: text; color: transparent; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .015em; filter: drop-shadow(0 2px 2px #090711); }
.sb-category:nth-child(3n + 2) span { background-image: linear-gradient(100deg,#b5f4e4,#aad8ff,#d5b8ff,#ffb7d8,#ffe39c); }
.sb-category:nth-child(3n) span { background-image: linear-gradient(100deg,#e7b6ff,#ffb9c9,#ffe5a1,#c8f6a6,#a0e9ef); }
.sb-category small { color: #eee0fa; font-family: 'Space Grotesk',sans-serif; font-weight: 400; }
@media(max-width: 760px) {
 .sb-section-top .sb-experience { text-align: left; margin-top: 26px; }
 .sb-experience strong { display: inline-block; }
 .sb-category span { font-size: 11px; max-width: 88px; }
 .sb-molecule-archive { margin-top: 64px; }
}
@media(forced-colors: active) { .sb-category span, .sb-experience strong { color: LinkText; background: none; filter: none; } }

/* Restore the centered anniversary above the original hero lettering. */
.sb-anniversary { display: block; width: min(420px, 62%); height: auto; margin: 32px auto 18px; }
.sb-hero h1 { margin-top: 0; }
@media(max-width: 760px) { .sb-anniversary { width: 78%; margin: 28px auto 18px; } }
