/* The Anarchs Panel, in the design the other sites share (the forum's dark neutrals, The Anarchs red,
   Oswald titles, Inter text). Hand-written because the panel has no build step; the values follow the
   Tailwind theme in apps/rooms/resources/css/app.css. */

@font-face { font-family: Oswald; font-weight: 500; font-display: swap; src: url('fonts/oswald-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Oswald; font-weight: 500; font-display: swap; src: url('fonts/oswald-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Variable'; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Variable'; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--brand-300: #ff9d9d;
	--brand-400: #ff5f5f;
	--brand-500: #f12b2b;
	--brand-600: #d10d0d;
	--ink-100: #ececee;
	--ink-200: #d6d6da;
	--ink-300: #b3b3ba;
	--ink-400: #a0a0aa;
	--ink-500: #94949e;
	--ink-700: #393940;
	--ink-800: #26262b;
	--ink-850: #1d1d21;
	--ink-900: #161619;
	--ink-950: #0d0d0f;
	--shadow-card: 0 1px 0 0 rgb(255 255 255 / .03) inset, 0 1px 2px 0 rgb(0 0 0 / .25);
	color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--ink-950); }

body {
	margin: 0;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: radial-gradient(90rem 30rem at 50% -12rem, rgb(209 13 13 / .12), transparent 70%), var(--ink-950);
	color: var(--ink-200);
	font: 15px/1.6 'Inter Variable', ui-sans-serif, system-ui, sans-serif;
	font-feature-settings: 'cv11', 'ss01';
	-webkit-font-smoothing: antialiased;
}

::selection { background: var(--brand-600); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }

h1 {
	margin: 0;
	font: 500 2.25rem/1.15 Oswald, 'Inter Variable', sans-serif;
	letter-spacing: .02em;
	color: #fff;
}

.icon { flex: none; display: block; }
.dimmed { color: var(--ink-400); }

/* ---------------------------------------------------------------- header */

.site-header { border-bottom: 1px solid var(--ink-800); background: rgb(13 13 15 / .95); }

.header-inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	max-width: 80rem;
	margin: 0 auto;
	padding: .625rem 1.5rem;
}

.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: auto; height: 28px; }

.header-end { display: flex; align-items: center; gap: .375rem; margin-left: auto; font-size: .875rem; }
.header-end form { margin: 0; }

.nav-link { padding: .375rem .625rem; border-radius: .375rem; color: var(--ink-400); text-decoration: none; }
.nav-link:hover { background: var(--ink-800); color: #fff; }

.member {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	max-width: 14rem;
	margin-left: .25rem;
	padding: .125rem .75rem .125rem .125rem;
	border: 1px solid var(--ink-800);
	border-radius: 999px;
	background: var(--ink-900);
	color: var(--ink-100);
}

.avatar {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 999px;
	background: #8f0b0b;
	box-shadow: 0 0 0 1px rgb(255 255 255 / .1);
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
}

/* The photo covers the initial; a photo that fails to load leaves the initial visible. */
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; }

.member-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: .375rem;
	background: none;
	color: var(--ink-400);
	cursor: pointer;
}

.icon-button:hover { background: var(--ink-800); color: #fff; }

/* ---------------------------------------------------------------- page */

.page { flex: 1; width: 100%; max-width: 80rem; margin: 0 auto; padding: 2.5rem 1.5rem; }

.card {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--ink-800);
	border-radius: .75rem;
	background: var(--ink-900);
	box-shadow: var(--shadow-card);
}

.auth { display: grid; place-items: center; min-height: 60vh; }

.auth-card { width: 100%; max-width: 32rem; padding: 2.5rem; }
.auth-card .dimmed { position: relative; margin: .75rem 0 2rem; color: var(--ink-300); }
.auth-card h1 { position: relative; }

.accent-bar { position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand-600); }

.glow {
	position: absolute;
	top: -6rem;
	right: -6rem;
	width: 16rem;
	height: 16rem;
	border-radius: 999px;
	background: rgb(209 13 13 / .2);
	filter: blur(64px);
	pointer-events: none;
}

.button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	width: 100%;
	padding: .75rem 1rem;
	border-radius: .5rem;
	background: var(--brand-600);
	box-shadow: 0 0 0 1px rgb(255 255 255 / .06) inset;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
}

.button:hover { background: var(--brand-500); }

.note { position: relative; margin: .75rem 0 0; color: var(--ink-400); font-size: .8125rem; text-align: center; }

.eyebrow { margin: 0; color: var(--ink-400); font-size: .875rem; }
.lead { margin: .5rem 0 2rem; }

.group-title { margin: 2rem 0 .75rem; color: var(--ink-400); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.group-title:first-of-type { margin-top: 0; }
.site-card .live { display: flex; align-items: center; gap: .4rem; color: #6ee7b7; font-size: .8125rem; }
.site-card .live::before { content: ''; width: .45rem; height: .45rem; border-radius: 999px; background: #34d399; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 1.25rem; }

@media (min-width: 64rem) {
	.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.note a { color: var(--ink-200); }

.site-card {
	display: flex;
	flex-direction: column;
	gap: .375rem;
	padding: 1.25rem;
	color: inherit;
	text-decoration: none;
	transition: border-color .15s, background-color .15s, transform .15s;
}

.site-card:hover { border-color: var(--ink-700); background: var(--ink-850); transform: translateY(-1px); }
.site-card:hover .arrow { color: #fff; }
.site-card strong { margin-top: .5rem; color: #fff; font-size: 1.0625rem; font-weight: 600; }
.site-card .dimmed { font-size: .875rem; }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.arrow { color: var(--ink-500); }

.tile {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: .625rem;
	background: rgb(209 13 13 / .15);
	box-shadow: 0 0 0 1px rgb(241 43 43 / .3) inset;
	color: var(--brand-400);
}

.host { margin-top: auto; padding-top: .75rem; color: var(--ink-500); font-size: .75rem; }

.alert {
	max-width: 32rem;
	margin: 0 auto 1.5rem;
	padding: .75rem 1rem;
	border: 1px solid rgb(239 68 68 / .3);
	border-radius: .5rem;
	background: rgb(239 68 68 / .1);
	color: #fca5a5;
	font-size: .875rem;
}




@media (max-width: 640px) {
	.header-inner { padding: .625rem 1rem; }
	.nav-link { display: none; }
	.member-name { max-width: 7rem; }
	.page { padding: 2rem 1rem; }
	.auth-card { padding: 1.5rem; }
	h1 { font-size: 1.875rem; }
	.grid { gap: .625rem; }
	.site-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .875rem; row-gap: .125rem; padding: .875rem; }
	.site-card > * { grid-column: 2; }
	.site-card .card-top { grid-column: 1; grid-row: 1 / span 3; }
	.site-card .arrow { display: none; }
	.site-card strong { margin-top: 0; }
	.host { padding-top: .25rem; }
	.icon-button { width: 2.75rem; height: 2.75rem; }
}
