/* ==========================================================================
   Archives frame — LJDR brand
   Museum-plaque header sitting above an iframed exhibit. The corner
   brackets on the logo mark are the one signature flourish: a nod to
   "framing" an archived site, echoed faintly in the dropdown card.
   ========================================================================== */

:root {
	--navy: #020c3a;
	--navy-raised: #0c1a5c;
	--blue: #0f8bff;
	--blue-soft: rgba(15, 139, 255, 0.14);
	--blue-border: rgba(15, 139, 255, 0.3);
	--blue-glow: rgba(15, 139, 255, 0.08);
	--ink: #eef2ff;
	--ink-muted: #8b93bd;
	--border: rgba(255, 255, 255, 0.09);
	--header-height: 60px;
}

* {
	box-sizing: border-box;
}

html, body {
	height: 100%;
}

body {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-family: 'Rubik', 'Helvetica', Arial, sans-serif;
	background: var(--navy);
	color: var(--ink);
}

/* ---- Header ------------------------------------------------------------ */

header {
	flex: 0 0 auto;
	height: var(--header-height);
	display: flex;
	align-items: center;
	background: var(--navy);
	border-bottom: 1px solid var(--border);
	box-shadow: 0 1px 0 var(--blue-glow);
	position: relative;
	z-index: 30;
	padding: 0 16px;
	gap: 8px;
}

/* Logo mark: small corner brackets, like a viewfinder framing the icon */
#logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--ink);
	padding-right: 16px;
	margin-right: 8px;
	border-right: 1px solid var(--border);
	height: 100%;
	flex: 0 0 auto;
}

#logo .mark {
	position: relative;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#logo .mark::before,
#logo .mark::after {
	content: "";
	position: absolute;
	width: 8px;
	height: 8px;
	border: 1.4px solid var(--blue);
	opacity: 0.85;
	transition: opacity 150ms ease;
}

#logo .mark::before {
	top: -3px;
	left: -3px;
	border-right: none;
	border-bottom: none;
}

#logo .mark::after {
	bottom: -3px;
	right: -3px;
	border-left: none;
	border-top: none;
}

#logo:hover .mark::before,
#logo:hover .mark::after {
	opacity: 1;
	border-color: #fff;
}

#logo .mark img {
	width: 20px;
	height: 20px;
	border-radius: 3px;
	object-fit: cover;
}

#logo .wordmark {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

/* ---- Archive selector / dropdown ---------------------------------------- */

.archive-select {
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
}

.archive-select button#current {
	appearance: none;
	background: transparent;
	border: 1px solid transparent;
	color: var(--ink);
	font-family: inherit;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 12px;
	border-radius: 7px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: background 150ms ease, border-color 150ms ease;
}

.archive-select button#current:hover,
.archive-select.open button#current {
	background: var(--blue-soft);
	border-color: var(--blue-border);
}

.archive-select .name {
	color: var(--ink);
}

.archive-select .tag {
	font-family: 'Muli', 'Helvetica', Arial, sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--blue);
	background: var(--blue-soft);
	border: 1px solid var(--blue-border);
	border-radius: 4px;
	padding: 2px 6px;
}

.chevron {
	color: var(--ink-muted);
	transition: transform 150ms ease;
}

.archive-select.open .chevron {
	transform: rotate(180deg);
	color: var(--blue);
}

.dropdown {
	list-style: none;
	margin: 0;
	padding: 6px;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 260px;
	background: var(--navy-raised);
	border: 1px solid var(--border);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--blue-glow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
}

.archive-select.open .dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown li {
	list-style: none;
}

.dropdown li a,
.dropdown li.empty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 10px;
	border-radius: 6px;
	text-decoration: none;
	color: var(--ink);
	font-size: 13px;
	font-weight: 500;
}

.dropdown li a:hover {
	background: var(--blue-soft);
}

.dropdown li a .name {
	color: var(--ink);
}

.dropdown li a .tag,
.dropdown li.empty .tag {
	font-family: 'Muli', 'Helvetica', Arial, sans-serif;
	font-size: 10px;
	font-weight: 600;
	color: var(--ink-muted);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 2px 6px;
}

.dropdown li.empty {
	color: var(--ink-muted);
	cursor: default;
}

.dropdown li.empty .name {
	color: var(--ink-muted);
	font-style: italic;
}

/* ---- Share / tweet buttons ---------------------------------------------- */

.options {
	list-style: none;
	margin: 0 0 0 auto;
	padding: 0;
	display: flex;
	gap: 8px;
}

.options li {
	display: flex;
}

.share-btn {
	display: flex;
	align-items: center;
	gap: 7px;
	text-decoration: none;
	color: var(--ink-muted);
	border: 1px solid var(--border);
	border-radius: 7px;
	padding: 7px 12px;
	font-family: 'Muli', 'Helvetica', Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.share-btn svg {
	flex: 0 0 auto;
}

.share-btn:hover {
	color: #fff;
	background: var(--blue);
	border-color: var(--blue);
}

/* ---- Iframe -------------------------------------------------------------- */

iframe#iframe {
	flex: 1 1 auto;
	width: 100%;
	border: 0;
	background: #fff;
}

/* ---- Footer -------------------------------------------------------------- */

.frame-footer {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 32px;
	padding: 0 16px;
	background: var(--navy);
	border-top: 1px solid var(--border);
	font-family: 'Muli', 'Helvetica', Arial, sans-serif;
	font-size: 11px;
	color: var(--ink-muted);
}

.frame-footer-links {
	display: flex;
	gap: 14px;
	flex: 0 0 auto;
}

.frame-footer a {
	color: var(--ink-muted);
	text-decoration: none;
}

.frame-footer a:hover {
	color: var(--ink);
}

/* ---- Responsive ----------------------------------------------------------- */

@media screen and (max-width: 720px) {
	.archive-select .tag {
		display: none;
	}
	.share-btn span {
		display: none;
	}
	.share-btn {
		padding: 8px;
	}
}

@media screen and (max-width: 480px) {
	header {
		padding: 0 10px;
		gap: 4px;
	}
	#logo {
		padding-right: 10px;
		margin-right: 4px;
	}
	#logo .wordmark {
		display: none;
	}
	.frame-footer .copyright {
		display: none;
	}
	.frame-footer {
		justify-content: center;
		padding: 0 10px;
	}
	.dropdown {
		min-width: 220px;
	}
}
