/* chain.dznye.com: one stylesheet for every page, in the DZNYE look (dznye.com): a light pastel sky with slow white
   sun rays, frosted glass, a thin rainbow line, Geist with Newsreader for display, and a little sparkle. Light only,
   like dznye.com itself. */
:root {
	--fg: #16121c; --dim: #8a8394; --line: rgba(30, 20, 50, 0.16); --glass: rgba(255, 255, 255, 0.62); --glass2: rgba(255, 255, 255, 0.3);
	--rainbow: linear-gradient(90deg, #ff5fa8, #ffb321, #19c98b, #3f7bff, #9b4dff);
	--pink: #e8317f; --amber: #b87700; --mint: #0f9e6e; --blue: #2f63e6; --violet: #7a3cff;
	--good: var(--mint); --warn: var(--amber); --bad: var(--pink); --accent: var(--violet);
	--sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: 'Geist Mono', 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
	--serif: 'Newsreader', Georgia, 'Times New Roman', serif;
	--ease: cubic-bezier(0.22, 0.8, 0.2, 1); --radius: 18px;
	color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; min-height: 100dvh; color: var(--fg); font: 400 15px/1.6 var(--sans); font-feature-settings: 'ss01', 'cv11';
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
	background: linear-gradient(172deg, #f6f2ff 0%, #fff3f8 48%, #eef6ff 100%) fixed;
}
/* the slow white sun rays behind everything, as on dznye.com */
body::before {
	content: ''; position: fixed; z-index: -1; pointer-events: none; top: -128vmax; left: 50%; width: 220vmax; height: 220vmax; margin-left: -110vmax;
	background: repeating-conic-gradient(#fff0 0deg, #ffffff8c 2.8deg, #fff0 5.6deg 12deg); opacity: 0.5;
	-webkit-mask: radial-gradient(circle, #000 0 6%, #0000008c 20%, #0000 44%); mask: radial-gradient(circle, #000 0 6%, #0000008c 20%, #0000 44%);
	animation: spin 180s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* faint four-point sparkles scattered over the sky, as on dznye.com */
body::after {
	content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cg fill='%23ffffff'%3E%3Cpath d='M70 60l2 9 9 2-9 2-2 9-2-9-9-2 9-2z'/%3E%3Cpath d='M300 140l1.5 7 7 1.5-7 1.5-1.5 7-1.5-7-7-1.5 7-1.5z'/%3E%3Cpath d='M450 300l2 9 9 2-9 2-2 9-2-9-9-2 9-2z'/%3E%3Cpath d='M160 380l1.5 7 7 1.5-7 1.5-1.5 7-1.5-7-7-1.5 7-1.5z'/%3E%3C/g%3E%3Cg fill='%23c9b8f5' fill-opacity='.55'%3E%3Cpath d='M390 70l1.2 5.5 5.5 1.2-5.5 1.2-1.2 5.5-1.2-5.5-5.5-1.2 5.5-1.2z'/%3E%3Cpath d='M40 250l1.2 5.5 5.5 1.2-5.5 1.2-1.2 5.5-1.2-5.5-5.5-1.2 5.5-1.2z'/%3E%3Cpath d='M260 470l1.2 5.5 5.5 1.2-5.5 1.2-1.2 5.5-1.2-5.5-5.5-1.2 5.5-1.2z'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 520px 520px;
}
::selection { background: #ffd6ea; color: var(--fg); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--glass2); border: 1px solid #fff9; padding: 0.08em 0.4em; border-radius: 6px; }
pre { background: var(--glass); border: 1px solid #fff9; border-radius: 14px; padding: 14px 16px; overflow-x: auto; font: 12.5px/1.6 var(--mono); backdrop-filter: blur(10px); }
pre code { background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0 0 0.5em; text-wrap: balance; }
h1 { font: 400 clamp(2.1rem, 5.6vw, 3.6rem)/1.06 var(--serif); letter-spacing: -0.015em; }
h2 { font: 400 clamp(1.6rem, 3.6vw, 2.3rem)/1.1 var(--serif); letter-spacing: -0.01em; }
h3 { font: 500 1.02rem/1.3 var(--sans); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.dim { color: var(--dim); }
/* small uppercase labels with a rainbow dot */
.kick { display: flex; align-items: center; gap: 10px; font: 500 11px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.kick::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--rainbow); flex: none; }

/* sparkle: a few small ✦ that twinkle beside the big headings and the logo */
.hero h1 { position: relative; }
.hero h1::after { content: '✦'; position: absolute; margin-left: 0.25em; top: -0.15em; font-size: 0.42em; color: #ffb321; animation: twinkle 3.2s var(--ease) infinite; }
.hero h1::before { content: '✦'; position: absolute; left: -0.55em; top: 55%; font-size: 0.24em; color: #ff5fa8; animation: twinkle 3.2s 1.4s var(--ease) infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }

/* top bar: frosted glass, with the rainbow line under it */
header.top { position: sticky; top: 0; z-index: 10; background: linear-gradient(#f8f4ffd9, #f8f4ff00); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
header.top .wrap { display: flex; align-items: center; gap: 18px; height: 58px; }
.brand { font: 500 12px/1 var(--mono); letter-spacing: 0.2em; color: var(--fg); white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.brand b { font-weight: 400; color: var(--dim); }
.brand:hover { text-decoration: none; }
nav.links { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
nav.links a { position: relative; color: var(--dim); padding: 8px 10px 12px; white-space: nowrap; font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
nav.links a:hover, nav.links a[aria-current] { color: var(--fg); text-decoration: none; }
nav.links a[aria-current]::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--fg); }
.live { display: inline-flex; align-items: center; gap: 7px; font: 500 11px var(--mono); letter-spacing: 0.06em; color: var(--dim); white-space: nowrap; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.live.ok i { background: var(--mint); box-shadow: 0 0 0 3px #19c98b33; animation: breathe 2.4s var(--ease) infinite; }
.live.down i { background: var(--pink); }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px #19c98b14; } }
@media (max-width: 640px) { .live span { display: none; } .brand { letter-spacing: 0.16em; } }

/* sections */
section { padding: 56px 0; position: relative; }
section + section::before { content: ''; position: absolute; top: 0; left: 50%; width: min(1048px, calc(100% - 32px)); transform: translateX(-50%); height: 1px; background: linear-gradient(90deg, #fff0, var(--line), #fff0); }
.hero { padding: 76px 0 52px; }
.hero p.lead { font: 400 clamp(1.05rem, 2vw, 1.25rem)/1.6 var(--sans); color: #4b4456; max-width: 680px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
/* buttons: outlined, small uppercase, solid on hover, as on dznye.com */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 22px; border: 1px solid var(--fg); background: #fff6; color: var(--fg);
	font: 500 11px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; transition: background-color 0.2s, color 0.2s; border-radius: 0; }
.btn:hover, .btn.primary { background: var(--fg); color: #fff; text-decoration: none; }
.btn.primary:hover { background: #2b2335; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
/* frosted glass panels */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card, .stat, .note, .scroll:has(> .table) {
	background: linear-gradient(160deg, #ffffff9e, #ffffff47); border: 1px solid #fff9; border-radius: var(--radius);
	backdrop-filter: blur(12px) saturate(1.25); -webkit-backdrop-filter: blur(12px) saturate(1.25); box-shadow: 0 24px 60px -34px #82aaff80;
}
.card { padding: 18px 20px; min-width: 0; }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 28px; }
.stat { padding: 14px 16px; min-width: 0; }
.stat span { display: block; font: 500 10.5px var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.stat b { display: block; font: 400 1.7rem/1.2 var(--serif); margin-top: 6px; font-variant-numeric: tabular-nums; word-break: break-all; }

/* tables */
.scroll { overflow-x: auto; }
.scroll:has(> .table) { padding: 4px 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { font: 500 10.5px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yes { color: var(--mint); font-weight: 600; }
.no { color: var(--dim); }
.fail { color: var(--pink); font-weight: 600; }

/* notices: glass with a coloured edge */
.note { padding: 12px 16px; border-left: 3px solid var(--amber); }
.note.bad { border-left-color: var(--pink); }
.note.good { border-left-color: var(--mint); }

/* forms */
label { display: block; font: 500 10.5px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin: 14px 0 6px; }
input, select, textarea { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid #fff; background: #ffffffb3; color: var(--fg); font: 15px var(--sans); box-shadow: inset 0 0 0 1px var(--line); }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--violet), 0 0 0 4px #9b4dff22; }
input[type='checkbox'] { width: auto; box-shadow: none; accent-color: var(--violet); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 180px; min-width: 0; }
.msg { min-height: 1.5em; margin-top: 10px; font-size: 14px; }
.msg.ok { color: var(--mint); } .msg.err { color: var(--pink); }

/* blocks list */
.block { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.block .h { font: 500 14px var(--mono); color: var(--violet); }
.block .t { color: var(--dim); font: 12px var(--mono); }
.block ul { grid-column: 2; margin: 2px 0 0; padding-left: 18px; }
.hash { font: 12px var(--mono); color: var(--dim); word-break: break-all; }

/* slides on the home page: a numbered sequence */
.slides { counter-reset: slide; }
.slide { counter-increment: slide; }
.slide .kick::after { content: counter(slide, decimal-leading-zero); margin-left: auto; color: #b9b1c6; }

footer { padding: 30px 0 44px; color: var(--dim); font: 12px var(--mono); letter-spacing: 0.04em; position: relative; }
footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rainbow); opacity: 0.45; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
