/*
Theme Name: RosterSlots
Theme URI: https://rosterslots.co.uk
Author: RosterSlots
Description: Custom classic theme for RosterSlots — a UK casino comparison publication. Hand-written PHP and CSS, no page builder, no framework.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rosterslots
*/

/* ---------------------------------------------------------------
   Reset
   --------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

ul[class],
ol[class] {
	list-style: none;
	margin: 0;
	padding: 0;
}

img,
picture,
svg {
	max-width: 100%;
	display: block;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

table {
	border-collapse: collapse;
	width: 100%;
}

/* ---------------------------------------------------------------
   Base
   --------------------------------------------------------------- */

html {
	-webkit-text-size-adjust: 100%;
}

body {
	background-color: var(--bg-canvas);
	background-image: var(--page-wash);
	background-repeat: no-repeat;
	background-attachment: fixed;
	color: var(--text-primary);
	font: 400 17px/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Every numeral on this site is part of a dataset — align them. */
.rs-num,
table,
time {
	font-variant-numeric: tabular-nums;
}

/* Links are white and underlined. The accent is reserved for the rating and the
   button — if every link wore it, neither would stand out. */
a {
	color: var(--text-primary);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color var(--dur) var(--ease);
}

a:hover {
	color: var(--accent);
}

a:active {
	color: var(--accent-active);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ---------------------------------------------------------------
   Type scale
   --------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--text-primary);
	text-wrap: balance;
}

h1 {
	font-size: 34px;
	line-height: 1.15;
	letter-spacing: -0.022em;
}

h2 {
	font-size: 24px;
	line-height: 1.25;
	letter-spacing: -0.014em;
}

h3 {
	font-size: 18px;
	line-height: 1.35;
}

.rs-display {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 44px;
	line-height: 1.05;
	letter-spacing: -0.028em;
}

p {
	text-wrap: pretty;
}

.rs-small {
	font-size: 14px;
	line-height: 1.55;
	color: var(--text-secondary);
}

/* 13px is the floor. Nothing smaller ships. */
.rs-micro {
	font-size: 13px;
	line-height: 1.5;
	color: var(--text-secondary);
}

.rs-label {
	font: 600 11px/1 var(--font-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
}

/* ---------------------------------------------------------------
   Layout
   --------------------------------------------------------------- */

.rs-wrap {
	width: 100%;
	max-width: var(--w-page);
	margin-inline: auto;
	padding-inline: var(--s3);
}

.rs-prose {
	max-width: var(--w-prose);
}

.rs-prose > * + * {
	margin-top: var(--s3);
}

.rs-skip-link {
	position: absolute;
	left: -9999px;
}

.rs-skip-link:focus {
	left: var(--s2);
	top: var(--s2);
	z-index: 100;
	background: var(--bg-elevated);
	color: var(--text-primary);
	padding: var(--s1) var(--s2);
	border-radius: var(--r-sm);
}

/* ---------------------------------------------------------------
   Masthead
   --------------------------------------------------------------- */

.rs-masthead {
	background: var(--bg-base);
	border-bottom: 1px solid var(--border-subtle);
}

.rs-masthead__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s3);
	min-height: 64px;
}

.rs-masthead__brand {
	font: 700 19px/1 var(--font-head);
	letter-spacing: -0.02em;
	color: var(--text-primary);
	text-decoration: none;
}

.rs-masthead__brand:hover {
	color: var(--text-primary);
}

.rs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s3);
	align-items: center;
}

.rs-nav a {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 15px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.rs-nav a:hover,
.rs-nav .current-menu-item > a {
	color: var(--text-primary);
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */

.rs-footer {
	background: var(--bg-base);
	border-top: 1px solid var(--border-subtle);
	margin-top: var(--s7);
	padding-block: var(--s5);
}

.rs-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s3);
	margin-bottom: var(--s4);
}

.rs-footer__nav a {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 14px;
}

.rs-footer__nav a:hover {
	color: var(--text-primary);
}

.rs-colophon {
	margin-top: var(--s4);
	padding-top: var(--s3);
	border-top: 1px solid var(--border-subtle);
	color: var(--text-muted);
	font-size: 13px;
}

/* ---------------------------------------------------------------
   Content flow
   --------------------------------------------------------------- */

.rs-main {
	padding-block: var(--s5);
	min-height: 50vh;
}

.rs-entry + .rs-entry {
	margin-top: var(--s5);
	padding-top: var(--s5);
	border-top: 1px solid var(--border-subtle);
}

.rs-entry__title {
	margin-bottom: var(--s1);
}

.rs-entry__title a {
	color: var(--text-primary);
	text-decoration: none;
}

.rs-entry__title a:hover {
	color: var(--accent);
}

.rs-entry__meta {
	color: var(--text-muted);
	font: 400 13px/1.5 var(--font-mono);
	margin-bottom: var(--s2);
}

@media (max-width: 640px) {
	.rs-display {
		font-size: 32px;
	}

	h1 {
		font-size: 27px;
	}

	.rs-masthead__inner {
		flex-direction: column;
		align-items: flex-start;
		padding-block: var(--s2);
	}
}
