/*
 * 4tunecasino.com -- the only stylesheet, loaded as a plain file with no content
 * hash in its name. That is deliberate and it has a consequence written into
 * deploy/.htaccess: an unhashed stylesheet must not be served under a long cache,
 * or an edit here would never reach anyone who has already visited. The build
 * refuses to ship if the two ever disagree.
 *
 * Layout rules only where the markup needs them. Every image in the HTML carries
 * width and height attributes read from the file itself, so the aspect-ratio box
 * is reserved before the bytes arrive and the two rules at the bottom of the
 * reset keep it that way.
 */

:root {
	color-scheme: light dark;
	--ink: #171a22;
	--ink-soft: #4c5361;
	--paper: #f5f4f0;
	--card: #ffffff;
	--edge: #ddd9cf;
	--gold: #fbcf08;
	--hot: #b3400f;
	--measure: 42rem;
}

@media (prefers-color-scheme: dark) {
	:root {
		--ink: #eceef3;
		--ink-soft: #a4abb9;
		--paper: #14161c;
		--card: #1c1f27;
		--edge: #2e323d;
		--hot: #ffb38a;
	}
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 1rem/1.65 Georgia, "Iowan Old Style", "Times New Roman", serif;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--hot);
	text-underline-offset: 0.15em;
}

.jrn-skip {
	position: absolute;
	left: -100vw;
}

.jrn-skip:focus {
	left: 0.5rem;
	top: 0.5rem;
	z-index: 2;
	background: var(--card);
	padding: 0.5rem 0.75rem;
	border: 2px solid var(--ink);
}

/* ---- masthead ------------------------------------------------------------ */

.jrn-top {
	border-bottom: 3px double var(--edge);
	background: var(--card);
	padding: 1rem 1rem 0.5rem;
}

.jrn-top__id {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	align-items: center;
	justify-content: space-between;
	max-width: 68rem;
	margin: 0 auto;
}

.jrn-mark {
	display: block;
	margin: 0;
	text-decoration: none;
	color: inherit;
}

.jrn-mark span {
	display: block;
	font-size: 0.78rem;
	letter-spacing: 0.02em;
	color: var(--ink-soft);
}

.jrn-hop,
.jrn-handoff__go {
	display: inline-block;
	background: var(--gold);
	color: #171a22;
	border: 1px solid #c9a406;
	border-radius: 2px;
	padding: 0.5rem 0.9rem;
	font-family: system-ui, "Segoe UI", sans-serif;
	text-decoration: none;
	line-height: 1.3;
}

.jrn-hop small {
	display: block;
	font-size: 0.72rem;
	font-weight: 400;
}

.jrn-menu,
.jrn-trail,
.jrn-margin__nav {
	max-width: 68rem;
	margin: 0 auto;
	font-family: system-ui, "Segoe UI", sans-serif;
}

.jrn-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 1.1rem;
	padding: 0.75rem 0 0.35rem;
	font-size: 0.95rem;
}

.jrn-menu__here {
	font-weight: 700;
	border-bottom: 2px solid var(--gold);
}

.jrn-trail {
	font-size: 0.8rem;
	color: var(--ink-soft);
	padding-bottom: 0.25rem;
}

.jrn-trail a + span::before,
.jrn-trail a + a::before {
	content: "\203a";
	padding: 0 0.4rem;
}

/* ---- page body ----------------------------------------------------------- */

.jrn-main {
	max-width: 68rem;
	margin: 0 auto;
	padding: 1.5rem 1rem 2rem;
	display: grid;
	gap: 2rem;
}

@media (min-width: 64rem) {
	.jrn-main {
		grid-template-columns: minmax(0, 1fr) 15rem;
		align-items: start;
	}
}

.jrn-paper {
	max-width: var(--measure);
}

.jrn-title {
	font-size: clamp(1.55rem, 1.1rem + 2vw, 2.2rem);
	line-height: 1.2;
	margin: 0 0 0.75rem;
}

.jrn-paper h2 {
	font-size: 1.22rem;
	line-height: 1.3;
	margin: 2.1rem 0 0.6rem;
	padding-bottom: 0.25rem;
	border-bottom: 1px solid var(--edge);
}

.jrn-standfirst {
	font-size: 1.1rem;
	color: var(--ink-soft);
	margin: 0 0 1.25rem;
}

.jrn-paper p {
	margin: 0 0 1rem;
}

/* ---- images -------------------------------------------------------------- */

.jrn-plate {
	margin: 1.5rem 0;
}

