/* ==========================================================================
   mystikos.org placeholder

   The Norton Simple look (src/styles/norton*.css) as one self-contained file,
   because this site is a single hand-written page with no build. The tokens
   below are the same values the theme uses; if the theme's change, change them
   here too.
   ========================================================================== */

:root {
	--norton-navy: #000080;
	--norton-cyan: #00ffff;
	--norton-white: #ffffff;
	--norton-black: #000000;
	--norton-alert-yellow: #ffff00;

	--norton-bevel-width: 2px;
	--norton-bevel-light: #5555ff;
	--norton-bevel-dark: #000000;

	--norton-space-1: 10px;
	--norton-space-2: 15px;
	--norton-space-3: 20px;

	--norton-mono: 'Courier New', Courier, monospace;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background: var( --norton-navy );
	color: var( --norton-white );
	font-family: var( --norton-mono );
	font-size: 1rem;
	line-height: 1.5;
	position: relative;
}

/* The CRT edge fades, as on the other sites. */
body::before,
body::after {
	content: '';
	position: fixed;
	top: 0;
	bottom: 0;
	width: 120px;
	pointer-events: none;
	z-index: 100;
}

body::before {
	left: 0;
	background: linear-gradient( to right, #000000 0%, #000000 30%, rgba( 0, 0, 0, 0.7 ) 60%, transparent 100% );
}

body::after {
	right: 0;
	background: linear-gradient( to left, #000000 0%, #000000 30%, rgba( 0, 0, 0, 0.7 ) 60%, transparent 100% );
}

:focus-visible {
	outline: 2px solid var( --norton-cyan );
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   The application window, centred in the viewport
   -------------------------------------------------------------------------- */

.screen {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100dvh;
	padding: var( --norton-space-3 );
}

.window {
	width: 100%;
	max-width: 760px;
	background: var( --norton-navy );
	border-top: var( --norton-bevel-width ) solid var( --norton-bevel-light );
	border-left: var( --norton-bevel-width ) solid var( --norton-bevel-light );
	border-bottom: var( --norton-bevel-width ) solid var( --norton-bevel-dark );
	border-right: var( --norton-bevel-width ) solid var( --norton-bevel-dark );
	/* Above the edge fades, which otherwise dim the window's own corners. */
	position: relative;
	z-index: 101;
}

/* Title bar and status bar are the DOS selection bar: cyan, inverted. */
.titlebar,
.statusbar {
	display: flex;
	justify-content: space-between;
	gap: var( --norton-space-2 );
	padding: 2px var( --norton-space-1 );
	background: var( --norton-cyan );
	color: var( --norton-black );
	font-weight: bold;
	text-transform: uppercase;
}

.titlebar-name {
	letter-spacing: 0.1em;
}

.menubar {
	display: flex;
	gap: var( --norton-space-3 );
	padding: 4px var( --norton-space-1 );
	color: var( --norton-white );
	border-bottom: 1px solid var( --norton-bevel-light );
}

.menubar u {
	color: var( --norton-cyan );
}

.statusbar-keys {
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Panel contents
   -------------------------------------------------------------------------- */

.panel {
	padding: var( --norton-space-3 );
}

h1,
h2 {
	color: var( --norton-cyan );
	text-transform: uppercase;
	letter-spacing: 0.1em;
	border-bottom: 1px solid var( --norton-cyan );
	padding-bottom: 5px;
}

h1 {
	margin: 0 0 var( --norton-space-1 );
	font-size: 1.75rem;
}

h2 {
	margin: 0 0 var( --norton-space-1 );
	font-size: 1rem;
	letter-spacing: 0.05em;
}

.tagline {
	margin: 0 0 var( --norton-space-3 );
}

a {
	color: var( --norton-cyan );
	text-decoration: underline;
}

a:hover,
a:focus {
	background: var( --norton-cyan );
	color: var( --norton-navy );
	text-decoration: none;
}

/* The [!] alert, with its glyph as generated content so it is not read out. */
.alert {
	margin: 0 0 var( --norton-space-3 );
	padding: var( --norton-space-2 );
	border-top: var( --norton-bevel-width ) solid var( --norton-bevel-light );
	border-left: var( --norton-bevel-width ) solid var( --norton-bevel-light );
	border-bottom: var( --norton-bevel-width ) solid var( --norton-bevel-dark );
	border-right: var( --norton-bevel-width ) solid var( --norton-bevel-dark );
}

.alert::before {
	content: '[!] ';
	color: var( --norton-alert-yellow );
	font-weight: bold;
}

/* An inset panel: the bevel runs the other way. */
.inset {
	padding: var( --norton-space-2 );
	margin: 0 0 var( --norton-space-3 );
	border-top: var( --norton-bevel-width ) solid var( --norton-bevel-dark );
	border-left: var( --norton-bevel-width ) solid var( --norton-bevel-dark );
	border-bottom: var( --norton-bevel-width ) solid var( --norton-bevel-light );
	border-right: var( --norton-bevel-width ) solid var( --norton-bevel-light );
}

.menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu-list li {
	margin: 5px 0;
}

.menu-list li::before {
	content: '\25BA\00a0\00a0';
	color: var( --norton-cyan );
}

.note {
	color: var( --norton-bevel-light );
}

.prompt {
	margin: 0;
	color: var( --norton-cyan );
}

.cursor {
	display: inline-block;
	width: 0.6em;
	height: 1em;
	margin-left: 0.2em;
	vertical-align: text-bottom;
	background: var( --norton-cyan );
	animation: blink 1.1s step-end infinite;
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.cursor {
		animation: none;
	}
}

/* --------------------------------------------------------------------------
   Narrow screens
   -------------------------------------------------------------------------- */

@media ( max-width: 600px ) {
	body {
		font-size: 0.875rem;
	}

	/* The edge fades eat too much of a small viewport. */
	body::before,
	body::after {
		display: none;
	}

	.screen {
		padding: var( --norton-space-1 );
		align-items: flex-start;
	}

	.panel {
		padding: var( --norton-space-2 );
	}

	h1 {
		font-size: 1.25rem;
	}

	/* The function keys are the first thing to go when the bar wraps. */
	.statusbar-keys {
		display: none;
	}

	.note {
		display: block;
	}
}
