/* GLOBAL */
@font-face { font-family: Serif-Norm; src: url(ffc/serif-norm.woff2); }
@font-face { font-family: Sans-Norm; src: url(ffc/sans-norm.woff2); }
@font-face { font-family: Sans-Bold; src: url(ffc/sans-bold.woff2); }

:root {
	--white: #FFF8FF; --black: #111111;
	--yellow: #FFFF00;   --yellow2: #FFF79A; --cream: #FFFFE5; 
	--red: #880000; --peach: #FFCCAA; --lpeach: #FFEEDD; --mpeach: #F0E0D6;
	--green: #117743; --lgreen: #02EB02; --dgreen: #86C701;
	--cyan: #00787F; --blue: #000080; --lblue: #1083CF; --jade: #809D63;
	--lgrey: #DFD8DF; --mgrey: #BFB8BF; --dgrey: #7F787F;
	--line: 1.5px;
} 

* {
	font-family: Sans-Norm; 
	margin: 0; padding: 0; box-sizing: border-box; image-rendering: pixelated;
	-webkit-user-drag: none; -webkit-tap-highlight-color: transparent; user-select: none; outline: none;
} 

body::before { 
	display: none;
	opacity: 0.5; mix-blend-mode: overlay;
	content: ""; position: absolute; z-index: 1000; inset: 0; pointer-events: none; 
	background: url("res/crt-filter.png");  background-size: 64px; animation: crtScroll 5s linear infinite;
} body {
	background: var(--cyan);	
	display: flex; flex-direction: column;
	width: 100%; height: 100dvh; overflow: hidden;
	cursor: url("res/arrow-default.png") 0 0, auto;
} @keyframes crtScroll { 
	0% { background-position-y: 0 } 
	100% { background-position-y: 64px; } 
}


/* OUTSIDE */ 
.win, .btn, .start-btn, .start-menu, .res-link {
	border: var(--line) solid; border-color: var(--lgrey) var(--black) var(--black) var(--lgrey);
	box-shadow: inset calc(-1 * var(--line)) calc(-1 * var(--line)) 0 var(--dgrey), inset var(--line) var(--line) 0 var(--white);
} 

/* INSIDE */
.btn:active, .start-btn.act, .form, .emblem, .blog-sub, .reader, .music-info, .music-ctrl, .music-lyric,
.blog-address, .about-intro,  .self, .greet, .res-link:active, .tech-drop, .music-art, .playlist {
	border: var(--line) solid; border-color: var(--black) var(--lgrey) var(--lgrey) var(--black);
	box-shadow: inset calc(-1 * var(--line)) calc(-1 * var(--line)) 0 var(--white), inset var(--line) var(--line) 0 var(--dgrey);
}

/* POINTER CURSOR */
.btn, .start-btn, .toolbar p, .start-link, a, .blog-link, .music-ctrl div, .playlist p { cursor: url("res/arrow-pointer.png") 10 10, pointer; }

/* SHARED */
a { text-decoration: none; color: var(--black); }
::selection { background: var(--blue); color: var(--white); }
.toolbar { display: flex; padding: 8px 4px; gap: 12px; }
.separator { border-top: var(--line) solid var(--dgrey); border-bottom: var(--line) solid var(--white); }


/* DESKTOP */
.desktop { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 8px; min-height: 0; flex: 1; overflow-y: auto; }
.col { display: flex; flex-direction: column; gap: 8px; }


/* WINDOW BAR */
.win .win-bar { padding: 4px; background: var(--dgrey); display: flex; justify-content: space-between; } 
.win .win-ttl { gap: 8px; display: flex; align-items: center; } 
.win .win-ttl p { color: var(--mgrey); font-family: Sans-Bold; font-size: 18px;  }
.win .win-ttl img { width: 24px; }

/* WINDOW BAR BUTTON */
.bar-btn { display: flex; }
.bar-btn .btn { width: 28px; display: flex; padding: var(--line); background: var(--mgrey); }
.bar-btn .btn div { flex: 1; background-image: url(res/bar-btn.png); background-size: cover; }
.cls { margin-left: 4px; } 
.min div { background-position-x: 0; }
.cls div { background-position-x: 22px; } 
.max div { background-position-x: -21px; }
.cls:active div, .max:active div, .min:active div { background-position-y: 1px; }

/* WINDOW BODY */
.win { padding: 4px; background: var(--mgrey); display: flex; flex-direction: column; } 
.win-body { flex: 1; background: var(--mgrey); display: flex; flex-direction: column; padding: 4px; padding-top: 0; }

/* WINDOW HOVER */
.win:hover .win-ttl p { color: var(--white); }
.win:hover .win-bar { background:linear-gradient(90deg,var(--blue), var(--lblue)); }


