:root {
	color-scheme: light;
	--bg: #edf8ff;
	--surface: rgba(255, 255, 255, 0.84);
	--surface-2: #dff6ff;
	--line: rgba(48, 92, 132, 0.18);
	--text: #182643;
	--muted: #52677f;
	--soft: #7f93aa;
	--sky: #63c8f4;
	--cyan: #37d6e8;
	--navy: #243657;
	--coral: #ff8f9d;
	--sun: #fff5c8;
	--shadow: rgba(36, 54, 87, 0.14);
	font-family:
		Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	min-width: 320px;
	margin: 0;
	background:
		radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.92) 0 10%, transparent 22%),
		radial-gradient(circle at 84% 6%, rgba(55, 214, 232, 0.28) 0 9%, transparent 24%),
		linear-gradient(180deg, #d7f4ff 0%, var(--bg) 42%, #f8fcff 100%);
	color: var(--text);
}

a {
	color: inherit;
	text-decoration: none;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px clamp(18px, 4vw, 56px);
	border-bottom: 1px solid var(--line);
	background: rgba(248, 252, 255, 0.82);
	backdrop-filter: blur(18px);
}

.brand,
.topnav,
.hero-actions,
.status-band,
.entry,
.project-list a,
.compose-shell,
.topic-states {
	display: flex;
	align-items: center;
}

.brand {
	gap: 10px;
	font-weight: 720;
}

.brand-mark,
.entry-icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
}

.brand-mark {
	width: 28px;
	height: 28px;
	border: 1px solid rgba(55, 214, 232, 0.72);
	background: linear-gradient(135deg, #ffffff, #c8f5ff);
	color: var(--navy);
	box-shadow: 0 8px 24px rgba(55, 214, 232, 0.28);
}

.topnav {
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 4px;
	font-size: 14px;
	color: var(--muted);
}

.topnav a {
	padding: 8px 10px;
	border-radius: 6px;
}

.topnav a:hover,
.topnav a:focus-visible {
	background: rgba(55, 214, 232, 0.14);
	color: var(--text);
	outline: none;
}

.hero {
	position: relative;
	min-height: 620px;
	overflow: hidden;
	display: grid;
	align-items: center;
	padding: clamp(72px, 10vw, 132px) clamp(18px, 4vw, 56px);
	border-bottom: 1px solid var(--line);
	background: #dff6ff;
}

.hero-image,
.hero-shade {
	position: absolute;
	inset: 0;
}

.hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 58% center;
	filter: saturate(1.14) contrast(0.96) brightness(1.08);
}

.hero-shade {
	background:
		linear-gradient(90deg, rgba(235, 248, 255, 0.98) 0%, rgba(235, 248, 255, 0.86) 38%, rgba(235, 248, 255, 0.28) 76%),
		linear-gradient(0deg, rgba(255, 255, 255, 0.18), rgba(99, 200, 244, 0.08));
}

.hero-content {
	position: relative;
	max-width: 720px;
}

.eyebrow {
	margin: 0 0 12px;
	color: #087e9b;
	font-size: 12px;
	font-weight: 780;
	letter-spacing: 0;
	text-transform: uppercase;
}

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

h1 {
	margin-bottom: 18px;
	font-size: clamp(48px, 9vw, 104px);
	line-height: 0.95;
	letter-spacing: 0;
}

h2 {
	margin-bottom: 12px;
	font-size: 26px;
	line-height: 1.15;
	letter-spacing: 0;
}

.hero-copy {
	max-width: 620px;
	color: #354c68;
	font-size: 18px;
	line-height: 1.75;
}

