/* VenueSeatMaps, concept C "Ticket" (newSAAS/venueseatmaps-design/DECISIONS.md).
   Light and dark follow the device; the dark values come from project/C-dark-map.json of the design folder. */

@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 400 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("../fonts/archivo-latin-var.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	color-scheme: light dark;
	--ground: #eceef2;
	--paper: #ffffff;
	--soft: #f2f3f6;
	--ink: #14161b;
	--muted: #535865;
	--line: #c9cdd5;
	--edge: #14161a;
	--slab: #14161c;
	--slab-2: #2b3038;
	--slab-ink: #fafbfc;
	--slab-muted: #c9cdd5;
	--accent: #ff6a2b;
	--on-accent: #14161b;
	--link: #b33d0b;
	--sun: #ffc23d;
	--grass: #5a8f52;
	--radius: 8px;
	--gutter: 16px;
	--measure: 68ch;
	font-family: "Archivo", system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.5;
	color: var(--ink);
	background: var(--ground);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ground: #0e1014;
		--paper: #1a1d23;
		--soft: #22262d;
		--ink: #eef0f4;
		--muted: #a9afba;
		--line: #3a3f48;
		--edge: #8a909b;
		--slab: #2a2e36;
		--slab-2: #5a616d;
		--slab-muted: #c9cdd5;
		--accent: #ff7a3f;
		--link: #ff9a6b;
		--sun: #e6a92a;
		--grass: #41703b;
	}
}

/* Manual choice from the header button (data-theme on <html>) wins over the system setting */
:root[data-theme="dark"] {
	color-scheme: dark;
	--ground: #0e1014;
	--paper: #1a1d23;
	--soft: #22262d;
	--ink: #eef0f4;
	--muted: #a9afba;
	--line: #3a3f48;
	--edge: #8a909b;
	--slab: #2a2e36;
	--slab-2: #5a616d;
	--slab-muted: #c9cdd5;
	--accent: #ff7a3f;
	--link: #ff9a6b;
	--sun: #e6a92a;
	--grass: #41703b;
}
:root[data-theme="light"] { color-scheme: light; }

@media (min-width: 720px) {
	:root { --gutter: 32px; }
}

@media (min-width: 1200px) {
	:root { --gutter: 64px; }
}

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

body {
	margin: 0;
	background: var(--ground);
	font-variant-numeric: tabular-nums;
}

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

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

::selection { background: var(--accent); color: var(--on-accent); }

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

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

h1,
h2,
h3 { line-height: 1.1; text-wrap: balance; margin: 0; }

p { margin: 0; text-wrap: pretty; }