.jrn-plate img {
	display: block;
	width: 100%;
	border: 1px solid var(--edge);
	border-radius: 3px;
	background: var(--card);
}

.jrn-plate--square img {
	max-width: 22rem;
}

.jrn-plate figcaption {
	font-family: system-ui, "Segoe UI", sans-serif;
	font-size: 0.8rem;
	color: var(--ink-soft);
	padding-top: 0.4rem;
}

/* ---- the two tables ------------------------------------------------------ */

.jrn-brief,
.jrn-asked {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-family: system-ui, "Segoe UI", sans-serif;
	font-size: 0.92rem;
	text-align: left;
}

.jrn-brief caption,
.jrn-asked caption {
	text-align: left;
	font-size: 0.8rem;
	color: var(--ink-soft);
	padding-bottom: 0.4rem;
}

.jrn-brief th,
.jrn-brief td,
.jrn-asked th,
.jrn-asked td {
	border: 1px solid var(--edge);
	padding: 0.5rem 0.6rem;
	vertical-align: top;
}

.jrn-brief thead th,
.jrn-asked thead th {
	background: var(--card);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.jrn-brief tbody th,
.jrn-asked tbody th {
	width: 36%;
	font-weight: 700;
}

/* ---- handoff ------------------------------------------------------------- */

.jrn-handoff {
	margin: 2.25rem 0;
	padding: 1rem 1.1rem;
	background: var(--card);
	border: 1px solid var(--edge);
	border-left: 4px solid var(--gold);
}

.jrn-handoff h2 {
	margin-top: 0;
	border: 0;
	font-size: 1.12rem;
}

.jrn-handoff p {
	margin: 0 0 0.9rem;
	font-size: 0.95rem;
}

.jrn-handoff__go span {
	font-size: 0.78rem;
	font-weight: 400;
}

/* ---- right-hand column --------------------------------------------------- */

.jrn-margin {
	font-family: system-ui, "Segoe UI", sans-serif;
	border-top: 3px double var(--edge);
	padding-top: 1rem;
}

@media (min-width: 64rem) {
	.jrn-margin {
		border-top: 0;
		border-left: 1px solid var(--edge);
		padding: 0 0 0 1.25rem;
	}
}

.jrn-margin__art {
	display: block;
	width: 100%;
	max-width: 14rem;
	border-radius: 3px;
}

.jrn-margin__head {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ink-soft);
	margin: 1rem 0 0.4rem;
}

.jrn-margin__nav {
	display: grid;
	gap: 0.35rem;
	font-size: 0.95rem;
}

/* ---- footer -------------------------------------------------------------- */

.jrn-foot {
	background: var(--ink);
	color: #e7e9ee;
	padding: 1.5rem 1rem 2rem;
}

.jrn-foot img {
	display: block;
	margin-bottom: 0.75rem;
}

.jrn-foot__note,
.jrn-foot__line {
	max-width: 68rem;
	margin: 0 auto 0.6rem;
	font-size: 0.85rem;
	line-height: 1.6;
}

.jrn-foot img {
	max-width: 68rem;
	margin-left: auto;
	margin-right: auto;
}

/* ---- age question -------------------------------------------------------- */

.jrn-check {
	max-width: 30rem;
	border: 1px solid var(--edge);
	border-top: 6px solid var(--gold);
	border-radius: 3px;
	background: var(--card);
	color: var(--ink);
	padding: 1.25rem;
}

.jrn-check::backdrop {
	background: rgba(14, 16, 21, 0.72);
}

.jrn-check__ask {
	margin: 0 0 0.6rem;
	font-size: 1.12rem;
	line-height: 1.3;
}

.jrn-check__body {
	margin: 0 0 1.1rem;
	font-size: 0.95rem;
}

.jrn-check__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0;
}

.jrn-check__yes,
.jrn-check__no {
	font: inherit;
	font-family: system-ui, "Segoe UI", sans-serif;
	font-size: 0.95rem;
	padding: 0.55rem 0.9rem;
	border-radius: 2px;
	cursor: pointer;
}

.jrn-check__yes {
	background: var(--gold);
	border: 1px solid #c9a406;
	color: #171a22;
}

.jrn-check__no {
	background: transparent;
	border: 1px solid var(--edge);
	color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
	.jrn-hop,
	.jrn-handoff__go,
	.jrn-check__yes {
		transition: filter 0.15s ease-in-out;
	}

	.jrn-hop:hover,
	.jrn-handoff__go:hover,
	.jrn-check__yes:hover {
		filter: brightness(1.07);
	}
}
