/* Style ported from kitsumail.ai (dark only, self-hosted Inter, no third-party requests). */
@font-face {
	font-family: 'Inter Variable';
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url('inter-variable.woff2') format('woff2-variations');
}
:root {
	--bg: #0f131b;
	--surface: #ffffff0a;
	--surface-2: #ffffff14;
	--line: #ffffff14;
	--text: #e7ecf3;
	--muted: #94a3b8;
	--teal: #2dd4bf;
	--violet: #a78bfa;
	--violet-deep: #7c3aed;
	--amber: #f59e0b;
	--radius: 14px;
	color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font-family: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small-text { font-size: 0.88rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lead { font-size: 1.15rem; color: #c3cddb; max-width: 60ch; }
.eyebrow { color: var(--teal); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
.btn {
	display: inline-block; background: var(--teal); color: #06231f; font-weight: 700;
	padding: 0.8rem 1.4rem; border-radius: 999px; text-decoration: none; border: 1px solid transparent;
	transition: transform 0.15s, filter 0.15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.small { padding: 0.45rem 1rem; font-size: 0.9rem; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface); }
a:focus-visible, summary:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.textlink { color: var(--violet); text-decoration: none; font-weight: 600; }
.textlink:hover { text-decoration: underline; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.card h3 { margin-bottom: 0.4em; }
.chip { display: inline-block; background: rgba(167, 139, 250, 0.14); color: var(--violet); border: 1px solid rgba(167, 139, 250, 0.3); border-radius: 999px; padding: 0.2rem 0.75rem; font-size: 0.82rem; white-space: nowrap; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(15, 19, 27, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 1rem; height: 64px; }
.brand { text-decoration: none; margin-right: auto; font-weight: 700; letter-spacing: -0.01em; }
.brand span { color: var(--teal); }
.links { display: flex; gap: 1.2rem; }
.links a { white-space: nowrap; }
.links a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.links a:hover, .links a[aria-current] { color: var(--text); }
@media (max-width: 900px) { .links { overflow-x: auto; scrollbar-width: none; min-width: 0; } .links::-webkit-scrollbar { display: none; } }
@media (max-width: 520px) { .links { gap: 0.9rem; } .links a { font-size: 0.88rem; } .bar { gap: 0.6rem; } }

/* hero */
.hero { padding-top: 4rem; padding-bottom: 2rem; position: relative; text-align: center; }
.hero::before { /* soft teal/violet glow behind the title */
	content: ""; position: absolute; inset: 0 0 auto; height: 520px; z-index: -1; pointer-events: none;
	background: radial-gradient(40% 55% at 35% 25%, rgba(45, 212, 191, 0.13), transparent 70%),
	            radial-gradient(40% 55% at 65% 30%, rgba(167, 139, 250, 0.16), transparent 70%);
}
.hero .lead { margin: 2.2rem auto 0; }
.hero .stats { text-align: left; }
.kicker { display: inline-block; margin: 0 0 1rem; padding: 0.3rem 0.95rem; border-radius: 999px; font-weight: 600; font-size: 0.88rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal); background: rgba(45, 212, 191, 0.1); border: 1px solid rgba(45, 212, 191, 0.28); }
.hero h1 { background: linear-gradient(120deg, #fff 30%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 auto 0.35em; max-width: 20ch; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--teal), var(--violet)); -webkit-background-clip: text; background-clip: text; }
.papertitle { color: #c3cddb; font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 46ch; margin: 0 auto 1.6rem; line-height: 1.45; }
.authors { list-style: none; padding: 0; margin: 0 auto 0.9rem; max-width: 900px; font-size: 0.97rem; line-height: 1.9; }
.authors li { display: inline; white-space: nowrap; }
.authors li:not(:last-child)::after { content: " · "; color: #ffffff38; }
.authors a { text-decoration: none; color: var(--text); border-bottom: 1px dotted transparent; transition: color 0.15s, border-color 0.15s; }
.authors a:hover { color: var(--teal); border-bottom-color: var(--teal); }
.authors sup, .affils sup, .authornote sup { color: var(--violet); font-size: 0.7em; margin-left: 1px; font-weight: 600; }
.affils { list-style: none; padding: 0; margin: 0 auto 0.4rem; max-width: 920px; color: var(--muted); font-size: 0.84rem; line-height: 1.7; }
.affils li { display: inline-block; margin: 0 0.55rem; }
.affils sup { margin-right: 2px; }
.authornote { color: var(--muted); font-size: 0.8rem; margin-bottom: 1.8rem; }
.logos { list-style: none; padding: 0; margin: 0 auto 2rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.2rem 1.6rem; }
.logos img { display: block; width: auto; max-width: 190px; object-fit: contain; opacity: 0.72; transition: opacity 0.2s, transform 0.2s; }
.logos li:hover img { opacity: 1; transform: translateY(-2px); }
@media (max-width: 520px) { .logos img { zoom: 0.72; } .logos { gap: 1rem 1.4rem; } }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin: 0 0 0.5rem; }
.pill {
	display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.25rem 0.6rem 1rem; border-radius: 999px;
	text-decoration: none; font-weight: 600; color: var(--text);
	background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(120deg, rgba(45, 212, 191, 0.45), rgba(167, 139, 250, 0.45)) border-box;
	border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.pill svg { width: 1.2em; height: 1.2em; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s; }
.pill:hover { transform: translateY(-2px); box-shadow: 0 6px 24px -8px rgba(167, 139, 250, 0.55); background: linear-gradient(#1a1f2e, #1a1f2e) padding-box, linear-gradient(120deg, var(--teal), var(--violet)) border-box; }
.pill:hover svg { stroke: var(--violet); }
.stats { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.stat { display: flex; flex-direction: column; }
.stat b { font-size: 2.4rem; letter-spacing: -0.03em; line-height: 1.1; color: var(--teal); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 860px) { .hero { padding-top: 2rem; } }

/* sections */
.section { padding-top: 3.5rem; padding-bottom: 0.5rem; }
.grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.linkcards .card { display: flex; flex-direction: column; gap: 0.2rem; }
.linkcards ul { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.linkcards li { padding: 0.15rem 0; }
.linkcards p { color: var(--muted); font-size: 0.95rem; }

/* landing tiles: one per dashboard page */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.tile {
	display: flex; flex-direction: column; height: 100%; text-decoration: none; overflow: hidden;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	transition: transform 0.18s, box-shadow 0.2s, border-color 0.2s;
}
.tile .art {
	display: grid; place-items: center; aspect-ratio: 16 / 10; font-size: 4.2rem; line-height: 1;
	background: radial-gradient(70% 90% at 50% 40%, color-mix(in srgb, var(--cat) 30%, transparent), transparent 75%),
	            color-mix(in srgb, var(--cat) 6%, var(--bg));
	border-bottom: 1px solid var(--line);
}
.tile .art { transition: font-size 0.2s; }
.tile.shot .art { background: #000; }
.tile.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .label { display: flex; flex-direction: column; padding: 0.8rem 1rem 0.9rem; font-weight: 700; font-size: 1.08rem; }
.tile .label small { font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--cat) 60%, transparent); box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--cat) 70%, transparent); }
.tile:hover .art { font-size: 4.8rem; }
.tile:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* category pages */
.cathead { position: relative; }
.cathead::before {
	content: ""; position: absolute; inset: 0 0 auto; height: 360px; z-index: -1; pointer-events: none;
	background: radial-gradient(35% 60% at 20% 20%, color-mix(in srgb, var(--cat) 18%, transparent), transparent 70%);
}
.catemoji { display: block; font-size: 3.4rem; line-height: 1; margin-bottom: 0.6rem; }
.cathead h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.2em; }
.cathead .chip { margin: 0 0.2rem 0.4rem 0; }
.links a[aria-current] { box-shadow: inset 0 -2px 0 var(--cat, var(--teal)); }
.links a { padding: 0.3rem 0; }

/* datasets */
.ds { display: flex; flex-direction: column; gap: 0.3rem; border-top: 2px solid var(--cat); text-decoration: none; transition: background 0.15s; }
.ds:hover { background: var(--surface-2); }
.ds .top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; }
.ds h2, .ds h4 { margin: 0; font-size: 1.02rem; letter-spacing: -0.01em; }
.ds p { color: var(--muted); font-size: 0.9rem; margin: 0; flex: 1; }
.ds .hours { font-size: 0.82rem; color: var(--text); font-variant-numeric: tabular-nums; }

/* tabs */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tabs { display: flex; gap: 0.3rem; border-bottom: 1px solid var(--line); }
.tabs button {
	font: inherit; font-size: 1.05rem; font-weight: 600; color: var(--muted); background: none; cursor: pointer;
	border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 0.6rem 1.1rem;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected=true] { color: var(--teal); border-bottom-color: var(--teal); }
.tabs button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.tabpanel[hidden] { display: none; }
.tab-lead { color: var(--muted); margin: 1.2rem 0 0; max-width: 60rem; }
.tab-lead + .viewer-card { margin-top: 1rem; }

/* viewers */
.viewer-card { padding: 1rem; margin-top: 1.5rem; }
.controls { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; align-items: center; margin-bottom: 0.8rem; }
.controls label { color: var(--muted); font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
select {
	background: #151a24; color: var(--text); border: 1px solid var(--line); border-radius: 10px;
	padding: 0.5rem 0.8rem; font: inherit; font-size: 0.95rem; max-width: 100%;
}
input[type=range] { accent-color: var(--teal); width: 9rem; }
.segmented { display: flex; align-items: center; gap: 0.5rem; border: 0; margin: 0; padding: 0; color: var(--muted); font-size: 0.9rem; }
.segmented legend { float: left; margin-right: 0.5rem; padding: 0; }
.segmented label { gap: 0; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: inline-block; padding: 0.35rem 0.8rem; border: 1px solid var(--line); background: #151a24; color: var(--text); cursor: pointer; }
.segmented label:first-of-type span { border-radius: 10px 0 0 10px; }
.segmented label:last-of-type span { border-radius: 0 10px 10px 0; margin-left: -1px; }
.segmented input:checked + span { background: var(--teal); color: #06231f; border-color: var(--teal); font-weight: 600; }
.segmented input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.bs { background: #000; border-radius: 10px; overflow: hidden; min-height: 120px; }
.bs canvas { display: block; width: 100%; }
.bs img.hidden { display: none; }
.viewer-card .fallback img { width: 100%; height: auto; border-radius: 10px; display: block; }
.js .fallback { display: none; }
.viewer-note { color: var(--muted); font-size: 0.88rem; margin: 0.6rem 0 0; }
.figures { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.figure img { width: 100%; height: auto; border-radius: 10px; background: #fff; display: block; margin-bottom: 0.8rem; }
.figure p { color: var(--muted); font-size: 0.93rem; }

footer { margin-top: 5rem; border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.9rem; }
footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
