/* ==========================
   Fonts
   ========================== */
@charset "UTF-8";
@import url(fonts/artemis.css);
@import url(fonts/bariol.css);
@import url(fonts/ShareTechMono.css);
@import url(fonts/mononoki.css);
@import url(fonts/handschrift.css);

/* ==========================
   Global Colors
   ========================== */
/* Nord-Theme
:root {
    --bg: #3b4252;
    --text: #eceff4;
    --accent: #d8dee985;
    --header-bg: #2e344085;
    --footer-bg: #2e3440;
    --border: #434c5e;
    --blue: #5e81ac;
    --red: #bf616a;
    --orange: #d08770;
    --yellow: #ebcb8b;
    --green: #a3be8c;
    --purple: #b48ead;
    --lightblue: #81a1c1;
	--tagline: #81a1c185;
}
*/

:root {
    --bg_dim: #232a2e;
	--bg_dim_t: #232a2e85;
    --bg0: #2b3339;
    --bg1: #323c41;
    --bg2: #3a444a;
    --bg3: #424c52;
    --bg4: #4a555b;
    --bg5: #525c62;
    --bg_visual: #503946;
    --bg_red: #4e3e43;
    --bg_green: #404d44;
    --bg_blue: #394f5a;
    --bg_yellow: #4a4940;

    --fg: #d3c6aa;
    --red: #e67e80;
    --orange: #e69875;
    --yellow: #dbbc7f;
    --green: #a7c080;
    --aqua: #83c092;
    --blue: #7fbbb3;
    --purple: #d699b6;

    --grey0: #7a8478;
    --grey1: #859289;
    --grey2: #9da9a0;
	
	--txtshadow: 1px 1px 1px #00000085;
}

@media (prefers-color-scheme: light) {
	:root {
		--bg_dim: #efebd4;
		--bg_dim_t: #efebd485;
		--bg0: #fff9e8;
		--bg1: #f6f0dc;
		--bg2: #f0ead6;
		--bg3: #e6e0cc;
		--bg4: #ddd8be;
		--bg5: #d3cdb4;
		--bg_visual: #f0e0cd;
		--bg_red: #ffe7de;
		--bg_green: #f3f5d9;
		--bg_blue: #ecf5ed;
		--bg_yellow: #fef2d5;

		--fg: #5c6a72;
		--red: #f85552;
		--orange: #f57d26;
		--yellow: #dfa000;
		--green: #8da101;
		--aqua: #35a77c;
		--blue: #3a94c5;
		--purple: #df69ba;

		--grey0: #a6b0a0;
		--grey1: #939f91;
		--grey2: #829181;
		
		--txtshadow: none;
	}
}

/* ==========================
   Reset / Base
   ========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg0);
    color: var(--fg);
    font-family: 'Share Tech Mono';
    letter-spacing: 1px;
    line-height: 1.5;
    min-height: 100vh;
    text-shadow: var(--txtshadow);
}

a {
    color: var(--green);
}

a:hover {
    color: var(--blue);
}

/* ==========================
   Layout
   ========================== */
header {
    background-color: var(--bg_dim);
	padding: 2px 10px;
	margin-bottom: 15px;
	border-bottom: 1px solid var(--bg_green);
	box-shadow: 0px 0px 5px 0px #00000085;
	position: sticky;
	top: 0;
	z-index: 9998;
	backdrop-filter: blur(20px);
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.site-title {
    color: var(--green);
    font-family: 'artemis';
    font-size: 32px;
    font-weight: bold;
    padding-left: 10px;
    text-shadow: 0px 1px 0px #404d44, 0px 2px 0px #404d44, 0px 3px 0px #404d44, 0px 4px 0px #404d44, 0px 5px 4px #000000;
}

.site-title a:hover {
	color: var(--aqua);
}

.site-title a, .site-title a:hover {
	text-decoration-line: none;
}

.site-tagline {
    color: var(--yellow);
    font-size: 16px;
    padding-left: 20px;
}

/* ==========================
   Header
   ========================== */
#header {
    display: flex;
    align-items: center;
    background: var(--bg_dim_t);
	backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bg_green);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#menu-toggle {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================
   Sidebar (off-canvas)
   ========================== */
#sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background: var(--bg_dim_t);
    border-right: 1px solid var(--bg_green);
    padding: 1rem;
    transition: left 0.3s ease;
    z-index: 9999;
	backdrop-filter: blur(20px);
    overflow-y: auto;
}

