/* Timpanogos Storytelling Festival — dynamic schedule.
   Desktop: poster-style grid. Small screens: stacked timeline. */

/* Fonts from the printed schedule: the Archer family (from the mobile app's
   bundled fonts) plus Going Golden Bold for the title. Going Golden isn't
   hosted yet — drop the licensed file in as fonts/going_golden_bold.otf and
   the title upgrades automatically (falls back to Archer Bold until then). */

@font-face {
	font-family: 'Archer';
	src: url('fonts/archer_book.otf') format('opentype');
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: 'Archer';
	src: url('fonts/archer_book_ital.otf') format('opentype');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Archer';
	src: url('fonts/archer_medium.otf') format('opentype');
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: 'Archer';
	src: url('fonts/archer_semibold.otf') format('opentype');
	font-weight: 600;
	font-display: swap;
}

@font-face {
	font-family: 'Archer';
	src: url('fonts/archer_sembd_ital.otf') format('opentype');
	font-weight: 600;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Archer';
	src: url('fonts/archer_bold.otf') format('opentype');
	font-weight: 700;
	font-display: swap;
}

@font-face {
	font-family: 'Archer';
	src: url('fonts/archer_bold_ital.otf') format('opentype');
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Going Golden';
	src: url('fonts/going_golden_bold.otf') format('opentype');
	font-weight: 700;
	font-display: swap;
}

:root {
	--green-dark: #5a7a3f;
	--green-mid: #8fac63;
	--green-band: #a9bf7e;
	--green-pale: #e4ead2;
	--green-paler: #eff2e4;
	--ink: #2f3a26;
	--ink-soft: #55614a;
	--paper: #ffffff;
	--serif: 'Archer', Georgia, 'Times New Roman', serif;
	--sans: 'Archer', 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', system-ui, sans-serif;
	--bold: 'Archer', system-ui, sans-serif;
	--display: 'Going Golden', 'Archer', Georgia, serif;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0.75rem;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 14px;
	line-height: 1.35;
}

.loading {
	text-align: center;
	color: var(--ink-soft);
	padding: 3rem 0;
}

.title {
	font-family: var(--display);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-align: center;
	color: var(--green-dark);
	font-size: clamp(1.3rem, 4vw, 2.1rem);
	text-transform: uppercase;
	margin: 0.5rem 0 1rem;
}

.day-title {
	background: var(--green-mid);
	color: white;
	text-align: center;
	font-family: var(--bold);
	font-size: 0.95rem;
	letter-spacing: 0.12em;
	font-weight: 700;
	padding: 0.35rem 0.5rem;
	margin: 1.2rem 0 0;
}

.day:first-of-type .day-title {
	margin-top: 0;
}

/* ---------- Desktop grid ---------- */

.grid {
	display: grid;
	grid-template-columns: minmax(7.5rem, 9rem) repeat(var(--columns), 1fr);
	gap: 2px;
	background: var(--green-band);
	border: 2px solid var(--green-band);
	border-top: none;
}

.grid > * {
	background: var(--paper);
	padding: 0.45rem 0.55rem;
}

.corner {
	background: var(--paper);
}

.venue-header {
	text-align: center;
	padding-top: 0.55rem;
}

.venue-name {
	font-family: var(--bold);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.82rem;
}

.venue-sponsor {
	font-family: var(--serif);
	font-style: italic;
	font-size: 0.72rem;
	color: var(--ink-soft);
	margin-top: 0.15rem;
}

.time-cell {
	background: var(--green-paler);
	font-size: 0.78rem;
	font-variant: small-caps;
	letter-spacing: 0.03em;
	color: var(--ink);
	white-space: nowrap;
}

.cell {
	background: var(--green-pale);
	text-align: center;
	font-size: 0.82rem;
}

.cell-empty {
	background: var(--green-paler);
}

.session-venue {
	font-weight: 600;
	font-size: 0.78rem;
	margin-bottom: 0.15rem;
}

.performer {
	display: inline;
}

.performer-title,
.session-title {
	display: block;
	font-family: var(--serif);
	font-style: italic;
	font-weight: 600;
	font-size: 0.78rem;
	color: var(--ink-soft);
	margin-top: 0.1rem;
}

.session-note {
	font-size: 0.74rem;
	color: var(--ink-soft);
	margin-top: 0.1rem;
}

.session-sponsor {
	font-family: var(--serif);
	font-style: italic;
	font-size: 0.74rem;
	color: var(--ink-soft);
	margin-top: 0.2rem;
}

.asl {
	margin-top: 0.1rem;
}

/* Thin full-width band rows (Doors Open, Lunch Break, Autographs…) */
.band {
	background: var(--paper);
	display: flex;
	align-items: baseline;
	gap: 1rem;
	flex-wrap: wrap;
	font-size: 0.8rem;
	padding: 0.35rem 0.55rem;
}

.band-time {
	font-variant: small-caps;
	white-space: nowrap;
	font-size: 0.78rem;
	min-width: 6.5rem;
}

.band-name {
	font-family: var(--bold);
	font-weight: 700;
	letter-spacing: 0.05em;
}

.band-part {
	color: var(--ink);
}

/* Feature rows (evening events) */
.feature {
	background: var(--green-pale);
	display: grid;
	grid-template-columns: 12rem 1fr 10rem;
	gap: 1rem;
	align-items: center;
	padding: 0.55rem 0.7rem;
}

.feature-name {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--ink);
}

.feature-venue {
	font-family: var(--bold);
	font-weight: 700;
	font-size: 0.82rem;
}

.feature-times {
	font-variant: small-caps;
	font-size: 0.75rem;
	color: var(--ink-soft);
	margin-top: 0.15rem;
}

.feature-middle {
	text-align: left;
}

.feature-middle .session {
	margin: 0.15rem 0;
}

.feature-preshow {
	font-size: 0.8rem;
}

.feature-sponsor {
	font-family: var(--serif);
	font-style: italic;
	font-size: 0.78rem;
	text-align: right;
	color: var(--ink-soft);
}

.footnotes {
	text-align: center;
	color: var(--ink-soft);
	font-size: 0.78rem;
	margin: 1rem 0 0.5rem;
}

/* ---------- Mobile stacked timeline ---------- */

.day-list {
	display: none;
}

@media (max-width: 720px) {
	.grid {
		display: none;
	}

	.day-list {
		display: block;
		border: 1px solid var(--green-band);
		border-top: none;
	}

	.list-event {
		padding: 0.6rem 0.7rem;
		border-bottom: 1px solid var(--green-pale);
	}

	.list-event:nth-child(even) {
		background: var(--green-paler);
	}

	.list-head {
		display: flex;
		gap: 0.7rem;
		align-items: baseline;
		flex-wrap: wrap;
	}

	.list-time {
		font-variant: small-caps;
		font-size: 0.85rem;
		font-weight: 600;
		white-space: nowrap;
	}

	.list-name {
		font-family: var(--bold);
		font-weight: 700;
		letter-spacing: 0.04em;
		font-size: 0.85rem;
	}

	.list-doors {
		font-size: 0.78rem;
		color: var(--ink-soft);
	}

	.list-location {
		margin: 0.4rem 0 0 0.5rem;
		padding-left: 0.6rem;
		border-left: 3px solid var(--green-band);
	}

	.list-location .session {
		text-align: left;
	}
}

/* ---------- Print ---------- */

@media print {
	body {
		padding: 0;
		font-size: 11px;
	}

	.day {
		break-inside: avoid;
	}

	.day-list {
		display: none;
	}

	.grid {
		display: grid;
	}
}
