/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
	margin: 0 auto;
	max-width: 1200px;
}

body {
	margin: 0;
	font-family: sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	padding: 2em;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

/* Headings */
h1 {
	margin: 0;
	line-height: 1.2;
}

h2 {
	margin: 2em 0 0.5em 0;
}

h3 {
	margin: 1.5em 0 0.5em 0;
}

main h2 {
	margin-top: 1em;
	margin-bottom: 0.5em;
}

/* Subtitles */
h1 .subtitle {
	display: block;
	font-size: 0.5em;
	font-weight: normal;
	color: #555;
	margin-top: 0.1em;
}

h2 .subtitle {
	display: block;
	font-size: 0.75em;
	font-weight: normal;
	color: #555;
	margin-top: 0.2em;
}

h3 .subtitle {
	display: block;
	font-size: 0.75em;
	font-weight: normal;
	font-style: italic;
	color: #555;
	margin-top: 0.2em;
}

h4 .subtitle {
	display: block;
	font-size: 1em;
	font-weight: normal;
	font-style: italic;
	color: #555;
	margin-top: -1em;
}

h4 .author {
	display: block;
	font-size: 1em;
	font-weight: bold;
	color: #666;
	margin-top: -0.5em;
	margin-bottom: -1em;
}

/* Paragraphs */
p {
	margin: 0 0 1em 0;
	line-height: 1.2;
}

p.poem {
	margin: 0 0 1.5em 0;
	padding-left: 0.5em;
	text-indent: -0.5em;
}

p.note {
	font-size: 0.8em;
	font-weight: normal;
	color: #555;
	font-style: italic;
}

/* Lists */
ul, ol {
	padding-inline-start: 1.5em;
	line-height: 1.4;
}

/* ==========================================================================
   LINKS
   ========================================================================== */

a {
	text-decoration: none;
	color: #0070f3;
	transition: color 0.2s;
}

a:hover,
a:focus {
	color: #0051a8;
	text-decoration: underline;
}

/* Navbar links */
.navbar a {
	position: relative;
	display: inline-block;
	line-height: 44px;
}

.navbar a::before {
	content: "";
	position: absolute;
	top: -8px;
	bottom: -8px;
	left: -8px;
	right: -8px;
}

.navbar a:hover,
.navbar a:focus {
	color: #0051a8;
}

.navbar a:focus {
	outline: 2px solid #0051a8;
	outline-offset: 2px;
}

/* Play button links */
a.play {
	display: flex;
	margin: 0.25em 0 0.75em 2em;
	padding: 0.25em 0.5em;
	border: 1px solid #666;
	border-radius: 0.5em;
	text-transform: uppercase;
	line-height: 1.4;
	color: #333;
	width: 72px;
	height: 24px;
	align-items: center;
	justify-content: center;
}

a.play:hover {
	background: #333;
	color: #fff;
	text-decoration: none;
}

a.play.big {
	width: 144px;
	height: 36px;
}

.column .play {
	margin-left: 0;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

header {
	border-bottom: 4px solid;
}

main {
	flex: 1;
	max-width: 1000px;
}

main p,
main ul,
main ol,
main img,
main .video-wrapper,
main .timeline,
main .project-entry .byline,
main .project-entry .tags,
main .project-entry .body {
	margin-left: 2em;
}

main h1, main h2, main h3, main h4, main h5, main h6,
main .project-entry .title {
	margin-left: 0;
}

footer {
	border-top: 4px solid;
	padding-top: 20px;
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	align-items: left;
	justify-content: center;
	text-align: left;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Images */
img {
	display: block;
	max-width: 80%;
	height: auto;
}

/* Video wrapper */
.video-wrapper {
	max-width: 80%;
	overflow: hidden;
	padding: 2em 0;
}

.video-wrapper video {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 0.75em;
}

/* Game entry layout */
.game-entry {
	display: flex;
	gap: 1em;
	align-items: flex-start;
}

.column {
	flex: 1;
}

/* Column ratio presets */
.col-1-3 { flex: 1; }
.col-2-3 { flex: 2; }
.col-1-4 { flex: 1; }
.col-3-4 { flex: 3; }

/* Kit form container */
.kit-form-container {
    margin-top: 20px;
	margin-bottom: 20px;
	width: 100%;
	max-width: 700px;
}

/* Footer webring */
.footer-webring {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 15px;
}

.footer-webring .nav {
    display: flex;
    flex-direction: column;
}

.footer-webring .webring-logo {
	border: 1px solid black;
	display: flex;
	flex-direction: row;
}

.footer-webring .webring-logo img {
	width: 65px;
}

.footer-webring .webring-logo p {
	max-width: 50px;
	font-size: 16px;
	font-family: monospace;
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */

.timeline {
	font-size: 0.85em;
	color: #666;
	display: block;
	position: relative;
	margin: 2em 0 0.25em;
	padding-left: 3em;
	border-left: 2px solid #ccc;
}

.timeline h3 {
	margin: 0.25em 0 0.4em 0;
}

.timeline p {
	margin: 0;
	max-width: 65ch;
}

.timeline-item {
	position: relative;
	margin-bottom: 2em;
}

.timeline-item::before {
	content: "";
	position: absolute;
	left: -3em;
	top: 0.5em;
	width: 2em;
	height: 2px;
	background: #ccc;
}

.timeline-item::after {
	content: "";
	position: absolute;
	left: -1.1em;
	top: 0.3em;
	width: 0.6em;
	height: 0.6em;
	background: #666;
	border-radius: 50%;
}

.timeline-date {
	display: block;
	margin-bottom: 0.3em;
	position: relative;
}

/* ==========================================================================
   TAGS
   ========================================================================== */

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin: 0.5em 0;
}

.tag {
	display: inline-block;
	padding: 0.25em 0.6em;
	border: 1px solid #666;
	border-radius: 0.5em;
	font-size: 0.8em;
	text-transform: uppercase;
	color: #333;
	background: transparent;
	line-height: 1.2;
	white-space: nowrap;
}

/* ==========================================================================
   PROJECT ENTRIES
   ========================================================================== */

.project-entry {
	margin: 2em 0 0;
}

.project-entry .title {
	margin: 0;
	font-size: 1.25em;
}

.project-entry .subtitle {
	display: block;
	font-size: 0.8em;
	font-style: italic;
	color: #555;
	margin-top: 0.2em;
}

.project-entry .tags {
	margin: 0.5em 0;
}

.project-entry .tag {
	display: inline-block;
	padding: 0.25em 0.6em;
	border: 1px solid #666;
	border-radius: 0.5em;
	font-size: 0.8em;
	text-transform: uppercase;
	color: #333;
	background: transparent;
	line-height: 1.2;
	white-space: nowrap;
}

.project-entry .byline {
	font-size: 1em;
	color: #000;
	margin: 0;
	font-style: italic;
}

.project-entry .body {
	font-size: 1em;
	margin: 1em 0 0;
}

.project-entry.recent {
	border: 1px solid #666;
	border-radius: 8px;
	padding: 1em;
	margin-top: 2em;
	max-width: 600px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
	.game-entry {
		flex-direction: column;
	}
}
