@charset "utf-8";

@font-face {
	font-family: "Inconsolata";
	src: url("Inconsolata.otf") format("opentype");
}

:root {
	color-scheme: light;
	--page-background: #f6f4ee;
	--page-text: #111111;
	--panel-bg: rgba(255, 255, 255, 0.86);
	--panel-border: rgba(17, 17, 17, 0.18);
	--panel-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
	--heading: #111111;
	--accent: #1e8f4b;
	--button-bg: rgba(255, 255, 255, 0.95);
	--button-border: rgba(17, 17, 17, 0.24);
	--button-hover: rgba(255, 255, 255, 1);
}

html[data-theme='dark'] {
	color-scheme: dark;
	--page-background: #111820;
	--page-text: #e8edf3;
	--panel-bg: rgba(23, 33, 45, 0.85);
	--panel-border: rgba(232, 237, 243, 0.2);
	--panel-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
	--heading: #f4f8ff;
	--accent: #64d889;
	--button-bg: rgba(17, 24, 32, 0.92);
	--button-border: rgba(232, 237, 243, 0.26);
	--button-hover: rgba(40, 53, 68, 0.95);
}

html[data-font-size='small'] {
	font-size: 90%;
}

html[data-font-size='normal'] {
	font-size: 100%;
}

html[data-font-size='large'] {
	font-size: 110%;
}

html[data-font-size='larger'] {
	font-size: 120%;
}

html[data-font-size='huge'] {
	font-size: 130%;
}

html[data-font-size='xhuge'] {
	font-size: 140%;
}

html[data-font-size='xxhuge'] {
	font-size: 150%;
}

html[data-font-size='maximum'] {
	font-size: 200%;
}

* {
	box-sizing: border-box;
}

body {
	background: radial-gradient(circle at 8% 10%, rgba(91, 133, 180, 0.2), transparent 38%),
		linear-gradient(160deg, rgba(248, 248, 245, 0.96) 0%, rgba(238, 239, 233, 0.95) 100%);
	background-color: var(--page-background);
	color: var(--page-text);
	font-family: Inconsolata, monospace;
	margin: 0;
	min-height: 100vh;
	padding: 1.6rem 1.2rem 2.6rem;
	text-align: center;
	transition: background-color 0.2s ease, color 0.2s ease;
}

html[data-theme='dark'] body {
	background: radial-gradient(circle at 10% 14%, rgba(91, 133, 180, 0.24), transparent 40%),
		linear-gradient(160deg, rgba(17, 24, 32, 0.98) 0%, rgba(23, 33, 45, 0.97) 100%);
	background-color: var(--page-background);
}

.top-actions {
	display: flex;
	gap: 0.6rem;
	justify-content: flex-end;
	margin: 0 auto 0.8rem;
	max-width: 1100px;
	width: 100%;
}

.action-button {
	background: var(--button-bg);
	border: 1px solid var(--button-border);
	border-radius: 999px;
	color: var(--page-text);
	cursor: pointer;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	padding: 0.48rem 0.9rem;
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.action-button:hover {
	background: var(--button-hover);
	transform: translateY(-1px);
}

header {
	margin: 0 auto 1.2rem;
	max-width: 1100px;
}

.headline {
	color: var(--heading);
	cursor: pointer;
	font-size: clamp(2rem, 4vw, 3.8rem);
	line-height: 1.06;
	margin: 0.25rem auto 0.4rem;
	transition: color 0.15s ease, transform 0.15s ease;
	width: fit-content;
}

.headline:hover {
	color: var(--accent);
	transform: scale(1.03);
}

.subline {
	font-size: clamp(1rem, 1.9vw, 1.45rem);
	margin: 0.25rem auto 0;
	opacity: 0.9;
}

.tooltip {
	position: relative;
}

.tooltip .tooltiptext {
	background-color: #c0c0c0;
	border-radius: 6px;
	color: #000;
	font-size: 0.95rem;
	left: 50%;
	margin-top: 0.6rem;
	opacity: 0;
	padding: 0.35rem 0.55rem;
	pointer-events: none;
	position: absolute;
	transform: translateX(-50%);
	transition: opacity 0.14s ease;
	visibility: hidden;
	white-space: nowrap;
	z-index: 1;
}

.tooltip:hover .tooltiptext {
	opacity: 1;
	visibility: visible;
}

.updates-grid {
	display: grid;
	gap: 0.8rem;
	grid-template-columns: repeat(2, minmax(260px, 1fr));
	margin: 1.4rem auto 0;
	max-width: 1100px;
	text-align: left;
}

.update-card {
	background: var(--panel-bg);
	border: 1px solid var(--panel-border);
	border-radius: 14px;
	box-shadow: var(--panel-shadow);
	padding: 0.9rem 1rem 1rem;
}

.update-card h2 {
	font-size: clamp(1.15rem, 2.1vw, 1.75rem);
	line-height: 1.15;
	margin: 0 0 0.4rem;
}

.update-card p {
	font-size: clamp(0.95rem, 1.35vw, 1.16rem);
	line-height: 1.35;
	margin: 0;
}

@media (max-width: 840px) {
	.updates-grid {
		grid-template-columns: 1fr;
	}

	.top-actions {
		justify-content: center;
	}

	.tooltip .tooltiptext {
		font-size: 0.85rem;
		white-space: normal;
		width: min(92vw, 350px);
	}
}