.hero-actions {
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.primary-action,
.secondary-action {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 6px;
	font-weight: 720;
}

.primary-action {
	background: linear-gradient(135deg, var(--navy), #246f9a);
	color: #ffffff;
	box-shadow: 0 14px 28px rgba(36, 54, 87, 0.24);
}

.secondary-action {
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.72);
	color: var(--text);
}

.status-band {
	justify-content: space-between;
	gap: 18px;
	padding: 18px clamp(18px, 4vw, 56px);
	border-bottom: 1px solid var(--line);
	background: rgba(218, 246, 255, 0.78);
	color: var(--muted);
}

.status-band div {
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

.status-band p {
	margin: 0;
	line-height: 1.6;
}

.status-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: var(--cyan);
	box-shadow: 0 0 20px rgba(55, 214, 232, 0.72);
}

.status-label {
	color: var(--text);
	font-weight: 720;
}

.section-grid,
.content-columns,
.boundary,
.plaza-page {
	width: min(1180px, calc(100% - 36px));
	margin: 0 auto;
}

.section-grid {
	display: grid;
	grid-template-columns: minmax(180px, 0.28fr) 1fr;
	gap: 34px;
	padding: 70px 0 30px;
}

.section-heading {
	position: sticky;
	top: 88px;
	align-self: start;
}

.entry-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.entry {
	min-height: 122px;
	gap: 16px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
	box-shadow: 0 12px 30px var(--shadow);
	backdrop-filter: blur(12px);
}

.entry:hover,
.entry:focus-visible,
.project-list a:hover,
.project-list a:focus-visible {
	border-color: rgba(55, 214, 232, 0.72);
	outline: none;
	transform: translateY(-1px);
}

.entry-icon {
	width: 40px;
	height: 40px;
	border: 1px solid rgba(55, 214, 232, 0.4);
	border-radius: 6px;
	background: linear-gradient(160deg, #ffffff, var(--surface-2));
	color: #106d90;
	font-weight: 780;
}

.entry strong,
.project-list strong {
	display: block;
	margin-bottom: 7px;
}

.entry small,
.project-list span,
.activity-list p,
.boundary p,
.plaza-header p,
.topic p {
	color: var(--muted);
	line-height: 1.65;
}

.protected .entry-icon {
	border-color: rgba(255, 143, 157, 0.48);
	background: linear-gradient(160deg, #ffffff, #ffe6ec);
	color: #ba5264;
}

.content-columns {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
	gap: 18px;
	padding: 28px 0 46px;
}

.blog-summary {
	grid-column: 1 / -1;
}

.panel,
.boundary,
.plaza-header,
.feed-shell {
	border-top: 1px solid var(--line);
	padding-top: 24px;
}

.activity-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.compact-list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.activity-list li,
.topic {
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
	box-shadow: 0 10px 26px var(--shadow);
}

.activity-type {
	display: inline-block;
	margin-bottom: 10px;
	color: #d85770;
	font-size: 12px;
	font-weight: 780;
}

.activity-list p,
.topic p {
	margin: 8px 0 0;
}

.activity-list a {
	display: inline-flex;
	margin-top: 12px;
	color: #106d90;
	font-weight: 720;
}

.activity-meta,
.summary-source {
	display: block;
	margin-top: 10px;
	color: var(--soft);
	font-size: 13px;
	line-height: 1.5;
}

.summary-source {
	margin-bottom: 14px;
}

.project-list {
	display: grid;
	gap: 10px;
}

.project-list a {
	justify-content: space-between;
	gap: 16px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
	box-shadow: 0 10px 26px var(--shadow);
}

.boundary {
	padding-bottom: 78px;
}

.boundary p {
	max-width: 780px;
}

.plaza-page {
	padding: 78px 0;
}

.plaza-page::before {
	position: fixed;
	inset: 72px 0 auto;
	z-index: -1;
	height: 260px;
	background:
		linear-gradient(135deg, rgba(99, 200, 244, 0.28), rgba(255, 143, 157, 0.12)),
		linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent);
	content: "";
}

.plaza-header {
	max-width: 780px;
}

.plaza-header h1 {
	font-size: clamp(38px, 7vw, 72px);
}

.topic-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 28px 0;
}

.topic-tools button {
	min-height: 38px;
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 0 12px;
	background: var(--surface);
	color: var(--muted);
	font: inherit;
	cursor: pointer;
}

.topic-tools button[aria-pressed="true"] {
	border-color: rgba(55, 214, 232, 0.72);
	background: #dbf8ff;
	color: var(--navy);
}

.feed-shell {
	display: grid;
	gap: 12px;
}

.topic {
	display: flex;
	justify-content: space-between;
	gap: 18px;
}

.topic h2 {
	margin-bottom: 0;
	font-size: 20px;
}

.topic h2 a:hover,
.topic h2 a:focus-visible,
.state-actions a:hover,
.state-actions a:focus-visible,
.back-link:hover,
.back-link:focus-visible {
	color: #087e9b;
	outline: none;
}

.topic-meta {
	flex: 0 0 auto;
	color: var(--soft);
	font-size: 14px;
}

.compose-shell {
	justify-content: space-between;
	gap: 18px;
	margin: 22px 0;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.72);
	box-shadow: 0 10px 26px var(--shadow);
}

