:root {
	color-scheme: light;
	--paper: #f6f2e8;
	--paper-strong: #ebe2d2;
	--ink: #181614;
	--muted: #6f685f;
	--line: #d9cfbd;
	--copper: #b06a2b;
	--teal: #2f6c63;
	--teal-strong: #204e48;
	--chip: #f0e5d2;
	--surface: rgba(255, 252, 247, 0.78);
	--shadow: 0 10px 30px rgba(24, 22, 20, 0.08);
	--radius: 18px;
}

* {
	box-sizing: border-box;
}

html {
	background: var(--paper);
}

body {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(
			circle at top left,
			rgba(176, 106, 43, 0.08),
			transparent 30%
		),
		linear-gradient(180deg, #fbf8f2 0%, var(--paper) 24%, #f2ebdf 100%);
	color: var(--ink);
	font-family:
		Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
		"Segoe UI", sans-serif;
}

button,
input,
select {
	font: inherit;
}

button,
input,
select,
.toggle-field {
	-webkit-tap-highlight-color: transparent;
}

.app-shell {
	width: min(100%, 56rem);
	margin: 0 auto;
	padding: 1rem 0.9rem 3rem;
}

.hero {
	padding: 1rem 0 0.65rem;
}

.hero__eyebrow {
	margin: 0 0 0.45rem;
	color: var(--copper);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hero h1 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 6vw, 3.6rem);
	line-height: 0.96;
	letter-spacing: -0.04em;
	max-width: 11ch;
}

.hero__dek {
	margin: 0.9rem 0 0;
	max-width: 38rem;
	color: var(--muted);
	font-size: 0.98rem;
	line-height: 1.5;
}

.hero__counts {
	display: flex;
	gap: 0.8rem;
	margin-top: 1rem;
}

.hero__count {
	min-width: 6.75rem;
	padding: 0.75rem 0.85rem;
	border: 1px solid rgba(176, 106, 43, 0.18);
	border-radius: 14px;
	background: rgba(255, 251, 244, 0.72);
	box-shadow: var(--shadow);
}

.hero__count-number {
	display: block;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 1.4rem;
	font-weight: 700;
}

.hero__count-label {
	display: block;
	margin-top: 0.2rem;
	color: var(--muted);
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.controls {
	position: sticky;
	top: 0;
	z-index: 10;
	margin-top: 1rem;
	padding: 0.95rem;
	border: 1px solid rgba(24, 22, 20, 0.08);
	border-radius: var(--radius);
	background: rgba(255, 252, 247, 0.92);
	backdrop-filter: blur(18px);
	box-shadow: var(--shadow);
}

.controls label {
	display: block;
}

.controls__toggle {
	display: none;
	list-style: none;
	width: 100%;
	min-height: 3rem;
	padding: 0.8rem 0.95rem;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.7);
	color: var(--ink);
	cursor: pointer;
	text-align: left;
}

.controls__toggle::-webkit-details-marker {
	display: none;
}

.controls__toggle-label,
.controls__toggle-summary {
	display: block;
}

.controls__toggle-label {
	font-weight: 600;
}

.controls__toggle-summary {
	margin-top: 0.2rem;
	color: var(--muted);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.controls__panel {
	margin-top: 0;
}

.controls span {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--muted);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.74rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.search-field input,
.filter-row select {
	width: 100%;
	min-height: 2.9rem;
	padding: 0.8rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.7);
	color: var(--ink);
}

.filter-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.7rem;
	margin-top: 0.75rem;
}

.toggle-field {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	min-height: 2.9rem;
	margin-top: 0.8rem;
	padding: 0.7rem 0.95rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
}

.toggle-field input {
	width: 1.1rem;
	height: 1.1rem;
	margin: 0;
	accent-color: var(--teal);
}

.toggle-field span {
	margin: 0;
	color: var(--ink);
	font-size: 0.86rem;
	letter-spacing: 0.02em;
	text-transform: none;
}

.status-panel {
	margin-top: 1rem;
}

#status-message {
	margin: 0;
	padding: 0.9rem 0.1rem 0.2rem;
	color: var(--muted);
	font-size: 0.95rem;
}

#sync-message {
	margin: 0;
	padding: 0 0.1rem 0.2rem;
	color: var(--copper);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.74rem;
	letter-spacing: 0.04em;
}

.schedule {
	margin-top: 0.35rem;
}