.wrap {
	width: 100%;
	max-width: calc(1312px + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.skip-link {
	position: absolute;
	left: 8px;
	top: -100px;
	z-index: 10;
	padding: 10px 14px;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 700;
	border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

/* Header slab */
.site-header { background: var(--slab); color: var(--slab-ink); }
.site-header .wrap { display: flex; align-items: center; min-height: 64px; gap: 24px; }
.brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--slab-ink);
	text-decoration: none;
	font-weight: 800;
	font-stretch: 68%;
	font-size: 26px;
	line-height: 1;
	letter-spacing: -0.005em;
	white-space: nowrap;
}
.brand:hover { color: var(--slab-ink); }
.brand .mark { width: 34px; height: 34px; flex: none; }
@media (min-width: 720px) {
	.brand { font-size: 34px; gap: 10px; }
	.brand .mark { width: 46px; height: 46px; }
	.site-header .wrap { min-height: 76px; }
}

/* Menu of venue groups: a second row on the phone, beside the name from 720 px */
.site-header .wrap { flex-wrap: wrap; row-gap: 0; }
.site-nav { flex: 1 1 100%; margin: 0 0 4px; }
.site-nav ul { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.site-nav a {
	display: flex;
	align-items: center;
	min-height: 44px;
	border-bottom: 4px solid transparent;
	color: var(--slab-ink);
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.site-nav a:hover { border-bottom-color: var(--slab-muted); color: var(--slab-ink); }
.site-nav a[aria-current] { border-bottom-color: var(--accent); }
/* Light/dark switch: right of the name on the phone, after the menu from 720 px */
.theme-btn {
	order: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	margin: 0 0 0 auto;
	padding: 0;
	border: 2px solid var(--slab-2);
	border-radius: 50%;
	background: transparent;
	color: var(--slab-ink);
	cursor: pointer;
}
.theme-btn:hover { border-color: var(--slab-muted); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-btn .sun { display: none; }
	:root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
.site-nav { order: 2; }
@media (min-width: 720px) {
	.theme-btn { order: 3; margin: 0; }
	.site-header .wrap { flex-wrap: nowrap; }
	.site-nav { flex: 0 1 auto; margin: 0 0 0 auto; }
	.site-nav ul { gap: 28px; }
	.site-nav a { min-height: 76px; padding-top: 4px; font-size: 17px; }
}

/* Venue cards on the home page and the group pages */
.hub-main { padding: 28px 0 48px; }
.hub-group + .hub-group { margin-top: 40px; }
.hub-group h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.15; font-weight: 900; }
.hub-group h2 a { color: var(--ink); text-decoration: none; }
.hub-group h2 a:hover { color: var(--link); }
.venue-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.venue-list a {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 12px;
	padding: 14px 16px 12px;
	border: 2px solid var(--edge);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
	text-decoration: none;
}
.venue-list a:hover { background: var(--soft); }
.venue-list .v-name { font-size: 20px; line-height: 25px; font-weight: 800; color: var(--link); }
.venue-list .v-count { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 15px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.venue-list .v-meta { font-size: 15px; line-height: 21px; color: var(--muted); }
.hub-copy { margin-top: 32px; }
@media (min-width: 720px) {
	.venue-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1100px) {
	.venue-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Page head: the slab continues under the header and carries the H1 */
.page-head { background: var(--slab); color: var(--slab-ink); padding: 8px 0 28px; }
.page-head .display {
	font-weight: 900;
	font-size: clamp(2.35rem, 1.6rem + 3.4vw, 3.6rem);
	line-height: 1;
	letter-spacing: -0.02em;
	max-width: 18ch;
}
.page-head .lead { margin-top: 14px; max-width: 60ch; color: var(--slab-muted); font-size: 17px; line-height: 1.45; }
.crumbs { margin: 0 0 14px; font-size: 15px; }
.crumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.crumbs a { color: var(--slab-ink); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--slab-muted); }
.crumbs [aria-current] { color: var(--slab-muted); }

/* Copy */
.page-main { padding: 40px 0 64px; }
.copy > * + * { margin-top: 18px; }
.copy :is(p, ul, ol) { max-width: var(--measure); }
.copy h2 { margin-top: 48px; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); font-weight: 800; letter-spacing: -0.015em; }
.copy h3 { margin-top: 32px; font-size: 1.25rem; font-weight: 700; }
.copy h2 + *,
.copy h3 + * { margin-top: 12px; }
.copy ul,
.copy ol { padding-left: 1.2em; }
.copy li + li { margin-top: 6px; }

/* Footer slab */
.site-footer { background: var(--slab); color: var(--slab-ink); padding: 36px 0 44px; margin-top: 0; }
.site-footer .wrap { display: grid; gap: 20px; }
.site-footer .name { font-weight: 800; font-stretch: 68%; font-size: 28px; line-height: 1; }
.site-footer .note { margin-top: 10px; max-width: 70ch; color: var(--slab-muted); font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--slab-ink); font-weight: 600; }
.site-footer .credits { color: var(--slab-muted); font-size: 14px; line-height: 1.5; max-width: 110ch; }
@media (min-width: 720px) {
	.site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; }
	.site-footer .credits { grid-column: 1 / -1; }
}
