/* ==========================================================================
   wikicount.net — refreshed stylesheet
   Drop-in replacement for images/style.css (no HTML changes required)
   Keeps the original character: globe watermark, serif type, centered page,
   underlined big link — with cleaner spacing, rhythm and small refinements.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&display=swap');

/* ---- Reset ---- */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
img { border: 0; vertical-align: middle; }

/* ---- Tokens ---- */
:root {
	--ink: #202122;          /* Wikipedia body text */
	--ink-soft: #54595d;
	--ink-faint: #72777d;
	--rule-soft: #eaecf0;
	--link: #1259cf;         /* the original site's blue */
	--serif: 'Libre Caslon Text', Georgia, 'Times New Roman', Times, serif;
}

/* ---- Page ---- */
body {
	font: 400 17px/1.6 var(--serif);
	color: var(--ink);
	text-align: center;
	padding: 10px;
	background-color: #fff;
	width: 100%;
}

/* ---- Content column with the globe watermark, as before ---- */
#content {
	background: url('wp.png') center 42% no-repeat;
	background-size: contain;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	position: relative;
	top: 3vh;
	text-align: center;
	padding: 0 8px;
}

/* ---- Headings ---- */
h1 {
	font-family: var(--serif);
	font-weight: 700;
	font-size: clamp(27px, 5vw, 38px);
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-shadow: 0 1px 0 #fff; /* keeps it crisp over the watermark */
}
h2 {
	font-size: clamp(17px, 3vw, 21px);
	font-style: italic;
	color: var(--ink-soft);
	margin: 12px 10px 4px;
	text-shadow: 0 1px 0 #fff;
}

/* ---- Body copy ---- */
p {
	font-size: clamp(16px, 2.8vw, 20px);
	margin-bottom: 14px;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
strong {
	font-weight: 700;
	letter-spacing: 0.5px;
	font-variant-numeric: tabular-nums;
}

/* ---- The counter ---- */
.number, .smalltext {
	text-align: center;
	padding: 10px;
	margin-bottom: 14px;
}
.number {
	font-family: var(--serif);
	font-weight: 700;
	font-size: clamp(44px, 9.5vw, 66px);
	line-height: 1.1;
	letter-spacing: clamp(6px, 1.6vw, 12px);
	font-variant-numeric: tabular-nums lining-nums;
	color: var(--ink);
	text-shadow: 0 1px 0 #fff, 0 2px 6px rgba(255, 255, 255, 0.9);
}

/* ---- Refresh icon ---- */
.refresh {
	width: 16px;
	height: 16px;
	margin-left: 4px;
	cursor: pointer;
	opacity: 0.65;
	transition: opacity 0.2s ease;
}
.refresh:hover { opacity: 1; }
.rotate {
	transform: rotate(720deg);
	transition: transform 0.6s ease;
}

/* ---- Links ---- */
a {
	color: var(--link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ---- Visit Wikipedia link — kept as the original underlined link ---- */
.biglink {
	display: inline-block;
	color: var(--link);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
	font-size: 1.35em;
	text-shadow: 0 1px 4px rgba(255, 255, 255, 0.6);
	transition: transform 0.2s ease;
}
.biglink:hover {
	transform: translateY(-1px);
	text-decoration-thickness: 2px;
}
.biglink img {
	width: 84px;
	margin-bottom: 6px;
	-webkit-filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.45));
	filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.45));
	transition: transform 0.25s ease, filter 0.25s ease;
}
.biglink:hover img {
	transform: translateY(-2px) scale(1.03);
	-webkit-filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
	filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

/* ---- Footer text ---- */
.smallertext {
	font-size: 13px;
	line-height: 1.8;
	color: var(--ink-faint);
	width: 85%;
	max-width: 580px;
	margin: 10px auto 0;
	padding-top: 12px;
	border-top: 1px solid var(--rule-soft);
	text-shadow: none;
}
.smallertext a { color: var(--link); }
.smallertext u {
	text-decoration: none;
	font-weight: 700;
	color: var(--ink-soft);
}

/* ---- Language switcher (quiet footer nav) ---- */
.langs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px 4px;
	max-width: 520px;
	margin: 14px auto 20px;
}
.langs a {
	font-size: 11.5px;
	line-height: 1;
	color: var(--ink-faint);
	text-decoration: none;
	padding: 5px 8px;
	border-radius: 999px;
	transition: color 0.15s ease, background-color 0.15s ease;
}
.langs a:hover {
	color: var(--link);
	background: var(--rule-soft);
	text-decoration: none;
}
/* the edition you're currently on */
.langs a.current {
	color: var(--ink-soft);
	font-weight: 700;
	background: var(--rule-soft);
	pointer-events: none;
}

/* ---- Small screens ---- */
@media screen and (max-width: 500px) {
	#content { top: 10px; }
	.number {
		font-size: 46px;
		letter-spacing: 7px;
	}
	.biglink img { width: 68px; }
	.smallertext { width: 100%; }
}
@media screen and (max-width: 320px) {
	#content { top: 0; }
	.number {
		font-size: 38px;
		letter-spacing: 6px;
		margin-bottom: 6px;
	}
	.biglink img { width: 58px; }
	p { font-size: 16px; margin-bottom: 8px; }
	h1 { font-size: 24px; }
	h2 { font-size: 17px; margin: 8px; }
}

/* ---- Accessibility ---- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}