.compose-form {
	align-items: stretch;
	display: grid;
	grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr) auto;
}

.compose-fields {
	display: grid;
	gap: 12px;
}

.compose-fields label {
	display: grid;
	gap: 6px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 720;
}

.compose-fields input,
.compose-fields select,
.compose-fields textarea {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 10px 12px;
	background: rgba(255, 255, 255, 0.86);
	color: var(--text);
	font: inherit;
}

.compose-fields textarea {
	resize: vertical;
}

.compose-fields input:focus,
.compose-fields select:focus,
.compose-fields textarea:focus {
	border-color: rgba(55, 214, 232, 0.78);
	outline: none;
	box-shadow: 0 0 0 3px rgba(55, 214, 232, 0.14);
}

.compose-shell p {
	margin: 6px 0 0;
	color: var(--muted);
	line-height: 1.6;
}

.compose-shell button {
	flex: 0 0 auto;
	min-height: 38px;
	border: 1px solid rgba(255, 143, 157, 0.42);
	border-radius: 6px;
	padding: 0 12px;
	background: #ffeaf0;
	color: #ba5264;
	font: inherit;
	font-weight: 720;
}

.compose-form button[type="submit"] {
	align-self: start;
	border-color: rgba(55, 214, 232, 0.52);
	background: #dbf8ff;
	color: var(--navy);
	cursor: pointer;
}

.compose-form button[type="submit"]:disabled {
	cursor: wait;
	opacity: 0.62;
}

.turnstile-slot {
	min-height: 65px;
}

.compose-status {
	min-height: 22px;
	font-size: 14px;
	font-weight: 720;
}

.compose-status[data-tone="success"] {
	color: #087e9b;
}

.compose-status[data-tone="error"] {
	color: #ba5264;
}

.back-link {
	display: inline-flex;
	margin-bottom: 18px;
	color: #106d90;
	font-weight: 720;
}

.topic-detail-card,
.reply-card {
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
	box-shadow: 0 10px 26px var(--shadow);
}

.topic-detail-card h1 {
	margin-bottom: 14px;
	font-size: clamp(34px, 6vw, 64px);
	line-height: 1.02;
}

.topic-detail-card p,
.reply-card p {
	color: var(--muted);
	font-size: 17px;
	line-height: 1.75;
}

.topic-states {
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.state-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.state-actions a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 0 12px;
	background: rgba(255, 255, 255, 0.76);
	color: #106d90;
	font-weight: 720;
}

.state-pill {
	display: inline-flex;
	min-height: 28px;
	align-items: center;
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 0 9px;
	background: #e7f9ff;
	color: #106d90;
	font-size: 13px;
	font-weight: 720;
}

.reply-panel {
	margin-top: 34px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.reply-list {
	display: grid;
	gap: 12px;
}

.muted {
	opacity: 0.78;
}

@media (max-width: 760px) {
	.topbar,
	.status-band,
	.topic,
	.compose-shell {
		align-items: flex-start;
		flex-direction: column;
	}

	.compose-form {
		grid-template-columns: 1fr;
	}

	.topnav {
		justify-content: flex-start;
	}

	.hero {
		min-height: 560px;
	}

	.hero-shade {
		background: linear-gradient(90deg, rgba(235, 248, 255, 0.98) 0%, rgba(235, 248, 255, 0.9) 72%, rgba(235, 248, 255, 0.5));
	}

	.section-grid,
	.content-columns,
	.entry-grid,
	.compact-list {
		grid-template-columns: 1fr;
	}

	.section-heading {
		position: static;
	}
}
