@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
	color-scheme: light;
	--ink: #172320;
	--muted: #687671;
	--green: #146b56;
	--line: #e1e8e4;
	--paper: #f4f7f5;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
	margin: 0;
	color: var(--ink);
	font-family: 'DM Sans', sans-serif;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-header, .site-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(1160px, calc(100% - 48px));
	margin: 0 auto;
}

.site-header { height: 76px; }

.header-location {
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.brand {
	font-family: 'Manrope', sans-serif;
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -1px;
	text-decoration: none;
}

.brand span { color: #dc8156; }

.archive-link, .site-footer a {
	color: var(--green);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.archive-link:hover, .site-footer a:hover { text-decoration: underline; }

.page-content { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.intro { padding: 46px 0 30px; }

.eyebrow {
	margin: 0 0 10px;
	color: var(--green);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1, h2 { font-family: 'Manrope', sans-serif; letter-spacing: -.045em; }

h1 { margin-bottom: 9px; font-size: clamp(34px, 5vw, 54px); line-height: 1.1; }

.intro-copy { margin-bottom: 0; color: var(--muted); font-size: 16px; }

.camera-card {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 38px rgba(29, 55, 45, .055);
}

.camera-heading, .section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 0 2px 18px;
}

.camera-heading .eyebrow, .section-heading .eyebrow { margin-bottom: 5px; }

h2 { margin-bottom: 0; font-size: 22px; }

.latest-time { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 12px; }

.latest-time time { color: var(--ink); font-weight: 700; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #56a982; box-shadow: 0 0 0 4px #e6f3ec; }

.image-stage { position: relative; overflow: hidden; border-radius: 10px; background: #e7edea; }

.image-stage img { display: block; width: 100%; max-height: 72vh; min-height: 220px; object-fit: contain; }

.expand-link {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 1px solid rgba(255,255,255,.55);
	border-radius: 9px;
	background: rgba(18, 31, 28, .68);
	color: #fff;
	cursor: pointer;
	font-size: 23px;
	line-height: 1;
}

.image-dialog {
	position: relative;
	width: min(1100px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100vh - 32px);
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: 14px;
	background: #101916;
	color: #fff;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
}

.image-dialog::backdrop { background: rgba(6, 13, 11, .84); }

.image-dialog img {
	display: block;
	width: 100%;
	max-height: calc(100vh - 104px);
	border-radius: 8px;
	object-fit: contain;
}

.image-dialog p { margin: 12px 2px 0; color: #c6d2cd; font-size: 12px; }

.dialog-close {
	position: absolute;
	top: 26px;
	right: 26px;
	z-index: 1;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 50%;
	background: rgba(18, 31, 28, .82);
	color: #fff;
	cursor: pointer;
	font-size: 26px;
	line-height: 1;
}

@media (max-width: 640px) {
	.image-dialog { padding: 10px; }
	.dialog-close { top: 17px; right: 17px; }
}

.player { padding: 18px 2px 0; }

.player-controls { display: grid; grid-template-columns: 42px auto minmax(100px, 1fr) auto; align-items: center; gap: 14px; }

.play-button {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--green);
	color: white;
	cursor: pointer;
	font-size: 14px;
}

.play-button:hover { background: #0d5141; }

.range-label { color: var(--muted); font-size: 12px; font-weight: 600; }

input[type="range"] { width: 100%; accent-color: var(--green); cursor: pointer; }

.player-controls output { min-width: 66px; color: var(--muted); font-size: 12px; text-align: right; }

.player-hint { margin: 10px 0 0 56px; color: var(--muted); font-size: 12px; }

.empty-state { padding: 70px 20px; border-radius: 10px; background: var(--paper); color: var(--muted); text-align: center; }

.other-cameras { padding: 52px 0 66px; }

.section-heading { padding: 0 0 18px; }

.camera-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }

.camera-link {
	position: relative;
	display: flex;
	min-height: 112px;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding: 18px 42px 18px 18px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	text-decoration: none;
	transition: border-color .15s ease, transform .15s ease;
}

.camera-link:hover { transform: translateY(-2px); border-color: #91b9a9; }

.camera-link > span:first-child { color: var(--muted); font-size: 12px; }

.camera-link strong { font-family: 'Manrope', sans-serif; font-size: 14px; line-height: 1.35; }

.link-arrow { position: absolute; top: 18px; right: 17px; color: var(--green); }

.site-footer { min-height: 66px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 640px) {
	.site-header, .site-footer, .page-content { width: min(100% - 28px, 1160px); }
	.site-header { height: 62px; }
	.intro { padding: 32px 0 22px; }
	.camera-card { padding: 15px; border-radius: 13px; }
	.camera-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
	.latest-time { font-size: 11px; }
	.image-stage img { min-height: 190px; }
	.player-controls { grid-template-columns: 42px 1fr auto; gap: 10px; }
	.range-label { grid-column: 2 / 4; grid-row: 1; }
	.play-button { grid-column: 1; grid-row: 1 / 3; }
	.player-controls input { grid-column: 2; grid-row: 2; }
	.player-controls output { grid-column: 3; grid-row: 2; }
	.player-hint { margin-left: 0; line-height: 1.5; }
	.other-cameras { padding: 38px 0 46px; }
	.camera-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
	.camera-link { min-height: 105px; padding: 14px 30px 14px 13px; }
	.camera-link strong { font-size: 12px; }
	.link-arrow { top: 13px; right: 12px; }
}

@media (max-width: 380px) {
	.archive-link { font-size: 11px; }
	.camera-grid { grid-template-columns: 1fr; }
}
