/* JWEB B.V. site style ("warm"): warm dark by default, light when the visitor's system asks for it. */
@font-face { font-family: "Figtree"; src: url(../fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
	color-scheme: dark light;
	--brand: oklch(0.72 0.15 50);
	--brand-ink: oklch(0.79 0.12 55);
	--bg: oklch(0.2 0.018 48);
	--band: oklch(0.24 0.022 48);
	--ink: oklch(0.95 0.01 70);
	--ink-soft: oklch(0.84 0.014 65);
	--muted: oklch(0.72 0.016 60);
	--line: oklch(0.34 0.02 48);
	--on-brand: oklch(0.2 0.018 48);
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--wrap: 76rem;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--radius: 6px;
	--radius-bar: 2px;
}
@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) {
		--brand: oklch(0.64 0.16 48);
		--brand-ink: oklch(0.5 0.13 45);
		--bg: oklch(0.975 0.006 65);
		--band: oklch(0.945 0.014 60);
		--ink: oklch(0.24 0.02 48);
		--ink-soft: oklch(0.34 0.02 48);
		--muted: oklch(0.46 0.02 48);
		--line: oklch(0.87 0.015 60);
		--on-brand: oklch(0.99 0.004 65);
	}
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 "Figtree", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 4px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Header */
.top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; padding-block: 2rem 0; }
.wordmark { display: inline-flex; flex-direction: column; gap: 0.25rem; text-decoration: none; line-height: 1; color: var(--brand); }
.wordmark b { font-weight: 350; font-size: 2.25rem; letter-spacing: 0.34em; margin-right: -0.34em; }
.wordmark small { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* Home: the status line is the hook. "200 OK" as a poster numeral, the name under it,
   then one bar per year since 2000 (an uptime monitor where every year answered 200 OK). */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
.status { display: flex; align-items: baseline; gap: 0.22em; font-size: clamp(5rem, 1.5rem + 15vw, 12rem); line-height: 0.86; letter-spacing: -0.04em; font-variant-numeric: lining-nums tabular-nums; }
.status .code { font-weight: 800; color: var(--brand); }
.status .reason { font-weight: 300; color: var(--ink); }
.hero h1 { margin-top: clamp(1.25rem, 3vw, 2rem); font-size: clamp(1.875rem, 1.1rem + 3vw, 3.5rem); font-weight: 650; line-height: 1.08; letter-spacing: -0.03em; max-width: 22ch; }
.hero h1 em { font-style: normal; color: var(--brand); }

.uptime { margin: clamp(2.5rem, 6vw, 4rem) 0 0; }
.cells { display: flex; gap: clamp(2px, 0.35vw, 5px); height: clamp(2.75rem, 5vw, 4rem); }
.cells span { position: relative; flex: 1; border-radius: var(--radius-bar); background: var(--brand); transform-origin: bottom; animation: rise 480ms var(--ease-out) both; animation-delay: calc(150ms + var(--i) * 28ms); transition: background-color 150ms var(--ease-out); }
.cells span::after { content: attr(data-year); position: absolute; bottom: calc(100% + 0.5rem); left: 50%; translate: -50% 0; font-size: 0.8125rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
	.cells span:hover { background: var(--ink); }
	.cells span:hover::after { opacity: 1; }
}
@keyframes rise { from { transform: scaleY(0.15); opacity: 0; } }
.uptime figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.uptime figcaption span:nth-child(2) { color: var(--brand-ink); }

.about { padding-block: clamp(0.5rem, 2vw, 1.5rem) clamp(3rem, 7vw, 5.5rem); }
.about .lead:first-child { margin-top: 0; }
.about .lead + .lead { margin-top: 1rem; }
@media (min-width: 60rem) { .about > * { margin-left: calc(100% / 3); } }
.lead { margin-top: 2rem; max-width: 40rem; font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem); line-height: 1.5; color: var(--ink-soft); }
.lead a { color: var(--ink); text-decoration: underline 1px var(--brand); text-underline-offset: 0.25em; transition: color 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .lead a:hover { color: var(--brand-ink); } }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin-top: 2.5rem; }
.btn { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.375rem; border-radius: var(--radius); background: var(--brand); color: var(--on-brand); font-weight: 650; text-decoration: none; transition: transform 160ms var(--ease-out), background-color 150ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--brand-ink); } }

/* Error pages: title and text */
.page-head { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 3.5rem); }
.eyebrow { font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-ink); }
.page-head h1 { margin-top: 0.875rem; font-size: clamp(2.25rem, 1.3rem + 3.8vw, 4.25rem); font-weight: 650; line-height: 1.04; letter-spacing: -0.03em; max-width: 18ch; }
.page-head .lead { margin-top: 1.5rem; }

/* Footer */
footer { padding-block: 2.5rem 3rem; color: var(--muted); font-size: 0.9375rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
footer a { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.01ms !important; animation: none !important; } }