.day-group {
	margin-top: 1.6rem;
}

.day-group__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.8rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(24, 22, 20, 0.08);
}

.day-group__title {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.45rem;
	letter-spacing: -0.03em;
}

.day-group__count {
	color: var(--muted);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.session-list {
	position: relative;
	display: grid;
	gap: 0.9rem;
}

.session-list::before {
	content: "";
	position: absolute;
	top: 0.6rem;
	bottom: 0.6rem;
	left: 0.85rem;
	width: 1px;
	background: linear-gradient(
		180deg,
		rgba(176, 106, 43, 0.4),
		rgba(217, 207, 189, 0.5)
	);
}

.session {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.85rem;
	padding: 0.95rem 0.95rem 1rem 1.55rem;
	border: 1px solid rgba(24, 22, 20, 0.08);
	border-radius: var(--radius);
	background: rgba(255, 252, 247, 0.88);
	box-shadow: var(--shadow);
}

.session::before {
	content: "";
	position: absolute;
	top: 1.2rem;
	left: 0.55rem;
	width: 0.6rem;
	height: 0.6rem;
	border: 2px solid var(--copper);
	border-radius: 999px;
	background: var(--paper);
}

.session--interested {
	border-color: rgba(47, 108, 99, 0.35);
	box-shadow: 0 12px 26px rgba(47, 108, 99, 0.12);
}

.session--interested::before {
	border-color: var(--teal);
	background: var(--teal);
}

.session--not-interested {
	opacity: 0.72;
	border-style: dashed;
}

.session--not-interested::before {
	border-color: var(--muted);
	background: var(--paper);
}

.session__lead {
	min-width: 0;
}

.session__time {
	display: inline-block;
	margin-bottom: 0.55rem;
	color: var(--copper);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.session__title {
	margin: 0;
	font-size: 1.12rem;
	line-height: 1.2;
}

.session__speakers {
	margin: 0.45rem 0 0;
	color: var(--ink);
	font-size: 0.94rem;
}

.session__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.55rem;
	margin-top: 0.75rem;
}

.session__meta-item {
	padding: 0.28rem 0.52rem;
	border-radius: 999px;
	background: var(--chip);
	color: var(--muted);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.74rem;
}

.session__keywords {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.75rem;
}

.session__keyword {
	padding: 0.26rem 0.55rem;
	border: 1px solid rgba(176, 106, 43, 0.22);
	border-radius: 999px;
	color: var(--copper);
	font-size: 0.78rem;
}

.session__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.55rem;
}

.interest-button,
.skip-button,
.details-button {
	min-height: 2.75rem;
	padding: 0.7rem 0.95rem;
	border-radius: 999px;
	border: 1px solid transparent;
	cursor: pointer;
}

.interest-button {
	min-width: 7.4rem;
	background: var(--ink);
	color: #fff;
	font-weight: 600;
}

.interest-button[aria-pressed="true"] {
	background: var(--teal);
}

.skip-button {
	min-width: 7.4rem;
	background: #8f3d2e;
	color: #fff;
	font-weight: 600;
}

.skip-button[aria-pressed="true"] {
	background: #a24b38;
}

.details-button {
	align-self: flex-start;
	margin-top: 0.9rem;
	padding-inline: 0;
	min-height: auto;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--teal-strong);
	font-weight: 600;
}

.session__abstract {
	margin: 0.8rem 0 0;
	color: var(--muted);
	line-height: 1.55;
}

.session__abstract[hidden] {
	display: none;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
	outline: 3px solid rgba(47, 108, 99, 0.28);
	outline-offset: 2px;
}

@media (max-width: 39rem) {
	.controls {
		padding: 0.75rem;
	}

	.controls__toggle {
		display: block;
	}

	.controls__panel {
		display: none;
		margin-top: 0.8rem;
	}

	.controls[open] .controls__panel {
		display: block;
	}

	.filter-row {
		grid-template-columns: 1fr;
	}

	.session {
		grid-template-columns: 1fr;
	}

	.session__actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: stretch;
		gap: 0.75rem;
		width: 100%;
	}

	.session__actions button {
		width: 100%;
	}

	.details-button {
		margin-top: 0;
	}
}

@media (min-width: 40rem) {
	.app-shell {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	.controls {
		padding: 1rem 1.1rem;
	}

	.session {
		padding-right: 1.1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto;
		transition: none;
	}
}