/* ABOUT */
.about .win-body { padding: 16px; display: flex; gap: 4px; }
.welcome { width: 60%; margin-bottom: 8px; }
.about-ttl { display: flex; gap: 4px; }
.self { max-width: 35%; object-fit: cover; }
.greet { flex: 1; padding: 8px; background-origin: content-box; background: repeating-linear-gradient(180deg, var(--yellow2) 0 34.5px, var(--jade) 34.5px 36px); }
.greet p { font-size: 22px; line-height: 36px; }
.about-intro { 
	flex: 1; padding: 16px; gap: 16px; display: flex; 
	background: radial-gradient(var(--yellow) 1px, transparent 1px), radial-gradient(var(--yellow) 1px, transparent 1px);
	background-color: var(--cream); background-position: 0 0, 3px 3px; background-size: 6px 6px;
}
.about-bulb { max-width: 48px; max-height: 48px; }
.about-essay span { font-family: Sans-Bold; }
.about-essay a { color: var(--blue); }


/* TECH STACK */
.tech { flex: 1 }
.tech .win-body { padding: 4px; gap: 4px; }
.tech-bar { display: flex; gap: 8px; }
.tech-drop { display: flex; background: var(--white); }
.tech-drop p { padding: 4px clamp(8px, 4vw, 32px); flex: 1; text-align: center; }
.tech-drop .btn { padding: 0 14px; background: var(--mgrey) url(res/arrow-down.png) no-repeat center; background-size: 12px; }
.tech-bar-sec { display: flex; }
.tech-bar-sec .btn { padding: 0 14px; background-image: url(res/tech-btn.png); background-size: cover; }
.tech-b { background-position-x: -28px; } .tech-c { background-position-x: -55px; }
.tech-d { background-position-x: -83px; } .tech-e { background-position-x: 30px; }
.tech-sub {
	flex: 1; background: var(--black); padding: 16px; color: var(--mgrey); letter-spacing: 1px; font-size: 14px;
	border: var(--line) solid; border-color: var(--dgrey) var(--white) var(--white) var(--dgrey);
	box-shadow: inset calc(-1 * var(--line)) calc(-1 * var(--line)) 0 var(--mgrey), inset var(--line) var(--line) 0 var(--black);
}
.stack { display: flex; flex-direction: column; padding-top: 12px; gap: 4px; }
.stack-ttl { border-bottom: var(--line) dashed var(--mgrey); padding-bottom: 4px; }
.stack div { color: var(--yellow); display: flex; gap: 12px 28px; flex-wrap: wrap; }
.tech-bot { padding-top: 12px; }
.tech-bot span { font-weight: bold; animation: blink 1s step-start infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }


/* RESOURCES */
.resources .win-body {  padding-top: 16px; }
.res-tab {
	flex: 1; display: flex; flex-direction: column; padding: 8px; gap: 8px;
	border: var(--line) solid var(--dgrey); margin-top: 4px; box-shadow: inset 0 0 0 var(--line) var(--white); 
}
.res-tab:not(.act) { display: none; }
.res-ttl { margin-top: -18px; display: flex; justify-content: center; }
.res-ttl p { background: var(--mgrey); padding: 0 8px; font-family: Sans-Bold; }
.res-list { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.res-link { background: var(--mgrey); display: flex; flex-direction: column; padding: 8px; gap: 4px; }
.res-link-ttl { display: flex; justify-content: space-between; }
.res-link-ttl p { font-family: Sans-Bold; font-size: 20px; }
.res-link-ttl img { transform: rotate(-45deg); width: 24px; height: 24px; }

/* RESOURCES & CONTACT TOOLBAR */
.res-tool, .form-tool { 
	padding: 4px; display: flex;
	border: var(--line) solid var(--dgrey); margin-top: 4px; box-shadow: inset 0 0 0 var(--line) var(--white);  
}
.res-tool .btn, .form-tool .btn { display: flex; align-items: center; gap: 8px; padding: 8px; }
.res-tool .btn img, .form-tool .btn img { max-width: 24px; }


/* BLOG SEARCH */
.blog-head { display: flex; }
.blog-tool-bar { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.blog-btn-grp { flex: 1; padding: 0 4px; padding-left: 0; display: flex; justify-content: space-between; }
.blog-btn-sec { display: flex; }  
.blog-btn-sec .btn { padding: 0 14px; background-size: 8px; }
.arrow-left { background: var(--mgrey) url(res/arrow-left.png) no-repeat center; }
.arrow-right { background: var(--mgrey) url(res/arrow-right.png) no-repeat center; }
.search { background: var(--mgrey) url(res/search.png) no-repeat center; background-size: 22px !important; }
.new-tab { background: var(--mgrey) url(res/new-tab.png) no-repeat center; background-size: 22px !important; }
.blog-address { flex: 1; cursor: text; margin-right: 4px; background: var(--white);  display: flex; justify-content: space-between; }
.blog-address p { padding: 4px 8px; align-self: center; }
.blog-address .btn { padding: 0 14px; background: var(--mgrey) url(res/arrow-down.png) no-repeat center; background-size: 12px; }
.emblem {  background: url(res/emblem.png) no-repeat; padding: 38px; background-size: cover; }

/* BLOG BODY */
.blog { flex: 1; }
.blog-sub { 
	display: flex; flex-direction: column; padding: 12px; gap: 12px;
	flex: 1; margin-top: 8px; background: #FFE url('res/fade.png') top repeat-x;
} 
.blog-ttl { gap: 12px; display: flex; align-items: center; align-self: center; }
.blog-ttl p { font-family: Sans-Bold; font-size: 32px; color: var(--red); letter-spacing: -1px; }
.blog-ttl img { width: 48px; }
.blog-link { border: 1px solid var(--red); color: var(--red); display: flex; flex-direction: column; }
.blog-link div { background: var(--peach); display: flex; justify-content: space-between; padding: 8px; gap: 4px; }
.blog-link div p:first-child { font-family: Sans-Bold; }
.blog-link > p { padding: 8px; background: var(--white); flex: 1; }

/* BLOG READER */
.reader.act { display: block; }
.blog-sub.hide { display: none; }
.reader { display: none; padding: 8px; background: var(--peach); margin-top: 8px; }
.reader-tool { display: flex; }
.reader-back { color: var(--red); background: var(--lpeach); padding: 4px 8px; border: 1px solid var(--red); border-bottom: none; }
.reader-back.b { border: 1px solid var(--red); border-top: none; }
.reader-info { display: flex; gap: 8px; justify-content: space-between; }
.reader-est { color: var(--green); }
.reader-content { padding: 16px; border: 1px solid var(--red); background: var(--mpeach); color: var(--red); }
.reader-intro { display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--red); padding-bottom: 8px; }
.reader-ttl { font-family: Sans-Bold; font-size: 22px; }
.reader-essay { padding-top: 8px; line-height: 22px; }
tt { font-weight: bold; display: block; padding: 4px 0; font-size: 18px; }
spc { display: block; padding: 8px; }


/* CONTACTS */
.contact { flex: 1; }
.form-inp * { font-size: 18px }
.form * { font-family: Serif-Norm; }
.form { flex: 1; background: var(--white); margin-top: 4px; padding: 8px; display: flex; flex-direction: column; }
.form-ttl { font-size: 32px; border-bottom: 1px solid var(--dgrey); padding: 4px; }
.form-inp { padding: 8px 4px; gap: 8px; display: flex; border-bottom: 1px solid var(--dgrey); }
.form-inp:last-child { border: none; flex-direction: column; flex: 1; }
.form-inp input { flex: 1; border: none; background: none; }
.form-inp input, .form-inp textarea { min-width: 0; width: 100% }
.form-inp textarea { border: 1px solid var(--dgrey); background: none; padding: 8px; flex: 1; resize: none; }


/* MUSIC */
.player { display: flex; gap: 8px; padding: 4px; padding-top: 8px; }
.music-art { max-width: 25%; padding: 8px; position: relative; overflow: hidden; background: var(--black); display: flex; align-items: center; justify-content: center; }
.music-art::after { 
	content: ""; position: absolute; width: 15px; aspect-ratio: 1; border: 10px solid var(--dgrey);
	background: var(--black); border-radius: 50%; inset: 50%; transform: translate(-50%, -50%); 
}
.player img { max-width: 100%; object-fit: cover; border-radius: 100%; border: var(--line) solid var(--mgrey);  }
.music-art.playing img { animation: cdRoll 4s linear infinite; }
@keyframes cdRoll { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.music-bar{ flex: 1; display: flex; flex-direction: column; gap: 4px; }
.music-info { background: var(--black); color: var(--jade); padding: 8px; font-size: 20px; }
.music-ttl { font-family: Sans-Bold; }
.music-ctrl { display: flex; padding: 4px; align-items: center; }
.music-ctrl div { 
	border: var(--line) solid var(--black);
	padding: 14px; background-image: url(res/music-btn.png); background-size: cover;
	box-shadow: inset 0 -2px 0 0 var(--dgrey), inset 0 2px 0 0 var(--white); 
}
.music-a { background-position-x: -30px; }
.music-b { background-position-x: 0px; }
.music-c { background-position-x: -60px; }
.music-b.act { box-shadow: inset 0 -2px 0 0 var(--white), inset 0 2px 0 0 var(--dgrey); background-position-x: -89px; }
.music-count { flex: 1; text-align: right; padding: 4px; }
.music-lyric { flex: 1; background: var(--dgreen); display: flex; justify-content: center; align-items: center; padding: 4px; }
.music-lyric p { transform: scaleX(0.7); font-size: 24px; text-align: justify; filter: blur(0.7px); }
.playlist { 
	margin: 4px; padding: var(--line); background: var(--white); 
	display: flex; flex-direction: column;
}
.playlist p { padding: 8px; }
.playlist p:nth-child(odd) { background: var(--lgrey); }
.playlist p.act { color: var(--white); background: var(--blue); }


/* TASKBAR */
.task-bar { 
	gap: 4px; padding: 4px; display: flex;  position: relative;
	background: var(--mgrey); border-top: var(--line) solid var(--white); box-shadow: 0 calc(-1 * var(--line)) 0 0 var(--lgrey);  
}

/* START MENU */
.start-menu.act { display: flex; }
.start-menu { position: absolute; z-index: 1000; bottom: calc(100% + 5px); left: 2px; display: none; background: var(--mgrey); }
.start-menu-ttl { width: 28px; margin: var(--line); margin-right: 0; }
.start-list { display: flex; flex-direction: column; margin: var(--line); margin-left: 0; }
.start-link { 
	flex: 1; display: flex; align-items: center; justify-content: space-between;
	gap: 18px; padding: 0 12px; text-decoration: none; background: var(--mgrey); 
}
.start-link div { display: flex; align-items: center; gap: 12px }
.start-link p { color: black; } 
.start-link div img { width: 38px; } 
.start-link > img { width: 6px; }
.start-user { padding: 8px 16px; background: var(--mgrey); } 
.start-user span { font-family: Sans-Bold; }

/*START BUTTON */
.start-btn { padding: 2px; }
.start-btn div { padding: 2px; gap: 6px; display: flex; align-items: center; border: var(--line) solid transparent; }
.start-btn.act div { border: var(--line) dotted var(--black); }
.start-btn p { font-family: Sans-Bold; font-size: 18px; }
.start-btn img { width: 24px;  }

/* TASK END */
.task-list { flex: 1; }
.clock { display: flex; align-items: center; padding: 4px 8px; border: var(--line) solid; border-color: var(--dgrey) var(--white) var(--white) var(--dgrey); }


/* ACTIVE / DEFAULT */
.toolbar p:active { text-decoration: underline; }
.start-link:active > img { filter: invert(1); }
.start-link:active p { color: var(--white); }
.start-link:active { background: var(--blue); }
.about-essay a:active { text-decoration: underline; font-style: italic; }
.blog-link:active div, .reader-back:active { background: var(--red); color: var(--lpeach); }
.res-link:active .res-link-ttl p { font-style: italic; }
.music-ctrl div:active { box-shadow: inset 0 -2px 0 0 var(--white), inset 0 2px 0 0 var(--dgrey); }

/* HOVER */
@media(hover: hover) {
	.toolbar p:hover { text-decoration: underline; }
	.start-link:hover > img { filter: invert(1); }
	.start-link:hover p { color: var(--white); }
	.start-link:hover { background: var(--blue); }
	.about-essay a:hover { text-decoration: underline; font-style: italic; }
	.blog-link:hover div, .reader-back:hover { background: var(--red); color: var(--lpeach); }
	.res-link:hover .res-link-ttl p { font-style: italic; }
	.res-link:hover { 
		border: var(--line) solid; border-color: var(--black) var(--lgrey) var(--lgrey) var(--black);
		box-shadow: inset calc(-1 * var(--line)) calc(-1 * var(--line)) 0 var(--white), inset var(--line) var(--line) 0 var(--dgrey); 
	}
}


/* MOBILE */
@media(max-width:768px){

	/* DESKTOP */
	.desktop{display:flex;flex-direction:column;gap:8px;padding:8px;overflow-y:auto}
	.col{display:contents}
	.about{order:1}.blog{order:2}.tech{order:3}.resources{order:4}.contact{order:5}.music{order: 6;}

	/* ABOUT */
	.welcome{width:100%}
	.self{max-width:100%}
	.about-ttl{flex-direction:column}
	.about-bulb{display:none}

	/* RESOURCES */
	.res-list{grid-template-columns: 1fr; }

	/* BLOG */ 
	.blog-link div{flex-direction:column}

	/* CONTACT */
	.form-ttl{font-size:24px}
	.form-inp *{font-size:16px}

	/* MUSIC */
	.player { flex-direction: column-reverse; }
	.music-art { max-width: 50%; padding: 4px; }
}