#sidebar.active {
    left: 0;
}

/* ==========================
   Overlay
   ========================== */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg_dim_t);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 900;
}

#overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ==========================
   Navigation
   ========================== */
nav {
    padding: 10px;
}

nav a {
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

nav .month-list {
	padding-left: 10px;
}

/* ==========================
   Blog Posts
   ========================== */
.post, .post-single {
    font-family: 'Share Tech Mono';
    font-size: 18px;
    letter-spacing: 0.5px;
    background-color: var(--bg1);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--bg_green);
    border-radius: 5px;
    width: 90%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0px 0px 5px 0px #00000085;
}

.post:nth-child(2), .post-single:nth-child(2) {
	border: 2px solid var(--bg_blue);	
}

.post:nth-child(3), .post-single:nth-child(3) {
	border: 2px solid var(--bg_yellow);	
}

.post h2, .post-single h1 {
	color: var(--green);
    font-size: calc(100% + 14px);
    letter-spacing: 2px;
    font-family: 'Share Tech Mono';
    margin-bottom: 0px;
}

.post h2 a, .post-single h2 a {
    text-decoration: none;
}

.post .meta, .post-meta, .post-single .meta {
    font-size: 12px;
    font-family: 'Share Tech Mono';
	font-style: italic;
    text-align: right;
    color: var(--grey2);
    margin-top: -20px;
    margin-bottom: 10px;
    padding-left: 0px;
    border-bottom: 1px dotted var(--grey1);
}

.post .tags a, .post-single .tags a {
    color: var(--bg_green);
    text-decoration: none;
    margin-right: 0.5rem;
}

.post .tags a:hover, .post-single .tags a:hover {
    text-decoration: underline;
}

.post-content {
    padding-left: 10px;
}

.post-tags {
    margin-top: 20px;
}

.tag {
    color: var(--grey0);
    font-size: 12px;
    font-family: 'mononoki';
    letter-spacing: 0.5px;
    font-variant: small-caps;
    background-color: var(--bg_dim);
    padding: 2px 0px 2px 5px;
    margin-left: 10px;
    border-radius: 5px;
    text-decoration: none;
}

.tag:hover {
    color: var(--green);
}

.tag:last-child {
    padding: 2px 5px 2px 5px;
}

/* ==========================
   Text styling
   ========================== */
blockquote {
	border-left: 3px solid var(--bg5);
	padding-left: 5px;
}

blockquote p {
	font-style: italic;
	color: var(--grey1);
}

code {
  background-color: var(--bg2);
  color: var(--grey2);
  padding: 2px 5px;
  border-radius: 3px;
  font-family: 'mononoki';
  font-size: calc(100% - 4px);
}

/* ==========================
   Navigation
   ========================== */

.pagination {
	font-size: calc(100% + 5px);
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 20px;
	text-align: center;
}

.pagination a {
	font-weight: bold;
	text-decoration-line: none;
	padding: 0 5px;
}

/* ==========================
   Forms / Admin
   ========================== */
form {
	display: flex;
	flex-direction: column;
	max-width: 500px;
	gap: 0.5rem;
	margin-bottom: 2rem;
	padding: 10px;
}
   
form.login {
	display: flex;
	flex-direction: column;
	top: 50%;
	left: 50%;
	transform: translateY(-50%) translateX(-50%);
	max-width: 500px;
	gap: 0.5rem;
	margin-bottom: 2rem;
	position: absolute;
	border: 2px solid var(--bg_red);
	border-radius: 5px;
	padding: 10px;
	background-color: var(--bg_dim);
}

form.editor {
	display: flex;
	flex-direction: column;
	max-width: 500px;
	gap: 0.5rem;
	margin-bottom: 2rem;
	position: absolute;
	border: 2px solid var(--bg_red);
	border-radius: 5px;
	padding: 10px;
	background-color: var(--bg_dim);
}

input, textarea, button {
   padding: 0.5rem;
   font-size: 1rem;
   border: 1px solid var(--red);
   border-radius: 4px;
   background-color: var(--bg_red);
   color: var(--fg);
}

textarea {
    resize: vertical;
    min-height: 200px;
}

button {
    background-color: var(--accent);
    color: var(--blue);
	text-shadow: 1px 1px 1px #00000085;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: darken(var(--accent), 10%);
	color: var(--lightblue);
}

/* ==========================
   Preview Box
   ========================== */
#preview {
    background-color: var(--bg);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 6px;
}

/* ==========================
   Utility
   ========================== */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}